{"id":13566118,"url":"https://github.com/CosmWasm/cw-tokens","last_synced_at":"2025-04-03T23:31:04.544Z","repository":{"id":37239162,"uuid":"442531494","full_name":"CosmWasm/cw-tokens","owner":"CosmWasm","description":"Examples of cw20 usage, extracted from cw-plus, maintained by the community","archived":false,"fork":false,"pushed_at":"2024-01-26T20:54:28.000Z","size":252,"stargazers_count":89,"open_issues_count":6,"forks_count":54,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-25T13:11:28.644Z","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/CosmWasm.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":"2021-12-28T17:10:30.000Z","updated_at":"2025-02-20T01:01:17.000Z","dependencies_parsed_at":"2024-10-30T00:51:55.710Z","dependency_job_id":null,"html_url":"https://github.com/CosmWasm/cw-tokens","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/CosmWasm%2Fcw-tokens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmWasm%2Fcw-tokens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmWasm%2Fcw-tokens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmWasm%2Fcw-tokens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CosmWasm","download_url":"https://codeload.github.com/CosmWasm/cw-tokens/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247097667,"owners_count":20883122,"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:02.482Z","updated_at":"2025-04-03T23:31:03.513Z","avatar_url":"https://github.com/CosmWasm.png","language":"Rust","funding_links":[],"categories":["Smart Contracts","Rust"],"sub_categories":["Other Contracts"],"readme":"# CosmWasm Tokens\n\n[![CircleCI](https://circleci.com/gh/CosmWasm/cw-plus/tree/master.svg?style=shield)](https://circleci.com/gh/CosmWasm/cw-plus/tree/master)\n\nThis is a collection of [cw20-related](https://github.com/CosmWasm/cw-plus/blob/main/packages/cw20/README.md) contracts\nextracted from [cw-plus](https://github.com/CosmWasm/cw-plus). These serve as examples of what is possible to build\nand as starting points for your own CosmWasm token contracts.\n\nNone of these have been audited or are considered ready-for-production as is. Contributions may come from many\ncommunity members. Please do your own due dilligence on them before using on any production site, and please\n[raise Github issues](https://github.com/CosmWasm/cw-tokens/issues) for any bugs you find.\n\nYou are more than welcome to [create a PR](https://github.com/CosmWasm/cw-tokens/pulls) to add any cw20-related\ncontract you have written that you would like to share with the community.\n\n\n| Contracts               | Download                                                                                                    | Docs                                                                     |\n| ----------------------- |-------------------------------------------------------------------------------------------------------------| -------------------------------------------------------------------------|\n| cw20-atomic-swap        | [Release v0.14.2](https://github.com/CosmWasm/cw-tokens/releases/download/v0.14.2/cw20_atomic_swap.wasm)    | [![Docs](https://docs.rs/cw20-atomic-swap/badge.svg)](https://docs.rs/cw20-atomic-swap)    |\n| cw20-bonding            | [Release v0.14.2](https://github.com/CosmWasm/cw-tokens/releases/download/v0.14.2/cw20_bonding.wasm)        | [![Docs](https://docs.rs/cw20-bonding/badge.svg)](https://docs.rs/cw20-bonding)    |\n| cw20-escrow             | [Release v0.14.2](https://github.com/CosmWasm/cw-tokens/releases/download/v0.14.2/cw20_escrow.wasm)         | [![Docs](https://docs.rs/cw20-escrow/badge.svg)](https://docs.rs/cw20-escrow)    |\n| cw20-staking            | [Release v0.14.2](https://github.com/CosmWasm/cw-tokens/releases/download/v0.14.2/cw20_staking.wasm)        | [![Docs](https://docs.rs/cw20-staking/badge.svg)](https://docs.rs/cw20-staking)    |\n| cw20-merkle-airdrop     | [Release v0.14.2](https://github.com/CosmWasm/cw-tokens/releases/download/v0.14.2/cw20_merkle_airdrop.wasm) | [![Docs](https://docs.rs/cw20-merkle-airdrop/badge.svg)](https://docs.rs/cw20-merkle-airdrop)    |\n\n**Warning** None of these contracts have been audited and no liability is\nassumed for the use of this code. They are provided to turbo-start\nyour projects.\n\n\n## Contracts\n\nAll contracts add functionality around the CW20 Fungible Token standard:\n\n* [`cw20-atomic-swap`](./contracts/cw20-atomic-swap) an implementation of atomic swaps for\nboth native and cw20 tokens.\n* [`cw20-bonding`](./contracts/cw20-bonding) a smart contract implementing arbitrary bonding curves,\nwhich can use native and cw20 tokens as reserve tokens.\n* [`cw20-staking`](./contracts/cw20-staking) provides staking derivatives,\nstaking native tokens on your behalf and minting cw20 tokens that can\nbe used to claim them. It uses `cw20-base` for all the cw20 logic and\nonly implements the interactions with the staking module and accounting\nfor prices.\n* [`cw20-escrow`](./contracts/cw20-escrow) is a basic escrow contract\n(arbiter can release or refund tokens) that is compatible with all native\nand cw20 tokens. This is a good example to show how to interact with\ncw20 tokens.\n* [`cw20-merkle-airdrop`](./contracts/cw20-merkle-airdrop) is a contract\n  for efficient cw20 token airdrop distribution.\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.8\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## Licenses\n\nAll code in this repo will always be licensed under [Apache-2.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCosmWasm%2Fcw-tokens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCosmWasm%2Fcw-tokens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCosmWasm%2Fcw-tokens/lists"}