Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetKeyClaimRecord(chainID string, addr sdk.AccAddress) []byte
- func GetKeyZoneDrop(chainID string) []byte
- func GetPrefixClaimRecord(chainID string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type Action
- type BankKeeper
- type ClaimRecord
- func (*ClaimRecord) Descriptor() ([]byte, []int)
- func (m *ClaimRecord) Marshal() (dAtA []byte, err error)
- func (m *ClaimRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClaimRecord) ProtoMessage()
- func (m *ClaimRecord) Reset()
- func (m *ClaimRecord) Size() (n int)
- func (m *ClaimRecord) String() string
- func (m *ClaimRecord) Unmarshal(dAtA []byte) error
- func (cr ClaimRecord) ValidateBasic() error
- func (m *ClaimRecord) XXX_DiscardUnknown()
- func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClaimRecord) XXX_Merge(src proto.Message)
- func (m *ClaimRecord) XXX_Size() int
- func (m *ClaimRecord) XXX_Unmarshal(b []byte) error
- type CompletedAction
- func (*CompletedAction) Descriptor() ([]byte, []int)
- func (m *CompletedAction) Marshal() (dAtA []byte, err error)
- func (m *CompletedAction) MarshalTo(dAtA []byte) (int, error)
- func (m *CompletedAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CompletedAction) ProtoMessage()
- func (m *CompletedAction) Reset()
- func (m *CompletedAction) Size() (n int)
- func (m *CompletedAction) String() string
- func (m *CompletedAction) Unmarshal(dAtA []byte) error
- func (m *CompletedAction) XXX_DiscardUnknown()
- func (m *CompletedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompletedAction) XXX_Merge(src proto.Message)
- func (m *CompletedAction) XXX_Size() int
- func (m *CompletedAction) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClaim
- func (*MsgClaim) Descriptor() ([]byte, []int)
- func (msg MsgClaim) GetSignBytes() []byte
- func (msg MsgClaim) GetSigners() []sdk.AccAddress
- func (m *MsgClaim) Marshal() (dAtA []byte, err error)
- func (m *MsgClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaim) ProtoMessage()
- func (m *MsgClaim) Reset()
- func (msg MsgClaim) Route() string
- func (m *MsgClaim) Size() (n int)
- func (m *MsgClaim) String() string
- func (msg MsgClaim) Type() string
- func (m *MsgClaim) Unmarshal(dAtA []byte) error
- func (msg MsgClaim) ValidateBasic() error
- func (m *MsgClaim) XXX_DiscardUnknown()
- func (m *MsgClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaim) XXX_Merge(src proto.Message)
- func (m *MsgClaim) XXX_Size() int
- func (m *MsgClaim) XXX_Unmarshal(b []byte) error
- type MsgClaimResponse
- func (*MsgClaimResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimResponse) ProtoMessage()
- func (m *MsgClaimResponse) Reset()
- func (m *MsgClaimResponse) Size() (n int)
- func (m *MsgClaimResponse) String() string
- func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimResponse) XXX_DiscardUnknown()
- func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimResponse) XXX_Size() int
- func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAccountBalanceRequest
- func (*QueryAccountBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountBalanceRequest) ProtoMessage()
- func (m *QueryAccountBalanceRequest) Reset()
- func (m *QueryAccountBalanceRequest) Size() (n int)
- func (m *QueryAccountBalanceRequest) String() string
- func (m *QueryAccountBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountBalanceRequest) XXX_Size() int
- func (m *QueryAccountBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountBalanceResponse
- func (*QueryAccountBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountBalanceResponse) ProtoMessage()
- func (m *QueryAccountBalanceResponse) Reset()
- func (m *QueryAccountBalanceResponse) Size() (n int)
- func (m *QueryAccountBalanceResponse) String() string
- func (m *QueryAccountBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountBalanceResponse) XXX_Size() int
- func (m *QueryAccountBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordRequest
- func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordRequest) ProtoMessage()
- func (m *QueryClaimRecordRequest) Reset()
- func (m *QueryClaimRecordRequest) Size() (n int)
- func (m *QueryClaimRecordRequest) String() string
- func (m *QueryClaimRecordRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordRequest) XXX_DiscardUnknown()
- func (m *QueryClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordRequest) XXX_Size() int
- func (m *QueryClaimRecordRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordResponse
- func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordResponse) ProtoMessage()
- func (m *QueryClaimRecordResponse) Reset()
- func (m *QueryClaimRecordResponse) Size() (n int)
- func (m *QueryClaimRecordResponse) String() string
- func (m *QueryClaimRecordResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordResponse) XXX_DiscardUnknown()
- func (m *QueryClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordResponse) XXX_Size() int
- func (m *QueryClaimRecordResponse) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordsRequest
- func (*QueryClaimRecordsRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordsRequest) ProtoMessage()
- func (m *QueryClaimRecordsRequest) Reset()
- func (m *QueryClaimRecordsRequest) Size() (n int)
- func (m *QueryClaimRecordsRequest) String() string
- func (m *QueryClaimRecordsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordsRequest) XXX_DiscardUnknown()
- func (m *QueryClaimRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordsRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordsRequest) XXX_Size() int
- func (m *QueryClaimRecordsRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordsResponse
- func (*QueryClaimRecordsResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordsResponse) ProtoMessage()
- func (m *QueryClaimRecordsResponse) Reset()
- func (m *QueryClaimRecordsResponse) Size() (n int)
- func (m *QueryClaimRecordsResponse) String() string
- func (m *QueryClaimRecordsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordsResponse) XXX_DiscardUnknown()
- func (m *QueryClaimRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordsResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordsResponse) XXX_Size() int
- func (m *QueryClaimRecordsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryZoneDropRequest
- func (*QueryZoneDropRequest) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropRequest) ProtoMessage()
- func (m *QueryZoneDropRequest) Reset()
- func (m *QueryZoneDropRequest) Size() (n int)
- func (m *QueryZoneDropRequest) String() string
- func (m *QueryZoneDropRequest) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropRequest) XXX_DiscardUnknown()
- func (m *QueryZoneDropRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropRequest) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropRequest) XXX_Size() int
- func (m *QueryZoneDropRequest) XXX_Unmarshal(b []byte) error
- type QueryZoneDropResponse
- func (*QueryZoneDropResponse) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropResponse) ProtoMessage()
- func (m *QueryZoneDropResponse) Reset()
- func (m *QueryZoneDropResponse) Size() (n int)
- func (m *QueryZoneDropResponse) String() string
- func (m *QueryZoneDropResponse) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropResponse) XXX_DiscardUnknown()
- func (m *QueryZoneDropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropResponse) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropResponse) XXX_Size() int
- func (m *QueryZoneDropResponse) XXX_Unmarshal(b []byte) error
- type QueryZoneDropsRequest
- func (*QueryZoneDropsRequest) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropsRequest) ProtoMessage()
- func (m *QueryZoneDropsRequest) Reset()
- func (m *QueryZoneDropsRequest) Size() (n int)
- func (m *QueryZoneDropsRequest) String() string
- func (m *QueryZoneDropsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropsRequest) XXX_DiscardUnknown()
- func (m *QueryZoneDropsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropsRequest) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropsRequest) XXX_Size() int
- func (m *QueryZoneDropsRequest) XXX_Unmarshal(b []byte) error
- type QueryZoneDropsResponse
- func (*QueryZoneDropsResponse) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropsResponse) ProtoMessage()
- func (m *QueryZoneDropsResponse) Reset()
- func (m *QueryZoneDropsResponse) Size() (n int)
- func (m *QueryZoneDropsResponse) String() string
- func (m *QueryZoneDropsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropsResponse) XXX_DiscardUnknown()
- func (m *QueryZoneDropsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropsResponse) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropsResponse) XXX_Size() int
- func (m *QueryZoneDropsResponse) XXX_Unmarshal(b []byte) error
- type RegisterZoneDropProposal
- func (*RegisterZoneDropProposal) Descriptor() ([]byte, []int)
- func (m RegisterZoneDropProposal) GetDescription() string
- func (m RegisterZoneDropProposal) GetTitle() string
- func (m *RegisterZoneDropProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterZoneDropProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterZoneDropProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m RegisterZoneDropProposal) ProposalRoute() string
- func (m RegisterZoneDropProposal) ProposalType() string
- func (*RegisterZoneDropProposal) ProtoMessage()
- func (m *RegisterZoneDropProposal) Reset()
- func (m *RegisterZoneDropProposal) Size() (n int)
- func (m RegisterZoneDropProposal) String() string
- func (m *RegisterZoneDropProposal) Unmarshal(dAtA []byte) error
- func (m RegisterZoneDropProposal) ValidateBasic() error
- func (m *RegisterZoneDropProposal) XXX_DiscardUnknown()
- func (m *RegisterZoneDropProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterZoneDropProposal) XXX_Merge(src proto.Message)
- func (m *RegisterZoneDropProposal) XXX_Size() int
- func (m *RegisterZoneDropProposal) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type Status
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AccountBalance(ctx context.Context, req *QueryAccountBalanceRequest) (*QueryAccountBalanceResponse, error)
- func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
- func (*UnimplementedQueryServer) ClaimRecords(ctx context.Context, req *QueryClaimRecordsRequest) (*QueryClaimRecordsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) ZoneDrop(ctx context.Context, req *QueryZoneDropRequest) (*QueryZoneDropResponse, error)
- func (*UnimplementedQueryServer) ZoneDrops(ctx context.Context, req *QueryZoneDropsRequest) (*QueryZoneDropsResponse, error)
- type ZoneDrop
- func (*ZoneDrop) Descriptor() ([]byte, []int)
- func (m *ZoneDrop) Marshal() (dAtA []byte, err error)
- func (m *ZoneDrop) MarshalTo(dAtA []byte) (int, error)
- func (m *ZoneDrop) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ZoneDrop) ProtoMessage()
- func (m *ZoneDrop) Reset()
- func (m *ZoneDrop) Size() (n int)
- func (m *ZoneDrop) String() string
- func (m *ZoneDrop) Unmarshal(dAtA []byte) error
- func (zd ZoneDrop) ValidateBasic() error
- func (m *ZoneDrop) XXX_DiscardUnknown()
- func (m *ZoneDrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ZoneDrop) XXX_Merge(src proto.Message)
- func (m *ZoneDrop) XXX_Size() int
- func (m *ZoneDrop) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeClaim = "airdrop_claim" EventTypeRegisterZoneDrop = "register_zonedrop" AttributeKeyZoneID = "chain_id" )
const ( // ModuleName defines the module name ModuleName = "airdrop" // StoreKey defines the primary module store key StoreKey = ModuleName // QuerierRoute is the querier route for the module QuerierRoute = StoreKey // RouterKey is the message route for the module RouterKey = ModuleName )
const (
ProposalTypeRegisterZoneDrop = "RegisterZoneDrop"
)
const (
TypeMsgClaim = "claim"
)
airdrop message types
Variables ¶
var ( ErrInvalidLengthAirdrop = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAirdrop = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAirdrop = fmt.Errorf("proto: unexpected end of group") )
var ( ErrZoneDropNotFound = sdkerrors.Register(ModuleName, 1, "zone airdrop not found") ErrClaimRecordNotFound = sdkerrors.Register(ModuleName, 2, "claim record not found") ErrUnknownStatus = sdkerrors.Register(ModuleName, 3, "unknown status") ErrUndefinedAttribute = sdkerrors.Register(ModuleName, 4, "expected attribute not defined") ErrInvalidDuration = sdkerrors.Register(ModuleName, 5, "invalid duration") ErrActionOutOfBounds = sdkerrors.Register(ModuleName, 6, fmt.Sprintf("invalid action, expects range [1-%d]", len(Action_value)-1)) ErrActionWeights = sdkerrors.Register(ModuleName, 7, "sum of action weights must be 1.0") ErrDuplicateZoneDrop = sdkerrors.Register(ModuleName, 8, "duplicate zone drop") ErrDuplicateClaimRecord = sdkerrors.Register(ModuleName, 9, "duplicate claim record") ErrAllocationExceeded = sdkerrors.Register(ModuleName, 10, "claim records allocations exceed zone drop allocation") ErrNoClaimRecords = sdkerrors.Register(ModuleName, 11, "no claim records for zone drop") ErrZoneDropExpired = sdkerrors.Register(ModuleName, 12, "nothing to claim, this zone drop has expired") ErrActionCompleted = sdkerrors.Register(ModuleName, 13, "nothing to claim, action already completed") ErrNegativeAttribute = sdkerrors.Register(ModuleName, 14, "expected attribute must not be negative") )
x/airdrop module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyPrefixZoneDrop = []byte{0x01} KeyPrefixClaimRecord = []byte{0x02} )
var ( ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposals = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposals = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposals = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var Action_name = map[int32]string{
0: "ActionUndefined",
1: "ActionInitialClaim",
2: "ActionDepositT1",
3: "ActionDepositT2",
4: "ActionDepositT3",
5: "ActionDepositT4",
6: "ActionDepositT5",
7: "ActionStakeQCK",
8: "ActionSignalIntent",
9: "ActionQSGov",
10: "ActionGbP",
11: "ActionOsmosis",
}
var Action_value = map[string]int32{
"ActionUndefined": 0,
"ActionInitialClaim": 1,
"ActionDepositT1": 2,
"ActionDepositT2": 3,
"ActionDepositT3": 4,
"ActionDepositT4": 5,
"ActionDepositT5": 6,
"ActionStakeQCK": 7,
"ActionSignalIntent": 8,
"ActionQSGov": 9,
"ActionGbP": 10,
"ActionOsmosis": 11,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var Status_name = map[int32]string{
0: "StatusUndefined",
1: "StatusActive",
2: "StatusFuture",
3: "StatusExpired",
}
var Status_value = map[string]int32{
"StatusUndefined": 0,
"StatusActive": 1,
"StatusFuture": 2,
"StatusExpired": 3,
}
Functions ¶
func GetKeyClaimRecord ¶
func GetKeyClaimRecord(chainID string, addr sdk.AccAddress) []byte
func GetKeyZoneDrop ¶
func GetPrefixClaimRecord ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamTable for participationrewards module.
func RegisterInterfaces ¶ added in v0.6.2
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.6.2
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgHandler ¶ added in v0.6.0
RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgHandlerClient ¶ added in v0.6.0
RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.
func RegisterMsgHandlerFromEndpoint ¶ added in v0.6.0
func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMsgHandlerServer ¶ added in v0.6.0
RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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{}
AccountKeeper defines the contract required for account APIs.
type Action ¶
type Action int32
Action is used as an enum to denote specific actions or tasks.
const ( // Undefined action (per protobuf spec) ActionUndefined Action = 0 // Initial claim action ActionInitialClaim Action = 1 // Deposit tier 1 (e.g. > 5% of base_value) ActionDepositT1 Action = 2 // Deposit tier 2 (e.g. > 10% of base_value) ActionDepositT2 Action = 3 // Deposit tier 3 (e.g. > 15% of base_value) ActionDepositT3 Action = 4 // Deposit tier 4 (e.g. > 22% of base_value) ActionDepositT4 Action = 5 // Deposit tier 5 (e.g. > 30% of base_value) ActionDepositT5 Action = 6 // Active QCK delegation ActionStakeQCK Action = 7 // Intent is set ActionSignalIntent Action = 8 // Cast governance vote on QS ActionQSGov Action = 9 // Governance By Proxy (GbP): cast vote on remote zone ActionGbP Action = 10 // Provide liquidity on Osmosis ActionOsmosis Action = 11 )
func (Action) EnumDescriptor ¶
type BankKeeper ¶
type BankKeeper interface{}
BankKeeper defines the contract needed to be fulfilled for banking and supply dependencies.
type ClaimRecord ¶
type ClaimRecord struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// Protobuf3 does not allow enum as map key
ActionsCompleted map[int32]*CompletedAction `` /* 198-byte string literal not displayed */
MaxAllocation uint64 `protobuf:"varint,4,opt,name=max_allocation,json=maxAllocation,proto3" json:"max_allocation,omitempty"`
BaseValue uint64 `protobuf:"varint,5,opt,name=base_value,json=baseValue,proto3" json:"base_value,omitempty"`
}
ClaimRecord represents a users' claim (including completed claims) for a given zone.
func (*ClaimRecord) Descriptor ¶
func (*ClaimRecord) Descriptor() ([]byte, []int)
func (*ClaimRecord) Marshal ¶
func (m *ClaimRecord) Marshal() (dAtA []byte, err 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) ValidateBasic ¶ added in v0.6.0
func (cr ClaimRecord) ValidateBasic() 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 CompletedAction ¶
type CompletedAction struct {
CompleteTime time.Time `protobuf:"bytes,1,opt,name=complete_time,json=completeTime,proto3,stdtime" json:"complete_time" yaml:"complete_time"`
ClaimAmount uint64 `protobuf:"varint,2,opt,name=claim_amount,json=claimAmount,proto3" json:"claim_amount,omitempty"`
}
CompletedAction represents a claim action completed by the user.
func (*CompletedAction) Descriptor ¶
func (*CompletedAction) Descriptor() ([]byte, []int)
func (*CompletedAction) Marshal ¶
func (m *CompletedAction) Marshal() (dAtA []byte, err error)
func (*CompletedAction) MarshalToSizedBuffer ¶
func (m *CompletedAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CompletedAction) ProtoMessage ¶
func (*CompletedAction) ProtoMessage()
func (*CompletedAction) Reset ¶
func (m *CompletedAction) Reset()
func (*CompletedAction) Size ¶
func (m *CompletedAction) Size() (n int)
func (*CompletedAction) String ¶
func (m *CompletedAction) String() string
func (*CompletedAction) Unmarshal ¶
func (m *CompletedAction) Unmarshal(dAtA []byte) error
func (*CompletedAction) XXX_DiscardUnknown ¶
func (m *CompletedAction) XXX_DiscardUnknown()
func (*CompletedAction) XXX_Marshal ¶
func (m *CompletedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompletedAction) XXX_Merge ¶
func (m *CompletedAction) XXX_Merge(src proto.Message)
func (*CompletedAction) XXX_Size ¶
func (m *CompletedAction) XXX_Size() int
func (*CompletedAction) XXX_Unmarshal ¶
func (m *CompletedAction) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
ZoneDrops []*ZoneDrop `protobuf:"bytes,2,rep,name=zone_drops,json=zoneDrops,proto3" json:"zone_drops,omitempty"`
ClaimRecords []*ClaimRecord `protobuf:"bytes,3,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records,omitempty"`
}
GenesisState defines the airdrop module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesis returns the default ics genesis state
func GetGenesisStateFromAppState ¶ added in v0.6.6
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/bank GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, zoneDrops []*ZoneDrop, claimRecords []*ClaimRecord) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 ¶ added in v0.9.0
func (gs GenesisState) Validate() error
ValidateGenesis validates the provided genesis state to ensure the expected invariants hold.
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 MsgClaim ¶ added in v0.6.0
type MsgClaim struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
Action int64 `protobuf:"varint,2,opt,name=action,proto3" json:"action,omitempty" yaml:"action"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
Proofs []*types.Proof `protobuf:"bytes,4,rep,name=proofs,proto3" json:"proofs,omitempty" yaml:"proofs"`
}
func NewMsgClaim ¶ added in v0.6.0
NewMsgClaim constructs a msg to claim from a zone airdrop.
func (*MsgClaim) Descriptor ¶ added in v0.6.0
func (MsgClaim) GetSignBytes ¶ added in v0.6.0
GetSignBytes implements Msg.
func (MsgClaim) GetSigners ¶ added in v0.6.0
func (msg MsgClaim) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgClaim) MarshalToSizedBuffer ¶ added in v0.6.0
func (*MsgClaim) ProtoMessage ¶ added in v0.6.0
func (*MsgClaim) ProtoMessage()
func (MsgClaim) ValidateBasic ¶ added in v0.6.0
ValidateBasic implements Msg.
func (*MsgClaim) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgClaim) XXX_DiscardUnknown()
func (*MsgClaim) XXX_Marshal ¶ added in v0.6.0
func (*MsgClaim) XXX_Unmarshal ¶ added in v0.6.0
type MsgClaimResponse ¶ added in v0.6.0
type MsgClaimResponse struct {
Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty" yaml:"amount"`
}
func (*MsgClaimResponse) Descriptor ¶ added in v0.6.0
func (*MsgClaimResponse) Descriptor() ([]byte, []int)
func (*MsgClaimResponse) Marshal ¶ added in v0.6.0
func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgClaimResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgClaimResponse) ProtoMessage()
func (*MsgClaimResponse) Reset ¶ added in v0.6.0
func (m *MsgClaimResponse) Reset()
func (*MsgClaimResponse) Size ¶ added in v0.6.0
func (m *MsgClaimResponse) Size() (n int)
func (*MsgClaimResponse) String ¶ added in v0.6.0
func (m *MsgClaimResponse) String() string
func (*MsgClaimResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgClaimResponse) XXX_DiscardUnknown()
func (*MsgClaimResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
func (*MsgClaimResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgClaimResponse) XXX_Size() int
func (*MsgClaimResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, 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 MsgServer ¶
type MsgServer interface {
Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error)
}
MsgServer is the server API for Msg service.
type Params ¶
type Params struct {
}
Params holds parameters for the airdrop module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAccountBalanceRequest ¶ added in v0.6.0
type QueryAccountBalanceRequest struct {
// chain_id identifies the zone.
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
}
QueryAccountBalanceRequest is the request type for Query/AccountBalance RPC method.
func (*QueryAccountBalanceRequest) Descriptor ¶ added in v0.6.0
func (*QueryAccountBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryAccountBalanceRequest) Marshal ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountBalanceRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountBalanceRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountBalanceRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryAccountBalanceRequest) ProtoMessage()
func (*QueryAccountBalanceRequest) Reset ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) Reset()
func (*QueryAccountBalanceRequest) Size ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) Size() (n int)
func (*QueryAccountBalanceRequest) String ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) String() string
func (*QueryAccountBalanceRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountBalanceRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) XXX_DiscardUnknown()
func (*QueryAccountBalanceRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountBalanceRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryAccountBalanceRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) XXX_Size() int
func (*QueryAccountBalanceRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryAccountBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryAccountBalanceResponse ¶ added in v0.6.0
type QueryAccountBalanceResponse struct {
AccountBalance *types.Coin `` /* 126-byte string literal not displayed */
}
QueryAccountBalanceResponse is the response type for Query/AccountBalance RPC method.
func (*QueryAccountBalanceResponse) Descriptor ¶ added in v0.6.0
func (*QueryAccountBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryAccountBalanceResponse) Marshal ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountBalanceResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountBalanceResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountBalanceResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryAccountBalanceResponse) ProtoMessage()
func (*QueryAccountBalanceResponse) Reset ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) Reset()
func (*QueryAccountBalanceResponse) Size ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) Size() (n int)
func (*QueryAccountBalanceResponse) String ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) String() string
func (*QueryAccountBalanceResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountBalanceResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) XXX_DiscardUnknown()
func (*QueryAccountBalanceResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountBalanceResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryAccountBalanceResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) XXX_Size() int
func (*QueryAccountBalanceResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryAccountBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryClaimRecordRequest ¶
type QueryClaimRecordRequest struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
QueryClaimRecordRequest is the request type for Query/ClaimRecord RPC method.
func (*QueryClaimRecordRequest) Descriptor ¶
func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int)
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,omitempty" yaml:"claim_record"`
}
QueryClaimRecordResponse is the response type for Query/ClaimRecord RPC method.
func (*QueryClaimRecordResponse) Descriptor ¶
func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int)
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 QueryClaimRecordsRequest ¶
type QueryClaimRecordsRequest struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryClaimRecordsRequest is the request type for Query/ClaimRecords RPC method.
func (*QueryClaimRecordsRequest) Descriptor ¶
func (*QueryClaimRecordsRequest) Descriptor() ([]byte, []int)
func (*QueryClaimRecordsRequest) Marshal ¶
func (m *QueryClaimRecordsRequest) Marshal() (dAtA []byte, err error)
func (*QueryClaimRecordsRequest) MarshalTo ¶
func (m *QueryClaimRecordsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimRecordsRequest) MarshalToSizedBuffer ¶
func (m *QueryClaimRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimRecordsRequest) ProtoMessage ¶
func (*QueryClaimRecordsRequest) ProtoMessage()
func (*QueryClaimRecordsRequest) Reset ¶
func (m *QueryClaimRecordsRequest) Reset()
func (*QueryClaimRecordsRequest) Size ¶
func (m *QueryClaimRecordsRequest) Size() (n int)
func (*QueryClaimRecordsRequest) String ¶
func (m *QueryClaimRecordsRequest) String() string
func (*QueryClaimRecordsRequest) Unmarshal ¶
func (m *QueryClaimRecordsRequest) Unmarshal(dAtA []byte) error
func (*QueryClaimRecordsRequest) XXX_DiscardUnknown ¶
func (m *QueryClaimRecordsRequest) XXX_DiscardUnknown()
func (*QueryClaimRecordsRequest) XXX_Marshal ¶
func (m *QueryClaimRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimRecordsRequest) XXX_Merge ¶
func (m *QueryClaimRecordsRequest) XXX_Merge(src proto.Message)
func (*QueryClaimRecordsRequest) XXX_Size ¶
func (m *QueryClaimRecordsRequest) XXX_Size() int
func (*QueryClaimRecordsRequest) XXX_Unmarshal ¶
func (m *QueryClaimRecordsRequest) XXX_Unmarshal(b []byte) error
type QueryClaimRecordsResponse ¶
type QueryClaimRecordsResponse struct {
ClaimRecords []ClaimRecord `protobuf:"bytes,1,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryClaimRecordsResponse is the response type for Query/ClaimRecords RPC method.
func (*QueryClaimRecordsResponse) Descriptor ¶
func (*QueryClaimRecordsResponse) Descriptor() ([]byte, []int)
func (*QueryClaimRecordsResponse) Marshal ¶
func (m *QueryClaimRecordsResponse) Marshal() (dAtA []byte, err error)
func (*QueryClaimRecordsResponse) MarshalTo ¶
func (m *QueryClaimRecordsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimRecordsResponse) MarshalToSizedBuffer ¶
func (m *QueryClaimRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimRecordsResponse) ProtoMessage ¶
func (*QueryClaimRecordsResponse) ProtoMessage()
func (*QueryClaimRecordsResponse) Reset ¶
func (m *QueryClaimRecordsResponse) Reset()
func (*QueryClaimRecordsResponse) Size ¶
func (m *QueryClaimRecordsResponse) Size() (n int)
func (*QueryClaimRecordsResponse) String ¶
func (m *QueryClaimRecordsResponse) String() string
func (*QueryClaimRecordsResponse) Unmarshal ¶
func (m *QueryClaimRecordsResponse) Unmarshal(dAtA []byte) error
func (*QueryClaimRecordsResponse) XXX_DiscardUnknown ¶
func (m *QueryClaimRecordsResponse) XXX_DiscardUnknown()
func (*QueryClaimRecordsResponse) XXX_Marshal ¶
func (m *QueryClaimRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimRecordsResponse) XXX_Merge ¶
func (m *QueryClaimRecordsResponse) XXX_Merge(src proto.Message)
func (*QueryClaimRecordsResponse) XXX_Size ¶
func (m *QueryClaimRecordsResponse) XXX_Size() int
func (*QueryClaimRecordsResponse) XXX_Unmarshal ¶
func (m *QueryClaimRecordsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// Params returns the total set of airdrop parameters.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// ZoneDrop returns the details of the specified zone airdrop.
ZoneDrop(ctx context.Context, in *QueryZoneDropRequest, opts ...grpc.CallOption) (*QueryZoneDropResponse, error)
// AccountBalance returns the module account balance of the specified zone.
AccountBalance(ctx context.Context, in *QueryAccountBalanceRequest, opts ...grpc.CallOption) (*QueryAccountBalanceResponse, error)
// ZoneDrops returns all zone airdrops of the specified status.
ZoneDrops(ctx context.Context, in *QueryZoneDropsRequest, opts ...grpc.CallOption) (*QueryZoneDropsResponse, error)
// ClaimRecord returns the claim record that corresponds to the given zone and
// address.
ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error)
// ClaimRecords returns all the claim records of the given zone.
ClaimRecords(ctx context.Context, in *QueryClaimRecordsRequest, opts ...grpc.CallOption) (*QueryClaimRecordsResponse, 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 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) 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 {
// Params returns the total set of airdrop parameters.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// ZoneDrop returns the details of the specified zone airdrop.
ZoneDrop(context.Context, *QueryZoneDropRequest) (*QueryZoneDropResponse, error)
// AccountBalance returns the module account balance of the specified zone.
AccountBalance(context.Context, *QueryAccountBalanceRequest) (*QueryAccountBalanceResponse, error)
// ZoneDrops returns all zone airdrops of the specified status.
ZoneDrops(context.Context, *QueryZoneDropsRequest) (*QueryZoneDropsResponse, error)
// ClaimRecord returns the claim record that corresponds to the given zone and
// address.
ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
// ClaimRecords returns all the claim records of the given zone.
ClaimRecords(context.Context, *QueryClaimRecordsRequest) (*QueryClaimRecordsResponse, error)
}
QueryServer is the server API for Query service.
type QueryZoneDropRequest ¶
type QueryZoneDropRequest struct {
// chain_id identifies the zone.
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
}
QueryZoneDropRequest is the request type for Query/ZoneDrop RPC method.
func (*QueryZoneDropRequest) Descriptor ¶
func (*QueryZoneDropRequest) Descriptor() ([]byte, []int)
func (*QueryZoneDropRequest) Marshal ¶
func (m *QueryZoneDropRequest) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropRequest) MarshalTo ¶
func (m *QueryZoneDropRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropRequest) MarshalToSizedBuffer ¶
func (m *QueryZoneDropRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropRequest) ProtoMessage ¶
func (*QueryZoneDropRequest) ProtoMessage()
func (*QueryZoneDropRequest) Reset ¶
func (m *QueryZoneDropRequest) Reset()
func (*QueryZoneDropRequest) Size ¶
func (m *QueryZoneDropRequest) Size() (n int)
func (*QueryZoneDropRequest) String ¶
func (m *QueryZoneDropRequest) String() string
func (*QueryZoneDropRequest) Unmarshal ¶
func (m *QueryZoneDropRequest) Unmarshal(dAtA []byte) error
func (*QueryZoneDropRequest) XXX_DiscardUnknown ¶
func (m *QueryZoneDropRequest) XXX_DiscardUnknown()
func (*QueryZoneDropRequest) XXX_Marshal ¶
func (m *QueryZoneDropRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropRequest) XXX_Merge ¶
func (m *QueryZoneDropRequest) XXX_Merge(src proto.Message)
func (*QueryZoneDropRequest) XXX_Size ¶
func (m *QueryZoneDropRequest) XXX_Size() int
func (*QueryZoneDropRequest) XXX_Unmarshal ¶
func (m *QueryZoneDropRequest) XXX_Unmarshal(b []byte) error
type QueryZoneDropResponse ¶
type QueryZoneDropResponse struct {
ZoneDrop ZoneDrop `protobuf:"bytes,1,opt,name=zone_drop,json=zoneDrop,proto3" json:"zone_drop"`
}
QueryZoneDropResponse is the response type for Query/ZoneDrop RPC method.
func (*QueryZoneDropResponse) Descriptor ¶
func (*QueryZoneDropResponse) Descriptor() ([]byte, []int)
func (*QueryZoneDropResponse) Marshal ¶
func (m *QueryZoneDropResponse) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropResponse) MarshalTo ¶
func (m *QueryZoneDropResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropResponse) MarshalToSizedBuffer ¶
func (m *QueryZoneDropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropResponse) ProtoMessage ¶
func (*QueryZoneDropResponse) ProtoMessage()
func (*QueryZoneDropResponse) Reset ¶
func (m *QueryZoneDropResponse) Reset()
func (*QueryZoneDropResponse) Size ¶
func (m *QueryZoneDropResponse) Size() (n int)
func (*QueryZoneDropResponse) String ¶
func (m *QueryZoneDropResponse) String() string
func (*QueryZoneDropResponse) Unmarshal ¶
func (m *QueryZoneDropResponse) Unmarshal(dAtA []byte) error
func (*QueryZoneDropResponse) XXX_DiscardUnknown ¶
func (m *QueryZoneDropResponse) XXX_DiscardUnknown()
func (*QueryZoneDropResponse) XXX_Marshal ¶
func (m *QueryZoneDropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropResponse) XXX_Merge ¶
func (m *QueryZoneDropResponse) XXX_Merge(src proto.Message)
func (*QueryZoneDropResponse) XXX_Size ¶
func (m *QueryZoneDropResponse) XXX_Size() int
func (*QueryZoneDropResponse) XXX_Unmarshal ¶
func (m *QueryZoneDropResponse) XXX_Unmarshal(b []byte) error
type QueryZoneDropsRequest ¶
type QueryZoneDropsRequest struct {
// status enables to query zone airdrops matching a given status:
// - Active
// - Future
// - Expired
Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=quicksilver.airdrop.v1.Status" json:"status,omitempty"`
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryZoneDropsRequest is the request type for Query/ZoneDrops RPC method.
func (*QueryZoneDropsRequest) Descriptor ¶
func (*QueryZoneDropsRequest) Descriptor() ([]byte, []int)
func (*QueryZoneDropsRequest) Marshal ¶
func (m *QueryZoneDropsRequest) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropsRequest) MarshalTo ¶
func (m *QueryZoneDropsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropsRequest) MarshalToSizedBuffer ¶
func (m *QueryZoneDropsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropsRequest) ProtoMessage ¶
func (*QueryZoneDropsRequest) ProtoMessage()
func (*QueryZoneDropsRequest) Reset ¶
func (m *QueryZoneDropsRequest) Reset()
func (*QueryZoneDropsRequest) Size ¶
func (m *QueryZoneDropsRequest) Size() (n int)
func (*QueryZoneDropsRequest) String ¶
func (m *QueryZoneDropsRequest) String() string
func (*QueryZoneDropsRequest) Unmarshal ¶
func (m *QueryZoneDropsRequest) Unmarshal(dAtA []byte) error
func (*QueryZoneDropsRequest) XXX_DiscardUnknown ¶
func (m *QueryZoneDropsRequest) XXX_DiscardUnknown()
func (*QueryZoneDropsRequest) XXX_Marshal ¶
func (m *QueryZoneDropsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropsRequest) XXX_Merge ¶
func (m *QueryZoneDropsRequest) XXX_Merge(src proto.Message)
func (*QueryZoneDropsRequest) XXX_Size ¶
func (m *QueryZoneDropsRequest) XXX_Size() int
func (*QueryZoneDropsRequest) XXX_Unmarshal ¶
func (m *QueryZoneDropsRequest) XXX_Unmarshal(b []byte) error
type QueryZoneDropsResponse ¶
type QueryZoneDropsResponse struct {
ZoneDrops []ZoneDrop `protobuf:"bytes,1,rep,name=zone_drops,json=zoneDrops,proto3" json:"zone_drops"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryZoneDropResponse is the response type for Query/ZoneDrops RPC method.
func (*QueryZoneDropsResponse) Descriptor ¶
func (*QueryZoneDropsResponse) Descriptor() ([]byte, []int)
func (*QueryZoneDropsResponse) Marshal ¶
func (m *QueryZoneDropsResponse) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropsResponse) MarshalTo ¶
func (m *QueryZoneDropsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropsResponse) MarshalToSizedBuffer ¶
func (m *QueryZoneDropsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropsResponse) ProtoMessage ¶
func (*QueryZoneDropsResponse) ProtoMessage()
func (*QueryZoneDropsResponse) Reset ¶
func (m *QueryZoneDropsResponse) Reset()
func (*QueryZoneDropsResponse) Size ¶
func (m *QueryZoneDropsResponse) Size() (n int)
func (*QueryZoneDropsResponse) String ¶
func (m *QueryZoneDropsResponse) String() string
func (*QueryZoneDropsResponse) Unmarshal ¶
func (m *QueryZoneDropsResponse) Unmarshal(dAtA []byte) error
func (*QueryZoneDropsResponse) XXX_DiscardUnknown ¶
func (m *QueryZoneDropsResponse) XXX_DiscardUnknown()
func (*QueryZoneDropsResponse) XXX_Marshal ¶
func (m *QueryZoneDropsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropsResponse) XXX_Merge ¶
func (m *QueryZoneDropsResponse) XXX_Merge(src proto.Message)
func (*QueryZoneDropsResponse) XXX_Size ¶
func (m *QueryZoneDropsResponse) XXX_Size() int
func (*QueryZoneDropsResponse) XXX_Unmarshal ¶
func (m *QueryZoneDropsResponse) XXX_Unmarshal(b []byte) error
type RegisterZoneDropProposal ¶ added in v0.6.0
type RegisterZoneDropProposal struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
ZoneDrop *ZoneDrop `protobuf:"bytes,3,opt,name=zone_drop,json=zoneDrop,proto3" json:"zone_drop,omitempty" yaml:"zone_drop"`
ClaimRecords []byte `protobuf:"bytes,4,opt,name=claim_records,json=claimRecords,proto3" json:"claim_records,omitempty" yaml:"claim_records"`
}
func (*RegisterZoneDropProposal) Descriptor ¶ added in v0.6.0
func (*RegisterZoneDropProposal) Descriptor() ([]byte, []int)
func (RegisterZoneDropProposal) GetDescription ¶ added in v0.6.0
func (m RegisterZoneDropProposal) GetDescription() string
func (RegisterZoneDropProposal) GetTitle ¶ added in v0.6.0
func (m RegisterZoneDropProposal) GetTitle() string
func (*RegisterZoneDropProposal) Marshal ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) Marshal() (dAtA []byte, err error)
func (*RegisterZoneDropProposal) MarshalTo ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) MarshalTo(dAtA []byte) (int, error)
func (*RegisterZoneDropProposal) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (RegisterZoneDropProposal) ProposalRoute ¶ added in v0.6.0
func (m RegisterZoneDropProposal) ProposalRoute() string
func (RegisterZoneDropProposal) ProposalType ¶ added in v0.6.0
func (m RegisterZoneDropProposal) ProposalType() string
func (*RegisterZoneDropProposal) ProtoMessage ¶ added in v0.6.0
func (*RegisterZoneDropProposal) ProtoMessage()
func (*RegisterZoneDropProposal) Reset ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) Reset()
func (*RegisterZoneDropProposal) Size ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) Size() (n int)
func (RegisterZoneDropProposal) String ¶ added in v0.6.0
func (m RegisterZoneDropProposal) String() string
String implements the Stringer interface.
func (*RegisterZoneDropProposal) Unmarshal ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) Unmarshal(dAtA []byte) error
func (RegisterZoneDropProposal) ValidateBasic ¶ added in v0.6.0
func (m RegisterZoneDropProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks.
ZoneDrop is validated in HandleRegisterZoneDropProposal. ClaimRecords are validated in HandleRegisterZoneDropProposal.
HandleRegisterZoneDropProposal does validation checks as ZoneDrop is related to ClaimRecords. ClaimRecords are in compressed []byte slice format and must be decompressed in order to be validated.
func (*RegisterZoneDropProposal) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) XXX_DiscardUnknown()
func (*RegisterZoneDropProposal) XXX_Marshal ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterZoneDropProposal) XXX_Merge ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) XXX_Merge(src proto.Message)
func (*RegisterZoneDropProposal) XXX_Size ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) XXX_Size() int
func (*RegisterZoneDropProposal) XXX_Unmarshal ¶ added in v0.6.0
func (m *RegisterZoneDropProposal) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface{}
StakingKeeper defines the contract for staking APIs.
type Status ¶ added in v0.6.0
type Status int32
Status is used as an enum to denote zone status.
func (Status) EnumDescriptor ¶ added in v0.6.0
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Claim ¶ added in v0.6.0
func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AccountBalance ¶ added in v0.6.0
func (*UnimplementedQueryServer) AccountBalance(ctx context.Context, req *QueryAccountBalanceRequest) (*QueryAccountBalanceResponse, error)
func (*UnimplementedQueryServer) ClaimRecord ¶
func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
func (*UnimplementedQueryServer) ClaimRecords ¶
func (*UnimplementedQueryServer) ClaimRecords(ctx context.Context, req *QueryClaimRecordsRequest) (*QueryClaimRecordsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) ZoneDrop ¶
func (*UnimplementedQueryServer) ZoneDrop(ctx context.Context, req *QueryZoneDropRequest) (*QueryZoneDropResponse, error)
func (*UnimplementedQueryServer) ZoneDrops ¶
func (*UnimplementedQueryServer) ZoneDrops(ctx context.Context, req *QueryZoneDropsRequest) (*QueryZoneDropsResponse, error)
type ZoneDrop ¶
type ZoneDrop struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"`
Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"`
Decay time.Duration `protobuf:"bytes,4,opt,name=decay,proto3,stdduration" json:"decay,omitempty" yaml:"decay"`
Allocation uint64 `protobuf:"varint,5,opt,name=allocation,proto3" json:"allocation,omitempty"`
Actions []github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,rep,name=actions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"actions"`
IsConcluded bool `protobuf:"varint,7,opt,name=is_concluded,json=isConcluded,proto3" json:"is_concluded,omitempty"`
}
ZoneDrop represents an airdrop for a specific zone.
func (*ZoneDrop) Descriptor ¶
func (*ZoneDrop) MarshalToSizedBuffer ¶
func (*ZoneDrop) ProtoMessage ¶
func (*ZoneDrop) ProtoMessage()
func (ZoneDrop) ValidateBasic ¶ added in v0.6.0
func (*ZoneDrop) XXX_DiscardUnknown ¶
func (m *ZoneDrop) XXX_DiscardUnknown()