types

package
v0.5.1-cometbft-0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeSetMerkleRoot = "set_merkle_root"
	EventTypeClaim         = "claim"

	AttributeKeyClaimRound   = "claim_round"
	AttributeKeyMerkleRoot   = "merkle_root"
	AttributeKeyClaimAccount = "claim_account"
	AttributeKeyClaimIndex   = "claim_index"
	AttributeKeyClaimCoin    = "claim_coin"
)

sudo module event types

View Source
const (
	// ModuleName defines the module name
	ModuleName = "claim"

	// 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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_claim"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgClaim = "claim"
View Source
const TypeMsgProvideToken = "provide_token"
View Source
const TypeMsgSetMerkleRoot = "set_merkle_root"
View Source
const TypeMsgToggleClaimSwitch = "toggle_claim_switch"
View Source
const TypeMsgWithdrawToken = "withdraw_token"

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrMerkleRootFormatNotMatch = sdkerrors.Register(ModuleName, 1100, "merkle root format not match")
	ErrAlreadyClaimed           = sdkerrors.Register(ModuleName, 1101, "already claimed err")
	ErrNodeHashFormatNotMatch   = sdkerrors.Register(ModuleName, 1102, "node hash format not match")
	ErrAccountFormatNotMatch    = sdkerrors.Register(ModuleName, 1103, "account format not match")
	ErrAmountFormatNotMatch     = sdkerrors.Register(ModuleName, 1104, "amount format not match")
	ErrMerkleRootNotExist       = sdkerrors.Register(ModuleName, 1105, "merkle root not exist")
	ErrMerkleProofNotMatch      = sdkerrors.Register(ModuleName, 1106, "merkle proof not match")
	ErrClaimSwitchClosed        = sdkerrors.Register(ModuleName, 1107, "claim switch closed")
)

