types

package
v0.1.0-furya.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 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

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

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

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

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper

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

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

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

func (*FixedGasParams) GetDistributeRewards

func (m *FixedGasParams) GetDistributeRewards() uint64

func (*FixedGasParams) GetResetAccount

func (m *FixedGasParams) GetResetAccount() uint64

func (*FixedGasParams) Marshal

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

func (*FixedGasParams) MarshalTo

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

func (*FixedGasParams) MarshalToSizedBuffer

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

func (*FixedGasParams) ProtoMessage

func (*FixedGasParams) ProtoMessage()

func (*FixedGasParams) Reset

func (m *FixedGasParams) Reset()

func (*FixedGasParams) Size

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

func (*FixedGasParams) String

func (m *FixedGasParams) String() string

func (*FixedGasParams) Unmarshal

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

func (*FixedGasParams) XXX_DiscardUnknown

func (m *FixedGasParams) XXX_DiscardUnknown()

func (*FixedGasParams) XXX_Marshal

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

func (*FixedGasParams) XXX_Merge

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

func (*FixedGasParams) XXX_Size

func (m *FixedGasParams) XXX_Size() int

func (*FixedGasParams) XXX_Unmarshal

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

type GenesisState

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

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() *Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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

type MinGasPriceRequest

type MinGasPriceRequest struct {
}

func (*MinGasPriceRequest) Descriptor

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

func (*MinGasPriceRequest) Marshal

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

func (*MinGasPriceRequest) MarshalTo

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

func (*MinGasPriceRequest) MarshalToSizedBuffer

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

func (*MinGasPriceRequest) ProtoMessage

func (*MinGasPriceRequest) ProtoMessage()

func (*MinGasPriceRequest) Reset

func (m *MinGasPriceRequest) Reset()

func (*MinGasPriceRequest) Size

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

func (*MinGasPriceRequest) String

func (m *MinGasPriceRequest) String() string

func (*MinGasPriceRequest) Unmarshal

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

func (*MinGasPriceRequest) XXX_DiscardUnknown

func (m *MinGasPriceRequest) XXX_DiscardUnknown()

func (*MinGasPriceRequest) XXX_Marshal

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

func (*MinGasPriceRequest) XXX_Merge

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

func (*MinGasPriceRequest) XXX_Size

func (m *MinGasPriceRequest) XXX_Size() int

func (*MinGasPriceRequest) XXX_Unmarshal

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

type MinGasPriceResponse

type MinGasPriceResponse struct {
	MinGasPrice types.DecCoin `protobuf:"bytes,1,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price"`
}

func (*MinGasPriceResponse) Descriptor

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

func (*MinGasPriceResponse) GetMinGasPrice

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

func (*MinGasPriceResponse) Marshal

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

func (*MinGasPriceResponse) MarshalTo

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

func (*MinGasPriceResponse) MarshalToSizedBuffer

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

func (*MinGasPriceResponse) ProtoMessage

func (*MinGasPriceResponse) ProtoMessage()

func (*MinGasPriceResponse) Reset

func (m *MinGasPriceResponse) Reset()

func (*MinGasPriceResponse) Size

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

func (*MinGasPriceResponse) String

func (m *MinGasPriceResponse) String() string

func (*MinGasPriceResponse) Unmarshal

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

func (*MinGasPriceResponse) XXX_DiscardUnknown

func (m *MinGasPriceResponse) XXX_DiscardUnknown()

func (*MinGasPriceResponse) XXX_Marshal

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

func (*MinGasPriceResponse) XXX_Merge

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

func (*MinGasPriceResponse) XXX_Size

func (m *MinGasPriceResponse) XXX_Size() int

func (*MinGasPriceResponse) XXX_Unmarshal

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

type MsgBurn

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

func NewMsgBurn(owner sdk.AccAddress, coin sdk.Coin) MsgBurn

func (*MsgBurn) Descriptor

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

func (MsgBurn) GetSignBytes

func (m MsgBurn) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgBurn) GetSigners

func (m MsgBurn) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgBurn) Marshal

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

func (*MsgBurn) MarshalTo

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

func (*MsgBurn) MarshalToSizedBuffer

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

func (*MsgBurn) ProtoMessage

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset

func (m *MsgBurn) Reset()

func (MsgBurn) Route

func (m MsgBurn) Route() string

Route should return the name of the module

func (*MsgBurn) Size

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

func (*MsgBurn) String

func (m *MsgBurn) String() string

