Documentation ¶
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type BankKeeper
- type DistributionKeeper
- 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 MsgAdminSpendCommunityPool
- func (*MsgAdminSpendCommunityPool) Descriptor() ([]byte, []int)
- func (m *MsgAdminSpendCommunityPool) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgAdminSpendCommunityPool) GetInitiator() string
- func (msg MsgAdminSpendCommunityPool) GetSignBytes() []byte
- func (msg MsgAdminSpendCommunityPool) GetSigners() []sdk.AccAddress
- func (m *MsgAdminSpendCommunityPool) GetToAddress() string
- func (m *MsgAdminSpendCommunityPool) Marshal() (dAtA []byte, err error)
- func (m *MsgAdminSpendCommunityPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAdminSpendCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAdminSpendCommunityPool) ProtoMessage()
- func (m *MsgAdminSpendCommunityPool) Reset()
- func (msg MsgAdminSpendCommunityPool) Route() string
- func (m *MsgAdminSpendCommunityPool) Size() (n int)
- func (m *MsgAdminSpendCommunityPool) String() string
- func (msg MsgAdminSpendCommunityPool) Type() string
- func (m *MsgAdminSpendCommunityPool) Unmarshal(dAtA []byte) error
- func (msg MsgAdminSpendCommunityPool) ValidateBasic() error
- func (m *MsgAdminSpendCommunityPool) XXX_DiscardUnknown()
- func (m *MsgAdminSpendCommunityPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAdminSpendCommunityPool) XXX_Merge(src proto.Message)
- func (m *MsgAdminSpendCommunityPool) XXX_Size() int
- func (m *MsgAdminSpendCommunityPool) XXX_Unmarshal(b []byte) error
- type MsgAdminSpendResponse
- func (*MsgAdminSpendResponse) Descriptor() ([]byte, []int)
- func (m *MsgAdminSpendResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAdminSpendResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAdminSpendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAdminSpendResponse) ProtoMessage()
- func (m *MsgAdminSpendResponse) Reset()
- func (m *MsgAdminSpendResponse) Size() (n int)
- func (m *MsgAdminSpendResponse) String() string
- func (m *MsgAdminSpendResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAdminSpendResponse) XXX_DiscardUnknown()
- func (m *MsgAdminSpendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAdminSpendResponse) XXX_Merge(src proto.Message)
- func (m *MsgAdminSpendResponse) XXX_Size() int
- func (m *MsgAdminSpendResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "admin" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_capability" AdminDenom = "cudosAdmin" )
const ( TypeMsgSend = "adminSpendCommunityPool" TypeMsgMultiSend = "multisend" )
bank message types
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/admin module sentinel errors
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶
type DistributionKeeper ¶
type GenesisState ¶
type GenesisState struct { }
GenesisState defines the capability module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) 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 ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgAdminSpendCommunityPool ¶
type MsgAdminSpendCommunityPool struct { Initiator string `protobuf:"bytes,1,opt,name=initiator,proto3" json:"initiator,omitempty"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
func NewMsgAdminSpendCommunityPool ¶
func NewMsgAdminSpendCommunityPool(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) *MsgAdminSpendCommunityPool
NewMsgSend - construct a msg to send coins from one account to another.
func (*MsgAdminSpendCommunityPool) Descriptor ¶
func (*MsgAdminSpendCommunityPool) Descriptor() ([]byte, []int)
func (*MsgAdminSpendCommunityPool) GetCoins ¶
func (m *MsgAdminSpendCommunityPool) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgAdminSpendCommunityPool) GetInitiator ¶
func (m *MsgAdminSpendCommunityPool) GetInitiator() string
func (MsgAdminSpendCommunityPool) GetSignBytes ¶
func (msg MsgAdminSpendCommunityPool) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgAdminSpendCommunityPool) GetSigners ¶
func (msg MsgAdminSpendCommunityPool) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgAdminSpendCommunityPool) GetToAddress ¶
func (m *MsgAdminSpendCommunityPool) GetToAddress() string
func (*MsgAdminSpendCommunityPool) Marshal ¶
func (m *MsgAdminSpendCommunityPool) Marshal() (dAtA []byte, err error)
func (*MsgAdminSpendCommunityPool) MarshalTo ¶
func (m *MsgAdminSpendCommunityPool) MarshalTo(dAtA []byte) (int, error)
func (*MsgAdminSpendCommunityPool) MarshalToSizedBuffer ¶
func (m *MsgAdminSpendCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAdminSpendCommunityPool) ProtoMessage ¶
func (*MsgAdminSpendCommunityPool) ProtoMessage()
func (*MsgAdminSpendCommunityPool) Reset ¶
func (m *MsgAdminSpendCommunityPool) Reset()
func (MsgAdminSpendCommunityPool) Route ¶
func (msg MsgAdminSpendCommunityPool) Route() string
Route Implements Msg.
func (*MsgAdminSpendCommunityPool) Size ¶
func (m *MsgAdminSpendCommunityPool) Size() (n int)
func (*MsgAdminSpendCommunityPool) String ¶
func (m *MsgAdminSpendCommunityPool) String() string
func (MsgAdminSpendCommunityPool) Type ¶
func (msg MsgAdminSpendCommunityPool) Type() string
Type Implements Msg.
func (*MsgAdminSpendCommunityPool) Unmarshal ¶
func (m *MsgAdminSpendCommunityPool) Unmarshal(dAtA []byte) error
func (MsgAdminSpendCommunityPool) ValidateBasic ¶
func (msg MsgAdminSpendCommunityPool) ValidateBasic() error
ValidateBasic Implements Msg.
func (*MsgAdminSpendCommunityPool) XXX_DiscardUnknown ¶
func (m *MsgAdminSpendCommunityPool) XXX_DiscardUnknown()
func (*MsgAdminSpendCommunityPool) XXX_Marshal ¶
func (m *MsgAdminSpendCommunityPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAdminSpendCommunityPool) XXX_Merge ¶
func (m *MsgAdminSpendCommunityPool) XXX_Merge(src proto.Message)
func (*MsgAdminSpendCommunityPool) XXX_Size ¶
func (m *MsgAdminSpendCommunityPool) XXX_Size() int
func (*MsgAdminSpendCommunityPool) XXX_Unmarshal ¶
func (m *MsgAdminSpendCommunityPool) XXX_Unmarshal(b []byte) error
type MsgAdminSpendResponse ¶
type MsgAdminSpendResponse struct { }
func (*MsgAdminSpendResponse) Descriptor ¶
func (*MsgAdminSpendResponse) Descriptor() ([]byte, []int)
func (*MsgAdminSpendResponse) Marshal ¶
func (m *MsgAdminSpendResponse) Marshal() (dAtA []byte, err error)
func (*MsgAdminSpendResponse) MarshalTo ¶
func (m *MsgAdminSpendResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAdminSpendResponse) MarshalToSizedBuffer ¶
func (m *MsgAdminSpendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAdminSpendResponse) ProtoMessage ¶
func (*MsgAdminSpendResponse) ProtoMessage()
func (*MsgAdminSpendResponse) Reset ¶
func (m *MsgAdminSpendResponse) Reset()
func (*MsgAdminSpendResponse) Size ¶
func (m *MsgAdminSpendResponse) Size() (n int)
func (*MsgAdminSpendResponse) String ¶
func (m *MsgAdminSpendResponse) String() string
func (*MsgAdminSpendResponse) Unmarshal ¶
func (m *MsgAdminSpendResponse) Unmarshal(dAtA []byte) error
func (*MsgAdminSpendResponse) XXX_DiscardUnknown ¶
func (m *MsgAdminSpendResponse) XXX_DiscardUnknown()
func (*MsgAdminSpendResponse) XXX_Marshal ¶
func (m *MsgAdminSpendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAdminSpendResponse) XXX_Merge ¶
func (m *MsgAdminSpendResponse) XXX_Merge(src proto.Message)
func (*MsgAdminSpendResponse) XXX_Size ¶
func (m *MsgAdminSpendResponse) XXX_Size() int
func (*MsgAdminSpendResponse) XXX_Unmarshal ¶
func (m *MsgAdminSpendResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // this line is used by starport scaffolding # proto/tx/rpc AdminSpendCommunityPool(ctx context.Context, in *MsgAdminSpendCommunityPool, opts ...grpc.CallOption) (*MsgAdminSpendResponse, 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 { // this line is used by starport scaffolding # proto/tx/rpc AdminSpendCommunityPool(context.Context, *MsgAdminSpendCommunityPool) (*MsgAdminSpendResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface { }
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 UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AdminSpendCommunityPool ¶
func (*UnimplementedMsgServer) AdminSpendCommunityPool(ctx context.Context, req *MsgAdminSpendCommunityPool) (*MsgAdminSpendResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.