{"id":20652508,"url":"https://github.com/pyncz/cw-constructor","last_synced_at":"2025-03-09T21:20:47.187Z","repository":{"id":243730839,"uuid":"736694369","full_name":"pyncz/cw-constructor","owner":"pyncz","description":"🧱 Apply NFT traits for tokens and render metadata on the fly","archived":false,"fork":false,"pushed_at":"2024-06-14T01:11:45.000Z","size":3002,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T04:06:02.380Z","etag":null,"topics":["archway","blockchain","cosmos-sdk","cosmwasm","cw","cw721","nft","nfts","rust","smart-contracts","traits"],"latest_commit_sha":null,"homepage":"https://fiend-frens.vercel.app","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/pyncz.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-12-28T15:53:15.000Z","updated_at":"2024-06-14T00:26:06.000Z","dependencies_parsed_at":"2024-06-10T23:05:05.085Z","dependency_job_id":"e882b163-fe6d-4b10-8f43-2574c0795174","html_url":"https://github.com/pyncz/cw-constructor","commit_stats":null,"previous_names":["pyncz/cw-constructor"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyncz%2Fcw-constructor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyncz%2Fcw-constructor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyncz%2Fcw-constructor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyncz%2Fcw-constructor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyncz","download_url":"https://codeload.github.com/pyncz/cw-constructor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242752431,"owners_count":20179503,"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":["archway","blockchain","cosmos-sdk","cosmwasm","cw","cw721","nft","nfts","rust","smart-contracts","traits"],"created_at":"2024-11-16T17:35:21.141Z","updated_at":"2025-03-09T21:20:47.161Z","avatar_url":"https://github.com/pyncz.png","language":"Rust","readme":"# cw-constructor\n\nEquip nft traits for a token and render metadata on the fly\n\n# Projects\n\n## Core\n\n- [🧱 `core`](./core) - Core contract to bind NFTs-as-traits\n\n## Example\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".github/cover.jpg\" alt=\"Fiend Frens\" height=\"200\"\u003e\n\u003c/div\u003e\n\nFiend Frens demo collection, that uses `cw-constructor` contract.\n\n### Contracts\n\n- [`cw-minter`](./example/contracts/cw-minter) - _Base_ minter contract to use for base and trait tokens\n\n#### 💎 Base token\n- [`cw721-fiend-frens`](./example/contracts/cw721-fiend-frens) - Main `cw721` contract that serves as the base token\n- [ `cw-fiend-frens-minter`](./example/contracts/cw-fiend-frens-minter) - Minter contract for the base token\n\n#### 📎 Trait token\n- [`cw721-fiend-frens-trait`](./example/contracts/cw721-fiend-frens-trait) - A `cw721` contract that serves as a trait token\n- [`cw-fiend-frens-trait-minter`](./example/contracts/cw-fiend-frens-trait-minter) - Minter contract for trait tokens\n\n#### 🔩 Constructor\n- [`cw-fiend-frens-constructor`](./example/contracts/cw-fiend-frens-constructor) - Constructor contract to manage applied trait NFTs\n\n### Helpers\n- [🚀 `scripts`](./example/scripts) - Scripts to upload assets on IPFS / instantiate example contracts etc\n\n### Client\n- [🖥️ `client`](./example/client) - Frontend to view / equip / unequip traits\n\n# Scripts\n\n### Test\n```sh\nsh ./scripts/test.sh\n```\n\n### Build for release\n```sh\nsh ./scripts/build.sh\n```\n\n### Optimize build wasm artifacts\n```sh\nsh ./scripts/optimize.sh\n```\n\n### Generate schema json\n```sh\nsh ./scripts/schema.sh\n```\n\n### Store built wasm code\n```sh\nACCOUNT=dev CHAIN_ID=constantine-3 GAS_ADJUSTMENT=1.4 DRY_RUN=1 sh ./scripts/store.sh target/wasm32-unknown-unknown/release/cw721_fiend_frens_trait.wasm\n```\n\n...where the arguments are:\n| arg | description  | default |\n| - | - | - |\n| `$1` | `wasm` file to store onchain | - |\n| `$ACCOUNT` | `archwayd` account's name / address to use as the sender | - |\n| `$CHAIN_ID` | chain ID, e.g. `archway-1`, `constantine-3` or `titus-3` | `constantine-3` |\n| `$GAS_ADJUSTMENT` | gas adjustment coefficient | `1.4` |\n| `$DRY_RUN` | `1` if dry-run store tx without broadcasting it, `0` otherwise (make sure to provide *address* instead of account *name* in `$ACCOUNT` for dry-run!) | `0` |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyncz%2Fcw-constructor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyncz%2Fcw-constructor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyncz%2Fcw-constructor/lists"}