Skip to main content

CW 404 Launchpad Config

The CW 404 configuration file is used to deploy a CW404 contract. CW404 is a hybrid contract that combines CW20 and CW721 functionalities. Only available on the SEI CosmWasm chain.

To generate a CW404 configuration file, you can use the following command:

$ lighthouse init project 404 <name>
  • <name>: The name of the cw404 collection.

The command will generate a json file with the following structure:

{
"chain": "wasm",
"collection_type": "404",
"name": "<name>",
"symbol": "<symbol>",
"supply": "1000000000000000",
"max_supply": "1000000000000000",
"decimals": "6",
"max_edition": "10",
"tokens_per_nft": "50000000000",
"token_uri": "",
"uri_suffix": "",
"royalty_percent": "5",
"royalty_wallet": "",
"is_immutable": false,
"frozen": false,
"unfreeze_time": null,
"frozen_whitelist": [],
"groups": [
{
"name": "public",
"merkle_root": null,
"max_mints_per_wallet": "0",
"reserved_supply_in_batch": "0",
"batch_size": "50000000000",
"payments": [
{
"type": "native",
"amount": "1000000",
"destination": ""
},
{
"type": "cw20",
"amount": "1000000",
"destination": "",
"contract": ""
},
{
"type": "cw20_burn",
"amount": "1000000",
"contract": ""
}
],
"start_time": "2024-05-27T13:19:03Z",
"end_time": null
}
]
}

Fields

chain - The chain you want to deploy the CW404 contract to. Only available on the SEI CosmWasm chain.

collection_type - type of the collection. In this case, it is 404.

name - Name of the collection.

symbol - Symbol of the collection.

supply - Total supply of the token. (scaled by decimals)

max_supply - Maximum supply of the token. (scaled by decimals) (max supply can't be changed after deployment)

decimals - Decimals of the token.

max_edition - Maximum edition of the token. (its to determine the nfts maximum edition or the maximum number of metadata available in the token_uri)

token_uri - Base token url of the collection

uri_suffix - Suffix to append to the token uri. (token_uri + / + token_id + uri_suffix) - optional

fixed_uri - If true, the token uri will be fixed and will not be appended with token id.

royalty_percent - royalty percent on every sale

royalty_wallet - wallet to receive royalty. (If chain is EVM, this should be 0x address else it should be sei address)

is_immutable - If true, the collection will be immutable. (No changes can be made to the collections token uri, royalty, etc.)

frozen - Should the trading be frozen or not (default: false) (can only freezed while deploying and can't be freezed after deployed)

unfreeze_time - The time to automatically unfreeze the collection. (If null, the collection will be frozen indefinitely) (after this time, the transfer will be enabled but you should manually unfreeze the collection even if the time is passed)

frozen_whitelist - Array of wallet addresses to whitelist for trading while the collection is frozen. (Collection admin is automatically whitelisted)

groups - Array of mint groups.

Group Options

name - Group name

merkle_root - Merkle root to restrict minting to only allowlisted wallets

max_mints_per_wallet - Max mint per wallet (as in number of mints)

reserved_supply_in_batch - Reserved supply for the group. (If the reserved supply is set, the group will not be able to mint more than the reserved supply) (as in number of mints)

batch_size - Batch size for the group. (single mint will mint the batch size of tokens at once) (scaled by decimals)

payments - Array of payment options.

start_time - Start time of the group. (If null, the group will start minting immediately)

end_time - End time of the group. (If null, the group will mint indefinitely)

Payment Options

type - Payment type

  • native - Pay with native token (SEI)
  • cw20 - Pay with cw20 token
  • cw20_burn - Pay with cw20 token and burn the payment

amount - Amount to pay for minting. should be in the smallest unit of the chain. (eg: 1 SEI = 1000000)

destination - Destination wallet address to receive the payment. (must be sei address)

contract - Contract address for cw20 and cw20_burn payments. (must be cw20 contract address)