x/claim module sentinel errors

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 (
	MerkleRootStoreKeyPrefix  = []byte{0x01}
	ClaimBitMapStoreKeyPrefix = []byte{0x03}
	ClaimSwitchStoreKeyPrefix = []byte{0x04}
)
View Source
var (
	SwitchStateClose = []byte{0x00}
	SwitchStateOpen  = []byte{0x01}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	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 ClaimBitMapStoreKey

func ClaimBitMapStoreKey(round, wordIndex uint64) []byte

prefix + round + wordIndex

func ClaimSwitchStoreKey

func ClaimSwitchStoreKey(round uint64) []byte

func KeyPrefix

func KeyPrefix(p string) []byte

func MerkleRootStoreKey

func MerkleRootStoreKey(round uint64) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch 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 AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

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
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

type ClaimBitMap

type ClaimBitMap struct {
	Round     uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
	WordIndex uint64 `protobuf:"varint,2,opt,name=wordIndex,proto3" json:"wordIndex,omitempty"`
	Bits      uint64 `protobuf:"varint,3,opt,name=bits,proto3" json:"bits,omitempty"`
}

func (*ClaimBitMap) Descriptor

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

func (*ClaimBitMap) GetBits

func (m *ClaimBitMap) GetBits() uint64

func (*ClaimBitMap) GetRound

func (m *ClaimBitMap) GetRound() uint64

func (*ClaimBitMap) GetWordIndex

func (m *ClaimBitMap) GetWordIndex() uint64

func (*ClaimBitMap) Marshal

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

func (*ClaimBitMap) MarshalTo

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

func (*ClaimBitMap) MarshalToSizedBuffer

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

func (*ClaimBitMap) ProtoMessage

func (*ClaimBitMap) ProtoMessage()

func (*ClaimBitMap) Reset

func (m *ClaimBitMap) Reset()

func (*ClaimBitMap) Size

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

func (*ClaimBitMap) String

func (m *ClaimBitMap) String() string

func (*ClaimBitMap) Unmarshal

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

func (*ClaimBitMap) XXX_DiscardUnknown

func (m *ClaimBitMap) XXX_DiscardUnknown()

func (*ClaimBitMap) XXX_Marshal

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

func (*ClaimBitMap) XXX_Merge

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

func (*ClaimBitMap) XXX_Size

func (m *ClaimBitMap) XXX_Size() int

func (*ClaimBitMap) XXX_Unmarshal

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

type ClaimSwitch

type ClaimSwitch struct {
	Round  uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
	IsOpen bool   `protobuf:"varint,2,opt,name=isOpen,proto3" json:"isOpen,omitempty"`
}

func (*ClaimSwitch) Descriptor

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

func (*ClaimSwitch) GetIsOpen

func (m *ClaimSwitch) GetIsOpen() bool

func (*ClaimSwitch) GetRound

func (m *ClaimSwitch) GetRound() uint64

func (*ClaimSwitch) Marshal

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

func (*ClaimSwitch) MarshalTo

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

func (*ClaimSwitch) MarshalToSizedBuffer

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

func (*ClaimSwitch) ProtoMessage

func (*ClaimSwitch) ProtoMessage()

func (*ClaimSwitch) Reset

func (m *ClaimSwitch) Reset()

func (*ClaimSwitch) Size

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

func (*ClaimSwitch) String

func (m *ClaimSwitch) String() string

func (*ClaimSwitch) Unmarshal

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

func (*ClaimSwitch) XXX_DiscardUnknown

func (m *ClaimSwitch) XXX_DiscardUnknown()

func (*ClaimSwitch) XXX_Marshal

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

func (*ClaimSwitch) XXX_Merge

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

func (*ClaimSwitch) XXX_Size

func (m *ClaimSwitch) XXX_Size() int

func (*ClaimSwitch) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params          Params         `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	MerkleRootList  []*MerkleRoot  `protobuf:"bytes,2,rep,name=merkleRootList,proto3" json:"merkleRootList,omitempty"`
	ClaimBitMapList []*ClaimBitMap `protobuf:"bytes,3,rep,name=claimBitMapList,proto3" json:"claimBitMapList,omitempty"`
	ClaimSwitchList []*ClaimSwitch `protobuf:"bytes,4,rep,name=claimSwitchList,proto3" json:"claimSwitchList,omitempty"`
}

GenesisState defines the claim module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetClaimBitMapList

func (m *GenesisState) GetClaimBitMapList() []*ClaimBitMap

func (*GenesisState) GetClaimSwitchList

func (m *GenesisState) GetClaimSwitchList() []*ClaimSwitch

func (*GenesisState) GetMerkleRootList

func (m *GenesisState) GetMerkleRootList() []*MerkleRoot

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 MerkleRoot

type MerkleRoot struct {
	Round    uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
	RootHash string `protobuf:"bytes,2,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
}

func (*MerkleRoot) Descriptor

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

func (*MerkleRoot) GetRootHash

func (m *MerkleRoot) GetRootHash() string

func (*MerkleRoot) GetRound

func (m *MerkleRoot) GetRound() uint64

func (*MerkleRoot) Marshal

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

func (*MerkleRoot) MarshalTo

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

func (*MerkleRoot) MarshalToSizedBuffer

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

func (*MerkleRoot) ProtoMessage

func (*MerkleRoot) ProtoMessage()

func (*MerkleRoot) Reset

func (m *MerkleRoot) Reset()

func (*MerkleRoot) Size

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

func (*MerkleRoot) String

func (m *MerkleRoot) String() string

func (*MerkleRoot) Unmarshal

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

func (*MerkleRoot) XXX_DiscardUnknown

func (m *MerkleRoot) XXX_DiscardUnknown()

func (*MerkleRoot) XXX_Marshal

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

func (*MerkleRoot) XXX_Merge

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

func (*MerkleRoot) XXX_Size

func (m *MerkleRoot) XXX_Size() int

func (*MerkleRoot) XXX_Unmarshal

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

type MsgClaim

type MsgClaim struct {
	Creator string                                  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Round   uint64                                  `protobuf:"varint,2,opt,name=round,proto3" json:"round"`
	Index   uint64                                  `protobuf:"varint,3,opt,name=index,proto3" json:"index"`
	Account string                                  `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`
	Coin    github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,5,opt,name=coin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
	Proof   []string                                `protobuf:"bytes,6,rep,name=proof,proto3" json:"proof,omitempty"`
}

func NewMsgClaim

func NewMsgClaim(creator string, round uint64, index uint64, account string, coin sdk.Coin, proof []string) *MsgClaim

