Documentation ¶
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- type DepositParams
- func (*DepositParams) Descriptor() ([]byte, []int)
- func (m *DepositParams) Marshal() (dAtA []byte, err error)
- func (m *DepositParams) MarshalTo(dAtA []byte) (int, error)
- func (m *DepositParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DepositParams) ProtoMessage()
- func (m *DepositParams) Reset()
- func (m *DepositParams) Size() (n int)
- func (m *DepositParams) String() string
- func (m *DepositParams) Unmarshal(dAtA []byte) error
- func (p DepositParams) Validate() error
- func (m *DepositParams) XXX_DiscardUnknown()
- func (m *DepositParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DepositParams) XXX_Merge(src proto.Message)
- func (m *DepositParams) XXX_Size() int
- func (m *DepositParams) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDepositParams() DepositParams
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( // ModuleName is the name of the module ModuleName = "agov" // StoreKey is the store key string for gov StoreKey = ModuleName // RouterKey is the message route for gov RouterKey = ModuleName // QuerierRoute is the querier route for gov QuerierRoute = ModuleName )
Variables ¶
View Source
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
View Source
var (
DefaultMinInitialDepositRate = sdk.NewDecWithPrec(40, 2)
)
View Source
var (
KeyDepositParams = []byte("depositparams")
)
View Source
var ( // ModuleCdc references the global x/provider module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/provider and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
Types ¶
type DepositParams ¶
type DepositParams struct { // min_initial_deposit_rate minimum % of TotalDeposit // author of the proposal must put in order for proposal tx to be committed MinInitialDepositRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 200-byte string literal not displayed */ }
DepositParams defines the parameters for the x/gov module
func DefaultDepositParams ¶
func DefaultDepositParams() DepositParams
func NewDepositParams ¶
func NewDepositParams(minInitialDepositRate sdk.Dec) DepositParams
NewDepositParams creates a new DepositParams object
func (*DepositParams) Descriptor ¶
func (*DepositParams) Descriptor() ([]byte, []int)
func (*DepositParams) Marshal ¶
func (m *DepositParams) Marshal() (dAtA []byte, err error)
func (*DepositParams) MarshalToSizedBuffer ¶
func (m *DepositParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DepositParams) ProtoMessage ¶
func (*DepositParams) ProtoMessage()
func (*DepositParams) Reset ¶
func (m *DepositParams) Reset()
func (*DepositParams) Size ¶
func (m *DepositParams) Size() (n int)
func (*DepositParams) String ¶
func (m *DepositParams) String() string
func (*DepositParams) Unmarshal ¶
func (m *DepositParams) Unmarshal(dAtA []byte) error
func (DepositParams) Validate ¶
func (p DepositParams) Validate() error
func (*DepositParams) XXX_DiscardUnknown ¶
func (m *DepositParams) XXX_DiscardUnknown()
func (*DepositParams) XXX_Marshal ¶
func (m *DepositParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DepositParams) XXX_Merge ¶
func (m *DepositParams) XXX_Merge(src proto.Message)
func (*DepositParams) XXX_Size ¶
func (m *DepositParams) XXX_Size() int
func (*DepositParams) XXX_Unmarshal ¶
func (m *DepositParams) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
DepositParams DepositParams `protobuf:"bytes,1,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params" yaml:"deposit_params"`
}
GenesisState stores slice of genesis deployment instance
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDepositParams ¶
func (m *GenesisState) GetDepositParams() DepositParams
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.