func (MsgBurn) Type

func (m MsgBurn) Type() string

Type should return the action

func (*MsgBurn) Unmarshal

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

func (MsgBurn) ValidateBasic

func (m MsgBurn) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgBurn) XXX_DiscardUnknown

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal

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

func (*MsgBurn) XXX_Merge

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

func (*MsgBurn) XXX_Size

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal

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

type MsgBurnResponse

type MsgBurnResponse struct {
}

func (*MsgBurnResponse) Descriptor

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

func (*MsgBurnResponse) Marshal

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

func (*MsgBurnResponse) MarshalTo

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

func (*MsgBurnResponse) MarshalToSizedBuffer

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

func (*MsgBurnResponse) ProtoMessage

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size

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

func (*MsgBurnResponse) String

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal

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

func (*MsgBurnResponse) XXX_DiscardUnknown

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal

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

func (*MsgBurnResponse) XXX_Merge

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

func (*MsgBurnResponse) XXX_Size

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal

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

type MsgClient

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

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

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

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

func (*MsgDistributeRewards) MarshalTo

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

func (*MsgDistributeRewards) MarshalToSizedBuffer

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

func (*MsgDistributeRewards) ProtoMessage

func (*MsgDistributeRewards) ProtoMessage()

func (*MsgDistributeRewards) Reset

func (m *MsgDistributeRewards) Reset()

func (MsgDistributeRewards) Route

func (m MsgDistributeRewards) Route() string

Route should return the name of the module

func (*MsgDistributeRewards) Size

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

func (*MsgDistributeRewards) String

func (m *MsgDistributeRewards) String() string

func (MsgDistributeRewards) Type

func (m MsgDistributeRewards) Type() string

Type should return the action

func (*MsgDistributeRewards) Unmarshal

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

func (m *MsgDistributeRewards) XXX_DiscardUnknown()

func (*MsgDistributeRewards) XXX_Marshal

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

func (*MsgDistributeRewards) XXX_Merge

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

func (*MsgDistributeRewards) XXX_Size

func (m *MsgDistributeRewards) XXX_Size() int

func (*MsgDistributeRewards) XXX_Unmarshal

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

type MsgDistributeRewardsResponse

type MsgDistributeRewardsResponse struct {
}

func (*MsgDistributeRewardsResponse) Descriptor

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

func (*MsgDistributeRewardsResponse) Marshal

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

func (*MsgDistributeRewardsResponse) MarshalTo

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

func (*MsgDistributeRewardsResponse) MarshalToSizedBuffer

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

func (*MsgDistributeRewardsResponse) ProtoMessage

func (*MsgDistributeRewardsResponse) ProtoMessage()

func (*MsgDistributeRewardsResponse) Reset

func (m *MsgDistributeRewardsResponse) Reset()

func (*MsgDistributeRewardsResponse) Size

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

func (*MsgDistributeRewardsResponse) String

func (*MsgDistributeRewardsResponse) Unmarshal

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

func (*MsgDistributeRewardsResponse) XXX_DiscardUnknown

func (m *MsgDistributeRewardsResponse) XXX_DiscardUnknown()

func (*MsgDistributeRewardsResponse) XXX_Marshal

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

func (*MsgDistributeRewardsResponse) XXX_Merge

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

func (*MsgDistributeRewardsResponse) XXX_Size

func (m *MsgDistributeRewardsResponse) XXX_Size() int

func (*MsgDistributeRewardsResponse) XXX_Unmarshal

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

type MsgMint

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

func NewMsgMint(owner sdk.AccAddress, coin sdk.Coin) MsgMint

func (*MsgMint) Descriptor

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

func (MsgMint) GetSignBytes

func (m MsgMint) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgMint) GetSigners

func (m MsgMint) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgMint) Marshal

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

func (*MsgMint) MarshalTo

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

func (*MsgMint) MarshalToSizedBuffer

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

func (*MsgMint) ProtoMessage

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset

func (m *MsgMint) Reset()

func (MsgMint) Route

func (m MsgMint) Route() string

Route should return the name of the module

func (*MsgMint) Size

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

func (*MsgMint) String

func (m *MsgMint) String() string

func (MsgMint) Type

func (m MsgMint) Type() string

Type should return the action

func (*MsgMint) Unmarshal

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

func (MsgMint) ValidateBasic

func (m MsgMint) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgMint) XXX_DiscardUnknown

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal

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

func (*MsgMint) XXX_Merge

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

