Documentation ¶
Index ¶
- Constants
- Variables
- func GetFeeExcludedMessageIteratorKey() []byte
- func GetFeeExcludedMessageKey(msgType string) []byte
- func NewAddFeeExcludedMessageProposal(title string, description string, messageType string) gov.Content
- func NewRemoveFeeExcludedMessageProposal(title string, description string, messageType string) gov.Content
- func ParamKeyTable() params.KeyTable
- func RegisterCodec(cdc *codec.Codec)
- func SplitFeeExcludedMessageKey(key []byte) string
- func ValidateGenesis(data GenesisState) error
- type AddFeeExcludedMessageProposal
- func (p AddFeeExcludedMessageProposal) GetDescription() string
- func (p AddFeeExcludedMessageProposal) GetTitle() string
- func (p AddFeeExcludedMessageProposal) ProposalRoute() string
- func (p AddFeeExcludedMessageProposal) ProposalType() string
- func (p AddFeeExcludedMessageProposal) String() string
- func (p AddFeeExcludedMessageProposal) ValidateBasic() error
- type GenesisState
- type Params
- type RemoveFeeExcludedMessageProposal
- func (p RemoveFeeExcludedMessageProposal) GetDescription() string
- func (p RemoveFeeExcludedMessageProposal) GetTitle() string
- func (p RemoveFeeExcludedMessageProposal) ProposalRoute() string
- func (p RemoveFeeExcludedMessageProposal) ProposalType() string
- func (p RemoveFeeExcludedMessageProposal) String() string
- func (p RemoveFeeExcludedMessageProposal) ValidateBasic() error
Constants ¶
View Source
const ( EventTypeAddFeeExcludedMessage = "AddFeeExcludedMessage" EventTypeRemoveFeeExcludedMessage = "RemoveFeeExcludedMessage" AttributeKeyMessageType = "message_type" AttributeKeyTitle = "title" AttributeKeyDescription = "description" AttributeKeySystemFee = "system_fee" AttributeKeyTotalFee = "total_fee" AttributeValueModule = ModuleName )
View Source
const ( ModuleName = "fee" StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName DefaultParamspace = ModuleName )
View Source
const ( ProposalTypeAddFeeExcludedMessage = "AddFeeExcludedMessage" ProposalTypeRemoveFeeExcludedMessage = "RemoveFeeExcludedMessage" )
Variables ¶
View Source
var ( FeeExcludedMessageKeyPrefix = []byte{0x10} StatusPresent = []byte{0x01} )
View Source
var ( DefaultFeePercentage = sdk.NewDecWithPrec(2, 3) DefaultMinimumFee = sdk.NewCoins(sdk.NewInt64Coin(config.DefaultDenom, 200)) // 200pin DefaultMaximumFee = sdk.NewCoins(sdk.NewInt64Coin(config.DefaultDenom, 100000000)) // 1 anatha DefaultFeeExcludedMessages = []string{ "treasury/disburse", "treasury/disburse_to_escrow", "treasury/disburse_from_escrow", "treasury/revert_from_escrow", "governance/submit_proposal", "governance/vote", "governance/expedite", } KeyFeePercentage = []byte("FeePercentage") KeyMinimumFee = []byte("MinimumFee") KeyMaximumFee = []byte("MaximumFee") )
View Source
var ModuleCdc = codec.New()
ModuleCdc defines the module codec
Functions ¶
func GetFeeExcludedMessageIteratorKey ¶
func GetFeeExcludedMessageIteratorKey() []byte
func ParamKeyTable ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type AddFeeExcludedMessageProposal ¶
type AddFeeExcludedMessageProposal struct { Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` MessageType string `json:"message_type" yaml:"message_type"` }
AddFeeExcludedMessageProposal
func (AddFeeExcludedMessageProposal) GetDescription ¶
func (p AddFeeExcludedMessageProposal) GetDescription() string
func (AddFeeExcludedMessageProposal) GetTitle ¶
func (p AddFeeExcludedMessageProposal) GetTitle() string
nolint
func (AddFeeExcludedMessageProposal) ProposalRoute ¶
func (p AddFeeExcludedMessageProposal) ProposalRoute() string
func (AddFeeExcludedMessageProposal) ProposalType ¶
func (p AddFeeExcludedMessageProposal) ProposalType() string
func (AddFeeExcludedMessageProposal) String ¶
func (p AddFeeExcludedMessageProposal) String() string
func (AddFeeExcludedMessageProposal) ValidateBasic ¶
func (p AddFeeExcludedMessageProposal) ValidateBasic() error
type GenesisState ¶
type GenesisState struct { Params Params `json:"params" yaml:"params"` FeeExcludedMessages []string `json:"fee_excluded_messages" yaml:"fee_excluded_messages"` }
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func NewGenesisState ¶
func NewGenesisState(params Params, feeExcludedMessages []string) GenesisState
type Params ¶
type Params struct { FeePercentage sdk.Dec `json:"fee_percentage" yaml:"fee_percentage"` MinimumFee sdk.Coins `json:"minimum_fee" yaml:"minimum_fee"` MaximumFee sdk.Coins `json:"maximum_fee" yaml:"maximum_fee"` }
func DefaultParams ¶
func DefaultParams() Params
DefaultParams defines the parameters for this module
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
ParamSetPairs - Implements params.ParamSet
type RemoveFeeExcludedMessageProposal ¶
type RemoveFeeExcludedMessageProposal struct { Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` MessageType string `json:"message_type" yaml:"message_type"` }
RemoveFeeExcludedMessageProposal
func (RemoveFeeExcludedMessageProposal) GetDescription ¶
func (p RemoveFeeExcludedMessageProposal) GetDescription() string
func (RemoveFeeExcludedMessageProposal) GetTitle ¶
func (p RemoveFeeExcludedMessageProposal) GetTitle() string
nolint
func (RemoveFeeExcludedMessageProposal) ProposalRoute ¶
func (p RemoveFeeExcludedMessageProposal) ProposalRoute() string
func (RemoveFeeExcludedMessageProposal) ProposalType ¶
func (p RemoveFeeExcludedMessageProposal) ProposalType() string
func (RemoveFeeExcludedMessageProposal) String ¶
func (p RemoveFeeExcludedMessageProposal) String() string
func (RemoveFeeExcludedMessageProposal) ValidateBasic ¶
func (p RemoveFeeExcludedMessageProposal) ValidateBasic() error
Click to show internal directories.
Click to hide internal directories.