Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ClaimedMerkledropIndexKey(id, index uint64) []byte
- func ClaimedMerkledropKey(id uint64) []byte
- func ConvertProofs(proofs []string) [][]byte
- func IsValidProof(index uint64, account sdk.AccAddress, amount sdk.Int, root []byte, ...) bool
- func LastMerkledropIDKey() []byte
- func MerkledropEndHeightAndIDKey(height int64, id uint64) []byte
- func MerkledropEndHeightKey(height int64) []byte
- func MerkledropKey(id uint64) []byte
- func MerkledropOwnerKey(id uint64, owner sdk.AccAddress) []byte
- func NewUpdateFeesProposal(title, description string, creationFee sdk.Coin) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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)
- func ValidateGenesis(data GenesisState) error
- type AccountKeeper
- type BankKeeper
- type DistrKeeper
- type EventClaim
- func (*EventClaim) Descriptor() ([]byte, []int)
- func (m *EventClaim) Marshal() (dAtA []byte, err error)
- func (m *EventClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *EventClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventClaim) ProtoMessage()
- func (m *EventClaim) Reset()
- func (m *EventClaim) Size() (n int)
- func (m *EventClaim) String() string
- func (m *EventClaim) Unmarshal(dAtA []byte) error
- func (m *EventClaim) XXX_DiscardUnknown()
- func (m *EventClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventClaim) XXX_Merge(src proto.Message)
- func (m *EventClaim) XXX_Size() int
- func (m *EventClaim) XXX_Unmarshal(b []byte) error
- type EventCreate
- func (*EventCreate) Descriptor() ([]byte, []int)
- func (m *EventCreate) Marshal() (dAtA []byte, err error)
- func (m *EventCreate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreate) ProtoMessage()
- func (m *EventCreate) Reset()
- func (m *EventCreate) Size() (n int)
- func (m *EventCreate) String() string
- func (m *EventCreate) Unmarshal(dAtA []byte) error
- func (m *EventCreate) XXX_DiscardUnknown()
- func (m *EventCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreate) XXX_Merge(src proto.Message)
- func (m *EventCreate) XXX_Size() int
- func (m *EventCreate) XXX_Unmarshal(b []byte) error
- type EventWithdraw
- func (*EventWithdraw) Descriptor() ([]byte, []int)
- func (m *EventWithdraw) Marshal() (dAtA []byte, err error)
- func (m *EventWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *EventWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventWithdraw) ProtoMessage()
- func (m *EventWithdraw) Reset()
- func (m *EventWithdraw) Size() (n int)
- func (m *EventWithdraw) String() string
- func (m *EventWithdraw) Unmarshal(dAtA []byte) error
- func (m *EventWithdraw) XXX_DiscardUnknown()
- func (m *EventWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventWithdraw) XXX_Merge(src proto.Message)
- func (m *EventWithdraw) XXX_Size() int
- func (m *EventWithdraw) 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 (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 Indexes
- func (*Indexes) Descriptor() ([]byte, []int)
- func (m *Indexes) Marshal() (dAtA []byte, err error)
- func (m *Indexes) MarshalTo(dAtA []byte) (int, error)
- func (m *Indexes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Indexes) ProtoMessage()
- func (m *Indexes) Reset()
- func (m *Indexes) Size() (n int)
- func (m *Indexes) String() string
- func (m *Indexes) Unmarshal(dAtA []byte) error
- func (m *Indexes) XXX_DiscardUnknown()
- func (m *Indexes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Indexes) XXX_Merge(src proto.Message)
- func (m *Indexes) XXX_Size() int
- func (m *Indexes) XXX_Unmarshal(b []byte) error
- type Merkledrop
- func (*Merkledrop) Descriptor() ([]byte, []int)
- func (m Merkledrop) GetAmount() string
- func (m Merkledrop) GetMerkleRoot() string
- func (m *Merkledrop) Marshal() (dAtA []byte, err error)
- func (m *Merkledrop) MarshalTo(dAtA []byte) (int, error)
- func (m *Merkledrop) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Merkledrop) ProtoMessage()
- func (m *Merkledrop) Reset()
- func (m *Merkledrop) Size() (n int)
- func (m Merkledrop) String() string
- func (m *Merkledrop) Unmarshal(dAtA []byte) error
- func (m *Merkledrop) XXX_DiscardUnknown()
- func (m *Merkledrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Merkledrop) XXX_Merge(src proto.Message)
- func (m *Merkledrop) XXX_Size() int
- func (m *Merkledrop) XXX_Unmarshal(b []byte) error
- type MerkledropI
- 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 MsgCreate
- func (*MsgCreate) Descriptor() ([]byte, []int)
- func (msg MsgCreate) GetSignBytes() []byte
- func (msg MsgCreate) GetSigners() []sdk.AccAddress
- func (m *MsgCreate) Marshal() (dAtA []byte, err error)
- func (m *MsgCreate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreate) ProtoMessage()
- func (m *MsgCreate) Reset()
- func (msg MsgCreate) Route() string
- func (m *MsgCreate) Size() (n int)
- func (m *MsgCreate) String() string
- func (msg MsgCreate) Type() string
- func (m *MsgCreate) Unmarshal(dAtA []byte) error
- func (msg MsgCreate) ValidateBasic() error
- func (m *MsgCreate) XXX_DiscardUnknown()
- func (m *MsgCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreate) XXX_Merge(src proto.Message)
- func (m *MsgCreate) XXX_Size() int
- func (m *MsgCreate) XXX_Unmarshal(b []byte) error
- type MsgCreateResponse
- func (*MsgCreateResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResponse) ProtoMessage()
- func (m *MsgCreateResponse) Reset()
- func (m *MsgCreateResponse) Size() (n int)
- func (m *MsgCreateResponse) String() string
- func (m *MsgCreateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResponse) XXX_DiscardUnknown()
- func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateResponse) XXX_Size() int
- func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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 QueryClient
- type QueryIndexClaimedRequest
- func (*QueryIndexClaimedRequest) Descriptor() ([]byte, []int)
- func (m *QueryIndexClaimedRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryIndexClaimedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIndexClaimedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIndexClaimedRequest) ProtoMessage()
- func (m *QueryIndexClaimedRequest) Reset()
- func (m *QueryIndexClaimedRequest) Size() (n int)
- func (m *QueryIndexClaimedRequest) String() string
- func (m *QueryIndexClaimedRequest) Unmarshal(dAtA []byte) error
- func (m *QueryIndexClaimedRequest) XXX_DiscardUnknown()
- func (m *QueryIndexClaimedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIndexClaimedRequest) XXX_Merge(src proto.Message)
- func (m *QueryIndexClaimedRequest) XXX_Size() int
- func (m *QueryIndexClaimedRequest) XXX_Unmarshal(b []byte) error
- type QueryIndexClaimedResponse
- func (*QueryIndexClaimedResponse) Descriptor() ([]byte, []int)
- func (m *QueryIndexClaimedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryIndexClaimedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIndexClaimedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIndexClaimedResponse) ProtoMessage()
- func (m *QueryIndexClaimedResponse) Reset()
- func (m *QueryIndexClaimedResponse) Size() (n int)
- func (m *QueryIndexClaimedResponse) String() string
- func (m *QueryIndexClaimedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryIndexClaimedResponse) XXX_DiscardUnknown()
- func (m *QueryIndexClaimedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIndexClaimedResponse) XXX_Merge(src proto.Message)
- func (m *QueryIndexClaimedResponse) XXX_Size() int
- func (m *QueryIndexClaimedResponse) XXX_Unmarshal(b []byte) error
- type QueryMerkledropRequest
- func (*QueryMerkledropRequest) Descriptor() ([]byte, []int)
- func (m *QueryMerkledropRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMerkledropRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMerkledropRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMerkledropRequest) ProtoMessage()
- func (m *QueryMerkledropRequest) Reset()
- func (m *QueryMerkledropRequest) Size() (n int)
- func (m *QueryMerkledropRequest) String() string
- func (m *QueryMerkledropRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMerkledropRequest) XXX_DiscardUnknown()
- func (m *QueryMerkledropRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMerkledropRequest) XXX_Merge(src proto.Message)
- func (m *QueryMerkledropRequest) XXX_Size() int
- func (m *QueryMerkledropRequest) XXX_Unmarshal(b []byte) error
- type QueryMerkledropResponse
- func (*QueryMerkledropResponse) Descriptor() ([]byte, []int)
- func (m *QueryMerkledropResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMerkledropResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMerkledropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMerkledropResponse) ProtoMessage()
- func (m *QueryMerkledropResponse) Reset()
- func (m *QueryMerkledropResponse) Size() (n int)
- func (m *QueryMerkledropResponse) String() string
- func (m *QueryMerkledropResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMerkledropResponse) XXX_DiscardUnknown()
- func (m *QueryMerkledropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMerkledropResponse) XXX_Merge(src proto.Message)
- func (m *QueryMerkledropResponse) XXX_Size() int
- func (m *QueryMerkledropResponse) XXX_Unmarshal(b []byte) error
- 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 UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) IndexClaimed(ctx context.Context, req *QueryIndexClaimedRequest) (*QueryIndexClaimedResponse, error)
- func (*UnimplementedQueryServer) Merkledrop(ctx context.Context, req *QueryMerkledropRequest) (*QueryMerkledropResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- type UpdateFeesProposal
- func (*UpdateFeesProposal) Descriptor() ([]byte, []int)
- func (this *UpdateFeesProposal) Equal(that interface{}) bool
- func (p *UpdateFeesProposal) GetDescription() string
- func (p *UpdateFeesProposal) GetTitle() string
- func (m *UpdateFeesProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateFeesProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateFeesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *UpdateFeesProposal) ProposalRoute() string
- func (p *UpdateFeesProposal) ProposalType() string
- func (*UpdateFeesProposal) ProtoMessage()
- func (m *UpdateFeesProposal) Reset()
- func (m *UpdateFeesProposal) Size() (n int)
- func (p UpdateFeesProposal) String() string
- func (m *UpdateFeesProposal) Unmarshal(dAtA []byte) error
- func (p *UpdateFeesProposal) ValidateBasic() error
- func (m *UpdateFeesProposal) XXX_DiscardUnknown()
- func (m *UpdateFeesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateFeesProposal) XXX_Merge(src proto.Message)
- func (m *UpdateFeesProposal) XXX_Size() int
- func (m *UpdateFeesProposal) XXX_Unmarshal(b []byte) error
- type UpdateFeesProposalWithDeposit
- func (*UpdateFeesProposalWithDeposit) Descriptor() ([]byte, []int)
- func (m *UpdateFeesProposalWithDeposit) Marshal() (dAtA []byte, err error)
- func (m *UpdateFeesProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateFeesProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateFeesProposalWithDeposit) ProtoMessage()
- func (m *UpdateFeesProposalWithDeposit) Reset()
- func (m *UpdateFeesProposalWithDeposit) Size() (n int)
- func (m *UpdateFeesProposalWithDeposit) String() string
- func (m *UpdateFeesProposalWithDeposit) Unmarshal(dAtA []byte) error
- func (m *UpdateFeesProposalWithDeposit) XXX_DiscardUnknown()
- func (m *UpdateFeesProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateFeesProposalWithDeposit) XXX_Merge(src proto.Message)
- func (m *UpdateFeesProposalWithDeposit) XXX_Size() int
- func (m *UpdateFeesProposalWithDeposit) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName is the name of the module ModuleName = "merkledrop" // StoreKey is the string store representation StoreKey string = ModuleName // QuerierRoute is the querier route for the module QuerierRoute string = ModuleName // RouterKey is the msg router key for the module RouterKey string = ModuleName )
const ( TypeMsgCreate = "create" TypeMsgClaim = "claim" )
const ProposalTypeUpdateFees = "UpdateMerkledropFeesProposal"
Variables ¶
var ( ErrMerkledropNotExist = sdkerrors.Register(ModuleName, 1, "merkledrop does not exist") ErrInvalidMerkleRoot = sdkerrors.Register(ModuleName, 2, "invalid merkle root") ErrInvalidCoin = sdkerrors.Register(ModuleName, 3, "invalid coin") ErrAlreadyClaimed = sdkerrors.Register(ModuleName, 4, "merkledrop already claimed") ErrInvalidMerkleProofs = sdkerrors.Register(ModuleName, 5, "invalid merkle proofs") ErrTransferCoins = sdkerrors.Register(ModuleName, 6, "error transfer coins") ErrInvalidOwner = sdkerrors.Register(ModuleName, 7, "invalid owner") ErrInvalidSender = sdkerrors.Register(ModuleName, 8, "invalid sender") ErrInvalidStartHeight = sdkerrors.Register(ModuleName, 9, "invalid start height") ErrInvalidEndHeight = sdkerrors.Register(ModuleName, 10, "invalid end height") ErrMerkledropNotBegun = sdkerrors.Register(ModuleName, 11, "merkledrop not begun") ErrMerkledropExpired = sdkerrors.Register(ModuleName, 12, "merkledrop expired") ErrMerkledropNotExpired = sdkerrors.Register(ModuleName, 13, "merkledrop not expired") ErrAlreadyWithdrawn = sdkerrors.Register(ModuleName, 14, "funds have been already withdrawn") ErrCreationFee = sdkerrors.Register(ModuleName, 15, "cannot deduct creation fee") ErrDeleteMerkledrop = sdkerrors.Register(ModuleName, 16, "failed delete merkledrop") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( PrefixMerkleDrop = []byte{0x01} PrefixMerkleDropByOwner = []byte{0x02} KeyLastMerkleDropId = []byte{0x03} PrefixClaimedMerkleDrop = []byte{0x04} PrefixMerkleDropByEndHeight = []byte{0x10} )
Keys for merkledrop store Items are stored with the following keys => values - 0x01:<merkledropID_bytes>: merkledrop - 0x02:<owner>:<merkledropID_bytes>: merkledrop - 0x03: lastMerkledropID - 0x04:<merkledropID_bytes>:<merkledropIndex>: true - 0x10:<merkedropEndHeight>: merkledropID
var ( ErrInvalidLengthMerkledrop = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMerkledrop = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMerkledrop = 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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
KeyCreationFee = []byte("CreationFee")
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func ClaimedMerkledropKey ¶
func ConvertProofs ¶
func IsValidProof ¶
func LastMerkledropIDKey ¶
func LastMerkledropIDKey() []byte
func MerkledropEndHeightKey ¶
func MerkledropKey ¶
func MerkledropOwnerKey ¶
func MerkledropOwnerKey(id uint64, owner sdk.AccAddress) []byte
func NewUpdateFeesProposal ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the TypeTable for the module
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(name string) sdk.AccAddress
}
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
type DistrKeeper ¶
type EventClaim ¶
type EventClaim struct { MerkledropId uint64 `protobuf:"varint,1,opt,name=merkledrop_id,json=merkledropId,proto3" json:"merkledrop_id,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Coin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=coin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` }
func (*EventClaim) Descriptor ¶
func (*EventClaim) Descriptor() ([]byte, []int)
func (*EventClaim) Marshal ¶
func (m *EventClaim) Marshal() (dAtA []byte, err error)
func (*EventClaim) MarshalToSizedBuffer ¶
func (m *EventClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventClaim) ProtoMessage ¶
func (*EventClaim) ProtoMessage()
func (*EventClaim) Reset ¶
func (m *EventClaim) Reset()
func (*EventClaim) Size ¶
func (m *EventClaim) Size() (n int)
func (*EventClaim) String ¶
func (m *EventClaim) String() string
func (*EventClaim) Unmarshal ¶
func (m *EventClaim) Unmarshal(dAtA []byte) error
func (*EventClaim) XXX_DiscardUnknown ¶
func (m *EventClaim) XXX_DiscardUnknown()
func (*EventClaim) XXX_Marshal ¶
func (m *EventClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventClaim) XXX_Merge ¶
func (m *EventClaim) XXX_Merge(src proto.Message)
func (*EventClaim) XXX_Size ¶
func (m *EventClaim) XXX_Size() int
func (*EventClaim) XXX_Unmarshal ¶
func (m *EventClaim) XXX_Unmarshal(b []byte) error
type EventCreate ¶
type EventCreate struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` MerkledropId uint64 `protobuf:"varint,2,opt,name=merkledrop_id,json=merkledropId,proto3" json:"merkledrop_id,omitempty"` }
func (*EventCreate) Descriptor ¶
func (*EventCreate) Descriptor() ([]byte, []int)
func (*EventCreate) Marshal ¶
func (m *EventCreate) Marshal() (dAtA []byte, err error)
func (*EventCreate) MarshalToSizedBuffer ¶
func (m *EventCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreate) ProtoMessage ¶
func (*EventCreate) ProtoMessage()
func (*EventCreate) Reset ¶
func (m *EventCreate) Reset()
func (*EventCreate) Size ¶
func (m *EventCreate) Size() (n int)
func (*EventCreate) String ¶
func (m *EventCreate) String() string
func (*EventCreate) Unmarshal ¶
func (m *EventCreate) Unmarshal(dAtA []byte) error
func (*EventCreate) XXX_DiscardUnknown ¶
func (m *EventCreate) XXX_DiscardUnknown()
func (*EventCreate) XXX_Marshal ¶
func (m *EventCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreate) XXX_Merge ¶
func (m *EventCreate) XXX_Merge(src proto.Message)
func (*EventCreate) XXX_Size ¶
func (m *EventCreate) XXX_Size() int
func (*EventCreate) XXX_Unmarshal ¶
func (m *EventCreate) XXX_Unmarshal(b []byte) error
type EventWithdraw ¶
type EventWithdraw struct { MerkledropId uint64 `protobuf:"varint,1,opt,name=merkledrop_id,json=merkledropId,proto3" json:"merkledrop_id,omitempty"` Coin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` }
func (*EventWithdraw) Descriptor ¶
func (*EventWithdraw) Descriptor() ([]byte, []int)
func (*EventWithdraw) Marshal ¶
func (m *EventWithdraw) Marshal() (dAtA []byte, err error)
func (*EventWithdraw) MarshalToSizedBuffer ¶
func (m *EventWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventWithdraw) ProtoMessage ¶
func (*EventWithdraw) ProtoMessage()
func (*EventWithdraw) Reset ¶
func (m *EventWithdraw) Reset()
func (*EventWithdraw) Size ¶
func (m *EventWithdraw) Size() (n int)
func (*EventWithdraw) String ¶
func (m *EventWithdraw) String() string
func (*EventWithdraw) Unmarshal ¶
func (m *EventWithdraw) Unmarshal(dAtA []byte) error
func (*EventWithdraw) XXX_DiscardUnknown ¶
func (m *EventWithdraw) XXX_DiscardUnknown()
func (*EventWithdraw) XXX_Marshal ¶
func (m *EventWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventWithdraw) XXX_Merge ¶
func (m *EventWithdraw) XXX_Merge(src proto.Message)
func (*EventWithdraw) XXX_Size ¶
func (m *EventWithdraw) XXX_Size() int
func (*EventWithdraw) XXX_Unmarshal ¶
func (m *EventWithdraw) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { LastMerkledropId uint64 `protobuf:"varint,1,opt,name=last_merkledrop_id,json=lastMerkledropId,proto3" json:"last_merkledrop_id,omitempty"` Merkledrops []Merkledrop `protobuf:"bytes,2,rep,name=merkledrops,proto3" json:"merkledrops"` Indexes []*Indexes `protobuf:"bytes,3,rep,name=indexes,proto3" json:"indexes,omitempty"` Params Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params"` }
func NewGenesisState ¶
func NewGenesisState(lastMdId uint64, mds []Merkledrop, indexes []*Indexes, params Params) 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) 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 Indexes ¶
type Indexes struct { MerkledropId uint64 `protobuf:"varint,1,opt,name=merkledrop_id,json=merkledropId,proto3" json:"merkledrop_id,omitempty" yaml:"mdi"` Index []uint64 `protobuf:"varint,2,rep,packed,name=index,proto3" json:"index,omitempty" yaml:"i"` }
func (*Indexes) Descriptor ¶
func (*Indexes) MarshalToSizedBuffer ¶
func (*Indexes) ProtoMessage ¶
func (*Indexes) ProtoMessage()
func (*Indexes) XXX_DiscardUnknown ¶
func (m *Indexes) XXX_DiscardUnknown()
func (*Indexes) XXX_Marshal ¶
func (*Indexes) XXX_Unmarshal ¶
type Merkledrop ¶
type Merkledrop struct { // merkledrop id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // merkle_root of the merkledrop MerkleRoot string `protobuf:"bytes,2,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty" yaml:"merkle_root"` // merkledrop start height StartHeight int64 `protobuf:"varint,3,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // merkledrop end height EndHeight int64 `protobuf:"varint,4,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` // denom to distribuite Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` // amount to distribuite Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` // claimed amount Claimed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=claimed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"claimed"` // merkledrop's owner Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` }
func (*Merkledrop) Descriptor ¶
func (*Merkledrop) Descriptor() ([]byte, []int)
func (Merkledrop) GetAmount ¶
func (m Merkledrop) GetAmount() string
func (Merkledrop) GetMerkleRoot ¶
func (m Merkledrop) GetMerkleRoot() string
func (*Merkledrop) Marshal ¶
func (m *Merkledrop) Marshal() (dAtA []byte, err error)
func (*Merkledrop) MarshalToSizedBuffer ¶
func (m *Merkledrop) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Merkledrop) ProtoMessage ¶
func (*Merkledrop) ProtoMessage()
func (*Merkledrop) Reset ¶
func (m *Merkledrop) Reset()
func (*Merkledrop) Size ¶
func (m *Merkledrop) Size() (n int)
func (Merkledrop) String ¶
func (m Merkledrop) String() string
func (*Merkledrop) Unmarshal ¶
func (m *Merkledrop) Unmarshal(dAtA []byte) error
func (*Merkledrop) XXX_DiscardUnknown ¶
func (m *Merkledrop) XXX_DiscardUnknown()
func (*Merkledrop) XXX_Marshal ¶
func (m *Merkledrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Merkledrop) XXX_Merge ¶
func (m *Merkledrop) XXX_Merge(src proto.Message)
func (*Merkledrop) XXX_Size ¶
func (m *Merkledrop) XXX_Size() int
func (*Merkledrop) XXX_Unmarshal ¶
func (m *Merkledrop) XXX_Unmarshal(b []byte) error
type MerkledropI ¶
type MsgClaim ¶
type MsgClaim struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MerkledropId uint64 `protobuf:"varint,2,opt,name=merkledrop_id,json=merkledropId,proto3" json:"merkledrop_id,omitempty"` Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` Proofs []string `protobuf:"bytes,5,rep,name=proofs,proto3" json:"proofs,omitempty"` }
func NewMsgClaim ¶
func (*MsgClaim) Descriptor ¶
func (MsgClaim) GetSignBytes ¶
GetSignBytes Implements Msg.
func (MsgClaim) GetSigners ¶
func (msg MsgClaim) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgClaim) MarshalToSizedBuffer ¶
func (*MsgClaim) ProtoMessage ¶
func (*MsgClaim) ProtoMessage()
func (MsgClaim) ValidateBasic ¶
func (*MsgClaim) XXX_DiscardUnknown ¶
func (m *MsgClaim) XXX_DiscardUnknown()
func (*MsgClaim) XXX_Marshal ¶
func (*MsgClaim) XXX_Unmarshal ¶
type MsgClaimResponse ¶
type MsgClaimResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` }
func (*MsgClaimResponse) Descriptor ¶
func (*MsgClaimResponse) Descriptor() ([]byte, []int)
func (*MsgClaimResponse) Marshal ¶
func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimResponse) ProtoMessage ¶
func (*MsgClaimResponse) ProtoMessage()
func (*MsgClaimResponse) Reset ¶
func (m *MsgClaimResponse) Reset()
func (*MsgClaimResponse) Size ¶
func (m *MsgClaimResponse) Size() (n int)
func (*MsgClaimResponse) String ¶
func (m *MsgClaimResponse) String() string
func (*MsgClaimResponse) Unmarshal ¶
func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimResponse) XXX_DiscardUnknown()
func (*MsgClaimResponse) XXX_Marshal ¶
func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimResponse) XXX_Merge ¶
func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
func (*MsgClaimResponse) XXX_Size ¶
func (m *MsgClaimResponse) XXX_Size() int
func (*MsgClaimResponse) XXX_Unmarshal ¶
func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) 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 MsgCreate ¶
type MsgCreate struct { // owner of the merkledrop Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // merkle_root used to compute proofs MerkleRoot string `protobuf:"bytes,2,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty" yaml:"merkle_root"` // merkledrop start height StartHeight int64 `protobuf:"varint,3,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // merkledrop end height EndHeight int64 `protobuf:"varint,4,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` // coins to distribute Coin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,5,opt,name=coin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` }
func NewMsgCreate ¶
func (*MsgCreate) Descriptor ¶
func (MsgCreate) GetSignBytes ¶
GetSignBytes Implements Msg.
func (MsgCreate) GetSigners ¶
func (msg MsgCreate) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgCreate) MarshalToSizedBuffer ¶
func (*MsgCreate) ProtoMessage ¶
func (*MsgCreate) ProtoMessage()
func (MsgCreate) ValidateBasic ¶
func (*MsgCreate) XXX_DiscardUnknown ¶
func (m *MsgCreate) XXX_DiscardUnknown()
func (*MsgCreate) XXX_Marshal ¶
func (*MsgCreate) XXX_Unmarshal ¶
type MsgCreateResponse ¶
type MsgCreateResponse struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` }
func (*MsgCreateResponse) Descriptor ¶
func (*MsgCreateResponse) Descriptor() ([]byte, []int)
func (*MsgCreateResponse) Marshal ¶
func (m *MsgCreateResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateResponse) MarshalTo ¶
func (m *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResponse) ProtoMessage ¶
func (*MsgCreateResponse) ProtoMessage()
func (*MsgCreateResponse) Reset ¶
func (m *MsgCreateResponse) Reset()
func (*MsgCreateResponse) Size ¶
func (m *MsgCreateResponse) Size() (n int)
func (*MsgCreateResponse) String ¶
func (m *MsgCreateResponse) String() string
func (*MsgCreateResponse) Unmarshal ¶
func (m *MsgCreateResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateResponse) XXX_DiscardUnknown()
func (*MsgCreateResponse) XXX_Marshal ¶
func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResponse) XXX_Merge ¶
func (m *MsgCreateResponse) XXX_Merge(src proto.Message)
func (*MsgCreateResponse) XXX_Size ¶
func (m *MsgCreateResponse) XXX_Size() int
func (*MsgCreateResponse) XXX_Unmarshal ¶
func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error) }
MsgServer is the server API for Msg service.
type ParamSubspace ¶
type ParamSubspace interface { GetParamSet(ctx sdk.Context, ps paramstypes.ParamSet) SetParamSet(ctx sdk.Context, ps paramstypes.ParamSet) HasKeyTable() bool WithKeyTable(table paramstypes.KeyTable) paramstypes.Subspace }
ParamSubspace defines the expected Subspace interface for parameters (noalias)
type Params ¶
type Params struct {
CreationFee github_com_cosmos_cosmos_sdk_types.Coin `` /* 155-byte string literal not displayed */
}
Params defines merkledrop module's parameters
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { Merkledrop(ctx context.Context, in *QueryMerkledropRequest, opts ...grpc.CallOption) (*QueryMerkledropResponse, error) IndexClaimed(ctx context.Context, in *QueryIndexClaimedRequest, opts ...grpc.CallOption) (*QueryIndexClaimedResponse, error) // Params queries the fantoken parameters Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryIndexClaimedRequest ¶
type QueryIndexClaimedRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` }
func (*QueryIndexClaimedRequest) Descriptor ¶
func (*QueryIndexClaimedRequest) Descriptor() ([]byte, []int)
func (*QueryIndexClaimedRequest) Marshal ¶
func (m *QueryIndexClaimedRequest) Marshal() (dAtA []byte, err error)
func (*QueryIndexClaimedRequest) MarshalTo ¶
func (m *QueryIndexClaimedRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryIndexClaimedRequest) MarshalToSizedBuffer ¶
func (m *QueryIndexClaimedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryIndexClaimedRequest) ProtoMessage ¶
func (*QueryIndexClaimedRequest) ProtoMessage()
func (*QueryIndexClaimedRequest) Reset ¶
func (m *QueryIndexClaimedRequest) Reset()
func (*QueryIndexClaimedRequest) Size ¶
func (m *QueryIndexClaimedRequest) Size() (n int)
func (*QueryIndexClaimedRequest) String ¶
func (m *QueryIndexClaimedRequest) String() string
func (*QueryIndexClaimedRequest) Unmarshal ¶
func (m *QueryIndexClaimedRequest) Unmarshal(dAtA []byte) error
func (*QueryIndexClaimedRequest) XXX_DiscardUnknown ¶
func (m *QueryIndexClaimedRequest) XXX_DiscardUnknown()
func (*QueryIndexClaimedRequest) XXX_Marshal ¶
func (m *QueryIndexClaimedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryIndexClaimedRequest) XXX_Merge ¶
func (m *QueryIndexClaimedRequest) XXX_Merge(src proto.Message)
func (*QueryIndexClaimedRequest) XXX_Size ¶
func (m *QueryIndexClaimedRequest) XXX_Size() int
func (*QueryIndexClaimedRequest) XXX_Unmarshal ¶
func (m *QueryIndexClaimedRequest) XXX_Unmarshal(b []byte) error
type QueryIndexClaimedResponse ¶
type QueryIndexClaimedResponse struct {
IsClaimed bool `protobuf:"varint,1,opt,name=is_claimed,json=isClaimed,proto3" json:"is_claimed,omitempty" yaml:"is_claimed"`
}
func (*QueryIndexClaimedResponse) Descriptor ¶
func (*QueryIndexClaimedResponse) Descriptor() ([]byte, []int)
func (*QueryIndexClaimedResponse) Marshal ¶
func (m *QueryIndexClaimedResponse) Marshal() (dAtA []byte, err error)
func (*QueryIndexClaimedResponse) MarshalTo ¶
func (m *QueryIndexClaimedResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryIndexClaimedResponse) MarshalToSizedBuffer ¶
func (m *QueryIndexClaimedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryIndexClaimedResponse) ProtoMessage ¶
func (*QueryIndexClaimedResponse) ProtoMessage()
func (*QueryIndexClaimedResponse) Reset ¶
func (m *QueryIndexClaimedResponse) Reset()
func (*QueryIndexClaimedResponse) Size ¶
func (m *QueryIndexClaimedResponse) Size() (n int)
func (*QueryIndexClaimedResponse) String ¶
func (m *QueryIndexClaimedResponse) String() string
func (*QueryIndexClaimedResponse) Unmarshal ¶
func (m *QueryIndexClaimedResponse) Unmarshal(dAtA []byte) error
func (*QueryIndexClaimedResponse) XXX_DiscardUnknown ¶
func (m *QueryIndexClaimedResponse) XXX_DiscardUnknown()
func (*QueryIndexClaimedResponse) XXX_Marshal ¶
func (m *QueryIndexClaimedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryIndexClaimedResponse) XXX_Merge ¶
func (m *QueryIndexClaimedResponse) XXX_Merge(src proto.Message)
func (*QueryIndexClaimedResponse) XXX_Size ¶
func (m *QueryIndexClaimedResponse) XXX_Size() int
func (*QueryIndexClaimedResponse) XXX_Unmarshal ¶
func (m *QueryIndexClaimedResponse) XXX_Unmarshal(b []byte) error
type QueryMerkledropRequest ¶
type QueryMerkledropRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryMerkledropRequest) Descriptor ¶
func (*QueryMerkledropRequest) Descriptor() ([]byte, []int)
func (*QueryMerkledropRequest) Marshal ¶
func (m *QueryMerkledropRequest) Marshal() (dAtA []byte, err error)
func (*QueryMerkledropRequest) MarshalTo ¶
func (m *QueryMerkledropRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMerkledropRequest) MarshalToSizedBuffer ¶
func (m *QueryMerkledropRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMerkledropRequest) ProtoMessage ¶
func (*QueryMerkledropRequest) ProtoMessage()
func (*QueryMerkledropRequest) Reset ¶
func (m *QueryMerkledropRequest) Reset()
func (*QueryMerkledropRequest) Size ¶
func (m *QueryMerkledropRequest) Size() (n int)
func (*QueryMerkledropRequest) String ¶
func (m *QueryMerkledropRequest) String() string
func (*QueryMerkledropRequest) Unmarshal ¶
func (m *QueryMerkledropRequest) Unmarshal(dAtA []byte) error
func (*QueryMerkledropRequest) XXX_DiscardUnknown ¶
func (m *QueryMerkledropRequest) XXX_DiscardUnknown()
func (*QueryMerkledropRequest) XXX_Marshal ¶
func (m *QueryMerkledropRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMerkledropRequest) XXX_Merge ¶
func (m *QueryMerkledropRequest) XXX_Merge(src proto.Message)
func (*QueryMerkledropRequest) XXX_Size ¶
func (m *QueryMerkledropRequest) XXX_Size() int
func (*QueryMerkledropRequest) XXX_Unmarshal ¶
func (m *QueryMerkledropRequest) XXX_Unmarshal(b []byte) error
type QueryMerkledropResponse ¶
type QueryMerkledropResponse struct {
Merkledrop Merkledrop `protobuf:"bytes,1,opt,name=merkledrop,proto3" json:"merkledrop"`
}
func (*QueryMerkledropResponse) Descriptor ¶
func (*QueryMerkledropResponse) Descriptor() ([]byte, []int)
func (*QueryMerkledropResponse) Marshal ¶
func (m *QueryMerkledropResponse) Marshal() (dAtA []byte, err error)
func (*QueryMerkledropResponse) MarshalTo ¶
func (m *QueryMerkledropResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMerkledropResponse) MarshalToSizedBuffer ¶
func (m *QueryMerkledropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMerkledropResponse) ProtoMessage ¶
func (*QueryMerkledropResponse) ProtoMessage()
func (*QueryMerkledropResponse) Reset ¶
func (m *QueryMerkledropResponse) Reset()
func (*QueryMerkledropResponse) Size ¶
func (m *QueryMerkledropResponse) Size() (n int)
func (*QueryMerkledropResponse) String ¶
func (m *QueryMerkledropResponse) String() string
func (*QueryMerkledropResponse) Unmarshal ¶
func (m *QueryMerkledropResponse) Unmarshal(dAtA []byte) error
func (*QueryMerkledropResponse) XXX_DiscardUnknown ¶
func (m *QueryMerkledropResponse) XXX_DiscardUnknown()
func (*QueryMerkledropResponse) XXX_Marshal ¶
func (m *QueryMerkledropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMerkledropResponse) XXX_Merge ¶
func (m *QueryMerkledropResponse) XXX_Merge(src proto.Message)
func (*QueryMerkledropResponse) XXX_Size ¶
func (m *QueryMerkledropResponse) XXX_Size() int
func (*QueryMerkledropResponse) XXX_Unmarshal ¶
func (m *QueryMerkledropResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParametersRequest is request type for the Query/Parameters 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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParametersResponse is response type for the Query/Parameters 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 { Merkledrop(context.Context, *QueryMerkledropRequest) (*QueryMerkledropResponse, error) IndexClaimed(context.Context, *QueryIndexClaimedRequest) (*QueryIndexClaimedResponse, error) // Params queries the fantoken parameters Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Claim ¶
func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
func (*UnimplementedMsgServer) Create ¶
func (*UnimplementedMsgServer) Create(ctx context.Context, req *MsgCreate) (*MsgCreateResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) IndexClaimed ¶
func (*UnimplementedQueryServer) IndexClaimed(ctx context.Context, req *QueryIndexClaimedRequest) (*QueryIndexClaimedResponse, error)
func (*UnimplementedQueryServer) Merkledrop ¶
func (*UnimplementedQueryServer) Merkledrop(ctx context.Context, req *QueryMerkledropRequest) (*QueryMerkledropResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type UpdateFeesProposal ¶
type UpdateFeesProposal 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"` CreationFee types.Coin `protobuf:"bytes,3,opt,name=creation_fee,json=creationFee,proto3" json:"creation_fee" yaml:"creation_fee"` }
func (*UpdateFeesProposal) Descriptor ¶
func (*UpdateFeesProposal) Descriptor() ([]byte, []int)
func (*UpdateFeesProposal) Equal ¶
func (this *UpdateFeesProposal) Equal(that interface{}) bool
func (*UpdateFeesProposal) GetDescription ¶
func (p *UpdateFeesProposal) GetDescription() string
func (*UpdateFeesProposal) GetTitle ¶
func (p *UpdateFeesProposal) GetTitle() string
func (*UpdateFeesProposal) Marshal ¶
func (m *UpdateFeesProposal) Marshal() (dAtA []byte, err error)
func (*UpdateFeesProposal) MarshalTo ¶
func (m *UpdateFeesProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpdateFeesProposal) MarshalToSizedBuffer ¶
func (m *UpdateFeesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateFeesProposal) ProposalRoute ¶
func (p *UpdateFeesProposal) ProposalRoute() string
func (*UpdateFeesProposal) ProposalType ¶
func (p *UpdateFeesProposal) ProposalType() string
func (*UpdateFeesProposal) ProtoMessage ¶
func (*UpdateFeesProposal) ProtoMessage()
func (*UpdateFeesProposal) Reset ¶
func (m *UpdateFeesProposal) Reset()
func (*UpdateFeesProposal) Size ¶
func (m *UpdateFeesProposal) Size() (n int)
func (UpdateFeesProposal) String ¶
func (p UpdateFeesProposal) String() string
func (*UpdateFeesProposal) Unmarshal ¶
func (m *UpdateFeesProposal) Unmarshal(dAtA []byte) error
func (*UpdateFeesProposal) ValidateBasic ¶
func (p *UpdateFeesProposal) ValidateBasic() error
func (*UpdateFeesProposal) XXX_DiscardUnknown ¶
func (m *UpdateFeesProposal) XXX_DiscardUnknown()
func (*UpdateFeesProposal) XXX_Marshal ¶
func (m *UpdateFeesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateFeesProposal) XXX_Merge ¶
func (m *UpdateFeesProposal) XXX_Merge(src proto.Message)
func (*UpdateFeesProposal) XXX_Size ¶
func (m *UpdateFeesProposal) XXX_Size() int
func (*UpdateFeesProposal) XXX_Unmarshal ¶
func (m *UpdateFeesProposal) XXX_Unmarshal(b []byte) error
type UpdateFeesProposalWithDeposit ¶
type UpdateFeesProposalWithDeposit 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"` CreationFee string `protobuf:"bytes,3,opt,name=creation_fee,json=creationFee,proto3" json:"creation_fee,omitempty"` Deposit string `protobuf:"bytes,7,opt,name=deposit,proto3" json:"deposit,omitempty"` }
func (*UpdateFeesProposalWithDeposit) Descriptor ¶
func (*UpdateFeesProposalWithDeposit) Descriptor() ([]byte, []int)
func (*UpdateFeesProposalWithDeposit) Marshal ¶
func (m *UpdateFeesProposalWithDeposit) Marshal() (dAtA []byte, err error)
func (*UpdateFeesProposalWithDeposit) MarshalTo ¶
func (m *UpdateFeesProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
func (*UpdateFeesProposalWithDeposit) MarshalToSizedBuffer ¶
func (m *UpdateFeesProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateFeesProposalWithDeposit) ProtoMessage ¶
func (*UpdateFeesProposalWithDeposit) ProtoMessage()
func (*UpdateFeesProposalWithDeposit) Reset ¶
func (m *UpdateFeesProposalWithDeposit) Reset()
func (*UpdateFeesProposalWithDeposit) Size ¶
func (m *UpdateFeesProposalWithDeposit) Size() (n int)
func (*UpdateFeesProposalWithDeposit) String ¶
func (m *UpdateFeesProposalWithDeposit) String() string
func (*UpdateFeesProposalWithDeposit) Unmarshal ¶
func (m *UpdateFeesProposalWithDeposit) Unmarshal(dAtA []byte) error
func (*UpdateFeesProposalWithDeposit) XXX_DiscardUnknown ¶
func (m *UpdateFeesProposalWithDeposit) XXX_DiscardUnknown()
func (*UpdateFeesProposalWithDeposit) XXX_Marshal ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateFeesProposalWithDeposit) XXX_Merge ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Merge(src proto.Message)
func (*UpdateFeesProposalWithDeposit) XXX_Size ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Size() int
func (*UpdateFeesProposalWithDeposit) XXX_Unmarshal ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Unmarshal(b []byte) error