Skip to content

🧱 Apply NFT traits for tokens and render metadata on the fly

Notifications You must be signed in to change notification settings

pyncz/cw-constructor

Repository files navigation

cw-constructor

Equip nft traits for a token and render metadata on the fly

Projects

Core

  • 🧱 core - Core contract to bind NFTs-as-traits

Example

Fiend Frens

Fiend Frens demo collection, that uses cw-constructor contract.

Contracts

  • cw-minter - Base minter contract to use for base and trait tokens

💎 Base token

📎 Trait token

🔩 Constructor

Helpers

  • 🚀 scripts - Scripts to upload assets on IPFS / instantiate example contracts etc

Client

Scripts

Test

sh ./scripts/test.sh

Build for release

sh ./scripts/build.sh

Optimize build wasm artifacts

sh ./scripts/optimize.sh

Generate schema json

sh ./scripts/schema.sh

Store built wasm code

ACCOUNT=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

...where the arguments are:

arg description default
$1 wasm file to store onchain -
$ACCOUNT archwayd account's name / address to use as the sender -
$CHAIN_ID chain ID, e.g. archway-1, constantine-3 or titus-3 constantine-3
$GAS_ADJUSTMENT gas adjustment coefficient 1.4
$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