func (*MsgClaim) Descriptor

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

func (*MsgClaim) GetAccount

func (m *MsgClaim) GetAccount() string

func (*MsgClaim) GetCreator

func (m *MsgClaim) GetCreator() string

func (*MsgClaim) GetIndex

func (m *MsgClaim) GetIndex() uint64

func (*MsgClaim) GetProof

func (m *MsgClaim) GetProof() []string

func (*MsgClaim) GetRound

func (m *MsgClaim) GetRound() uint64

func (*MsgClaim) GetSignBytes

func (msg *MsgClaim) GetSignBytes() []byte

func (*MsgClaim) GetSigners

func (msg *MsgClaim) GetSigners() []sdk.AccAddress

func (*MsgClaim) Marshal

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

func (*MsgClaim) MarshalTo

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

func (*MsgClaim) MarshalToSizedBuffer

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

func (*MsgClaim) ProtoMessage

func (*MsgClaim) ProtoMessage()

func (*MsgClaim) Reset

func (m *MsgClaim) Reset()

func (*MsgClaim) Route

func (msg *MsgClaim) Route() string

func (*MsgClaim) Size

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

func (*MsgClaim) String

func (m *MsgClaim) String() string

func (*MsgClaim) Type

func (msg *MsgClaim) Type() string

func (*MsgClaim) Unmarshal

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

func (*MsgClaim) ValidateBasic

func (msg *MsgClaim) ValidateBasic() error

func (*MsgClaim) XXX_DiscardUnknown

func (m *MsgClaim) XXX_DiscardUnknown()

func (*MsgClaim) XXX_Marshal

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

func (*MsgClaim) XXX_Merge

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

func (*MsgClaim) XXX_Size

func (m *MsgClaim) XXX_Size() int

func (*MsgClaim) XXX_Unmarshal

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

type MsgClaimResponse

type MsgClaimResponse struct {
}

func (*MsgClaimResponse) Descriptor

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

func (*MsgClaimResponse) Marshal

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

func (*MsgClaimResponse) MarshalTo

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

func (*MsgClaimResponse) MarshalToSizedBuffer

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

func (*MsgClaimResponse) ProtoMessage

func (*MsgClaimResponse) ProtoMessage()

func (*MsgClaimResponse) Reset

func (m *MsgClaimResponse) Reset()

func (*MsgClaimResponse) Size

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

func (*MsgClaimResponse) String

func (m *MsgClaimResponse) String() string

func (*MsgClaimResponse) Unmarshal

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

func (*MsgClaimResponse) XXX_DiscardUnknown

func (m *MsgClaimResponse) XXX_DiscardUnknown()

func (*MsgClaimResponse) XXX_Marshal

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

func (*MsgClaimResponse) XXX_Merge

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

func (*MsgClaimResponse) XXX_Size

func (m *MsgClaimResponse) XXX_Size() int

