{"id":13566414,"url":"https://github.com/sei-protocol/sei-cosmwasm","last_synced_at":"2025-09-14T18:50:41.126Z","repository":{"id":42160135,"uuid":"506303011","full_name":"sei-protocol/sei-cosmwasm","owner":"sei-protocol","description":"Sei utilities for usage in cosmwasm smart contracts","archived":false,"fork":false,"pushed_at":"2024-09-30T19:27:10.000Z","size":172,"stargazers_count":55,"open_issues_count":4,"forks_count":34,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-30T10:12:35.192Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sei-protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-06-22T15:24:38.000Z","updated_at":"2025-02-03T16:40:17.000Z","dependencies_parsed_at":"2023-12-16T07:38:08.049Z","dependency_job_id":"7fc82b25-5ce6-4307-8003-d508858d76ff","html_url":"https://github.com/sei-protocol/sei-cosmwasm","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sei-protocol%2Fsei-cosmwasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sei-protocol%2Fsei-cosmwasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sei-protocol%2Fsei-cosmwasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sei-protocol%2Fsei-cosmwasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sei-protocol","download_url":"https://codeload.github.com/sei-protocol/sei-cosmwasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251683355,"owners_count":21626953,"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-08-01T13:02:09.145Z","updated_at":"2025-04-30T10:12:41.381Z","avatar_url":"https://github.com/sei-protocol.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Sei-Cosmwasm Package\n\nThis repository contains the sei-cosmwasm package to support smart contract querying and messages to the modules in sei-chain. It also includes an example contract that can be used to test package behavior locally and can be used as a reference for implementation details to include sei-chain integration in your smart contracts.\n\n## Build Sei Tester Contract\n\n```shell\ndocker run --rm -v \"$(pwd)\":/code \\\n  --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\\n  --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\\n  cosmwasm/rust-optimizer:0.14.0\n```\n\n## Testing with LocalSei\n\n### Store Contract Code\n\n```shell\nseid tx wasm store artifacts/sei_tester.wasm -y --from \u003caccount\u003e --chain-id \u003cname\u003e -b block --gas=3000000 --fees=1000sei\n```\n\nMake sure to note the code ID for the contract from the tx response. You can also find it in the list of uploaded code with this query:\n\n```shell\nseid q wasm list-code\n```\n\n### Instantiate Contract\n\n```shell\nseid tx wasm instantiate \u003ccode-id\u003e '{}' -y --no-admin --from \u003caccount\u003e --chain-id \u003cname\u003e --gas=1500000 --fees=1000sei -b block --label sei-tester\n```\n\nMake sure to note the contract address for the contract from the tx response. You can also find it with this query:\n\n```shell\nseid q wasm list-contract-by-code \u003ccode-id\u003e\n```\n\n### Query Smart Contract\n\n```shell\nseid q wasm contract-state smart \u003ccontract-address\u003e \u003cjson-query-literal\u003e\n```\n\nThe json literal may look something like this:\n\n```json\n'{\"exchange_rates\": {}}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsei-protocol%2Fsei-cosmwasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsei-protocol%2Fsei-cosmwasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsei-protocol%2Fsei-cosmwasm/lists"}