types

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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
)
View Source
const (
	DefaultParamspace = 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 (
	ErrInvalidLengthOperations        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOperations          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOperations = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultSupervisors = []string(nil)
	DefaultMinGasPrice = sdk.NewDecCoinFromDec(config.DefaultBondDenom, sdk.MustNewDecFromStr("0.025"))
)
View Source
var (
	KeySupervisors = []byte("Supervisors")
	KeyFixedGas    = []byte("FixedGas")
	KeyMinGasPrice = []byte("MinGasPrice")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for operations module

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v1.5.0

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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) Descriptor() ([]byte, []int)

func (MsgBurn) GetSignBytes added in v1.4.1

func (m MsgBurn) GetSignBytes() []byte

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) Marshal added in v1.5.0

func (m *MsgBurn) Marshal() (dAtA []byte, err error)

func (*MsgBurn) MarshalTo added in v1.5.0

func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurn) MarshalToSizedBuffer added in v1.5.0

func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurn) ProtoMessage added in v1.5.0

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset added in v1.5.0

func (m *MsgBurn) Reset()

func (MsgBurn) Route added in v1.4.1

func (m MsgBurn) Route() string

Route should return the name of the module

func (*MsgBurn) Size added in v1.5.0

func (m *MsgBurn) Size() (n int)

func (*MsgBurn) String added in v1.5.0

func (m *MsgBurn) String() string

func (MsgBurn) Type added in v1.4.1

func (m MsgBurn) Type() string

Type should return the action

func (*MsgBurn) Unmarshal added in v1.5.0

func (m *MsgBurn) Unmarshal(dAtA []byte) error

func (MsgBurn) ValidateBasic added in v1.4.1

func (m MsgBurn) ValidateBasic() error

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 (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurn) XXX_Merge added in v1.5.0

func (m *MsgBurn) XXX_Merge(src proto.Message)

func (*MsgBurn) XXX_Size added in v1.5.0

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal added in v1.5.0

func (m *MsgBurn) XXX_Unmarshal(b []byte) error

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 (*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) Descriptor() ([]byte, []int)

func (MsgMint) GetSignBytes added in v1.4.0

func (m MsgMint) GetSignBytes() []byte

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) Marshal added in v1.5.0

func (m *MsgMint) Marshal() (dAtA []byte, err error)

func (*MsgMint) MarshalTo added in v1.5.0

func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)

func (*MsgMint) MarshalToSizedBuffer added in v1.5.0

func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMint) ProtoMessage added in v1.5.0

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset added in v1.5.0

func (m *MsgMint) Reset()

func (MsgMint) Route added in v1.4.0

func (m MsgMint) Route() string

Route should return the name of the module

func (*MsgMint) Size added in v1.5.0

func (m *MsgMint) Size() (n int)

func (*MsgMint) String added in v1.5.0

func (m *MsgMint) String() string

func (MsgMint) Type added in v1.4.0

func (m MsgMint) Type() string

Type should return the action

func (*MsgMint) Unmarshal added in v1.5.0

func (m *MsgMint) Unmarshal(dAtA []byte) error

func (MsgMint) ValidateBasic added in v1.4.0

func (m MsgMint) ValidateBasic() error

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 (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMint) XXX_Merge added in v1.5.0

func (m *MsgMint) XXX_Merge(src proto.Message)

func (*MsgMint) XXX_Size added in v1.5.0

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal added in v1.5.0

func (m *MsgMint) XXX_Unmarshal(b []byte) error

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) Type

func (m MsgResetAccount) Type() string

Type should return the action

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

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) Descriptor() ([]byte, []int)

func (*Params) GetFixedGas added in v1.5.0

func (m *Params) GetFixedGas() FixedGasParams

func (*Params) GetMinGasPrice added in v1.5.0

func (m *Params) GetMinGasPrice() types.DecCoin

func (*Params) GetSupervisors added in v1.5.0

func (m *Params) GetSupervisors() []string

func (*Params) Marshal added in v1.5.0

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v1.5.0

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v1.5.0

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

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) Reset added in v1.5.0

func (m *Params) Reset()

func (*Params) Size added in v1.5.0

func (m *Params) Size() (n int)

func (*Params) String added in v1.5.0

func (m *Params) String() string

func (*Params) Unmarshal added in v1.5.0

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate added in v1.4.0

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown added in v1.5.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v1.5.0

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge added in v1.5.0

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size added in v1.5.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v1.5.0

func (m *Params) XXX_Unmarshal(b []byte) error

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 NewReward added in v1.5.0

func NewReward(address sdk.AccAddress, reward sdk.Dec) Reward

func (*Reward) Descriptor added in v1.5.0

func (*Reward) Descriptor() ([]byte, []int)

func (*Reward) GetReceiver added in v1.5.0

func (m *Reward) GetReceiver() string

func (*Reward) GetReward added in v1.5.0

func (m *Reward) GetReward() types.DecProto

func (*Reward) Marshal added in v1.5.0

func (m *Reward) Marshal() (dAtA []byte, err error)

func (*Reward) MarshalTo added in v1.5.0

func (m *Reward) MarshalTo(dAtA []byte) (int, error)

func (*Reward) MarshalToSizedBuffer added in v1.5.0

func (m *Reward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Reward) ProtoMessage added in v1.5.0

func (*Reward) ProtoMessage()

func (*Reward) Reset added in v1.5.0

func (m *Reward) Reset()

func (*Reward) Size added in v1.5.0

func (m *Reward) Size() (n int)

func (*Reward) String added in v1.5.0

func (m *Reward) String() string

func (*Reward) Unmarshal added in v1.5.0

func (m *Reward) Unmarshal(dAtA []byte) error

func (*Reward) XXX_DiscardUnknown added in v1.5.0

func (m *Reward) XXX_DiscardUnknown()

func (*Reward) XXX_Marshal added in v1.5.0

func (m *Reward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Reward) XXX_Merge added in v1.5.0

func (m *Reward) XXX_Merge(src proto.Message)

func (*Reward) XXX_Size added in v1.5.0

func (m *Reward) XXX_Size() int

func (*Reward) XXX_Unmarshal added in v1.5.0

func (m *Reward) XXX_Unmarshal(b []byte) error

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) DistributeRewards added in v1.5.0

func (*UnimplementedMsgServer) Mint added in v1.5.0

func (*UnimplementedMsgServer) ResetAccount added in v1.5.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL