The exact source a sandboxed build reproduced the on-chain wasm from (bit-for-bit) β served from SUBFROST's verified-build database, since the origin repository is private.
Build & verification details
Reproduction recipestructural match
Every fixture below was reversed from the on-chain bytecode, then pinned in a sandboxed rebuild. Reproduced deterministically β the source genuinely compiles to this bytecode.
Toolchain
Build environment
HOME
/home/lee
β embedded registry/git-checkout paths
CARGO_HOME
/home/lee/.cargo
env
CC_wasm32_unknown_unknown=clang-14
Git dependency
repo
kungfuflex/alkanes-rs
rev
d787cdd
β fingerprint git_deps
source-id
bare (matches -C metadata β mono ordering)
README.md4,072 B
# free-mint
This alkane is adapted from earlier testing versions by the same name, but suitable for production usage. It enables semantics similar to what we are used to in runes ecosystem mints, but on the ALKANES metaprotocol. This template can be spawned using factory cellpacks and a data segment can be appended (such as a graphic), but other parameters can be supplied for an initial premine, a mint quantity per mint transaction, a cap, and a name/symbol, supplied with the initialization vector in the alkanes protocol message.
## Overview
This contract implements a token with free mint capabilities using the alkane framework. It includes security features such as:
- Proper initialization guard via observe_initialization()
- Transaction hash validation to enforce one mint per transaction
- Comprehensive overflow protection
- Supply cap enforcement
## Features
- Standard token functionality (name, symbol, total supply)
- Free mint capabilities with configurable parameters
- Transaction-based mint limits
- Supply cap enforcement
- Comprehensive view functions
## Storage Pattern
The contract follows the established storage pattern using StoragePointer::from_keyword for all persistent storage with the following keys:
- `/name` - Token name
- `/symbol` - Token symbol
- `/totalsupply` - Total supply tracking
- `/minted` - Total mints counter
- `/value-per-mint` - Value per mint configuration
- `/cap` - Maximum supply cap
- `/data` - Additional token data
- `/initialized` - Initialization guard
- `/tx-hashes` - Transaction hash tracking for mint limits