Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type BankKeeper
- type CommunityKeeper
- type FixedGasParams
- func (*FixedGasParams) Descriptor() ([]byte, []int)
- func (m *FixedGasParams) GetDistributeRewards() uint64
- func (m *FixedGasParams) GetResetAccount() uint64
- func (m *FixedGasParams) Marshal() (dAtA []byte, err error)
- func (m *FixedGasParams) MarshalTo(dAtA []byte) (int, error)
- func (m *FixedGasParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FixedGasParams) ProtoMessage()
- func (m *FixedGasParams) Reset()
- func (m *FixedGasParams) Size() (n int)
- func (m *FixedGasParams) String() string
- func (m *FixedGasParams) Unmarshal(dAtA []byte) error
- func (m *FixedGasParams) XXX_DiscardUnknown()
- func (m *FixedGasParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FixedGasParams) XXX_Merge(src proto.Message)
- func (m *FixedGasParams) XXX_Size() int
- func (m *FixedGasParams) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() *Params
- 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 (gs GenesisState) Validate() 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
- type MinGasPriceRequest
- func (*MinGasPriceRequest) Descriptor() ([]byte, []int)
- func (m *MinGasPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *MinGasPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MinGasPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MinGasPriceRequest) ProtoMessage()
- func (m *MinGasPriceRequest) Reset()
- func (m *MinGasPriceRequest) Size() (n int)
- func (m *MinGasPriceRequest) String() string
- func (m *MinGasPriceRequest) Unmarshal(dAtA []byte) error
- func (m *MinGasPriceRequest) XXX_DiscardUnknown()
- func (m *MinGasPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinGasPriceRequest) XXX_Merge(src proto.Message)
- func (m *MinGasPriceRequest) XXX_Size() int
- func (m *MinGasPriceRequest) XXX_Unmarshal(b []byte) error
- type MinGasPriceResponse
- func (*MinGasPriceResponse) Descriptor() ([]byte, []int)
- func (m *MinGasPriceResponse) GetMinGasPrice() types.DecCoin
- func (m *MinGasPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *MinGasPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MinGasPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MinGasPriceResponse) ProtoMessage()
- func (m *MinGasPriceResponse) Reset()
- func (m *MinGasPriceResponse) Size() (n int)
- func (m *MinGasPriceResponse) String() string
- func (m *MinGasPriceResponse) Unmarshal(dAtA []byte) error
- func (m *MinGasPriceResponse) XXX_DiscardUnknown()
- func (m *MinGasPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinGasPriceResponse) XXX_Merge(src proto.Message)
- func (m *MinGasPriceResponse) XXX_Size() int
- func (m *MinGasPriceResponse) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (m MsgBurn) GetSignBytes() []byte
- func (m MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (m MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (m MsgBurn) Type() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (m MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDistributeRewards
- func (*MsgDistributeRewards) Descriptor() ([]byte, []int)
- func (m MsgDistributeRewards) GetSignBytes() []byte
- func (m MsgDistributeRewards) GetSigners() []sdk.AccAddress
- func (m *MsgDistributeRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgDistributeRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDistributeRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDistributeRewards) ProtoMessage()
- func (m *MsgDistributeRewards) Reset()
- func (m MsgDistributeRewards) Route() string
- func (m *MsgDistributeRewards) Size() (n int)
- func (m *MsgDistributeRewards) String() string
- func (m MsgDistributeRewards) Type() string
- func (m *MsgDistributeRewards) Unmarshal(dAtA []byte) error
- func (m MsgDistributeRewards) ValidateBasic() error
- func (m *MsgDistributeRewards) XXX_DiscardUnknown()
- func (m *MsgDistributeRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDistributeRewards) XXX_Merge(src proto.Message)
- func (m *MsgDistributeRewards) XXX_Size() int
- func (m *MsgDistributeRewards) XXX_Unmarshal(b []byte) error
- type MsgDistributeRewardsResponse
- func (*MsgDistributeRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgDistributeRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDistributeRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDistributeRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDistributeRewardsResponse) ProtoMessage()
- func (m *MsgDistributeRewardsResponse) Reset()
- func (m *MsgDistributeRewardsResponse) Size() (n int)
- func (m *MsgDistributeRewardsResponse) String() string
- func (m *MsgDistributeRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDistributeRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgDistributeRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDistributeRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgDistributeRewardsResponse) XXX_Size() int
- func (m *MsgDistributeRewardsResponse) XXX_Unmarshal(b []byte) error
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m MsgMint) GetSignBytes() []byte
- func (m MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (m MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (m MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (m MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgResetAccount
- func (*MsgResetAccount) Descriptor() ([]byte, []int)
- func (m MsgResetAccount) GetSignBytes() []byte
- func (m MsgResetAccount) GetSigners() []sdk.AccAddress
- func (m *MsgResetAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgResetAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgResetAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgResetAccount) ProtoMessage()
- func (m *MsgResetAccount) Reset()
- func (m MsgResetAccount) Route() string
- func (m *MsgResetAccount) Size() (n int)
- func (m *MsgResetAccount) String() string
- func (m MsgResetAccount) Type() string
- func (m *MsgResetAccount) Unmarshal(dAtA []byte) error
- func (m MsgResetAccount) ValidateBasic() error
- func (m *MsgResetAccount) XXX_DiscardUnknown()
- func (m *MsgResetAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgResetAccount) XXX_Merge(src proto.Message)
- func (m *MsgResetAccount) XXX_Size() int
- func (m *MsgResetAccount) XXX_Unmarshal(b []byte) error
- type MsgResetAccountResponse
- func (*MsgResetAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgResetAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgResetAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgResetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgResetAccountResponse) ProtoMessage()
- func (m *MsgResetAccountResponse) Reset()
- func (m *MsgResetAccountResponse) Size() (n int)
- func (m *MsgResetAccountResponse) String() string
- func (m *MsgResetAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgResetAccountResponse) XXX_DiscardUnknown()
- func (m *MsgResetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgResetAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgResetAccountResponse) XXX_Size() int
- func (m *MsgResetAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetFixedGas() FixedGasParams
- func (m *Params) GetMinGasPrice() types.DecCoin
- func (m *Params) GetSupervisors() []string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)
- func (m *Reward) GetReceiver() string
- func (m *Reward) GetReward() types.DecProto
- func (m *Reward) Marshal() (dAtA []byte, err error)
- func (m *Reward) MarshalTo(dAtA []byte) (int, error)
- func (m *Reward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Reward) ProtoMessage()
- func (m *Reward) Reset()
- func (m *Reward) Size() (n int)
- func (m *Reward) String() string
- func (m *Reward) Unmarshal(dAtA []byte) error
- func (m *Reward) XXX_DiscardUnknown()
- func (m *Reward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reward) XXX_Merge(src proto.Message)
- func (m *Reward) XXX_Size() int
- func (m *Reward) XXX_Unmarshal(b []byte) error
- type TokenKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
- func (*UnimplementedMsgServer) DistributeRewards(ctx context.Context, req *MsgDistributeRewards) (*MsgDistributeRewardsResponse, error)
- func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
- func (*UnimplementedMsgServer) ResetAccount(ctx context.Context, req *MsgResetAccount) (*MsgResetAccountResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "operations" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const (
DefaultParamspace = ModuleName
)
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthOperations = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOperations = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOperations = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultSupervisors = []string(nil) DefaultMinGasPrice = sdk.NewDecCoinFromDec(config.DefaultBondDenom, sdk.MustNewDecFromStr("0.025")) )
var ( KeySupervisors = []byte("Supervisors") KeyFixedGas = []byte("FixedGas") KeyMinGasPrice = []byte("MinGasPrice") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶ added in v1.5.0
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶ added in v1.5.0
func RegisterQueryHandler ¶ added in v1.5.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v1.5.0
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v1.5.0
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v1.5.0
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v1.5.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶ added in v1.5.0
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
type CommunityKeeper ¶ added in v1.5.0
type CommunityKeeper interface {
ResetAccount(ctx sdk.Context, address sdk.AccAddress)
}
type FixedGasParams ¶
type FixedGasParams struct { ResetAccount uint64 `protobuf:"varint,1,opt,name=reset_account,json=resetAccount,proto3" json:"reset_account,omitempty"` DistributeRewards uint64 `protobuf:"varint,2,opt,name=distribute_rewards,json=distributeRewards,proto3" json:"distribute_rewards,omitempty"` }
func DefaultFixedGasParams ¶
func DefaultFixedGasParams() FixedGasParams
func NewFixedGasParams ¶
func NewFixedGasParams(resetAccount, distributeReward sdk.Gas) FixedGasParams
func (*FixedGasParams) Descriptor ¶ added in v1.5.0
func (*FixedGasParams) Descriptor() ([]byte, []int)
func (*FixedGasParams) GetDistributeRewards ¶ added in v1.5.0
func (m *FixedGasParams) GetDistributeRewards() uint64
func (*FixedGasParams) GetResetAccount ¶ added in v1.5.0
func (m *FixedGasParams) GetResetAccount() uint64
func (*FixedGasParams) Marshal ¶ added in v1.5.0
func (m *FixedGasParams) Marshal() (dAtA []byte, err error)
func (*FixedGasParams) MarshalTo ¶ added in v1.5.0
func (m *FixedGasParams) MarshalTo(dAtA []byte) (int, error)
func (*FixedGasParams) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *FixedGasParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FixedGasParams) ProtoMessage ¶ added in v1.5.0
func (*FixedGasParams) ProtoMessage()
func (*FixedGasParams) Reset ¶ added in v1.5.0
func (m *FixedGasParams) Reset()
func (*FixedGasParams) Size ¶ added in v1.5.0
func (m *FixedGasParams) Size() (n int)
func (*FixedGasParams) String ¶ added in v1.5.0
func (m *FixedGasParams) String() string
func (*FixedGasParams) Unmarshal ¶ added in v1.5.0
func (m *FixedGasParams) Unmarshal(dAtA []byte) error
func (*FixedGasParams) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *FixedGasParams) XXX_DiscardUnknown()
func (*FixedGasParams) XXX_Marshal ¶ added in v1.5.0
func (m *FixedGasParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FixedGasParams) XXX_Merge ¶ added in v1.5.0
func (m *FixedGasParams) XXX_Merge(src proto.Message)
func (*FixedGasParams) XXX_Size ¶ added in v1.5.0
func (m *FixedGasParams) XXX_Size() int
func (*FixedGasParams) XXX_Unmarshal ¶ added in v1.5.0
func (m *FixedGasParams) XXX_Unmarshal(b []byte) error
type GenesisState ¶ added in v1.5.0
type GenesisState struct { // params defines all the paramaters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
func DefaultGenesis ¶ added in v1.5.0
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func GetGenesisStateFromAppState ¶ added in v1.5.0
func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState
func (*GenesisState) Descriptor ¶ added in v1.5.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶ added in v1.5.0
func (m *GenesisState) GetParams() *Params
func (*GenesisState) Marshal ¶ added in v1.5.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v1.5.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v1.5.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v1.5.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v1.5.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v1.5.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v1.5.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶ added in v1.5.0
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v1.5.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v1.5.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v1.5.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v1.5.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MinGasPriceRequest ¶ added in v1.5.0
type MinGasPriceRequest struct { }
func (*MinGasPriceRequest) Descriptor ¶ added in v1.5.0
func (*MinGasPriceRequest) Descriptor() ([]byte, []int)
func (*MinGasPriceRequest) Marshal ¶ added in v1.5.0
func (m *MinGasPriceRequest) Marshal() (dAtA []byte, err error)
func (*MinGasPriceRequest) MarshalTo ¶ added in v1.5.0
func (m *MinGasPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*MinGasPriceRequest) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MinGasPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MinGasPriceRequest) ProtoMessage ¶ added in v1.5.0
func (*MinGasPriceRequest) ProtoMessage()
func (*MinGasPriceRequest) Reset ¶ added in v1.5.0
func (m *MinGasPriceRequest) Reset()
func (*MinGasPriceRequest) Size ¶ added in v1.5.0
func (m *MinGasPriceRequest) Size() (n int)
func (*MinGasPriceRequest) String ¶ added in v1.5.0
func (m *MinGasPriceRequest) String() string
func (*MinGasPriceRequest) Unmarshal ¶ added in v1.5.0
func (m *MinGasPriceRequest) Unmarshal(dAtA []byte) error
func (*MinGasPriceRequest) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MinGasPriceRequest) XXX_DiscardUnknown()
func (*MinGasPriceRequest) XXX_Marshal ¶ added in v1.5.0
func (m *MinGasPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MinGasPriceRequest) XXX_Merge ¶ added in v1.5.0
func (m *MinGasPriceRequest) XXX_Merge(src proto.Message)
func (*MinGasPriceRequest) XXX_Size ¶ added in v1.5.0
func (m *MinGasPriceRequest) XXX_Size() int
func (*MinGasPriceRequest) XXX_Unmarshal ¶ added in v1.5.0
func (m *MinGasPriceRequest) XXX_Unmarshal(b []byte) error
type MinGasPriceResponse ¶ added in v1.5.0
type MinGasPriceResponse struct {
MinGasPrice types.DecCoin `protobuf:"bytes,1,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price"`
}
func (*MinGasPriceResponse) Descriptor ¶ added in v1.5.0
func (*MinGasPriceResponse) Descriptor() ([]byte, []int)
func (*MinGasPriceResponse) GetMinGasPrice ¶ added in v1.5.0
func (m *MinGasPriceResponse) GetMinGasPrice() types.DecCoin
func (*MinGasPriceResponse) Marshal ¶ added in v1.5.0
func (m *MinGasPriceResponse) Marshal() (dAtA []byte, err error)
func (*MinGasPriceResponse) MarshalTo ¶ added in v1.5.0
func (m *MinGasPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MinGasPriceResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MinGasPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MinGasPriceResponse) ProtoMessage ¶ added in v1.5.0
func (*MinGasPriceResponse) ProtoMessage()
func (*MinGasPriceResponse) Reset ¶ added in v1.5.0
func (m *MinGasPriceResponse) Reset()
func (*MinGasPriceResponse) Size ¶ added in v1.5.0
func (m *MinGasPriceResponse) Size() (n int)
func (*MinGasPriceResponse) String ¶ added in v1.5.0
func (m *MinGasPriceResponse) String() string
func (*MinGasPriceResponse) Unmarshal ¶ added in v1.5.0
func (m *MinGasPriceResponse) Unmarshal(dAtA []byte) error
func (*MinGasPriceResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MinGasPriceResponse) XXX_DiscardUnknown()
func (*MinGasPriceResponse) XXX_Marshal ¶ added in v1.5.0
func (m *MinGasPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MinGasPriceResponse) XXX_Merge ¶ added in v1.5.0
func (m *MinGasPriceResponse) XXX_Merge(src proto.Message)
func (*MinGasPriceResponse) XXX_Size ¶ added in v1.5.0
func (m *MinGasPriceResponse) XXX_Size() int
func (*MinGasPriceResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *MinGasPriceResponse) XXX_Unmarshal(b []byte) error
type MsgBurn ¶ added in v1.4.1
type MsgBurn struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"` }
func NewMsgBurn ¶ added in v1.4.1
func NewMsgBurn(owner sdk.AccAddress, coin sdk.Coin) MsgBurn
func (*MsgBurn) Descriptor ¶ added in v1.5.0
func (MsgBurn) GetSignBytes ¶ added in v1.4.1
GetSignBytes encodes the message for signing
func (MsgBurn) GetSigners ¶ added in v1.4.1
func (m MsgBurn) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgBurn) MarshalToSizedBuffer ¶ added in v1.5.0
func (*MsgBurn) ProtoMessage ¶ added in v1.5.0
func (*MsgBurn) ProtoMessage()
func (MsgBurn) ValidateBasic ¶ added in v1.4.1
ValidateBasic runs stateless checks on the message
func (*MsgBurn) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶ added in v1.5.0
func (*MsgBurn) XXX_Unmarshal ¶ added in v1.5.0
type MsgBurnResponse ¶ added in v1.5.0
type MsgBurnResponse struct { }
func (*MsgBurnResponse) Descriptor ¶ added in v1.5.0
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) Marshal ¶ added in v1.5.0
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnResponse) MarshalTo ¶ added in v1.5.0
func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnResponse) ProtoMessage ¶ added in v1.5.0
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) Reset ¶ added in v1.5.0
func (m *MsgBurnResponse) Reset()
func (*MsgBurnResponse) Size ¶ added in v1.5.0
func (m *MsgBurnResponse) Size() (n int)
func (*MsgBurnResponse) String ¶ added in v1.5.0
func (m *MsgBurnResponse) String() string
func (*MsgBurnResponse) Unmarshal ¶ added in v1.5.0
func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgBurnResponse) XXX_DiscardUnknown()
func (*MsgBurnResponse) XXX_Marshal ¶ added in v1.5.0
func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnResponse) XXX_Merge ¶ added in v1.5.0
func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
func (*MsgBurnResponse) XXX_Size ¶ added in v1.5.0
func (m *MsgBurnResponse) XXX_Size() int
func (*MsgBurnResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v1.5.0
type MsgClient interface { DistributeRewards(ctx context.Context, in *MsgDistributeRewards, opts ...grpc.CallOption) (*MsgDistributeRewardsResponse, error) ResetAccount(ctx context.Context, in *MsgResetAccount, opts ...grpc.CallOption) (*MsgResetAccountResponse, error) Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶ added in v1.5.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgDistributeRewards ¶
type MsgDistributeRewards struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Rewards []Reward `protobuf:"bytes,2,rep,name=rewards,proto3" json:"rewards"` }
func NewMsgDistributeRewards ¶
func NewMsgDistributeRewards(owner sdk.AccAddress, rewards []Reward) MsgDistributeRewards
NewMsgDistributeRewards is a constructor function for MsgDistributeRewards
func (*MsgDistributeRewards) Descriptor ¶ added in v1.5.0
func (*MsgDistributeRewards) Descriptor() ([]byte, []int)
func (MsgDistributeRewards) GetSignBytes ¶
func (m MsgDistributeRewards) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDistributeRewards) GetSigners ¶
func (m MsgDistributeRewards) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgDistributeRewards) Marshal ¶ added in v1.5.0
func (m *MsgDistributeRewards) Marshal() (dAtA []byte, err error)
func (*MsgDistributeRewards) MarshalTo ¶ added in v1.5.0
func (m *MsgDistributeRewards) MarshalTo(dAtA []byte) (int, error)
func (*MsgDistributeRewards) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgDistributeRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDistributeRewards) ProtoMessage ¶ added in v1.5.0
func (*MsgDistributeRewards) ProtoMessage()
func (*MsgDistributeRewards) Reset ¶ added in v1.5.0
func (m *MsgDistributeRewards) Reset()
func (MsgDistributeRewards) Route ¶
func (m MsgDistributeRewards) Route() string
Route should return the name of the module
func (*MsgDistributeRewards) Size ¶ added in v1.5.0
func (m *MsgDistributeRewards) Size() (n int)
func (*MsgDistributeRewards) String ¶ added in v1.5.0
func (m *MsgDistributeRewards) String() string
func (MsgDistributeRewards) Type ¶
func (m MsgDistributeRewards) Type() string
Type should return the action
func (*MsgDistributeRewards) Unmarshal ¶ added in v1.5.0
func (m *MsgDistributeRewards) Unmarshal(dAtA []byte) error
func (MsgDistributeRewards) ValidateBasic ¶
func (m MsgDistributeRewards) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgDistributeRewards) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgDistributeRewards) XXX_DiscardUnknown()
func (*MsgDistributeRewards) XXX_Marshal ¶ added in v1.5.0
func (m *MsgDistributeRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDistributeRewards) XXX_Merge ¶ added in v1.5.0
func (m *MsgDistributeRewards) XXX_Merge(src proto.Message)
func (*MsgDistributeRewards) XXX_Size ¶ added in v1.5.0
func (m *MsgDistributeRewards) XXX_Size() int
func (*MsgDistributeRewards) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgDistributeRewards) XXX_Unmarshal(b []byte) error
type MsgDistributeRewardsResponse ¶ added in v1.5.0
type MsgDistributeRewardsResponse struct { }
func (*MsgDistributeRewardsResponse) Descriptor ¶ added in v1.5.0
func (*MsgDistributeRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgDistributeRewardsResponse) Marshal ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgDistributeRewardsResponse) MarshalTo ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDistributeRewardsResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDistributeRewardsResponse) ProtoMessage ¶ added in v1.5.0
func (*MsgDistributeRewardsResponse) ProtoMessage()
func (*MsgDistributeRewardsResponse) Reset ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) Reset()
func (*MsgDistributeRewardsResponse) Size ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) Size() (n int)
func (*MsgDistributeRewardsResponse) String ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) String() string
func (*MsgDistributeRewardsResponse) Unmarshal ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgDistributeRewardsResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) XXX_DiscardUnknown()
func (*MsgDistributeRewardsResponse) XXX_Marshal ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDistributeRewardsResponse) XXX_Merge ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgDistributeRewardsResponse) XXX_Size ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) XXX_Size() int
func (*MsgDistributeRewardsResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgDistributeRewardsResponse) XXX_Unmarshal(b []byte) error
type MsgMint ¶ added in v1.4.0
type MsgMint struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"` }
func NewMsgMint ¶ added in v1.4.0
func NewMsgMint(owner sdk.AccAddress, coin sdk.Coin) MsgMint
func (*MsgMint) Descriptor ¶ added in v1.5.0
func (MsgMint) GetSignBytes ¶ added in v1.4.0
GetSignBytes encodes the message for signing
func (MsgMint) GetSigners ¶ added in v1.4.0
func (m MsgMint) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgMint) MarshalToSizedBuffer ¶ added in v1.5.0
func (*MsgMint) ProtoMessage ¶ added in v1.5.0
func (*MsgMint) ProtoMessage()
func (MsgMint) ValidateBasic ¶ added in v1.4.0
ValidateBasic runs stateless checks on the message
func (*MsgMint) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶ added in v1.5.0
func (*MsgMint) XXX_Unmarshal ¶ added in v1.5.0
type MsgMintResponse ¶ added in v1.5.0
type MsgMintResponse struct { }
func (*MsgMintResponse) Descriptor ¶ added in v1.5.0
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶ added in v1.5.0
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalTo ¶ added in v1.5.0
func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶ added in v1.5.0
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶ added in v1.5.0
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶ added in v1.5.0
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶ added in v1.5.0
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶ added in v1.5.0
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶ added in v1.5.0
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶ added in v1.5.0
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶ added in v1.5.0
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgResetAccount ¶
type MsgResetAccount struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
func NewMsgResetAccount ¶
func NewMsgResetAccount(owner, address sdk.AccAddress) MsgResetAccount
func (*MsgResetAccount) Descriptor ¶ added in v1.5.0
func (*MsgResetAccount) Descriptor() ([]byte, []int)
func (MsgResetAccount) GetSignBytes ¶
func (m MsgResetAccount) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgResetAccount) GetSigners ¶
func (m MsgResetAccount) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgResetAccount) Marshal ¶ added in v1.5.0
func (m *MsgResetAccount) Marshal() (dAtA []byte, err error)
func (*MsgResetAccount) MarshalTo ¶ added in v1.5.0
func (m *MsgResetAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgResetAccount) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgResetAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgResetAccount) ProtoMessage ¶ added in v1.5.0
func (*MsgResetAccount) ProtoMessage()
func (*MsgResetAccount) Reset ¶ added in v1.5.0
func (m *MsgResetAccount) Reset()
func (MsgResetAccount) Route ¶
func (m MsgResetAccount) Route() string
Route should return the name of the module
func (*MsgResetAccount) Size ¶ added in v1.5.0
func (m *MsgResetAccount) Size() (n int)
func (*MsgResetAccount) String ¶ added in v1.5.0
func (m *MsgResetAccount) String() string
func (*MsgResetAccount) Unmarshal ¶ added in v1.5.0
func (m *MsgResetAccount) Unmarshal(dAtA []byte) error
func (MsgResetAccount) ValidateBasic ¶
func (m MsgResetAccount) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgResetAccount) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgResetAccount) XXX_DiscardUnknown()
func (*MsgResetAccount) XXX_Marshal ¶ added in v1.5.0
func (m *MsgResetAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgResetAccount) XXX_Merge ¶ added in v1.5.0
func (m *MsgResetAccount) XXX_Merge(src proto.Message)
func (*MsgResetAccount) XXX_Size ¶ added in v1.5.0
func (m *MsgResetAccount) XXX_Size() int
func (*MsgResetAccount) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgResetAccount) XXX_Unmarshal(b []byte) error
type MsgResetAccountResponse ¶ added in v1.5.0
type MsgResetAccountResponse struct { }
func (*MsgResetAccountResponse) Descriptor ¶ added in v1.5.0
func (*MsgResetAccountResponse) Descriptor() ([]byte, []int)
func (*MsgResetAccountResponse) Marshal ¶ added in v1.5.0
func (m *MsgResetAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgResetAccountResponse) MarshalTo ¶ added in v1.5.0
func (m *MsgResetAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgResetAccountResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgResetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgResetAccountResponse) ProtoMessage ¶ added in v1.5.0
func (*MsgResetAccountResponse) ProtoMessage()
func (*MsgResetAccountResponse) Reset ¶ added in v1.5.0
func (m *MsgResetAccountResponse) Reset()
func (*MsgResetAccountResponse) Size ¶ added in v1.5.0
func (m *MsgResetAccountResponse) Size() (n int)
func (*MsgResetAccountResponse) String ¶ added in v1.5.0
func (m *MsgResetAccountResponse) String() string
func (*MsgResetAccountResponse) Unmarshal ¶ added in v1.5.0
func (m *MsgResetAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgResetAccountResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgResetAccountResponse) XXX_DiscardUnknown()
func (*MsgResetAccountResponse) XXX_Marshal ¶ added in v1.5.0
func (m *MsgResetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgResetAccountResponse) XXX_Merge ¶ added in v1.5.0
func (m *MsgResetAccountResponse) XXX_Merge(src proto.Message)
func (*MsgResetAccountResponse) XXX_Size ¶ added in v1.5.0
func (m *MsgResetAccountResponse) XXX_Size() int
func (*MsgResetAccountResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgResetAccountResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v1.5.0
type MsgServer interface { DistributeRewards(context.Context, *MsgDistributeRewards) (*MsgDistributeRewardsResponse, error) ResetAccount(context.Context, *MsgResetAccount) (*MsgResetAccountResponse, error) Mint(context.Context, *MsgMint) (*MsgMintResponse, error) Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶ added in v1.4.0
type Params struct { Supervisors []string `protobuf:"bytes,1,rep,name=supervisors,proto3" json:"supervisors,omitempty"` FixedGas FixedGasParams `protobuf:"bytes,2,opt,name=fixed_gas,json=fixedGas,proto3" json:"fixed_gas"` MinGasPrice types.DecCoin `protobuf:"bytes,3,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price"` }
func DefaultParams ¶ added in v1.4.0
func DefaultParams() Params
DefaultParams returns a default set of parameters.
func (*Params) Descriptor ¶ added in v1.5.0
func (*Params) GetFixedGas ¶ added in v1.5.0
func (m *Params) GetFixedGas() FixedGasParams
func (*Params) GetMinGasPrice ¶ added in v1.5.0
func (*Params) GetSupervisors ¶ added in v1.5.0
func (*Params) MarshalToSizedBuffer ¶ added in v1.5.0
func (*Params) ParamSetPairs ¶ added in v1.4.0
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶ added in v1.5.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v1.5.0
func (*Params) XXX_Unmarshal ¶ added in v1.5.0
type QueryClient ¶ added in v1.5.0
type QueryClient interface { // MinGasPrice returns set gas price MinGasPrice(ctx context.Context, in *MinGasPriceRequest, opts ...grpc.CallOption) (*MinGasPriceResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v1.5.0
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶ added in v1.5.0
type QueryServer interface { // MinGasPrice returns set gas price MinGasPrice(context.Context, *MinGasPriceRequest) (*MinGasPriceResponse, error) }
QueryServer is the server API for Query service.
type Reward ¶
type Reward struct { Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"` Reward types.DecProto `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward"` }
func (*Reward) Descriptor ¶ added in v1.5.0
func (*Reward) GetReceiver ¶ added in v1.5.0
func (*Reward) MarshalToSizedBuffer ¶ added in v1.5.0
func (*Reward) ProtoMessage ¶ added in v1.5.0
func (*Reward) ProtoMessage()
func (*Reward) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *Reward) XXX_DiscardUnknown()
func (*Reward) XXX_Marshal ¶ added in v1.5.0
func (*Reward) XXX_Unmarshal ¶ added in v1.5.0
type TokenKeeper ¶ added in v1.5.0
type TokenKeeper interface { IncTokens(ctx sdk.Context, address sdk.AccAddress, amount sdk.Dec) ResetAccount(ctx sdk.Context, address sdk.AccAddress) }
type UnimplementedMsgServer ¶ added in v1.5.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Burn ¶ added in v1.5.0
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) DistributeRewards ¶ added in v1.5.0
func (*UnimplementedMsgServer) DistributeRewards(ctx context.Context, req *MsgDistributeRewards) (*MsgDistributeRewardsResponse, error)
func (*UnimplementedMsgServer) Mint ¶ added in v1.5.0
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
func (*UnimplementedMsgServer) ResetAccount ¶ added in v1.5.0
func (*UnimplementedMsgServer) ResetAccount(ctx context.Context, req *MsgResetAccount) (*MsgResetAccountResponse, error)
type UnimplementedQueryServer ¶ added in v1.5.0
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) MinGasPrice ¶ added in v1.5.0
func (*UnimplementedQueryServer) MinGasPrice(ctx context.Context, req *MinGasPriceRequest) (*MinGasPriceResponse, error)