{"id":13566215,"url":"https://github.com/confio/poe-contracts","last_synced_at":"2025-04-03T23:31:25.079Z","repository":{"id":38019938,"uuid":"442714157","full_name":"confio/poe-contracts","owner":"confio","description":"Tgrade PoE smart contracts","archived":false,"fork":false,"pushed_at":"2023-03-16T11:12:47.000Z","size":1326,"stargazers_count":25,"open_issues_count":19,"forks_count":11,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-05T10:19:23.959Z","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/confio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-12-29T08:50:33.000Z","updated_at":"2024-07-09T09:48:47.000Z","dependencies_parsed_at":"2024-01-19T07:19:45.323Z","dependency_job_id":null,"html_url":"https://github.com/confio/poe-contracts","commit_stats":{"total_commits":587,"total_committers":10,"mean_commits":58.7,"dds":0.625212947189097,"last_synced_commit":"b7a8dbafd89cd70401dced518366f520b7089ff6"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confio%2Fpoe-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confio%2Fpoe-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confio%2Fpoe-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confio%2Fpoe-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/confio","download_url":"https://codeload.github.com/confio/poe-contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247097858,"owners_count":20883125,"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:04.719Z","updated_at":"2025-04-03T23:31:21.128Z","avatar_url":"https://github.com/confio.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# PoE Contracts\n\nThis repo maintains contracts and support libraries for building the Tgrade PoE contracts.\nThese are **not** available under an open source license, you need permission from Confio to use them.\n\nIt is organized like [`cosmwasm-plus`](https://github.com/CosmWasm/cosmwasm-plus). You can use that as a reference.\n\n## Compiling\n\nTo compile all the contracts, run the following in the repo root:\n\n```\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/workspace-optimizer:0.12.4\n```\n\nThis will compile all packages in the `contracts` directory and output the\nstripped and optimized wasm code under the `artifacts` directory as output,\nalong with a `checksums.txt` file.\n\nIf you hit any issues there and want to debug, you can try to run the\nfollowing in each contract dir:\n`RUSTFLAGS=\"-C link-arg=-s\" cargo build --release --target=wasm32-unknown-unknown --locked`\n\n## Creating a new contract\n\nYou can start with [cosmwasm-template](https://github.com/CosmWasm/cosmwasm-template) as a basis:\n\n```bash\ncd contracts\ncargo generate --git https://github.com/CosmWasm/cosmwasm-template.git --name CONTRACT_NAME\ncd CONTRACT_NAME\n\n# remove unneeded files\nrm -rf .circleci .github .git\nrm .cargo-ok .editorconfig .gitignore rustfmt.toml\nrm Developing.md Importing.md Publishing.md LICENSE NOTICE\n\n# regenerate schema for CI tests\ncargo schema\n\ngit add .\n```\n\nThen add it to CI, by editing `.circleci/config.yml`. Just copy the `contract_tgrade_dso` section and\nrename it, pointing to your new contract.\n\nFinally, update `Cargo.toml` to use the current version used by all other contracts in this repo.\n\n## Debugging\n\nSometimes errors might be not helpful enough, or actual error with vague description might come from\ndepths of other tgrade or cosmwasm related dependencies.\nIn such case you might want to check backtraces.\n\nMake sure you have `nightly` installed:\n```bash\n$ rustup install nightly\n```\nand then run:\n```bash\n$ RUST_BACKTRACE=1 cargo +nightly test --features backtraces\n```\nto get more detailed backtraces.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfio%2Fpoe-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconfio%2Fpoe-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfio%2Fpoe-contracts/lists"}