Versions in this module Expand all Collapse all v22 v22.0.0 Apr 21, 2024 Changes in this version + const ModuleName + const RouterKey + const StoreKey + const TypeMsgDistributeTokens + var AminoCdc = codec.NewAminoCodec(amino) + var DefaultAllowedAddresses = []string(nil) + var DefaultEnableDrip = true + var ErrBlank = errorsmod.Register(ModuleName, 5, "address cannot be blank") + var ErrDripDisabled = errorsmod.Register(ModuleName, 1, "drip module is disabled by governance") + var ErrDripNotAllowed = errorsmod.Register(ModuleName, 2, ...) + var ErrDuplicate = errorsmod.Register(ModuleName, 4, "duplicate") + var ErrEmpty = errorsmod.Register(ModuleName, 3, "empty") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) + var ParamsKey = []byte + func RegisterInterfaces(registry codectypes.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 BankKeeper interface + MintCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) error + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + type GenesisState struct + Params Params + func DefaultGenesisState() *GenesisState + func NewGenesisState(params Params) GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetParams() Params + 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 (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 MsgClient interface + DistributeTokens func(ctx context.Context, in *MsgDistributeTokens, opts ...grpc.CallOption) (*MsgDistributeTokensResponse, error) + UpdateParams func(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgDistributeTokens struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + SenderAddress string + func NewMsgDistributeTokens(amount sdk.Coins, sender sdk.Address) *MsgDistributeTokens + func (*MsgDistributeTokens) Descriptor() ([]byte, []int) + func (*MsgDistributeTokens) ProtoMessage() + func (m *MsgDistributeTokens) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins + func (m *MsgDistributeTokens) GetSenderAddress() string + func (m *MsgDistributeTokens) Marshal() (dAtA []byte, err error) + func (m *MsgDistributeTokens) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDistributeTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDistributeTokens) Reset() + func (m *MsgDistributeTokens) Size() (n int) + func (m *MsgDistributeTokens) String() string + func (m *MsgDistributeTokens) Unmarshal(dAtA []byte) error + func (m *MsgDistributeTokens) XXX_DiscardUnknown() + func (m *MsgDistributeTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDistributeTokens) XXX_Merge(src proto.Message) + func (m *MsgDistributeTokens) XXX_Size() int + func (m *MsgDistributeTokens) XXX_Unmarshal(b []byte) error + func (msg *MsgDistributeTokens) GetSignBytes() []byte + func (msg MsgDistributeTokens) GetSigners() []sdk.AccAddress + func (msg MsgDistributeTokens) Route() string + func (msg MsgDistributeTokens) Type() string + func (msg MsgDistributeTokens) ValidateBasic() error + type MsgDistributeTokensResponse struct + func (*MsgDistributeTokensResponse) Descriptor() ([]byte, []int) + func (*MsgDistributeTokensResponse) ProtoMessage() + func (m *MsgDistributeTokensResponse) Marshal() (dAtA []byte, err error) + func (m *MsgDistributeTokensResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDistributeTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDistributeTokensResponse) Reset() + func (m *MsgDistributeTokensResponse) Size() (n int) + func (m *MsgDistributeTokensResponse) String() string + func (m *MsgDistributeTokensResponse) Unmarshal(dAtA []byte) error + func (m *MsgDistributeTokensResponse) XXX_DiscardUnknown() + func (m *MsgDistributeTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDistributeTokensResponse) XXX_Merge(src proto.Message) + func (m *MsgDistributeTokensResponse) XXX_Size() int + func (m *MsgDistributeTokensResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + DistributeTokens func(context.Context, *MsgDistributeTokens) (*MsgDistributeTokensResponse, error) + UpdateParams func(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + type MsgUpdateParams struct + Authority string + Params Params + func (*MsgUpdateParams) Descriptor() ([]byte, []int) + func (*MsgUpdateParams) ProtoMessage() + func (m *MsgUpdateParams) GetAuthority() string + func (m *MsgUpdateParams) GetParams() Params + func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) + func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) + func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgUpdateParams) Reset() + func (m *MsgUpdateParams) Size() (n int) + func (m *MsgUpdateParams) String() string + func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error + func (m *MsgUpdateParams) XXX_DiscardUnknown() + func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgUpdateParams) XXX_Merge(src proto.Message) + func (m *MsgUpdateParams) XXX_Size() int + func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error + func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress + func (msg *MsgUpdateParams) ValidateBasic() error + func (msg MsgUpdateParams) GetSignBytes() []byte + type MsgUpdateParamsResponse struct + func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) + func (*MsgUpdateParamsResponse) ProtoMessage() + func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) + func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgUpdateParamsResponse) Reset() + func (m *MsgUpdateParamsResponse) Size() (n int) + func (m *MsgUpdateParamsResponse) String() string + func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error + func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() + func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) + func (m *MsgUpdateParamsResponse) XXX_Size() int + func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error + type Params struct + AllowedAddresses []string + EnableDrip bool + func DefaultParams() Params + func NewParams(enableDrip bool, allowedAddresses []string) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + func (m *Params) GetAllowedAddresses() []string + func (m *Params) GetEnableDrip() 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 (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) String() string + func (m *Params) Unmarshal(dAtA []byte) 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 + func (p Params) Validate() error + type QueryClient interface + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryParamsRequest struct + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + 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 (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 struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + func (m *QueryParamsResponse) GetParams() Params + 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 (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 interface + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) DistributeTokens(ctx context.Context, req *MsgDistributeTokens) (*MsgDistributeTokensResponse, error) + func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) v22.0.0-alpha.1 Apr 21, 2024 Other modules containing this package github.com/CosmosContracts/juno/v17 github.com/CosmosContracts/juno/v18 github.com/CosmosContracts/juno/v19 github.com/CosmosContracts/juno/v21