func (*MsgClaimResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	SetMerkleRoot(ctx context.Context, in *MsgSetMerkleRoot, opts ...grpc.CallOption) (*MsgSetMerkleRootResponse, error)
	Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, error)
	ToggleClaimSwitch(ctx context.Context, in *MsgToggleClaimSwitch, opts ...grpc.CallOption) (*MsgToggleClaimSwitchResponse, error)
	ProvideToken(ctx context.Context, in *MsgProvideToken, opts ...grpc.CallOption) (*MsgProvideTokenResponse, error)
	WithdrawToken(ctx context.Context, in *MsgWithdrawToken, opts ...grpc.CallOption) (*MsgWithdrawTokenResponse, 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 MsgProvideToken

type MsgProvideToken struct {
	Creator string                                  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Token   github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=token,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"token"`
}

func NewMsgProvideToken

func NewMsgProvideToken(creator string, token sdk.Coin) *MsgProvideToken

func (*MsgProvideToken) Descriptor

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

func (*MsgProvideToken) GetCreator

func (m *MsgProvideToken) GetCreator() string

func (*MsgProvideToken) GetSignBytes

func (msg *MsgProvideToken) GetSignBytes() []byte

func (*MsgProvideToken) GetSigners

func (msg *MsgProvideToken) GetSigners() []sdk.AccAddress

func (*MsgProvideToken) Marshal

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

func (*MsgProvideToken) MarshalTo

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

func (*MsgProvideToken) MarshalToSizedBuffer

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

func (*MsgProvideToken) ProtoMessage

func (*MsgProvideToken) ProtoMessage()

func (*MsgProvideToken) Reset

func (m *MsgProvideToken) Reset()

func (*MsgProvideToken) Route

func (msg *MsgProvideToken) Route() string

func (*MsgProvideToken) Size

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

func (*MsgProvideToken) String

func (m *MsgProvideToken) String() string

func (*MsgProvideToken) Type

func (msg *MsgProvideToken) Type() string

func (*MsgProvideToken) Unmarshal

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

func (*MsgProvideToken) ValidateBasic

func (msg *MsgProvideToken) ValidateBasic() error

func (*MsgProvideToken) XXX_DiscardUnknown

func (m *MsgProvideToken) XXX_DiscardUnknown()

func (*MsgProvideToken) XXX_Marshal

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

func (*MsgProvideToken) XXX_Merge

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

func (*MsgProvideToken) XXX_Size

func (m *MsgProvideToken) XXX_Size() int

func (*MsgProvideToken) XXX_Unmarshal

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

type MsgProvideTokenResponse

type MsgProvideTokenResponse struct {
}

func (*MsgProvideTokenResponse) Descriptor

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

func (*MsgProvideTokenResponse) Marshal

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

func (*MsgProvideTokenResponse) MarshalTo

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

func (*MsgProvideTokenResponse) MarshalToSizedBuffer

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

func (*MsgProvideTokenResponse) ProtoMessage

func (*MsgProvideTokenResponse) ProtoMessage()

func (*MsgProvideTokenResponse) Reset

func (m *MsgProvideTokenResponse) Reset()

func (*MsgProvideTokenResponse) Size

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

func (*MsgProvideTokenResponse) String

func (m *MsgProvideTokenResponse) String() string

func (*MsgProvideTokenResponse) Unmarshal

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

func (*MsgProvideTokenResponse) XXX_DiscardUnknown

func (m *MsgProvideTokenResponse) XXX_DiscardUnknown()

func (*MsgProvideTokenResponse) XXX_Marshal

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

func (*MsgProvideTokenResponse) XXX_Merge

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

func (*MsgProvideTokenResponse) XXX_Size

func (m *MsgProvideTokenResponse) XXX_Size() int

func (*MsgProvideTokenResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSetMerkleRoot

type MsgSetMerkleRoot struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Round      uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round"`
	MerkleRoot string `protobuf:"bytes,3,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"`
}

func NewMsgSetMerkleRoot

func NewMsgSetMerkleRoot(creator string, round uint64, merkleRoot string) *MsgSetMerkleRoot

func (*MsgSetMerkleRoot) Descriptor

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

func (*MsgSetMerkleRoot) GetCreator

func (m *MsgSetMerkleRoot) GetCreator() string

func (*MsgSetMerkleRoot) GetMerkleRoot

func (m *MsgSetMerkleRoot) GetMerkleRoot() string

func (*MsgSetMerkleRoot) GetRound

func (m *MsgSetMerkleRoot) GetRound() uint64

func (*MsgSetMerkleRoot) GetSignBytes

func (msg *MsgSetMerkleRoot) GetSignBytes() []byte

func (*MsgSetMerkleRoot) GetSigners

func (msg *MsgSetMerkleRoot) GetSigners() []sdk.AccAddress

func (*MsgSetMerkleRoot) Marshal

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

func (*MsgSetMerkleRoot) MarshalTo

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

func (*MsgSetMerkleRoot) MarshalToSizedBuffer

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

func (*MsgSetMerkleRoot) ProtoMessage

func (*MsgSetMerkleRoot) ProtoMessage()

func (*MsgSetMerkleRoot) Reset

func (m *MsgSetMerkleRoot) Reset()

func (*MsgSetMerkleRoot) Route

func (msg *MsgSetMerkleRoot) Route() string

func (*MsgSetMerkleRoot) Size

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

func (*MsgSetMerkleRoot) String

func (m *MsgSetMerkleRoot) String() string

func (*MsgSetMerkleRoot) Type

func (msg *MsgSetMerkleRoot) Type() string

func (*MsgSetMerkleRoot) Unmarshal

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

func (*MsgSetMerkleRoot) ValidateBasic

func (msg *MsgSetMerkleRoot) ValidateBasic() error

func (*MsgSetMerkleRoot) XXX_DiscardUnknown

func (m *MsgSetMerkleRoot) XXX_DiscardUnknown()

func (*MsgSetMerkleRoot) XXX_Marshal

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

func (*MsgSetMerkleRoot) XXX_Merge

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

func (*MsgSetMerkleRoot) XXX_Size

func (m *MsgSetMerkleRoot) XXX_Size() int

func (*MsgSetMerkleRoot) XXX_Unmarshal

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

type MsgSetMerkleRootResponse

type MsgSetMerkleRootResponse struct {
}

func (*MsgSetMerkleRootResponse) Descriptor

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

func (*MsgSetMerkleRootResponse) Marshal

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

func (*MsgSetMerkleRootResponse) MarshalTo

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

func (*MsgSetMerkleRootResponse) MarshalToSizedBuffer

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

func (*MsgSetMerkleRootResponse) ProtoMessage

func (*MsgSetMerkleRootResponse) ProtoMessage()

func (*MsgSetMerkleRootResponse) Reset

func (m *MsgSetMerkleRootResponse) Reset()

func (*MsgSetMerkleRootResponse) Size

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

func (*MsgSetMerkleRootResponse) String

func (m *MsgSetMerkleRootResponse) String() string

func (*MsgSetMerkleRootResponse) Unmarshal

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

func (*MsgSetMerkleRootResponse) XXX_DiscardUnknown

func (m *MsgSetMerkleRootResponse) XXX_DiscardUnknown()

func (*MsgSetMerkleRootResponse) XXX_Marshal

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

func (*MsgSetMerkleRootResponse) XXX_Merge

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

func (*MsgSetMerkleRootResponse) XXX_Size

func (m *MsgSetMerkleRootResponse) XXX_Size() int

func (*MsgSetMerkleRootResponse) XXX_Unmarshal

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

type MsgToggleClaimSwitch

type MsgToggleClaimSwitch struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Round   uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round"`
}

