Skip to content

Latest commit

 

History

History
 
 

cadence

Freshmint Cadence Contracts

This directory contains the Cadence contracts, transactions and scripts that power Freshmint.

NFT Templates

Freshmint generates valid NFT contracts using Cadence template files written with the Handlebars templating syntax. The @freshmint/core package imports these templates to generate unique contracts for users.

As such, you may notice that the template files do not look like valid Cadence and contain variables (e.g. {{ contractName }}) and logical statements (e.g. {{#for field in fields}}).

All template files end with the .template.cdc suffix.

Freshmint currently supports four NFT template types:

Common Template Files

The are also common template files shared by all NFT templates:

Freshmint Contracts

Freshmint also depends on several supporting contracts that provide functionality such as NFT distribution (i.e. drops) and metadata encoding.

Deprecated Contracts

Deployments

The Freshmint contracts are deployed to Flow testnet and mainnet.

Contract Testnet Mainnet
FreshmintClaimSaleV2 0x3b8959a9823c62b4 0x0ed88e62be7037ac
FreshmintEncoding 0x8ab7897dd9d69819 0xad7ea9b6c112b937
FreshmintMetadataViews 0xc270e330615c6fa0 0x0c82d33d4666f1f7
FreshmintQueue 0x10077395fa5d2436 0xb442022ad78b11a2
FreshmintLockBox 0x0cad7d1c09a3a433 0xdd1c2c328f849078
FreshmintClaimSale (deprecated) 0x2d3d6874bc231156 0x16a3117d86821389

Contract Updates

Deployments are defined in flow.json. Contact a project maintainer for more information on how to update deployed contracts.