types

package
v1.0.4-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeClaim         = "claim"
	AttributeValueCategory = ModuleName
	AdreessEventType       = "clanAddress"
	EthAdreessEventType    = "ethAddress"
)
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 (
	ClaimRecordKey    = "ClaimRecord-value-"
	ActionRecordKey   = "ActionRecord-value-"
	ClaimEthRecordKey = "ClaimEthRecord-value-"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgClaimAddressSigned = "claim_clan_airdrop"
View Source
const TypeMsgClaimForEthAddress = "claim_from_eth_address"
View Source
const TypeMsgInitialClaim = "initial_claim"

Variables

View Source
var (
	ErrInvalidLengthActionRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowActionRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupActionRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthClaimEthRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClaimEthRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClaimEthRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthClaimRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClaimRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClaimRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrAirdropNotEnabled             = sdkerrors.Register(ModuleName, 2101, "airdrop not enabled")
	ErrIncorrectModuleAccountBalance = sdkerrors.Register(ModuleName, 2102, "claim module account balance != sum of all claim record InitialClaimableAmounts")
	ErrUnauthorizedClaimer           = sdkerrors.Register(ModuleName, 2103, "address is not allowed to claim")
	ErrInvalidClaimAddress           = sdkerrors.Register(ModuleName, 2104, "address for claim is invalid")
	ErrInvalidInitialClaimRequest    = sdkerrors.Register(ModuleName, 2105, "missing parameters for initial claims")
)

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 (
	KeyAirdropEnabled             = []byte("AirdropEnabled")
	DefaultKeyAirdropEnabled bool = true
)
View Source
var (
	KeyAirdropStartTime               = []byte("AirdropStartTime")
	DefaultAirdropStartTime time.Time = time.Now()
)
View Source
var (
	KeyDurationUntilDecay                   = []byte("DurationUntilDecay")
	DefaultDurationUntilDecay time.Duration = time.Hour
)
View Source
var (
	KeyDurationOfDecay                   = []byte("DurationOfDecay")
	DefaultDurationOfDecay time.Duration = time.Hour * 5
)
View Source
var (
	KeyClaimDenom            = []byte("ClaimDenom")
	DefaultClaimDenom string = "clan"
)
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")
)
View Source
var Action_name = map[int32]string{
	0: "ActionInitialClaim",
	1: "ActionVote",
	2: "ActionDelegateStake",
	3: "TBD1",
	4: "TBD2",
}
View Source
var Action_value = map[string]int32{
	"ActionInitialClaim":  0,
	"ActionVote":          1,
	"ActionDelegateStake": 2,
	"TBD1":                3,
	"TBD2":                4,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []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 {
	GetModuleAddress(name string) sdk.AccAddress
	SetModuleAccount(ctx sdk.Context, macc authtypes.ModuleAccountI)
}

type Action

type Action int32
const (
	ActionInitialClaim  Action = 0
	ActionVote          Action = 1
	ActionDelegateStake Action = 2
	TBD1                Action = 3
	TBD2                Action = 4
)

func (Action) EnumDescriptor

func (Action) EnumDescriptor() ([]byte, []int)

func (Action) String

func (x Action) String() string

type ActionRecord

type ActionRecord struct {
	// address of action user
	Address        string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	ClaimAddresses []string `` /* 126-byte string literal not displayed */
	// true if action is completed
	// index of bool in array refers to action enum #
	ActionCompleted []bool `` /* 138-byte string literal not displayed */
}

func (*ActionRecord) Descriptor

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

func (*ActionRecord) GetActionCompleted

func (m *ActionRecord) GetActionCompleted() []bool

func (*ActionRecord) GetAddress

func (m *ActionRecord) GetAddress() string

func (*ActionRecord) GetClaimAddresses

func (m *ActionRecord) GetClaimAddresses() []string

func (*ActionRecord) Marshal

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

func (*ActionRecord) MarshalTo

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

func (*ActionRecord) MarshalToSizedBuffer

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

func (*ActionRecord) ProtoMessage

func (*ActionRecord) ProtoMessage()

func (*ActionRecord) Reset

func (m *ActionRecord) Reset()

func (*ActionRecord) Size

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

func (*ActionRecord) String

func (m *ActionRecord) String() string

func (*ActionRecord) Unmarshal

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

func (*ActionRecord) XXX_DiscardUnknown

func (m *ActionRecord) XXX_DiscardUnknown()

func (*ActionRecord) XXX_Marshal

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

func (*ActionRecord) XXX_Merge

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

func (*ActionRecord) XXX_Size

func (m *ActionRecord) XXX_Size() int

func (*ActionRecord) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

type ClaimEthRecord

type ClaimEthRecord struct {
	// address of claim user
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// total initial claimable amount for the user
	InitialClaimableAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 205-byte string literal not displayed */
	// true if action is completed
	Completed bool `protobuf:"varint,3,opt,name=completed,proto3" json:"completed,omitempty" yaml:"completed"`
}

func (*ClaimEthRecord) Descriptor

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

func (*ClaimEthRecord) GetAddress

func (m *ClaimEthRecord) GetAddress() string

func (*ClaimEthRecord) GetCompleted

func (m *ClaimEthRecord) GetCompleted() bool

func (*ClaimEthRecord) GetInitialClaimableAmount

func (m *ClaimEthRecord) GetInitialClaimableAmount() github_com_cosmos_cosmos_sdk_types.Coins

func (*ClaimEthRecord) Marshal

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

func (*ClaimEthRecord) MarshalTo

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

func (*ClaimEthRecord) MarshalToSizedBuffer

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

func (*ClaimEthRecord) ProtoMessage

func (*ClaimEthRecord) ProtoMessage()

func (*ClaimEthRecord) Reset

func (m *ClaimEthRecord) Reset()

func (*ClaimEthRecord) Size

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

func (*ClaimEthRecord) String

func (m *ClaimEthRecord) String() string

func (*ClaimEthRecord) Unmarshal

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

func (*ClaimEthRecord) XXX_DiscardUnknown

func (m *ClaimEthRecord) XXX_DiscardUnknown()

func (*ClaimEthRecord) XXX_Marshal

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

func (*ClaimEthRecord) XXX_Merge

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

func (*ClaimEthRecord) XXX_Size

func (m *ClaimEthRecord) XXX_Size() int

func (*ClaimEthRecord) XXX_Unmarshal

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

type ClaimRecord

type ClaimRecord struct {
	// address of claim user
	ClaimAddress string `protobuf:"bytes,1,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty" yaml:"claim_address"`
	ClanAddress  string `protobuf:"bytes,2,opt,name=clan_address,json=clanAddress,proto3" json:"clan_address,omitempty" yaml:"clan_address"`
	// total initial claimable amount for the user
	InitialClaimableAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 205-byte string literal not displayed */
	// true if action is claimed
	// index of bool in array refers to action enum #
	ActionClaimed []bool `` /* 130-byte string literal not displayed */
}

func (*ClaimRecord) Descriptor

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

func (*ClaimRecord) GetActionClaimed

func (m *ClaimRecord) GetActionClaimed() []bool

func (*ClaimRecord) GetClaimAddress

func (m *ClaimRecord) GetClaimAddress() string

func (*ClaimRecord) GetClanAddress

func (m *ClaimRecord) GetClanAddress() string

func (*ClaimRecord) GetInitialClaimableAmount

func (m *ClaimRecord) GetInitialClaimableAmount() github_com_cosmos_cosmos_sdk_types.Coins

func (*ClaimRecord) Marshal

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

func (*ClaimRecord) MarshalTo

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

func (*ClaimRecord) MarshalToSizedBuffer

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

func (*ClaimRecord) ProtoMessage

func (*ClaimRecord) ProtoMessage()

func (*ClaimRecord) Reset

func (m *ClaimRecord) Reset()

func (*ClaimRecord) Size

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

func (*ClaimRecord) String

func (m *ClaimRecord) String() string

func (*ClaimRecord) Unmarshal

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

func (*ClaimRecord) XXX_DiscardUnknown

func (m *ClaimRecord) XXX_DiscardUnknown()

func (*ClaimRecord) XXX_Marshal

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

func (*ClaimRecord) XXX_Merge

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

func (*ClaimRecord) XXX_Size

func (m *ClaimRecord) XXX_Size() int

func (*ClaimRecord) XXX_Unmarshal

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

type DistrKeeper

type DistrKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

type GenesisState

type GenesisState struct {
	// balance of the claim module's account
	ModuleAccountBalance types.Coin `` /* 143-byte string literal not displayed */
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"`
	// list of claim records, one for every airdrop recipient
	ClaimRecords []ClaimRecord `protobuf:"bytes,3,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records" yaml:"claim_records"`
	// list of action records, one for every clan address
	ActionRecords []ClaimRecord `protobuf:"bytes,4,rep,name=action_records,json=actionRecords,proto3" json:"action_records" yaml:"action_records"`
	// list of claim records, one for every airdrop recipient
	ClaimEthRecords []ClaimEthRecord `protobuf:"bytes,5,rep,name=claim_eth_records,json=claimEthRecords,proto3" json:"claim_eth_records" yaml:"claim_eth_records"`
}

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

func (m *GenesisState) GetActionRecords() []ClaimRecord

func (*GenesisState) GetClaimEthRecords

func (m *GenesisState) GetClaimEthRecords() []ClaimEthRecord

func (*GenesisState) GetClaimRecords

func (m *GenesisState) GetClaimRecords() []ClaimRecord

func (*GenesisState) GetModuleAccountBalance

func (m *GenesisState) GetModuleAccountBalance() types.Coin

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 MsgClaimAddressSigned

type MsgClaimAddressSigned struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func NewMsgClaimAddressSigned

func NewMsgClaimAddressSigned(typ string, value string, signature string) *MsgClaimAddressSigned

func (*MsgClaimAddressSigned) Descriptor

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

func (*MsgClaimAddressSigned) GetSignBytes

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

func (*MsgClaimAddressSigned) GetSigners

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

func (*MsgClaimAddressSigned) GetValue

func (m *MsgClaimAddressSigned) GetValue() string

func (*MsgClaimAddressSigned) Marshal

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

func (*MsgClaimAddressSigned) MarshalTo

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

func (*MsgClaimAddressSigned) MarshalToSizedBuffer

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

func (*MsgClaimAddressSigned) ProtoMessage

func (*MsgClaimAddressSigned) ProtoMessage()

func (*MsgClaimAddressSigned) Reset

func (m *MsgClaimAddressSigned) Reset()

func (*MsgClaimAddressSigned) Route

func (msg *MsgClaimAddressSigned) Route() string

func (*MsgClaimAddressSigned) Size

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

func (*MsgClaimAddressSigned) String

func (m *MsgClaimAddressSigned) String() string

func (*MsgClaimAddressSigned) Type

func (msg *MsgClaimAddressSigned) Type() string

func (*MsgClaimAddressSigned) Unmarshal

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

func (*MsgClaimAddressSigned) ValidateBasic

func (msg *MsgClaimAddressSigned) ValidateBasic() error

func (*MsgClaimAddressSigned) XXX_DiscardUnknown

func (m *MsgClaimAddressSigned) XXX_DiscardUnknown()

func (*MsgClaimAddressSigned) XXX_Marshal

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

func (*MsgClaimAddressSigned) XXX_Merge

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

func (*MsgClaimAddressSigned) XXX_Size

func (m *MsgClaimAddressSigned) XXX_Size() int

func (*MsgClaimAddressSigned) XXX_Unmarshal

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

type MsgClaimForEthAddress

type MsgClaimForEthAddress struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Message   string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

func NewMsgClaimForEthAddress

func NewMsgClaimForEthAddress(creator string, message string, signature string) *MsgClaimForEthAddress

func (*MsgClaimForEthAddress) Descriptor

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

func (*MsgClaimForEthAddress) GetCreator

func (m *MsgClaimForEthAddress) GetCreator() string

func (*MsgClaimForEthAddress) GetMessage

func (m *MsgClaimForEthAddress) GetMessage() string

func (*MsgClaimForEthAddress) GetSignBytes

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

func (*MsgClaimForEthAddress) GetSignature

func (m *MsgClaimForEthAddress) GetSignature() string

func (*MsgClaimForEthAddress) GetSigners

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

func (*MsgClaimForEthAddress) Marshal

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

func (*MsgClaimForEthAddress) MarshalTo

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

func (*MsgClaimForEthAddress) MarshalToSizedBuffer

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

func (*MsgClaimForEthAddress) ProtoMessage

func (*MsgClaimForEthAddress) ProtoMessage()

func (*MsgClaimForEthAddress) Reset

func (m *MsgClaimForEthAddress) Reset()

func (*MsgClaimForEthAddress) Route

func (msg *MsgClaimForEthAddress) Route() string

func (*MsgClaimForEthAddress) Size

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

func (*MsgClaimForEthAddress) String

func (m *MsgClaimForEthAddress) String() string

func (*MsgClaimForEthAddress) Type

func (msg *MsgClaimForEthAddress) Type() string

func (*MsgClaimForEthAddress) Unmarshal

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

func (*MsgClaimForEthAddress) ValidateBasic

func (msg *MsgClaimForEthAddress) ValidateBasic() error

func (*MsgClaimForEthAddress) XXX_DiscardUnknown

func (m *MsgClaimForEthAddress) XXX_DiscardUnknown()

func (*MsgClaimForEthAddress) XXX_Marshal

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

func (*MsgClaimForEthAddress) XXX_Merge

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

func (*MsgClaimForEthAddress) XXX_Size

func (m *MsgClaimForEthAddress) XXX_Size() int

func (*MsgClaimForEthAddress) XXX_Unmarshal

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

type MsgClaimForEthAddressResponse

type MsgClaimForEthAddressResponse struct {
	ClaimedAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 166-byte string literal not displayed */
}

func (*MsgClaimForEthAddressResponse) Descriptor

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

func (*MsgClaimForEthAddressResponse) GetClaimedAmount

func (*MsgClaimForEthAddressResponse) Marshal

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

func (*MsgClaimForEthAddressResponse) MarshalTo

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

func (*MsgClaimForEthAddressResponse) MarshalToSizedBuffer

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

func (*MsgClaimForEthAddressResponse) ProtoMessage

func (*MsgClaimForEthAddressResponse) ProtoMessage()

func (*MsgClaimForEthAddressResponse) Reset

func (m *MsgClaimForEthAddressResponse) Reset()

func (*MsgClaimForEthAddressResponse) Size

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

func (*MsgClaimForEthAddressResponse) String

func (*MsgClaimForEthAddressResponse) Unmarshal

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

func (*MsgClaimForEthAddressResponse) XXX_DiscardUnknown

func (m *MsgClaimForEthAddressResponse) XXX_DiscardUnknown()

func (*MsgClaimForEthAddressResponse) XXX_Marshal

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

func (*MsgClaimForEthAddressResponse) XXX_Merge

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

func (*MsgClaimForEthAddressResponse) XXX_Size

func (m *MsgClaimForEthAddressResponse) XXX_Size() int

func (*MsgClaimForEthAddressResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	InitialClaim(ctx context.Context, in *MsgInitialClaim, opts ...grpc.CallOption) (*MsgInitialClaimResponse, error)
	ClaimForEthAddress(ctx context.Context, in *MsgClaimForEthAddress, opts ...grpc.CallOption) (*MsgClaimForEthAddressResponse, 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 MsgInitialClaim

type MsgInitialClaim struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Signed    string `protobuf:"bytes,2,opt,name=signed,proto3" json:"signed,omitempty"`
	Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

func NewMsgInitialClaim

func NewMsgInitialClaim(creator string, signed string, signature string) *MsgInitialClaim

func (*MsgInitialClaim) Descriptor

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

func (*MsgInitialClaim) GetCreator

func (m *MsgInitialClaim) GetCreator() string

func (*MsgInitialClaim) GetSignBytes

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

func (*MsgInitialClaim) GetSignature

func (m *MsgInitialClaim) GetSignature() string

func (*MsgInitialClaim) GetSigned

func (m *MsgInitialClaim) GetSigned() string

func (*MsgInitialClaim) GetSigners

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

func (*MsgInitialClaim) Marshal

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

func (*MsgInitialClaim) MarshalTo

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

func (*MsgInitialClaim) MarshalToSizedBuffer

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

func (*MsgInitialClaim) ProtoMessage

func (*MsgInitialClaim) ProtoMessage()

func (*MsgInitialClaim) Reset

func (m *MsgInitialClaim) Reset()

func (*MsgInitialClaim) Route

func (msg *MsgInitialClaim) Route() string

func (*MsgInitialClaim) Size

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

func (*MsgInitialClaim) String

func (m *MsgInitialClaim) String() string

func (*MsgInitialClaim) Type

func (msg *MsgInitialClaim) Type() string

func (*MsgInitialClaim) Unmarshal

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

func (*MsgInitialClaim) ValidateBasic

func (msg *MsgInitialClaim) ValidateBasic() error

func (*MsgInitialClaim) XXX_DiscardUnknown

func (m *MsgInitialClaim) XXX_DiscardUnknown()

func (*MsgInitialClaim) XXX_Marshal

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

func (*MsgInitialClaim) XXX_Merge

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

func (*MsgInitialClaim) XXX_Size

func (m *MsgInitialClaim) XXX_Size() int

func (*MsgInitialClaim) XXX_Unmarshal

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

type MsgInitialClaimResponse

type MsgInitialClaimResponse struct {
	ClaimedAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 166-byte string literal not displayed */
}

func (*MsgInitialClaimResponse) Descriptor

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

func (*MsgInitialClaimResponse) GetClaimedAmount

func (*MsgInitialClaimResponse) Marshal

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

func (*MsgInitialClaimResponse) MarshalTo

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

func (*MsgInitialClaimResponse) MarshalToSizedBuffer

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

func (*MsgInitialClaimResponse) ProtoMessage

func (*MsgInitialClaimResponse) ProtoMessage()

func (*MsgInitialClaimResponse) Reset

func (m *MsgInitialClaimResponse) Reset()

func (*MsgInitialClaimResponse) Size

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

func (*MsgInitialClaimResponse) String

func (m *MsgInitialClaimResponse) String() string

func (*MsgInitialClaimResponse) Unmarshal

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

func (*MsgInitialClaimResponse) XXX_DiscardUnknown

func (m *MsgInitialClaimResponse) XXX_DiscardUnknown()

func (*MsgInitialClaimResponse) XXX_Marshal

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

func (*MsgInitialClaimResponse) XXX_Merge

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

func (*MsgInitialClaimResponse) XXX_Size

func (m *MsgInitialClaimResponse) XXX_Size() int

func (*MsgInitialClaimResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	InitialClaim(context.Context, *MsgInitialClaim) (*MsgInitialClaimResponse, error)
	ClaimForEthAddress(context.Context, *MsgClaimForEthAddress) (*MsgClaimForEthAddressResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	AirdropEnabled     bool          `protobuf:"varint,1,opt,name=airdrop_enabled,json=airdropEnabled,proto3" json:"airdrop_enabled,omitempty"`
	AirdropStartTime   time.Time     `` /* 135-byte string literal not displayed */
	DurationUntilDecay time.Duration `` /* 157-byte string literal not displayed */
	DurationOfDecay    time.Duration `` /* 145-byte string literal not displayed */
	// denom of claimable asset
	ClaimDenom string `protobuf:"bytes,5,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"`
}

Params defines the claim module's parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(enabled bool, claimDenom string, startTime time.Time, durationUntilDecay, durationOfDecay time.Duration) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetAirdropEnabled

func (m *Params) GetAirdropEnabled() bool

func (*Params) GetAirdropStartTime

func (m *Params) GetAirdropStartTime() time.Time

func (*Params) GetClaimDenom

func (m *Params) GetClaimDenom() string

func (*Params) GetDurationOfDecay

func (m *Params) GetDurationOfDecay() time.Duration

func (*Params) GetDurationUntilDecay

func (m *Params) GetDurationUntilDecay() time.Duration

func (Params) IsAirdropEnabled

func (p Params) IsAirdropEnabled(t time.Time) bool

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 QueryClaimEthRecordRequest

type QueryClaimEthRecordRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}

func (*QueryClaimEthRecordRequest) Descriptor

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

func (*QueryClaimEthRecordRequest) GetAddress

func (m *QueryClaimEthRecordRequest) GetAddress() string

func (*QueryClaimEthRecordRequest) Marshal

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

func (*QueryClaimEthRecordRequest) MarshalTo

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

func (*QueryClaimEthRecordRequest) MarshalToSizedBuffer

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

func (*QueryClaimEthRecordRequest) ProtoMessage

func (*QueryClaimEthRecordRequest) ProtoMessage()

func (*QueryClaimEthRecordRequest) Reset

func (m *QueryClaimEthRecordRequest) Reset()

func (*QueryClaimEthRecordRequest) Size

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

func (*QueryClaimEthRecordRequest) String

func (m *QueryClaimEthRecordRequest) String() string

func (*QueryClaimEthRecordRequest) Unmarshal

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

func (*QueryClaimEthRecordRequest) XXX_DiscardUnknown

func (m *QueryClaimEthRecordRequest) XXX_DiscardUnknown()

func (*QueryClaimEthRecordRequest) XXX_Marshal

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

func (*QueryClaimEthRecordRequest) XXX_Merge

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

func (*QueryClaimEthRecordRequest) XXX_Size

func (m *QueryClaimEthRecordRequest) XXX_Size() int

func (*QueryClaimEthRecordRequest) XXX_Unmarshal

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

type QueryClaimEthRecordResponse

type QueryClaimEthRecordResponse struct {
	ClaimEthRecord ClaimEthRecord `protobuf:"bytes,1,opt,name=ClaimEthRecord,proto3" json:"ClaimEthRecord" yaml:"claim_record"`
}

func (*QueryClaimEthRecordResponse) Descriptor

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

func (*QueryClaimEthRecordResponse) GetClaimEthRecord

func (m *QueryClaimEthRecordResponse) GetClaimEthRecord() ClaimEthRecord

func (*QueryClaimEthRecordResponse) Marshal

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

func (*QueryClaimEthRecordResponse) MarshalTo

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

func (*QueryClaimEthRecordResponse) MarshalToSizedBuffer

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

func (*QueryClaimEthRecordResponse) ProtoMessage

func (*QueryClaimEthRecordResponse) ProtoMessage()

func (*QueryClaimEthRecordResponse) Reset

func (m *QueryClaimEthRecordResponse) Reset()

func (*QueryClaimEthRecordResponse) Size

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

func (*QueryClaimEthRecordResponse) String

func (m *QueryClaimEthRecordResponse) String() string

func (*QueryClaimEthRecordResponse) Unmarshal

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

func (*QueryClaimEthRecordResponse) XXX_DiscardUnknown

func (m *QueryClaimEthRecordResponse) XXX_DiscardUnknown()

func (*QueryClaimEthRecordResponse) XXX_Marshal

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

func (*QueryClaimEthRecordResponse) XXX_Merge

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

func (*QueryClaimEthRecordResponse) XXX_Size

func (m *QueryClaimEthRecordResponse) XXX_Size() int

func (*QueryClaimEthRecordResponse) XXX_Unmarshal

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

type QueryClaimRecordRequest

type QueryClaimRecordRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"sender"`
}

func (*QueryClaimRecordRequest) Descriptor

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

func (*QueryClaimRecordRequest) GetAddress

func (m *QueryClaimRecordRequest) GetAddress() string

func (*QueryClaimRecordRequest) Marshal

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

func (*QueryClaimRecordRequest) MarshalTo

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

func (*QueryClaimRecordRequest) MarshalToSizedBuffer

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

func (*QueryClaimRecordRequest) ProtoMessage

func (*QueryClaimRecordRequest) ProtoMessage()

func (*QueryClaimRecordRequest) Reset

func (m *QueryClaimRecordRequest) Reset()

func (*QueryClaimRecordRequest) Size

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

func (*QueryClaimRecordRequest) String

func (m *QueryClaimRecordRequest) String() string

func (*QueryClaimRecordRequest) Unmarshal

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

func (*QueryClaimRecordRequest) XXX_DiscardUnknown

func (m *QueryClaimRecordRequest) XXX_DiscardUnknown()

func (*QueryClaimRecordRequest) XXX_Marshal

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

func (*QueryClaimRecordRequest) XXX_Merge

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

func (*QueryClaimRecordRequest) XXX_Size

func (m *QueryClaimRecordRequest) XXX_Size() int

func (*QueryClaimRecordRequest) XXX_Unmarshal

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

type QueryClaimRecordResponse

type QueryClaimRecordResponse struct {
	ClaimRecord ClaimRecord `protobuf:"bytes,1,opt,name=claim_record,json=claimRecord,proto3" json:"claim_record" yaml:"claim_record"`
}

func (*QueryClaimRecordResponse) Descriptor

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

func (*QueryClaimRecordResponse) GetClaimRecord

func (m *QueryClaimRecordResponse) GetClaimRecord() ClaimRecord

func (*QueryClaimRecordResponse) Marshal

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

func (*QueryClaimRecordResponse) MarshalTo

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

func (*QueryClaimRecordResponse) MarshalToSizedBuffer

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

func (*QueryClaimRecordResponse) ProtoMessage

func (*QueryClaimRecordResponse) ProtoMessage()

func (*QueryClaimRecordResponse) Reset

func (m *QueryClaimRecordResponse) Reset()

func (*QueryClaimRecordResponse) Size

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

func (*QueryClaimRecordResponse) String

func (m *QueryClaimRecordResponse) String() string

func (*QueryClaimRecordResponse) Unmarshal

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

func (*QueryClaimRecordResponse) XXX_DiscardUnknown

func (m *QueryClaimRecordResponse) XXX_DiscardUnknown()

func (*QueryClaimRecordResponse) XXX_Marshal

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

func (*QueryClaimRecordResponse) XXX_Merge

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

func (*QueryClaimRecordResponse) XXX_Size

func (m *QueryClaimRecordResponse) XXX_Size() int

func (*QueryClaimRecordResponse) XXX_Unmarshal

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

type QueryClaimableForActionRequest

type QueryClaimableForActionRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Action  Action `` /* 130-byte string literal not displayed */
}

func (*QueryClaimableForActionRequest) Descriptor

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

func (*QueryClaimableForActionRequest) GetAction

func (m *QueryClaimableForActionRequest) GetAction() Action

func (*QueryClaimableForActionRequest) GetAddress

func (m *QueryClaimableForActionRequest) GetAddress() string

func (*QueryClaimableForActionRequest) Marshal

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

func (*QueryClaimableForActionRequest) MarshalTo

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

func (*QueryClaimableForActionRequest) MarshalToSizedBuffer

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

func (*QueryClaimableForActionRequest) ProtoMessage

func (*QueryClaimableForActionRequest) ProtoMessage()

func (*QueryClaimableForActionRequest) Reset

func (m *QueryClaimableForActionRequest) Reset()

func (*QueryClaimableForActionRequest) Size

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

func (*QueryClaimableForActionRequest) String

func (*QueryClaimableForActionRequest) Unmarshal

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

func (*QueryClaimableForActionRequest) XXX_DiscardUnknown

func (m *QueryClaimableForActionRequest) XXX_DiscardUnknown()

func (*QueryClaimableForActionRequest) XXX_Marshal

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

func (*QueryClaimableForActionRequest) XXX_Merge

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

func (*QueryClaimableForActionRequest) XXX_Size

func (m *QueryClaimableForActionRequest) XXX_Size() int

func (*QueryClaimableForActionRequest) XXX_Unmarshal

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

type QueryClaimableForActionResponse

type QueryClaimableForActionResponse struct {
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
}

func (*QueryClaimableForActionResponse) Descriptor

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

func (*QueryClaimableForActionResponse) GetCoins

func (*QueryClaimableForActionResponse) Marshal

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

func (*QueryClaimableForActionResponse) MarshalTo

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

func (*QueryClaimableForActionResponse) MarshalToSizedBuffer

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

func (*QueryClaimableForActionResponse) ProtoMessage

func (*QueryClaimableForActionResponse) ProtoMessage()

func (*QueryClaimableForActionResponse) Reset

func (*QueryClaimableForActionResponse) Size

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

func (*QueryClaimableForActionResponse) String

func (*QueryClaimableForActionResponse) Unmarshal

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

func (*QueryClaimableForActionResponse) XXX_DiscardUnknown

func (m *QueryClaimableForActionResponse) XXX_DiscardUnknown()

func (*QueryClaimableForActionResponse) XXX_Marshal

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

func (*QueryClaimableForActionResponse) XXX_Merge

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

func (*QueryClaimableForActionResponse) XXX_Size

func (m *QueryClaimableForActionResponse) XXX_Size() int

func (*QueryClaimableForActionResponse) XXX_Unmarshal

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

type QueryClient

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 QueryModuleAccountBalanceRequest

type QueryModuleAccountBalanceRequest struct {
}

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

func (*QueryModuleAccountBalanceRequest) Descriptor

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

func (*QueryModuleAccountBalanceRequest) Marshal

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

func (*QueryModuleAccountBalanceRequest) MarshalTo

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

func (*QueryModuleAccountBalanceRequest) MarshalToSizedBuffer

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

func (*QueryModuleAccountBalanceRequest) ProtoMessage

func (*QueryModuleAccountBalanceRequest) ProtoMessage()

func (*QueryModuleAccountBalanceRequest) Reset

func (*QueryModuleAccountBalanceRequest) Size

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

func (*QueryModuleAccountBalanceRequest) String

func (*QueryModuleAccountBalanceRequest) Unmarshal

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

func (*QueryModuleAccountBalanceRequest) XXX_DiscardUnknown

func (m *QueryModuleAccountBalanceRequest) XXX_DiscardUnknown()

func (*QueryModuleAccountBalanceRequest) XXX_Marshal

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

func (*QueryModuleAccountBalanceRequest) XXX_Merge

func (*QueryModuleAccountBalanceRequest) XXX_Size

func (m *QueryModuleAccountBalanceRequest) XXX_Size() int

func (*QueryModuleAccountBalanceRequest) XXX_Unmarshal

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

type QueryModuleAccountBalanceResponse

type QueryModuleAccountBalanceResponse struct {
	// params defines the parameters of the module.
	ModuleAccountBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
}

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

func (*QueryModuleAccountBalanceResponse) Descriptor

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

func (*QueryModuleAccountBalanceResponse) GetModuleAccountBalance

func (*QueryModuleAccountBalanceResponse) Marshal

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

func (*QueryModuleAccountBalanceResponse) MarshalTo

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

func (*QueryModuleAccountBalanceResponse) MarshalToSizedBuffer

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

func (*QueryModuleAccountBalanceResponse) ProtoMessage

func (*QueryModuleAccountBalanceResponse) ProtoMessage()

func (*QueryModuleAccountBalanceResponse) Reset

func (*QueryModuleAccountBalanceResponse) Size

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

func (*QueryModuleAccountBalanceResponse) String

func (*QueryModuleAccountBalanceResponse) Unmarshal

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

func (*QueryModuleAccountBalanceResponse) XXX_DiscardUnknown

func (m *QueryModuleAccountBalanceResponse) XXX_DiscardUnknown()

func (*QueryModuleAccountBalanceResponse) XXX_Marshal

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

func (*QueryModuleAccountBalanceResponse) XXX_Merge

func (*QueryModuleAccountBalanceResponse) XXX_Size

func (m *QueryModuleAccountBalanceResponse) XXX_Size() int

func (*QueryModuleAccountBalanceResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the 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 defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the 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 QueryTotalClaimableRequest

type QueryTotalClaimableRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}

func (*QueryTotalClaimableRequest) Descriptor

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

func (*QueryTotalClaimableRequest) GetAddress

func (m *QueryTotalClaimableRequest) GetAddress() string

func (*QueryTotalClaimableRequest) Marshal

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

func (*QueryTotalClaimableRequest) MarshalTo

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

func (*QueryTotalClaimableRequest) MarshalToSizedBuffer

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

func (*QueryTotalClaimableRequest) ProtoMessage

func (*QueryTotalClaimableRequest) ProtoMessage()

func (*QueryTotalClaimableRequest) Reset

func (m *QueryTotalClaimableRequest) Reset()

func (*QueryTotalClaimableRequest) Size

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

func (*QueryTotalClaimableRequest) String

func (m *QueryTotalClaimableRequest) String() string

func (*QueryTotalClaimableRequest) Unmarshal

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

func (*QueryTotalClaimableRequest) XXX_DiscardUnknown

func (m *QueryTotalClaimableRequest) XXX_DiscardUnknown()

func (*QueryTotalClaimableRequest) XXX_Marshal

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

func (*QueryTotalClaimableRequest) XXX_Merge

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

func (*QueryTotalClaimableRequest) XXX_Size

func (m *QueryTotalClaimableRequest) XXX_Size() int

func (*QueryTotalClaimableRequest) XXX_Unmarshal

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

type QueryTotalClaimableResponse

type QueryTotalClaimableResponse struct {
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
}

func (*QueryTotalClaimableResponse) Descriptor

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

func (*QueryTotalClaimableResponse) GetCoins

func (*QueryTotalClaimableResponse) Marshal

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

func (*QueryTotalClaimableResponse) MarshalTo

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

func (*QueryTotalClaimableResponse) MarshalToSizedBuffer

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

func (*QueryTotalClaimableResponse) ProtoMessage

func (*QueryTotalClaimableResponse) ProtoMessage()

func (*QueryTotalClaimableResponse) Reset

func (m *QueryTotalClaimableResponse) Reset()

func (*QueryTotalClaimableResponse) Size

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

func (*QueryTotalClaimableResponse) String

func (m *QueryTotalClaimableResponse) String() string

func (*QueryTotalClaimableResponse) Unmarshal

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

func (*QueryTotalClaimableResponse) XXX_DiscardUnknown

func (m *QueryTotalClaimableResponse) XXX_DiscardUnknown()

func (*QueryTotalClaimableResponse) XXX_Marshal

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

func (*QueryTotalClaimableResponse) XXX_Merge

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

func (*QueryTotalClaimableResponse) XXX_Size

func (m *QueryTotalClaimableResponse) XXX_Size() int

func (*QueryTotalClaimableResponse) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondDenom(sdk.Context) string
	GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress,
		maxRetrieve uint16) (delegations []stakingtypes.Delegation)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClaimForEthAddress

func (*UnimplementedMsgServer) InitialClaim

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ClaimEthRecord

func (*UnimplementedQueryServer) ClaimRecord

func (*UnimplementedQueryServer) ClaimableForAction

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalClaimable

Jump to

Keyboard shortcuts

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