This repository contains the smart contracts and tools for the Alkanes NFT ecosystem, including collection and NFT contracts, as well as an NFT SVG image generator.
- alkanes-collection/: The main collection contract for Alkanes Orbitals.
- alkanes-nft/: The factory contract for creating individual Alkanes NFTs.
- nft-generator/: A Rust tool for generating SVG images for the NFTs.
The collection contract for Alkanes Orbitals.
cargo build --target wasm32-unknown-unknown --releaseThe compiled WASM binary will be available in target/wasm32-unknown-unknown/release/alkanes_collection.wasm.
yarn oyl alkane new-contract -c ./target/alkanes/wasm32-unknown-unknown/release/alkanes_collection.wasm -data 1,0 -p signetyarn oyl provider alkanes --method trace -params '{"txid":"a1ccb55a8a66b9ddcd4340c6f03bd25c44159a7fe59e663e123c35f2028f7ecc", "vout":3}' -p signetA factory contract used by the Alkanes collection contract for creating individual Alkanes NFTs.
cargo build --target wasm32-unknown-unknown --releaseThe compiled WASM binary will be available in target/wasm32-unknown-unknown/release/alkanes_nft.wasm.
yarn oyl alkane new-contract -c ./target/alkanes/wasm32-unknown-unknown/release/alkanes_nft.wasm -data 3,16802 -p oylnetyarn oyl provider alkanes --method trace -params '{"txid":"88a68a2fcef7139232d858b49ff39f5e50da79a308616ff84a80adf344ea4341", "vout":3}' -p oylnetA Rust tool for generating SVG images for the Alkanes NFTs based on encoded traits and SVG templates.
- Build the generator:
cargo build --release
- Run the generator:
This will generate SVG images in the
cargo run --release
output/directory.
The generator uses encoded_traits.json and svg_template.json to create unique SVGs for each NFT.