types

package
v0.0.1-alpha.18 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ModuleName = "manifest"

	StoreKey = ModuleName

	QuerierRoute = ModuleName
)

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 ParamsKey = collections.NewPrefix(0)

ParamsKey saves the current module params.

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
}

GenesisState defines the module genesis state

func NewGenesisState

func NewGenesisState() *GenesisState

NewGenesisState creates a new genesis state with default values.

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

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 MsgBurnHeldBalance

type MsgBurnHeldBalance struct {
	// sender is the address of the tokenholder.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// burn_coins are the coins to be burned by the tokenholder.
	BurnCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

MsgPayout is the Msg/BurnHeldBalance request type.

func NewMsgBurnHeldBalance

func NewMsgBurnHeldBalance(
	sender sdk.Address,
	coins sdk.Coins,
) *MsgBurnHeldBalance

func (*MsgBurnHeldBalance) Descriptor

func (*MsgBurnHeldBalance) Descriptor() ([]byte, []int)

func (*MsgBurnHeldBalance) GetAuthority

func (m *MsgBurnHeldBalance) GetAuthority() string

func (*MsgBurnHeldBalance) GetBurnCoins

func (*MsgBurnHeldBalance) GetSigners

func (msg *MsgBurnHeldBalance) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for the message.

func (*MsgBurnHeldBalance) Marshal

func (m *MsgBurnHeldBalance) Marshal() (dAtA []byte, err error)

func (*MsgBurnHeldBalance) MarshalTo

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

func (*MsgBurnHeldBalance) MarshalToSizedBuffer

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

func (*MsgBurnHeldBalance) ProtoMessage

func (*MsgBurnHeldBalance) ProtoMessage()

func (*MsgBurnHeldBalance) Reset

func (m *MsgBurnHeldBalance) Reset()

func (*MsgBurnHeldBalance) Route

func (msg *MsgBurnHeldBalance) Route() string

Route returns the name of the module

func (*MsgBurnHeldBalance) Size

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

func (*MsgBurnHeldBalance) String

func (m *MsgBurnHeldBalance) String() string

func (*MsgBurnHeldBalance) Type

func (msg *MsgBurnHeldBalance) Type() string

Type returns the action

func (*MsgBurnHeldBalance) Unmarshal

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

func (*MsgBurnHeldBalance) Validate

func (msg *MsgBurnHeldBalance) Validate() error

Validate does a sanity check on the provided data.

func (*MsgBurnHeldBalance) XXX_DiscardUnknown

func (m *MsgBurnHeldBalance) XXX_DiscardUnknown()

func (*MsgBurnHeldBalance) XXX_Marshal

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

func (*MsgBurnHeldBalance) XXX_Merge

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

func (*MsgBurnHeldBalance) XXX_Size

func (m *MsgBurnHeldBalance) XXX_Size() int

func (*MsgBurnHeldBalance) XXX_Unmarshal

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

type MsgBurnHeldBalanceResponse

type MsgBurnHeldBalanceResponse struct {
}

MsgBurnHeldBalanceResponse defines the response structure for executing a MsgBurnHeldBalance message.

func (*MsgBurnHeldBalanceResponse) Descriptor

func (*MsgBurnHeldBalanceResponse) Descriptor() ([]byte, []int)

func (*MsgBurnHeldBalanceResponse) Marshal

func (m *MsgBurnHeldBalanceResponse) Marshal() (dAtA []byte, err error)

func (*MsgBurnHeldBalanceResponse) MarshalTo

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

func (*MsgBurnHeldBalanceResponse) MarshalToSizedBuffer

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

func (*MsgBurnHeldBalanceResponse) ProtoMessage

func (*MsgBurnHeldBalanceResponse) ProtoMessage()

func (*MsgBurnHeldBalanceResponse) Reset

func (m *MsgBurnHeldBalanceResponse) Reset()

func (*MsgBurnHeldBalanceResponse) Size

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

func (*MsgBurnHeldBalanceResponse) String

func (m *MsgBurnHeldBalanceResponse) String() string

func (*MsgBurnHeldBalanceResponse) Unmarshal

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

func (*MsgBurnHeldBalanceResponse) XXX_DiscardUnknown

func (m *MsgBurnHeldBalanceResponse) XXX_DiscardUnknown()

func (*MsgBurnHeldBalanceResponse) XXX_Marshal

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

func (*MsgBurnHeldBalanceResponse) XXX_Merge

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

func (*MsgBurnHeldBalanceResponse) XXX_Size

func (m *MsgBurnHeldBalanceResponse) XXX_Size() int

func (*MsgBurnHeldBalanceResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Payout allows the authority to manually pay out stakeholders.
	Payout(ctx context.Context, in *MsgPayout, opts ...grpc.CallOption) (*MsgPayoutResponse, error)
	// BurnHeldBalance allows a tokenholder to burn coins they own.
	BurnHeldBalance(ctx context.Context, in *MsgBurnHeldBalance, opts ...grpc.CallOption) (*MsgBurnHeldBalanceResponse, 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 MsgPayout

type MsgPayout struct {
	// authority is the address of the controlling account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// payout_pairs are the pairs of addresses and coins to be paid out.
	PayoutPairs []PayoutPair `protobuf:"bytes,2,rep,name=payout_pairs,json=payoutPairs,proto3" json:"payout_pairs"`
}

MsgPayout is the Msg/Payout request type.

func NewMsgPayout

func NewMsgPayout(
	sender sdk.Address,
	payouts []PayoutPair,
) *MsgPayout

func (*MsgPayout) Descriptor

func (*MsgPayout) Descriptor() ([]byte, []int)

func (*MsgPayout) GetAuthority

func (m *MsgPayout) GetAuthority() string

func (*MsgPayout) GetPayoutPairs

func (m *MsgPayout) GetPayoutPairs() []PayoutPair

func (*MsgPayout) GetSigners

func (msg *MsgPayout) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for the message.

func (*MsgPayout) Marshal

func (m *MsgPayout) Marshal() (dAtA []byte, err error)

func (*MsgPayout) MarshalTo

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

func (*MsgPayout) MarshalToSizedBuffer

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

func (*MsgPayout) ProtoMessage

func (*MsgPayout) ProtoMessage()

func (*MsgPayout) Reset

func (m *MsgPayout) Reset()

func (*MsgPayout) Route

func (msg *MsgPayout) Route() string

Route returns the name of the module

func (*MsgPayout) Size

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

func (*MsgPayout) String

func (m *MsgPayout) String() string

func (*MsgPayout) Type

func (msg *MsgPayout) Type() string

Type returns the action

func (*MsgPayout) Unmarshal

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

func (*MsgPayout) Validate

func (msg *MsgPayout) Validate() error

Validate does a sanity check on the provided data.

func (*MsgPayout) XXX_DiscardUnknown

func (m *MsgPayout) XXX_DiscardUnknown()

func (*MsgPayout) XXX_Marshal

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

func (*MsgPayout) XXX_Merge

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

func (*MsgPayout) XXX_Size

func (m *MsgPayout) XXX_Size() int

func (*MsgPayout) XXX_Unmarshal

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

type MsgPayoutResponse

type MsgPayoutResponse struct {
}

MsgPayoutResponse defines the response structure for executing a MsgPayout message.

func (*MsgPayoutResponse) Descriptor

func (*MsgPayoutResponse) Descriptor() ([]byte, []int)

func (*MsgPayoutResponse) Marshal

func (m *MsgPayoutResponse) Marshal() (dAtA []byte, err error)

func (*MsgPayoutResponse) MarshalTo

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

func (*MsgPayoutResponse) MarshalToSizedBuffer

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

func (*MsgPayoutResponse) ProtoMessage

func (*MsgPayoutResponse) ProtoMessage()

func (*MsgPayoutResponse) Reset

func (m *MsgPayoutResponse) Reset()

func (*MsgPayoutResponse) Size

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

func (*MsgPayoutResponse) String

func (m *MsgPayoutResponse) String() string

func (*MsgPayoutResponse) Unmarshal

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

func (*MsgPayoutResponse) XXX_DiscardUnknown

func (m *MsgPayoutResponse) XXX_DiscardUnknown()

func (*MsgPayoutResponse) XXX_Marshal

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

func (*MsgPayoutResponse) XXX_Merge

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

func (*MsgPayoutResponse) XXX_Size

func (m *MsgPayoutResponse) XXX_Size() int

func (*MsgPayoutResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Payout allows the authority to manually pay out stakeholders.
	Payout(context.Context, *MsgPayout) (*MsgPayoutResponse, error)
	// BurnHeldBalance allows a tokenholder to burn coins they own.
	BurnHeldBalance(context.Context, *MsgBurnHeldBalance) (*MsgBurnHeldBalanceResponse, error)
}

MsgServer is the server API for Msg service.

type PayoutPair

type PayoutPair struct {
	Address string                                  `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Coin    github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coin,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
}

PayoutPair is the object that pairs an address with a coin to be paid out.

func NewPayoutPair

func NewPayoutPair(addr sdk.AccAddress, denom string, amt int64) PayoutPair

func (*PayoutPair) Descriptor

func (*PayoutPair) Descriptor() ([]byte, []int)

func (*PayoutPair) GetAddress

func (m *PayoutPair) GetAddress() string

func (*PayoutPair) GetCoin

func (*PayoutPair) Marshal

func (m *PayoutPair) Marshal() (dAtA []byte, err error)

func (*PayoutPair) MarshalTo

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

func (*PayoutPair) MarshalToSizedBuffer

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

func (*PayoutPair) ProtoMessage

func (*PayoutPair) ProtoMessage()

func (*PayoutPair) Reset

func (m *PayoutPair) Reset()

func (*PayoutPair) Size

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

func (*PayoutPair) String

func (m *PayoutPair) String() string

func (*PayoutPair) Unmarshal

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

func (*PayoutPair) XXX_DiscardUnknown

func (m *PayoutPair) XXX_DiscardUnknown()

func (*PayoutPair) XXX_Marshal

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

func (*PayoutPair) XXX_Merge

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

func (*PayoutPair) XXX_Size

func (m *PayoutPair) XXX_Size() int

func (*PayoutPair) XXX_Unmarshal

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

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

func (*UnimplementedMsgServer) Payout

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