{"id":21221804,"url":"https://github.com/primitivefinance/portfolio-rs","last_synced_at":"2025-07-10T13:32:59.865Z","repository":{"id":186882593,"uuid":"675754215","full_name":"primitivefinance/portfolio-rs","owner":"primitivefinance","description":"SDK for the Portfolio protocol written in rust.","archived":false,"fork":false,"pushed_at":"2023-08-10T21:50:43.000Z","size":51,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-05T14:02:40.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/primitivefinance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-07T16:35:34.000Z","updated_at":"2024-08-10T05:44:34.000Z","dependencies_parsed_at":"2024-11-20T22:56:32.573Z","dependency_job_id":null,"html_url":"https://github.com/primitivefinance/portfolio-rs","commit_stats":null,"previous_names":["primitivefinance/portfolio-rs"],"tags_count":0,"template":false,"template_full_name":"Alexangelj/sol-rs","purl":"pkg:github/primitivefinance/portfolio-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fportfolio-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fportfolio-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fportfolio-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fportfolio-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primitivefinance","download_url":"https://codeload.github.com/primitivefinance/portfolio-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fportfolio-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264585371,"owners_count":23632646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T22:33:49.943Z","updated_at":"2025-07-10T13:32:58.503Z","avatar_url":"https://github.com/primitivefinance.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# portfolio-rs\n\nMinimalist toolkit for building rust applications on top of the [portfolio](https://github.com/primitivefinance/portfolio) protocol.\n\n## Installation\n\n#### [Required] Foundry. [Source](https://github.com/foundry-rs/foundry).\nIf not installed, run the following:\n```bash\n# First install foundryup\ncurl -L https://foundry.paradigm.xyz | bash\n\n# Restart terminal or reload `PATH`, then run foundryup\nfoundryup\n```\n\n### Setup\n\n```bash\n# Install submodule dependencies and generate rust bindings.\n./setup.sh\n\n# Update .env with RPC url and private key\ncp .env.example .env\n```\n\n### Usage\n\n```bash\n# Run the app\ncargo run -- --help\n\n# [Optional] Install locally (breaks terminal output)\ncargo install --path . --force\n```\n\n### Recompile\n\nIf you choose a different portfolio version, or install new dependencies, make sure to recompile and bind the contracts.\n\n```bash\n# Recompile rust bindings\n./compile.sh\n```\n\n### Commands\n\n\n*List*\n\nLists the available portfolio pools, including their pool id and TVL.\n\n```bash\ncargo run -- list\n```\n\n- `list` - Lists all the pools, including pool id, tokens, and estimated TVL if available.\n- `info` - Prints a pool's state and configuration, if any.\n- `action` - Performs an action on a pool, such as swap, add liquidity, remove liquidity, etc. [Required] Settings in portfolio.toml.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivefinance%2Fportfolio-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimitivefinance%2Fportfolio-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivefinance%2Fportfolio-rs/lists"}