Documentation ¶
Index ¶
- Constants
- Variables
- type Approval
- type CoinIssueInfo
- func (ci CoinIssueInfo) GetDecimals() uint
- func (ci CoinIssueInfo) GetDescription() string
- func (ci CoinIssueInfo) GetIssueId() string
- func (ci CoinIssueInfo) GetIssueTime() int64
- func (ci CoinIssueInfo) GetIssuer() sdk.AccAddress
- func (ci CoinIssueInfo) GetName() string
- func (ci CoinIssueInfo) GetOwner() sdk.AccAddress
- func (ci CoinIssueInfo) GetSymbol() string
- func (ci CoinIssueInfo) GetTotalSupply() sdk.Int
- func (ci CoinIssueInfo) IsBurnFromDisabled() bool
- func (ci CoinIssueInfo) IsBurnHolderDisabled() bool
- func (ci CoinIssueInfo) IsBurnOwnerDisabled() bool
- func (ci CoinIssueInfo) IsFreezeDisabled() bool
- func (ci CoinIssueInfo) IsMintingFinished() bool
- func (ci CoinIssueInfo) SetBurnFromDisabled(burnFromDisabled bool)
- func (ci CoinIssueInfo) SetBurnHolderDisabled(burnFromDisabled bool)
- func (ci CoinIssueInfo) SetBurnOwnerDisabled(burnOwnerDisabled bool)
- func (ci *CoinIssueInfo) SetDecimals(decimals uint)
- func (ci *CoinIssueInfo) SetDescription(description string)
- func (ci CoinIssueInfo) SetFreezeDisabled(freezeDisabled bool)
- func (ci *CoinIssueInfo) SetIssueId(issueId string)
- func (ci *CoinIssueInfo) SetIssueTime(issueTime int64)
- func (ci *CoinIssueInfo) SetIssuer(issuer sdk.AccAddress)
- func (ci CoinIssueInfo) SetMintingFinished(mintingFinished bool)
- func (ci *CoinIssueInfo) SetName(name string)
- func (ci *CoinIssueInfo) SetOwner(owner sdk.AccAddress)
- func (ci *CoinIssueInfo) SetSymbol(symbol string)
- func (ci *CoinIssueInfo) SetTotalSupply(totalSupply sdk.Int)
- func (ci CoinIssueInfo) String() string
- type CoinIssues
- type Issue
- type IssueAddressFreeze
- type IssueAddressFreezeList
- type IssueFreeze
Constants ¶
View Source
const ( Approve = "approve" IncreaseApproval = "increaseApproval" DecreaseApproval = "decreaseApproval" )
View Source
const ( BurnOwner = "burn-owner" BurnHolder = "burn-holder" BurnFrom = "burn-from" Freeze = "freeze" Minting = "minting" )
View Source
const ( FreezeIn = "in" FreezeOut = "out" FreezeInAndOut = "in-out" UnFreezeEndTime int64 = 0 )
View Source
const ( // ModuleKey is the name of the module ModuleName = "issue" // StoreKey is the store key string for issue StoreKey = ModuleName // RouterKey is the message route for issue RouterKey = ModuleName // QuerierRoute is the querier route for issue QuerierRoute = ModuleName // Parameter store default namestore DefaultParamspace = ModuleName )
View Source
const ( IDPreStr = "coin" Custom = "custom" )
View Source
const ( QueryParams = "params" QueryIssues = "list" QueryIssue = "query" QueryAllowance = "allowance" QueryFreeze = "freeze" QueryFreezes = "freezes" QuerySearch = "search" )
View Source
const ( TypeMsgIssue = "issue" TypeMsgIssueMint = "issue_mint" TypeMsgIssueBurnOwner = "issue_burn_owner" TypeMsgIssueBurnHolder = "issue_burn_holder" TypeMsgIssueBurnFrom = "issue_burn_from" TypeMsgIssueDisableFeature = "issue_disable_feature" TypeMsgIssueDescription = "issue_description" TypeMsgIssueTransferOwnership = "issue_transfer_ownership" TypeMsgIssueApprove = "issue_approve" TypeMsgIssueSendFrom = "issue_send_from" TypeMsgIssueIncreaseApproval = "issue_increase_approval" TypeMsgIssueDecreaseApproval = "issue_decrease_approval" TypeMsgIssueFreeze = "issue_freeze" TypeMsgIssueUnFreeze = "issue_unfreeze" )
View Source
const ( CoinDecimalsMaxValue = uint(18) CoinDecimalsMultiple = uint(3) CodeInvalidGenesis sdk.CodeType = 102 CoinNameMinLength = 3 CoinNameMaxLength = 32 CoinSymbolMinLength = 2 CoinSymbolMaxLength = 8 CoinDescriptionMaxLength = 1024 )
View Source
const (
DefaultCodespace sdk.CodespaceType = ModuleName
)
Variables ¶
View Source
var (
CoinMaxTotalSupply, _ = sdk.NewIntFromString("1000000000000000000000000000000000000")
CoinIssueMaxId uint64 = 999999999999
CoinIssueMinId uint64 = 100000000000
)
View Source
var Features = map[string]int{BurnOwner: 1, BurnHolder: 1, BurnFrom: 1, Freeze: 1, Minting: 1}
View Source
var FreezeType = map[string]int{FreezeIn: 1, FreezeOut: 1, FreezeInAndOut: 1}
Functions ¶
This section is empty.
Types ¶
type Approval ¶ added in v0.5.0
func NewApproval ¶ added in v0.5.0
type CoinIssueInfo ¶
type CoinIssueInfo struct { IssueId string `json:"issue_id"` Issuer sdk.AccAddress `json:"issuer"` Owner sdk.AccAddress `json:"owner"` IssueTime int64 `json:"issue_time"` Name string `json:"name"` Symbol string `json:"symbol"` TotalSupply sdk.Int `json:"total_supply"` Decimals uint `json:"decimals"` Description string `json:"description"` BurnOwnerDisabled bool `json:"burn_owner_disabled"` BurnHolderDisabled bool `json:"burn_holder_disabled"` BurnFromDisabled bool `json:"burn_from_disabled"` FreezeDisabled bool `json:"freeze_disabled"` MintingFinished bool `json:"minting_finished"` }
Coin Issue Info
func (CoinIssueInfo) GetDecimals ¶
func (ci CoinIssueInfo) GetDecimals() uint
func (CoinIssueInfo) GetDescription ¶
func (ci CoinIssueInfo) GetDescription() string
func (CoinIssueInfo) GetIssueTime ¶
func (ci CoinIssueInfo) GetIssueTime() int64
func (CoinIssueInfo) GetIssuer ¶
func (ci CoinIssueInfo) GetIssuer() sdk.AccAddress
func (CoinIssueInfo) GetName ¶
func (ci CoinIssueInfo) GetName() string
func (CoinIssueInfo) GetOwner ¶
func (ci CoinIssueInfo) GetOwner() sdk.AccAddress
func (CoinIssueInfo) GetSymbol ¶
func (ci CoinIssueInfo) GetSymbol() string
func (CoinIssueInfo) GetTotalSupply ¶
func (ci CoinIssueInfo) GetTotalSupply() sdk.Int
func (CoinIssueInfo) IsBurnFromDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) IsBurnFromDisabled() bool
func (CoinIssueInfo) IsBurnHolderDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) IsBurnHolderDisabled() bool
func (CoinIssueInfo) IsBurnOwnerDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) IsBurnOwnerDisabled() bool
func (CoinIssueInfo) IsFreezeDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) IsFreezeDisabled() bool
func (CoinIssueInfo) IsMintingFinished ¶ added in v0.5.0
func (ci CoinIssueInfo) IsMintingFinished() bool
func (CoinIssueInfo) SetBurnFromDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) SetBurnFromDisabled(burnFromDisabled bool)
func (CoinIssueInfo) SetBurnHolderDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) SetBurnHolderDisabled(burnFromDisabled bool)
func (CoinIssueInfo) SetBurnOwnerDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) SetBurnOwnerDisabled(burnOwnerDisabled bool)
func (*CoinIssueInfo) SetDecimals ¶
func (ci *CoinIssueInfo) SetDecimals(decimals uint)
func (*CoinIssueInfo) SetDescription ¶
func (ci *CoinIssueInfo) SetDescription(description string)
func (CoinIssueInfo) SetFreezeDisabled ¶ added in v0.5.0
func (ci CoinIssueInfo) SetFreezeDisabled(freezeDisabled bool)
func (*CoinIssueInfo) SetIssueId ¶
func (ci *CoinIssueInfo) SetIssueId(issueId string)
func (*CoinIssueInfo) SetIssueTime ¶
func (ci *CoinIssueInfo) SetIssueTime(issueTime int64)
func (*CoinIssueInfo) SetIssuer ¶
func (ci *CoinIssueInfo) SetIssuer(issuer sdk.AccAddress)
func (CoinIssueInfo) SetMintingFinished ¶
func (ci CoinIssueInfo) SetMintingFinished(mintingFinished bool)
func (*CoinIssueInfo) SetName ¶
func (ci *CoinIssueInfo) SetName(name string)
func (*CoinIssueInfo) SetOwner ¶
func (ci *CoinIssueInfo) SetOwner(owner sdk.AccAddress)
func (*CoinIssueInfo) SetSymbol ¶
func (ci *CoinIssueInfo) SetSymbol(symbol string)
func (*CoinIssueInfo) SetTotalSupply ¶
func (ci *CoinIssueInfo) SetTotalSupply(totalSupply sdk.Int)
type Issue ¶
type Issue interface { GetIssueId() string SetIssueId(string) GetIssuer() sdk.AccAddress SetIssuer(sdk.AccAddress) GetOwner() sdk.AccAddress SetOwner(sdk.AccAddress) GetIssueTime() int64 SetIssueTime(int64) GetName() string SetName(string) GetTotalSupply() sdk.Int SetTotalSupply(sdk.Int) GetDecimals() uint SetDecimals(uint) GetDescription() string SetDescription(string) IsBurnOwnerDisabled() bool SetBurnOwnerDisabled(bool) IsBurnHolderDisabled() bool SetBurnHolderDisabled(bool) IsBurnFromDisabled() bool SetBurnFromDisabled(bool) IsFreezeDisabled() bool SetFreezeDisabled(bool) IsMintingFinished() bool SetMintingFinished(bool) GetSymbol() string SetSymbol(string) String() string }
Issue interface
type IssueAddressFreeze ¶ added in v0.6.0
type IssueAddressFreeze struct { Address string `json:"address"` OutEndTime int64 `json:"out_end_time"` InEndTime int64 `json:"in_end_time"` }
func (IssueAddressFreeze) String ¶ added in v0.6.0
func (ci IssueAddressFreeze) String() string
type IssueAddressFreezeList ¶ added in v0.6.0
type IssueAddressFreezeList []IssueAddressFreeze
func (IssueAddressFreezeList) String ¶ added in v0.6.0
func (ci IssueAddressFreezeList) String() string
nolint
type IssueFreeze ¶ added in v0.5.0
type IssueFreeze struct { OutEndTime int64 `json:"out_end_time"` InEndTime int64 `json:"in_end_time"` }
func NewIssueFreeze ¶ added in v0.5.0
func NewIssueFreeze(outEndTime int64, inEndTime int64) IssueFreeze
func (IssueFreeze) String ¶ added in v0.5.0
func (ci IssueFreeze) String() string
Click to show internal directories.
Click to hide internal directories.