func NewMsgToggleClaimSwitch

func NewMsgToggleClaimSwitch(creator string, round uint64) *MsgToggleClaimSwitch

func (*MsgToggleClaimSwitch) Descriptor

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

func (*MsgToggleClaimSwitch) GetCreator

func (m *MsgToggleClaimSwitch) GetCreator() string

func (*MsgToggleClaimSwitch) GetRound

func (m *MsgToggleClaimSwitch) GetRound() uint64

func (*MsgToggleClaimSwitch) GetSignBytes

func (msg *MsgToggleClaimSwitch) GetSignBytes() []byte

func (*MsgToggleClaimSwitch) GetSigners

func (msg *MsgToggleClaimSwitch) GetSigners() []sdk.AccAddress

func (*MsgToggleClaimSwitch) Marshal

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

func (*MsgToggleClaimSwitch) MarshalTo

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

func (*MsgToggleClaimSwitch) MarshalToSizedBuffer

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

func (*MsgToggleClaimSwitch) ProtoMessage

func (*MsgToggleClaimSwitch) ProtoMessage()

func (*MsgToggleClaimSwitch) Reset

func (m *MsgToggleClaimSwitch) Reset()

func (*MsgToggleClaimSwitch) Route

func (msg *MsgToggleClaimSwitch) Route() string

func (*MsgToggleClaimSwitch) Size

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

func (*MsgToggleClaimSwitch) String

func (m *MsgToggleClaimSwitch) String() string

func (*MsgToggleClaimSwitch) Type

func (msg *MsgToggleClaimSwitch) Type() string

func (*MsgToggleClaimSwitch) Unmarshal

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

func (*MsgToggleClaimSwitch) ValidateBasic

func (msg *MsgToggleClaimSwitch) ValidateBasic() error

func (*MsgToggleClaimSwitch) XXX_DiscardUnknown

func (m *MsgToggleClaimSwitch) XXX_DiscardUnknown()

