types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	TypeMsgSend      = "adminSpendCommunityPool"
	TypeMsgMultiSend = "multisend"
)

bank message types

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/admin module sentinel errors

View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

type DistributionKeeper

type DistributionKeeper interface {
	DistributeFromFeePool(ctx sdk.Context, amount sdk.Coins, receiveAddr sdk.AccAddress) error
}

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

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type 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 (*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

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 QueryServer

type QueryServer interface {
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AdminSpendCommunityPool

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

Jump to

Keyboard shortcuts

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