func (*MsgMint) XXX_Size

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal

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

type MsgMintResponse

type MsgMintResponse struct {
}

func (*MsgMintResponse) Descriptor

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

func (*MsgMintResponse) Marshal

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

func (*MsgMintResponse) MarshalTo

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

func (*MsgMintResponse) MarshalToSizedBuffer

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

func (*MsgMintResponse) ProtoMessage

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size

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

func (*MsgMintResponse) String

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal

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

func (*MsgMintResponse) XXX_DiscardUnknown

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal

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

func (*MsgMintResponse) XXX_Merge

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

func (*MsgMintResponse) XXX_Size

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal

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

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

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

func (*MsgResetAccount) MarshalTo

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

func (*MsgResetAccount) MarshalToSizedBuffer

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

func (*MsgResetAccount) ProtoMessage

func (*MsgResetAccount) ProtoMessage()

func (*MsgResetAccount) Reset

func (m *MsgResetAccount) Reset()

func (MsgResetAccount) Route

func (m MsgResetAccount) Route() string

Route should return the name of the module

func (*MsgResetAccount) Size

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

func (*MsgResetAccount) String

func (m *MsgResetAccount) String() string

func (MsgResetAccount) Type

func (m MsgResetAccount) Type() string

Type should return the action

func (*MsgResetAccount) Unmarshal

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

func (m *MsgResetAccount) XXX_DiscardUnknown()

func (*MsgResetAccount) XXX_Marshal

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

func (*MsgResetAccount) XXX_Merge

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

func (*MsgResetAccount) XXX_Size

func (m *MsgResetAccount) XXX_Size() int

func (*MsgResetAccount) XXX_Unmarshal

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

type MsgResetAccountResponse

type MsgResetAccountResponse struct {
}

func (*MsgResetAccountResponse) Descriptor

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

func (*MsgResetAccountResponse) Marshal

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

func (*MsgResetAccountResponse) MarshalTo

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

func (*MsgResetAccountResponse) MarshalToSizedBuffer

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

func (*MsgResetAccountResponse) ProtoMessage

func (*MsgResetAccountResponse) ProtoMessage()

func (*MsgResetAccountResponse) Reset

func (m *MsgResetAccountResponse) Reset()

func (*MsgResetAccountResponse) Size

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

func (*MsgResetAccountResponse) String

func (m *MsgResetAccountResponse) String() string

func (*MsgResetAccountResponse) Unmarshal

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

func (*MsgResetAccountResponse) XXX_DiscardUnknown

func (m *MsgResetAccountResponse) XXX_DiscardUnknown()

func (*MsgResetAccountResponse) XXX_Marshal

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

func (*MsgResetAccountResponse) XXX_Merge

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

func (*MsgResetAccountResponse) XXX_Size

func (m *MsgResetAccountResponse) XXX_Size() int

func (*MsgResetAccountResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type Params

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

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func (*Params) Descriptor

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

func (*Params) GetFixedGas

func (m *Params) GetFixedGas() FixedGasParams

func (*Params) GetMinGasPrice

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

func (*Params) GetSupervisors

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

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

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryServer

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.FurProto `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward"`
}

func NewReward

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

func (*Reward) Descriptor

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

func (*Reward) GetReceiver

func (m *Reward) GetReceiver() string

func (*Reward) GetReward

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

func (*Reward) Marshal

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

func (*Reward) MarshalTo

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

func (*Reward) MarshalToSizedBuffer

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

func (*Reward) ProtoMessage

func (*Reward) ProtoMessage()

func (*Reward) Reset

func (m *Reward) Reset()

func (*Reward) Size

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

func (*Reward) String

func (m *Reward) String() string

func (*Reward) Unmarshal

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

func (*Reward) XXX_DiscardUnknown

func (m *Reward) XXX_DiscardUnknown()

func (*Reward) XXX_Marshal

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

func (*Reward) XXX_Merge

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

func (*Reward) XXX_Size

func (m *Reward) XXX_Size() int

func (*Reward) XXX_Unmarshal

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

type TokenKeeper

type TokenKeeper interface {
	IncTokens(ctx sdk.Context, address sdk.AccAddress, amount sdk.Fur)
	ResetAccount(ctx sdk.Context, address sdk.AccAddress)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) DistributeRewards

func (*UnimplementedMsgServer) Mint

func (*UnimplementedMsgServer) ResetAccount

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) MinGasPrice

Jump to

Keyboard shortcuts

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