func (*MsgToggleClaimSwitch) XXX_Marshal

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

func (*MsgToggleClaimSwitch) XXX_Merge

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

func (*MsgToggleClaimSwitch) XXX_Size

func (m *MsgToggleClaimSwitch) XXX_Size() int

func (*MsgToggleClaimSwitch) XXX_Unmarshal

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

type MsgToggleClaimSwitchResponse

type MsgToggleClaimSwitchResponse struct {
}

func (*MsgToggleClaimSwitchResponse) Descriptor

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

func (*MsgToggleClaimSwitchResponse) Marshal

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

func (*MsgToggleClaimSwitchResponse) MarshalTo

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

func (*MsgToggleClaimSwitchResponse) MarshalToSizedBuffer

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

func (*MsgToggleClaimSwitchResponse) ProtoMessage

func (*MsgToggleClaimSwitchResponse) ProtoMessage()

func (*MsgToggleClaimSwitchResponse) Reset

func (m *MsgToggleClaimSwitchResponse) Reset()

func (*MsgToggleClaimSwitchResponse) Size

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

func (*MsgToggleClaimSwitchResponse) String

func (*MsgToggleClaimSwitchResponse) Unmarshal

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

func (*MsgToggleClaimSwitchResponse) XXX_DiscardUnknown

func (m *MsgToggleClaimSwitchResponse) XXX_DiscardUnknown()

func (*MsgToggleClaimSwitchResponse) XXX_Marshal

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

func (*MsgToggleClaimSwitchResponse) XXX_Merge

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

func (*MsgToggleClaimSwitchResponse) XXX_Size

func (m *MsgToggleClaimSwitchResponse) XXX_Size() int

func (*MsgToggleClaimSwitchResponse) XXX_Unmarshal

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

type MsgWithdrawToken

type MsgWithdrawToken struct {
	Creator   string                                  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Recipient string                                  `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Token     github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=token,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"token"`
}

func NewMsgWithdrawToken

func NewMsgWithdrawToken(creator, recipient string, token sdk.Coin) *MsgWithdrawToken

func (*MsgWithdrawToken) Descriptor

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

func (*MsgWithdrawToken) GetCreator

func (m *MsgWithdrawToken) GetCreator() string

func (*MsgWithdrawToken) GetRecipient

func (m *MsgWithdrawToken) GetRecipient() string

func (*MsgWithdrawToken) GetSignBytes

func (msg *MsgWithdrawToken) GetSignBytes() []byte

func (*MsgWithdrawToken) GetSigners

func (msg *MsgWithdrawToken) GetSigners() []sdk.AccAddress

func (*MsgWithdrawToken) Marshal

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

func (*MsgWithdrawToken) MarshalTo

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

func (*MsgWithdrawToken) MarshalToSizedBuffer

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

func (*MsgWithdrawToken) ProtoMessage

func (*MsgWithdrawToken) ProtoMessage()

func (*MsgWithdrawToken) Reset

func (m *MsgWithdrawToken) Reset()

func (*MsgWithdrawToken) Route

func (msg *MsgWithdrawToken) Route() string

func (*MsgWithdrawToken) Size

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

func (*MsgWithdrawToken) String

func (m *MsgWithdrawToken) String() string

func (*MsgWithdrawToken) Type

func (msg *MsgWithdrawToken) Type() string

func (*MsgWithdrawToken) Unmarshal

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

func (*MsgWithdrawToken) ValidateBasic

func (msg *MsgWithdrawToken) ValidateBasic() error

func (*MsgWithdrawToken) XXX_DiscardUnknown

func (m *MsgWithdrawToken) XXX_DiscardUnknown()

func (*MsgWithdrawToken) XXX_Marshal

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

func (*MsgWithdrawToken) XXX_Merge

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

func (*MsgWithdrawToken) XXX_Size

func (m *MsgWithdrawToken) XXX_Size() int

func (*MsgWithdrawToken) XXX_Unmarshal

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

type MsgWithdrawTokenResponse

type MsgWithdrawTokenResponse struct {
}

func (*MsgWithdrawTokenResponse) Descriptor

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

func (*MsgWithdrawTokenResponse) Marshal

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

