Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- Variables
- func ErrInvalidCrossChainPackage(codespace sdk.CodespaceType) sdk.Error
- func ErrInvalidSideChainId(codespace sdk.CodespaceType, msg string) sdk.Error
- func ErrMissSideChainId(codespace sdk.CodespaceType) sdk.Error
- type CSCParamChange
- type CSCParamChanges
- type CodeType
- type DexFeeField
- type DexFeeParam
- type FCChangeParams
- type FCParam
- type FCParamChangePublisher
- type FCParamSpaceProto
- type FeeChangeParams
- type FeeParam
- type FixedFeeParams
- type GenesisState
- type LastProposalID
- type MsgFeeParams
- type ParamChangePublisher
- type ParamSpaceProto
- type SCChangeParams
- type SCParam
- type TransferFeeParam
Constants ¶
View Source
const ( OperateFeeType = "operate" TransferFeeType = "transfer" DexFeeType = "dex" JSONFORMAT = "json" AMINOFORMAT = "amino" )
Variables ¶
View Source
var ( // To avoid cycle import , use literal key. Please update here when new type message is introduced. ValidFixedFeeMsgTypes = map[string]struct{}{ "submit_proposal": {}, "deposit": {}, "vote": {}, "dexList": {}, "orderNew": {}, "orderCancel": {}, "issueMsg": {}, "mintMsg": {}, "tokensBurn": {}, "setAccountFlags": {}, "tokensFreeze": {}, "transferOwnership": {}, "create_validator": {}, "remove_validator": {}, "timeLock": {}, "timeUnlock": {}, "timeRelock": {}, "crossBind": {}, "crossUnbind": {}, "crossTransferOut": {}, "crossBindRelayFee": {}, "crossUnbindRelayFee": {}, "crossTransferOutRelayFee": {}, "oracleClaim": {}, "HTLT": {}, "depositHTLT": {}, "claimHTLT": {}, "refundHTLT": {}, "side_create_validator": {}, "side_edit_validator": {}, "side_delegate": {}, "side_redelegate": {}, "side_undelegate": {}, "asc_submit_evidence": {}, "side_chain_unjail": {}, "side_submit_proposal": {}, "side_deposit": {}, "side_vote": {}, "tinyIssueMsg": {}, "miniIssueMsg": {}, "miniTokensSetURI": {}, "dexListMini": {}, "crossDistributeRewardRelayFee": {}, "crossDistributeUndelegatedRelayFee": {}, "create_validator_open": {}, "edit_validator": {}, "delegate": {}, "redelegate": {}, "undelegate": {}, "unjail": {}, } ValidTransferFeeMsgTypes = map[string]struct{}{ "send": {}, } )
Functions ¶
func ErrInvalidCrossChainPackage ¶
func ErrInvalidCrossChainPackage(codespace sdk.CodespaceType) sdk.Error
func ErrInvalidSideChainId ¶
func ErrInvalidSideChainId(codespace sdk.CodespaceType, msg string) sdk.Error
func ErrMissSideChainId ¶
func ErrMissSideChainId(codespace sdk.CodespaceType) sdk.Error
Types ¶
type CSCParamChange ¶
type CSCParamChange struct { Key string `json:"key"` // the name of the parameter Value string `json:"value" rlp:"-"` Target string `json:"target" rlp:"-"` // Since byte slice is not friendly to show in proposal description, omit it. ValueBytes []byte `json:"-"` // the value of the parameter TargetBytes []byte `json:"-"` // the address of the target contract }
func (*CSCParamChange) Check ¶
func (c *CSCParamChange) Check() error
type CSCParamChanges ¶
type CSCParamChanges struct { Changes []CSCParamChange ChainID string }
--------- Definition cross side chain prams change ------------------- //
type CodeType ¶
const ( DefaultCodespace sdk.CodespaceType = 12 CodeMissSideChainId CodeType = 101 CodeInvalidSideChainId CodeType = 102 CodeInvalidCrossChainPackage CodeType = 103 )
type DexFeeField ¶
type DexFeeParam ¶
type DexFeeParam struct {
DexFeeFields []DexFeeField `json:"dex_fee_fields"`
}
func (*DexFeeParam) Check ¶
func (p *DexFeeParam) Check() error
func (*DexFeeParam) GetParamType ¶
func (p *DexFeeParam) GetParamType() string
type FCChangeParams ¶ added in v0.1.4
type FCChangeParams struct { FCParams []FCParam `json:"fc_params"` Description string `json:"description"` }
func (*FCChangeParams) Check ¶ added in v0.1.4
func (s *FCChangeParams) Check() error
type FCParamChangePublisher ¶ added in v0.1.4
type FCParamChangePublisher interface {
SubscribeFCParamChange(updateCb func(sdk.Context, interface{}), spaceProto *FCParamSpaceProto)
}
type FCParamSpaceProto ¶ added in v0.1.4
--------- Definition Flash Chain prams change ------------------- //
type FeeChangeParams ¶
type FeeChangeParams struct { FeeParams []FeeParam `json:"fee_params"` Description string `json:"description"` }
func (*FeeChangeParams) Check ¶
func (f *FeeChangeParams) Check() error
func (*FeeChangeParams) String ¶
func (f *FeeChangeParams) String() string
type FixedFeeParams ¶
type FixedFeeParams struct { MsgType string `json:"msg_type"` Fee int64 `json:"fee"` FeeFor sdk.FeeDistributeType `json:"fee_for"` }
func (*FixedFeeParams) Check ¶
func (p *FixedFeeParams) Check() error
func (*FixedFeeParams) GetMsgType ¶
func (p *FixedFeeParams) GetMsgType() string
func (*FixedFeeParams) GetParamType ¶
func (p *FixedFeeParams) GetParamType() string
type GenesisState ¶
type GenesisState struct {
FeeGenesis []FeeParam `json:"fees"`
}
type LastProposalID ¶
type LastProposalID struct {
ProposalID int64 `json:"proposal_id"`
}
type MsgFeeParams ¶
type ParamChangePublisher ¶
type ParamSpaceProto ¶
--------- Definition side chain prams change ------------------- //
type SCChangeParams ¶
type SCChangeParams struct { SCParams []SCParam `json:"sc_params"` Description string `json:"description"` }
func (*SCChangeParams) Check ¶
func (s *SCChangeParams) Check() error
type TransferFeeParam ¶
type TransferFeeParam struct { FixedFeeParams `json:"fixed_fee_params"` MultiTransferFee int64 `json:"multi_transfer_fee"` LowerLimitAsMulti int64 `json:"lower_limit_as_multi"` }
func (*TransferFeeParam) Check ¶
func (p *TransferFeeParam) Check() error
func (*TransferFeeParam) GetParamType ¶
func (p *TransferFeeParam) GetParamType() string
Click to show internal directories.
Click to hide internal directories.