package
2.2.0+incompatible
Repository: https://github.com/thesixnetwork/six-protocol.git
Documentation: pkg.go.dev

# README

Tokenmngr module

command list

Query

sixd query tokenmngr

Available Commands:
  list-mintperm list all mintperm
  list-token    list all token
  params        shows the parameters of the module
  show-mintperm shows a mintperm
  show-token    shows a token
  show-options  shows tokenmngr module options

list-mintperm

sixd query tokenmngr list-mintperm

list-token

sixd query tokenmngr list-token

show-mintperm

sixd query tokenmngr show-mintperm [token] [address]

show-token

sixd query tokenmngr show-token [name]

show-options

sixd query tokenmngr show-options

Tx

Available Commands:
  create-mintperm Create a new mintperm
  create-options  Create options
  create-token    Create a new token
  delete-mintperm Delete a mintperm
  delete-options  Delete options
  delete-token    Delete a token
  mint            Broadcast message mint
  update-mintperm Update a mintperm
  update-options  Update options
  update-token    Update a token

create-mintperm

msg sender have to be token admin

sixd tx tokenmngr create-mintperm [token] [address]
// msg for cosmjs
const msgCreateMintperm: {
  creator: string
  token: string
  address: string
} = {
  creator: "6xsomething",
  token: "six",
  address: "6xminter"
};

const msg = {
  typeUrl: "/thesixnetwork.sixprotocol.tokenmngr.MsgCreateMintperm",
  value: msgCreateMintperm
};

create-token

msg sender have to be token admin

sixd tx tokenmngr create-token [name] [max-supply] [mintee] [denom-metadata] [flags]
// msg for cosmjs
const denomMetaData = {
    description: "The native staking token of the SIX Protocol.",
    denom_units: [
      {
        denom: "usix",
        exponent: 12,
        aliases: [
          "microsix"
        ]
      },
      {
        denom: "six",
        exponent: 18
      }
    ],
    base: "usix",
    name: "SIX Token",
    symbol: "six",
    display: "six"
}

const msgCreateToken: {
  creator: string
  name: string
  maxSupply: string
  mintee: string
  denomMetaData: string
} = {
  creator: "6xsomething",
  name: "six",
  maxSupply: "10000000000000",
  mintee: "6xmintee",
  denomMetaData: JSON.stringify(denomMetaData)
};

const msg = {
  typeUrl: "/thesixnetwork.sixprotocol.tokenmngr.MsgCreateToken",
  value: msgCreateToken
};

mint

msg sender have to have mint permission

sixd tx tokenmngr mint [amount] [token] [flags]
// msg for cosmjs
const msgMint: {
  creator: string
  amount: string
  token: string
} = {
  creator: "6xsomething",
  amount: "666666",
  token: "six"
};

const msg = {
  typeUrl: "/thesixnetwork.sixprotocol.tokenmngr.MsgMint",
  value: msgMint
};

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package types is a reverse proxy.

# Functions

ExportGenesis returns the capability module's exported genesis.
InitGenesis initializes the capability module's state from a provided genesis state.
No description provided by the author
No description provided by the author
NewHandler ...
NewIBCModule creates a new IBCModule given the keeper.

# Structs

AppModule implements the AppModule interface for the capability module.
AppModuleBasic implements the AppModuleBasic interface for the capability module.
IBCModule implements the ICS26 interface for oracle given the oracle keeper.