Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurnTokens ¶
type ChangeAdmin ¶
type ChangeAdmin struct { Denom string `json:"denom"` NewAdminAddress string `json:"new_admin_address"` }
ChangeAdmin changes the admin for a factory denom. If the NewAdminAddress is empty, the denom has no admin.
type CreateDenom ¶
type CreateDenom struct {
Subdenom string `json:"subdenom"`
}
CreateDenom creates a new factory denom, of denomination: factory/{creating contract address}/{Subdenom} Subdenom can be of length at most 44 characters, in [0-9a-zA-Z./] The (creating contract address, subdenom) pair must be unique. The created denom's admin is the creating contract address, but this admin can be changed using the ChangeAdmin binding.
type DenomAdmin ¶
type DenomAdmin struct {
Subdenom string `json:"subdenom"`
}
type DenomAdminResponse ¶
type DenomAdminResponse struct {
Admin string `json:"admin"`
}
type FullDenomResponse ¶
type FullDenomResponse struct {
Denom string `json:"denom"`
}
type MerlinMsg ¶
type MerlinMsg struct { /// Contracts can create denoms, namespaced under the contract's address. /// A contract may create any number of independent sub-denoms. CreateDenom *CreateDenom `json:"create_denom,omitempty"` /// Contracts can change the admin of a denom that they are the admin of. ChangeAdmin *ChangeAdmin `json:"change_admin,omitempty"` /// Contracts can mint native tokens for an existing factory denom /// that they are the admin of. MintTokens *MintTokens `json:"mint_tokens,omitempty"` /// Contracts can burn native tokens for an existing factory denom /// that they are the admin of. /// Currently, the burn from address must be the admin contract. BurnTokens *BurnTokens `json:"burn_tokens,omitempty"` }
type MerlinQuery ¶
type MerlinQuery struct { /// Given a subdenom minted by a contract via `MerlinMsg::MintTokens`, /// returns the full denom as used by `BankMsg::Send`. FullDenom *FullDenom `json:"full_denom,omitempty"` /// Returns the admin of a denom, if the denom is a Token Factory denom. DenomAdmin *DenomAdmin `json:"denom_admin,omitempty"` }
MerlinQuery contains merlin custom queries. See https://github.com/gridiron-zone/merlin-bindings/blob/main/packages/bindings/src/query.rs
Click to show internal directories.
Click to hide internal directories.