{"id":26905825,"url":"https://github.com/abstractsdk/cosmos-anybuf","last_synced_at":"2025-10-09T23:19:47.940Z","repository":{"id":229590390,"uuid":"761423206","full_name":"AbstractSDK/cosmos-anybuf","owner":"AbstractSDK","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-19T16:19:00.000Z","size":188,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-09T23:19:47.695Z","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/AbstractSDK.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}},"created_at":"2024-02-21T20:56:13.000Z","updated_at":"2025-09-29T01:21:58.000Z","dependencies_parsed_at":"2024-04-19T16:31:48.170Z","dependency_job_id":"5799b5db-ee48-4f24-aaf8-d71015595a6b","html_url":"https://github.com/AbstractSDK/cosmos-anybuf","commit_stats":null,"previous_names":["abstractsdk/cosmos-anybuf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AbstractSDK/cosmos-anybuf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbstractSDK%2Fcosmos-anybuf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbstractSDK%2Fcosmos-anybuf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbstractSDK%2Fcosmos-anybuf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbstractSDK%2Fcosmos-anybuf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbstractSDK","download_url":"https://codeload.github.com/AbstractSDK/cosmos-anybuf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbstractSDK%2Fcosmos-anybuf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002344,"owners_count":26083340,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-04-01T10:59:03.617Z","updated_at":"2025-10-09T23:19:47.922Z","avatar_url":"https://github.com/AbstractSDK.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cosmos Anybuf\r\n\r\nA low-level Rust protobuf crate for use in Stargate CosmWasm messages.\r\n\r\n## Supported Modules\r\n\r\n### Neutron\r\n\r\n- Token Factory\r\n- Interchain Queries\r\n- Interchain Transactions\r\n\r\n## Features\r\n\r\n- Protobuf encoded messages\r\n- Parsing of protobuf encoded responses (Query or Reply)\r\n\r\n## Getting started\r\n\r\nCurrently cosmos-anybuf does not have crate published to crates.io, meaning it could only be installed as git dependency\r\n\r\n```toml\r\n[dependencies]\r\ncosmos-anybuf = { version = \"0.1.0\", git = \"https://github.com/AbstractSDK/cosmos-anybuf\" }\r\n```\r\n\r\n## Example\r\n\r\n### Sending Stargate messages\r\n\r\n```rust\r\nuse cosmos_anybuf::{chains::neutron::Neutron, interfaces::TokenFactory};\r\n\r\n#[entry_point]\r\npub fn execute(\r\n    _deps: DepsMut,\r\n    env: Env,\r\n    _info: MessageInfo,\r\n    msg: ExecuteMsg,\r\n) -\u003e StdResult\u003cResponse\u003e {\r\n    let sender = env.contract.address.to_string();\r\n    let message = match msg {\r\n        // Just call a method of the module you want to use\r\n        ExecuteMsg::CreateDenom { subdenom } =\u003e Neutron::create_denom(sender, subdenom),\r\n        // You can also specify module in case method names are repeated  \r\n        ExecuteMsg::Mint {\r\n            amount,\r\n            mint_to_address,\r\n        } =\u003e \u003cNeutron as TokenFactory\u003e::mint(sender, amount, mint_to_address),\r\n    };\r\n\r\n    Ok(Response::new().add_message(message))\r\n    }\r\n```\r\n\r\n### Querying Stargate Message\r\n\r\n```rust\r\nuse cosmos_anybuf::{chains::neutron::Neutron, interfaces::TokenFactory};\r\n\r\n#[entry_point]\r\npub fn query_params(deps: Deps) -\u003e StdResult\u003c\u003cNeutron as TokenFactory\u003e::QueryParamsResponse\u003e {\r\n    let params = Neutron::query_params(\u0026deps.querier)?;\r\n    Ok(params)\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabstractsdk%2Fcosmos-anybuf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabstractsdk%2Fcosmos-anybuf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabstractsdk%2Fcosmos-anybuf/lists"}