func (*MsgWithdrawTokenResponse) MarshalTo

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

func (*MsgWithdrawTokenResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawTokenResponse) ProtoMessage

func (*MsgWithdrawTokenResponse) ProtoMessage()

func (*MsgWithdrawTokenResponse) Reset

func (m *MsgWithdrawTokenResponse) Reset()

func (*MsgWithdrawTokenResponse) Size

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

func (*MsgWithdrawTokenResponse) String

func (m *MsgWithdrawTokenResponse) String() string

func (*MsgWithdrawTokenResponse) Unmarshal

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

func (*MsgWithdrawTokenResponse) XXX_DiscardUnknown

func (m *MsgWithdrawTokenResponse) XXX_DiscardUnknown()

func (*MsgWithdrawTokenResponse) XXX_Marshal

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

func (*MsgWithdrawTokenResponse) XXX_Merge

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

func (*MsgWithdrawTokenResponse) XXX_Size

func (m *MsgWithdrawTokenResponse) XXX_Size() int

func (*MsgWithdrawTokenResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

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

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

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 QueryClaimSwitchRequest

type QueryClaimSwitchRequest struct {
	Round uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
}

func (*QueryClaimSwitchRequest) Descriptor

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

func (*QueryClaimSwitchRequest) GetRound

func (m *QueryClaimSwitchRequest) GetRound() uint64

func (*QueryClaimSwitchRequest) Marshal

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

func (*QueryClaimSwitchRequest) MarshalTo

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

func (*QueryClaimSwitchRequest) MarshalToSizedBuffer

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

func (*QueryClaimSwitchRequest) ProtoMessage

func (*QueryClaimSwitchRequest) ProtoMessage()

func (*QueryClaimSwitchRequest) Reset

func (m *QueryClaimSwitchRequest) Reset()

func (*QueryClaimSwitchRequest) Size

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

func (*QueryClaimSwitchRequest) String

func (m *QueryClaimSwitchRequest) String() string

func (*QueryClaimSwitchRequest) Unmarshal

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

func (*QueryClaimSwitchRequest) XXX_DiscardUnknown

func (m *QueryClaimSwitchRequest) XXX_DiscardUnknown()

func (*QueryClaimSwitchRequest) XXX_Marshal

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

func (*QueryClaimSwitchRequest) XXX_Merge

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

func (*QueryClaimSwitchRequest) XXX_Size

func (m *QueryClaimSwitchRequest) XXX_Size() int

func (*QueryClaimSwitchRequest) XXX_Unmarshal

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

type QueryClaimSwitchResponse

type QueryClaimSwitchResponse struct {
	IsOpen bool `protobuf:"varint,1,opt,name=isOpen,proto3" json:"isOpen,omitempty"`
}

func (*QueryClaimSwitchResponse) Descriptor

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

func (*QueryClaimSwitchResponse) GetIsOpen

func (m *QueryClaimSwitchResponse) GetIsOpen() bool

func (*QueryClaimSwitchResponse) Marshal

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

func (*QueryClaimSwitchResponse) MarshalTo

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

func (*QueryClaimSwitchResponse) MarshalToSizedBuffer

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

func (*QueryClaimSwitchResponse) ProtoMessage

func (*QueryClaimSwitchResponse) ProtoMessage()

func (*QueryClaimSwitchResponse) Reset

func (m *QueryClaimSwitchResponse) Reset()

func (*QueryClaimSwitchResponse) Size

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

func (*QueryClaimSwitchResponse) String

func (m *QueryClaimSwitchResponse) String() string

func (*QueryClaimSwitchResponse) Unmarshal

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

func (*QueryClaimSwitchResponse) XXX_DiscardUnknown

func (m *QueryClaimSwitchResponse) XXX_DiscardUnknown()

func (*QueryClaimSwitchResponse) XXX_Marshal

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

func (*QueryClaimSwitchResponse) XXX_Merge

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

func (*QueryClaimSwitchResponse) XXX_Size

func (m *QueryClaimSwitchResponse) XXX_Size() int

func (*QueryClaimSwitchResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of IsClaimed items.
	IsClaimed(ctx context.Context, in *QueryIsClaimedRequest, opts ...grpc.CallOption) (*QueryIsClaimedResponse, error)
	// Queries a list of ClaimSwitch items.
	ClaimSwitch(ctx context.Context, in *QueryClaimSwitchRequest, opts ...grpc.CallOption) (*QueryClaimSwitchResponse, 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 QueryIsClaimedRequest

type QueryIsClaimedRequest struct {
	Round uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
	Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryIsClaimedRequest) Descriptor

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

func (*QueryIsClaimedRequest) GetIndex

func (m *QueryIsClaimedRequest) GetIndex() uint64

func (*QueryIsClaimedRequest) GetRound

func (m *QueryIsClaimedRequest) GetRound() uint64

func (*QueryIsClaimedRequest) Marshal

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

func (*QueryIsClaimedRequest) MarshalTo

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

func (*QueryIsClaimedRequest) MarshalToSizedBuffer

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

func (*QueryIsClaimedRequest) ProtoMessage

func (*QueryIsClaimedRequest) ProtoMessage()

func (*QueryIsClaimedRequest) Reset

func (m *QueryIsClaimedRequest) Reset()

func (*QueryIsClaimedRequest) Size

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

func (*QueryIsClaimedRequest) String

func (m *QueryIsClaimedRequest) String() string

func (*QueryIsClaimedRequest) Unmarshal

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

func (*QueryIsClaimedRequest) XXX_DiscardUnknown

func (m *QueryIsClaimedRequest) XXX_DiscardUnknown()

func (*QueryIsClaimedRequest) XXX_Marshal

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

func (*QueryIsClaimedRequest) XXX_Merge

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

func (*QueryIsClaimedRequest) XXX_Size

func (m *QueryIsClaimedRequest) XXX_Size() int

func (*QueryIsClaimedRequest) XXX_Unmarshal

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

type QueryIsClaimedResponse

type QueryIsClaimedResponse struct {
	IsClaimed bool `protobuf:"varint,1,opt,name=isClaimed,proto3" json:"isClaimed,omitempty"`
}

func (*QueryIsClaimedResponse) Descriptor

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

func (*QueryIsClaimedResponse) GetIsClaimed

func (m *QueryIsClaimedResponse) GetIsClaimed() bool

func (*QueryIsClaimedResponse) Marshal

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

func (*QueryIsClaimedResponse) MarshalTo

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

func (*QueryIsClaimedResponse) MarshalToSizedBuffer

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

func (*QueryIsClaimedResponse) ProtoMessage

func (*QueryIsClaimedResponse) ProtoMessage()

func (*QueryIsClaimedResponse) Reset

func (m *QueryIsClaimedResponse) Reset()

func (*QueryIsClaimedResponse) Size

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

func (*QueryIsClaimedResponse) String

func (m *QueryIsClaimedResponse) String() string

func (*QueryIsClaimedResponse) Unmarshal

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

func (*QueryIsClaimedResponse) XXX_DiscardUnknown

func (m *QueryIsClaimedResponse) XXX_DiscardUnknown()

func (*QueryIsClaimedResponse) XXX_Marshal

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

func (*QueryIsClaimedResponse) XXX_Merge

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

func (*QueryIsClaimedResponse) XXX_Size

func (m *QueryIsClaimedResponse) XXX_Size() int

func (*QueryIsClaimedResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of IsClaimed items.
	IsClaimed(context.Context, *QueryIsClaimedRequest) (*QueryIsClaimedResponse, error)
	// Queries a list of ClaimSwitch items.
	ClaimSwitch(context.Context, *QueryClaimSwitchRequest) (*QueryClaimSwitchResponse, error)
}

QueryServer is the server API for Query service.

type SudoKeeper

type SudoKeeper interface {
	IsAdmin(ctx sdk.Context, address string) bool
	GetAdmin(ctx sdk.Context) sdk.AccAddress
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Claim

func (*UnimplementedMsgServer) ProvideToken

func (*UnimplementedMsgServer) SetMerkleRoot

func (*UnimplementedMsgServer) ToggleClaimSwitch

func (*UnimplementedMsgServer) WithdrawToken

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ClaimSwitch

func (*UnimplementedQueryServer) IsClaimed

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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