Skip to main content
  • Int3face
  • Modules
  • Token Factory
  • Messages
On this page

CreateDenom

Creates a denom of factory/{creator address}/{subdenom} given the denom creator address and the subdenom. Subdenoms can contain [a-zA-Z0-9./].
State Modifications:
  • Fund Neutron DAO Treasury with the denom creation fee from the creator address, specified in Params;
  • Consume an amount of gas corresponding to the DenomCreationGasConsume parameter specified in Params;
  • Set DenomMetaData via bank keeper;
  • Set AuthorityMetadata for the given denom to store the admin for the created denom factory/{creator address}/{subdenom}. Admin is automatically set as the Msg sender;
  • Add denom to the CreatorPrefixStore, where a state of denoms created per creator is kept.

Mint

Minting of a specific denom is only allowed for the creator of the denom registered during CreateDenom
State Modifications:
  • Safety check the following
    • Check that the denom minting is created via tokenfactory module
    • Check that the sender of the message is the admin of the denom
  • Mint designated amount of tokens for the denom via bank module

Burn

Burning of a specific denom is only allowed for the creator of the denom registered during CreateDenom
State Modifications:
  • Safety check the following
    • Check that the denom has been created via tokenfactory module
    • Check that the sender of the message is the admin of the denom
  • Burn designated amount of tokens for the denom via bank module

ForceTransfer

Force transferring of a specific denom is only allowed for the creator of the denom registered during CreateDenom.
State Modifications:
  • Safety check the following
    • Check that the denom has been created via tokenfactory module
    • Check that the sender of the message is the admin of the denom
  • Send designated amount of tokens for the denom via bank module from transferFromAddress to transferToAddress

ChangeAdmin

Change the admin of a denom. Note, this is only allowed to be called by the current admin of the denom.

SetDenomMetadata

Setting of metadata for a specific denom is only allowed for the admin of the denom. It allows the overwriting of the denom metadata in the bank module.
State Modifications:
  • Check that sender of the message is the admin of denom;
  • Modify Metadata state entry in bank module to change the metadata for the denom;

SetBeforeSendHook

Allowing to assign a CosmWasm contract to call with a BeforeSend hook for a specific denom is only allowed for the creator of the denom registered during CreateDenom.
State Modifications:
  • Safety check the following
    • Check that the denom has been created via tokenfactory module
    • Check that the sender of the message is the admin of the denom
  • Sets a bank hook for specified denom and contract_addr

UpdateParams

Updates params of the module.
State Modifications:
  • Check that sender of the message is the Authority of the module. Currently it’s an address of Neutron’s AdminModule
  • Modify Params state entry to update params of the module