types

package
v0.0.0-...-1d4aedf Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	StakingRewardVestingName = "staking_reward_vesting"
	CommunityPoolVestingName = "community_pool_vesting"
	TeamVestingName          = "team_vesting"

	// Strate reserve pool controlled by governance.
	// Not used now, maybe future.
	StrategicReservePoolName = "strategic_reserve_pool"

	StakingRewardVestingTime = merlion.SecondsPer4Years
	CommunityPoolVestingTime = merlion.SecondsPer4Years
	TeamVestingTime          = merlion.SecondsPer4Years

	ClaimVestedPeriod = 10
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "vesting"

	// StoreKey defines the primary module store key
	// Here use "vs" to avoid potential key collision with the ve module
	StoreKey = "vs"

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgAddAirdrops          = "add_airdrops"
	TypeMsgExecuteAirdrops      = "execute_airdrops"
	TypeMsgSetAllocationAddress = "set_allocation_address"
)

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 (
	KeyPrefixAllocationAddress   = []byte{prefixAllocationAddress}
	KeyPrefixAirdropsTotalAmount = []byte{prefixAirdropsTotalAmount}
	KeyPrefixAirdrops            = []byte{prefixAirdrops}
	KeyPrefixAirdropsCompleted   = []byte{prefixAirdropsCompleted}
)
View Source
var (
	DefaultTotalAmount                = sdk.NewInt(1000_000_000).Mul(ethermint.PowerReduction) // one billion
	DefaultAirdropAmountRate          = sdk.NewDecWithPrec(5, 2)                               // 5%
	DefaultVeVestingAmountRate        = sdk.NewDecWithPrec(45, 2)                              // 45%
	DefaultStakingRewardAmountRate    = sdk.NewDecWithPrec(5, 2)                               // 5%
	DefaultCommunityPoolAmountRate    = sdk.NewDecWithPrec(5, 2)                               // 5%
	DefaultStrategicReserveAmountRate = sdk.NewDecWithPrec(20, 2)                              // 20%
	DefaultTeamVestingAmountRate      = sdk.NewDecWithPrec(20, 2)                              // 20%
)

Default parameter values

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = 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 (
	ErrInvalidLengthVesting        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVesting          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyAllocationAmounts = []byte("AllocationAmounts")
)

Parameter keys

Functions

func AirdropsCompletedKey

func AirdropsCompletedKey(acc sdk.AccAddress) []byte

func AirdropsKey

func AirdropsKey(acc sdk.AccAddress) []byte

func AirdropsTotalAmountKey

func AirdropsTotalAmountKey() []byte

func AllocationAddrKey

func AllocationAddrKey() []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgHandler

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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)

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
}

AccountKeeper defines the expected account keeper

type Airdrop

type Airdrop struct {
	TargetAddr string     `protobuf:"bytes,1,opt,name=target_addr,json=targetAddr,proto3" json:"target_addr,omitempty"`
	Amount     types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

func (*Airdrop) Descriptor

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

func (Airdrop) Empty

func (a Airdrop) Empty() bool

func (Airdrop) GetTargetAddr

func (a Airdrop) GetTargetAddr() sdk.AccAddress

func (*Airdrop) Marshal

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

func (*Airdrop) MarshalTo

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

func (*Airdrop) MarshalToSizedBuffer

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

func (*Airdrop) ProtoMessage

func (*Airdrop) ProtoMessage()

func (*Airdrop) Reset

func (m *Airdrop) Reset()

func (*Airdrop) Size

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

func (*Airdrop) String

func (m *Airdrop) String() string

func (*Airdrop) Unmarshal

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

func (*Airdrop) XXX_DiscardUnknown

func (m *Airdrop) XXX_DiscardUnknown()

func (*Airdrop) XXX_Marshal

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

func (*Airdrop) XXX_Merge

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

func (*Airdrop) XXX_Size

func (m *Airdrop) XXX_Size() int

func (*Airdrop) XXX_Unmarshal

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

type AllocationAddresses

type AllocationAddresses struct {
	TeamVestingAddr               string `protobuf:"bytes,1,opt,name=team_vesting_addr,json=teamVestingAddr,proto3" json:"team_vesting_addr,omitempty"`
	StrategicReserveCustodianAddr string `` /* 152-byte string literal not displayed */
}

func (*AllocationAddresses) Descriptor

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

func (AllocationAddresses) GetStrategicReserveCustodianAddr

func (a AllocationAddresses) GetStrategicReserveCustodianAddr() sdk.AccAddress

func (AllocationAddresses) GetTeamVestingAddr

func (a AllocationAddresses) GetTeamVestingAddr() sdk.AccAddress

func (*AllocationAddresses) Marshal

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

func (*AllocationAddresses) MarshalTo

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

func (*AllocationAddresses) MarshalToSizedBuffer

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

func (*AllocationAddresses) ProtoMessage

func (*AllocationAddresses) ProtoMessage()

func (*AllocationAddresses) Reset

func (m *AllocationAddresses) Reset()

func (*AllocationAddresses) Size

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

func (*AllocationAddresses) String

func (m *AllocationAddresses) String() string

func (*AllocationAddresses) Unmarshal

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

func (*AllocationAddresses) XXX_DiscardUnknown

func (m *AllocationAddresses) XXX_DiscardUnknown()

func (*AllocationAddresses) XXX_Marshal

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

func (*AllocationAddresses) XXX_Merge

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

func (*AllocationAddresses) XXX_Size

func (m *AllocationAddresses) XXX_Size() int

func (*AllocationAddresses) XXX_Unmarshal

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

type AllocationAmounts

type AllocationAmounts struct {
	TotalAmount            github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	AirdropAmount          github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	VeVestingAmount        github_com_cosmos_cosmos_sdk_types.Int `` /* 148-byte string literal not displayed */
	StakingRewardAmount    github_com_cosmos_cosmos_sdk_types.Int `` /* 160-byte string literal not displayed */
	CommunityPoolAmount    github_com_cosmos_cosmos_sdk_types.Int `` /* 160-byte string literal not displayed */
	StrategicReserveAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */
	TeamVestingAmount      github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
}

func (*AllocationAmounts) Descriptor

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

func (*AllocationAmounts) Marshal

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

func (*AllocationAmounts) MarshalTo

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

func (*AllocationAmounts) MarshalToSizedBuffer

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

func (*AllocationAmounts) ProtoMessage

func (*AllocationAmounts) ProtoMessage()

func (*AllocationAmounts) Reset

func (m *AllocationAmounts) Reset()

func (*AllocationAmounts) Size

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

func (*AllocationAmounts) String

func (m *AllocationAmounts) String() string

func (*AllocationAmounts) Unmarshal

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

func (*AllocationAmounts) XXX_DiscardUnknown

func (m *AllocationAmounts) XXX_DiscardUnknown()

func (*AllocationAmounts) XXX_Marshal

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

func (*AllocationAmounts) XXX_Merge

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

func (*AllocationAmounts) XXX_Size

func (m *AllocationAmounts) XXX_Size() int

func (*AllocationAmounts) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
	BlockedAddr(addr sdk.AccAddress) bool
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	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
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected bank keeper.

type DistributionKeeper

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

DistributionKeeper defines the expected distribution keeper.

type GenesisState

type GenesisState struct {
	Params              Params              `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	AllocationAddresses AllocationAddresses `protobuf:"bytes,2,opt,name=allocation_addresses,json=allocationAddresses,proto3" json:"allocation_addresses"`
}

GenesisState defines the vesting module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default vesting genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAllocationAddresses

func (m *GenesisState) GetAllocationAddresses() AllocationAddresses

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 MsgAddAirdrops

type MsgAddAirdrops struct {
	Sender   string    `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Airdrops []Airdrop `protobuf:"bytes,2,rep,name=airdrops,proto3" json:"airdrops"`
}

MsgAddAirdrops represents a message to add airdrop targets.

func (*MsgAddAirdrops) Descriptor

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

func (*MsgAddAirdrops) GetSignBytes

func (m *MsgAddAirdrops) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgAddAirdrops) GetSigners

func (m *MsgAddAirdrops) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAddAirdrops) Marshal

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

func (*MsgAddAirdrops) MarshalTo

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

func (*MsgAddAirdrops) MarshalToSizedBuffer

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

func (*MsgAddAirdrops) ProtoMessage

func (*MsgAddAirdrops) ProtoMessage()

func (*MsgAddAirdrops) Reset

func (m *MsgAddAirdrops) Reset()

func (*MsgAddAirdrops) Route

func (m *MsgAddAirdrops) Route() string

Route implements sdk.Msg

func (*MsgAddAirdrops) Size

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

func (*MsgAddAirdrops) String

func (m *MsgAddAirdrops) String() string

func (*MsgAddAirdrops) Type

func (m *MsgAddAirdrops) Type() string

Type implements sdk.Msg

func (*MsgAddAirdrops) Unmarshal

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

func (*MsgAddAirdrops) ValidateBasic

func (m *MsgAddAirdrops) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddAirdrops) XXX_DiscardUnknown

func (m *MsgAddAirdrops) XXX_DiscardUnknown()

func (*MsgAddAirdrops) XXX_Marshal

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

func (*MsgAddAirdrops) XXX_Merge

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

func (*MsgAddAirdrops) XXX_Size

func (m *MsgAddAirdrops) XXX_Size() int

func (*MsgAddAirdrops) XXX_Unmarshal

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

type MsgAddAirdropsResponse

type MsgAddAirdropsResponse struct {
}

MsgMintBySwapResponse defines the Msg/AddAirdrops response type.

func (*MsgAddAirdropsResponse) Descriptor

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

func (*MsgAddAirdropsResponse) Marshal

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

func (*MsgAddAirdropsResponse) MarshalTo

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

func (*MsgAddAirdropsResponse) MarshalToSizedBuffer

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

func (*MsgAddAirdropsResponse) ProtoMessage

func (*MsgAddAirdropsResponse) ProtoMessage()

func (*MsgAddAirdropsResponse) Reset

func (m *MsgAddAirdropsResponse) Reset()

func (*MsgAddAirdropsResponse) Size

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

func (*MsgAddAirdropsResponse) String

func (m *MsgAddAirdropsResponse) String() string

func (*MsgAddAirdropsResponse) Unmarshal

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

func (*MsgAddAirdropsResponse) XXX_DiscardUnknown

func (m *MsgAddAirdropsResponse) XXX_DiscardUnknown()

func (*MsgAddAirdropsResponse) XXX_Marshal

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

func (*MsgAddAirdropsResponse) XXX_Merge

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

func (*MsgAddAirdropsResponse) XXX_Size

func (m *MsgAddAirdropsResponse) XXX_Size() int

func (*MsgAddAirdropsResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AddAirdrops adds airdrop targets.
	// Should only be called by core team multisig.
	AddAirdrops(ctx context.Context, in *MsgAddAirdrops, opts ...grpc.CallOption) (*MsgAddAirdropsResponse, error)
	// ExecuteAirdrops performs airdrops.
	// Should only be called by core team multisig.
	ExecuteAirdrops(ctx context.Context, in *MsgExecuteAirdrops, opts ...grpc.CallOption) (*MsgExecuteAirdropsResponse, error)
	// SetAllocationAddress sets allocation address of team vesting or
	// strategic_reserve_custodian.
	SetAllocationAddress(ctx context.Context, in *MsgSetAllocationAddress, opts ...grpc.CallOption) (*MsgSetAllocationAddressResponse, 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 MsgExecuteAirdrops

type MsgExecuteAirdrops struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// max count of airdrops performed this time
	MaxCount uint64 `protobuf:"varint,2,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
}

func (*MsgExecuteAirdrops) Descriptor

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

func (*MsgExecuteAirdrops) GetSignBytes

func (m *MsgExecuteAirdrops) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgExecuteAirdrops) GetSigners

func (m *MsgExecuteAirdrops) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgExecuteAirdrops) Marshal

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

func (*MsgExecuteAirdrops) MarshalTo

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

func (*MsgExecuteAirdrops) MarshalToSizedBuffer

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

func (*MsgExecuteAirdrops) ProtoMessage

func (*MsgExecuteAirdrops) ProtoMessage()

func (*MsgExecuteAirdrops) Reset

func (m *MsgExecuteAirdrops) Reset()

func (*MsgExecuteAirdrops) Route

func (m *MsgExecuteAirdrops) Route() string

Route implements sdk.Msg

func (*MsgExecuteAirdrops) Size

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

func (*MsgExecuteAirdrops) String

func (m *MsgExecuteAirdrops) String() string

func (*MsgExecuteAirdrops) Type

func (m *MsgExecuteAirdrops) Type() string

Type implements sdk.Msg

func (*MsgExecuteAirdrops) Unmarshal

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

func (*MsgExecuteAirdrops) ValidateBasic

func (m *MsgExecuteAirdrops) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgExecuteAirdrops) XXX_DiscardUnknown

func (m *MsgExecuteAirdrops) XXX_DiscardUnknown()

func (*MsgExecuteAirdrops) XXX_Marshal

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

func (*MsgExecuteAirdrops) XXX_Merge

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

func (*MsgExecuteAirdrops) XXX_Size

func (m *MsgExecuteAirdrops) XXX_Size() int

func (*MsgExecuteAirdrops) XXX_Unmarshal

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

type MsgExecuteAirdropsResponse

type MsgExecuteAirdropsResponse struct {
}

func (*MsgExecuteAirdropsResponse) Descriptor

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

func (*MsgExecuteAirdropsResponse) Marshal

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

func (*MsgExecuteAirdropsResponse) MarshalTo

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

func (*MsgExecuteAirdropsResponse) MarshalToSizedBuffer

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

func (*MsgExecuteAirdropsResponse) ProtoMessage

func (*MsgExecuteAirdropsResponse) ProtoMessage()

func (*MsgExecuteAirdropsResponse) Reset

func (m *MsgExecuteAirdropsResponse) Reset()

func (*MsgExecuteAirdropsResponse) Size

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

func (*MsgExecuteAirdropsResponse) String

func (m *MsgExecuteAirdropsResponse) String() string

func (*MsgExecuteAirdropsResponse) Unmarshal

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

func (*MsgExecuteAirdropsResponse) XXX_DiscardUnknown

func (m *MsgExecuteAirdropsResponse) XXX_DiscardUnknown()

func (*MsgExecuteAirdropsResponse) XXX_Marshal

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

func (*MsgExecuteAirdropsResponse) XXX_Merge

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

func (*MsgExecuteAirdropsResponse) XXX_Size

func (m *MsgExecuteAirdropsResponse) XXX_Size() int

func (*MsgExecuteAirdropsResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// AddAirdrops adds airdrop targets.
	// Should only be called by core team multisig.
	AddAirdrops(context.Context, *MsgAddAirdrops) (*MsgAddAirdropsResponse, error)
	// ExecuteAirdrops performs airdrops.
	// Should only be called by core team multisig.
	ExecuteAirdrops(context.Context, *MsgExecuteAirdrops) (*MsgExecuteAirdropsResponse, error)
	// SetAllocationAddress sets allocation address of team vesting or
	// strategic_reserve_custodian.
	SetAllocationAddress(context.Context, *MsgSetAllocationAddress) (*MsgSetAllocationAddressResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetAllocationAddress

type MsgSetAllocationAddress struct {
	Sender                        string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	TeamVestingAddr               string `protobuf:"bytes,2,opt,name=team_vesting_addr,json=teamVestingAddr,proto3" json:"team_vesting_addr,omitempty"`
	StrategicReserveCustodianAddr string `` /* 152-byte string literal not displayed */
}

MsgSetAllocationAddress represents a message to set allocation address.

func (*MsgSetAllocationAddress) Descriptor

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

func (*MsgSetAllocationAddress) GetSignBytes

func (m *MsgSetAllocationAddress) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgSetAllocationAddress) GetSigners

func (m *MsgSetAllocationAddress) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgSetAllocationAddress) Marshal

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

func (*MsgSetAllocationAddress) MarshalTo

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

func (*MsgSetAllocationAddress) MarshalToSizedBuffer

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

func (*MsgSetAllocationAddress) ProtoMessage

func (*MsgSetAllocationAddress) ProtoMessage()

func (*MsgSetAllocationAddress) Reset

func (m *MsgSetAllocationAddress) Reset()

func (*MsgSetAllocationAddress) Route

func (m *MsgSetAllocationAddress) Route() string

Route implements sdk.Msg

func (*MsgSetAllocationAddress) Size

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

func (*MsgSetAllocationAddress) String

func (m *MsgSetAllocationAddress) String() string

func (*MsgSetAllocationAddress) Type

func (m *MsgSetAllocationAddress) Type() string

Type implements sdk.Msg

func (*MsgSetAllocationAddress) Unmarshal

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

func (*MsgSetAllocationAddress) ValidateBasic

func (m *MsgSetAllocationAddress) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgSetAllocationAddress) XXX_DiscardUnknown

func (m *MsgSetAllocationAddress) XXX_DiscardUnknown()

func (*MsgSetAllocationAddress) XXX_Marshal

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

func (*MsgSetAllocationAddress) XXX_Merge

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

func (*MsgSetAllocationAddress) XXX_Size

func (m *MsgSetAllocationAddress) XXX_Size() int

func (*MsgSetAllocationAddress) XXX_Unmarshal

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

type MsgSetAllocationAddressResponse

type MsgSetAllocationAddressResponse struct {
}

MsgSetAllocationAddressResponse defines the Msg/SetAllocationAddress response type.

func (*MsgSetAllocationAddressResponse) Descriptor

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

func (*MsgSetAllocationAddressResponse) Marshal

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

func (*MsgSetAllocationAddressResponse) MarshalTo

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

func (*MsgSetAllocationAddressResponse) MarshalToSizedBuffer

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

func (*MsgSetAllocationAddressResponse) ProtoMessage

func (*MsgSetAllocationAddressResponse) ProtoMessage()

func (*MsgSetAllocationAddressResponse) Reset

func (*MsgSetAllocationAddressResponse) Size

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

func (*MsgSetAllocationAddressResponse) String

func (*MsgSetAllocationAddressResponse) Unmarshal

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

func (*MsgSetAllocationAddressResponse) XXX_DiscardUnknown

func (m *MsgSetAllocationAddressResponse) XXX_DiscardUnknown()

func (*MsgSetAllocationAddressResponse) XXX_Marshal

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

func (*MsgSetAllocationAddressResponse) XXX_Merge

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

func (*MsgSetAllocationAddressResponse) XXX_Size

func (m *MsgSetAllocationAddressResponse) XXX_Size() int

func (*MsgSetAllocationAddressResponse) XXX_Unmarshal

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

type Params

type Params struct {
	Allocation AllocationAmounts `protobuf:"bytes,1,opt,name=allocation,proto3" json:"allocation"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func (*Params) Descriptor

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

func (*Params) GetAllocation

func (m *Params) GetAllocation() AllocationAmounts

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAirdropRequest

type QueryAirdropRequest struct {
	TargetAddr string `protobuf:"bytes,1,opt,name=target_addr,json=targetAddr,proto3" json:"target_addr,omitempty"`
	Completed  bool   `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"`
}

func (*QueryAirdropRequest) Descriptor

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

func (*QueryAirdropRequest) GetCompleted

func (m *QueryAirdropRequest) GetCompleted() bool

func (*QueryAirdropRequest) GetTargetAddr

func (m *QueryAirdropRequest) GetTargetAddr() string

func (*QueryAirdropRequest) Marshal

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

func (*QueryAirdropRequest) MarshalTo

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

func (*QueryAirdropRequest) MarshalToSizedBuffer

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

func (*QueryAirdropRequest) ProtoMessage

func (*QueryAirdropRequest) ProtoMessage()

func (*QueryAirdropRequest) Reset

func (m *QueryAirdropRequest) Reset()

func (*QueryAirdropRequest) Size

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

func (*QueryAirdropRequest) String

func (m *QueryAirdropRequest) String() string

func (*QueryAirdropRequest) Unmarshal

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

func (*QueryAirdropRequest) XXX_DiscardUnknown

func (m *QueryAirdropRequest) XXX_DiscardUnknown()

func (*QueryAirdropRequest) XXX_Marshal

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

func (*QueryAirdropRequest) XXX_Merge

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

func (*QueryAirdropRequest) XXX_Size

func (m *QueryAirdropRequest) XXX_Size() int

func (*QueryAirdropRequest) XXX_Unmarshal

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

type QueryAirdropResponse

type QueryAirdropResponse struct {
	Airdrop Airdrop `protobuf:"bytes,1,opt,name=airdrop,proto3" json:"airdrop"`
}

func (*QueryAirdropResponse) Descriptor

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

func (*QueryAirdropResponse) GetAirdrop

func (m *QueryAirdropResponse) GetAirdrop() Airdrop

func (*QueryAirdropResponse) Marshal

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

func (*QueryAirdropResponse) MarshalTo

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

func (*QueryAirdropResponse) MarshalToSizedBuffer

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

func (*QueryAirdropResponse) ProtoMessage

func (*QueryAirdropResponse) ProtoMessage()

func (*QueryAirdropResponse) Reset

func (m *QueryAirdropResponse) Reset()

func (*QueryAirdropResponse) Size

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

func (*QueryAirdropResponse) String

func (m *QueryAirdropResponse) String() string

func (*QueryAirdropResponse) Unmarshal

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

func (*QueryAirdropResponse) XXX_DiscardUnknown

func (m *QueryAirdropResponse) XXX_DiscardUnknown()

func (*QueryAirdropResponse) XXX_Marshal

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

func (*QueryAirdropResponse) XXX_Merge

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

func (*QueryAirdropResponse) XXX_Size

func (m *QueryAirdropResponse) XXX_Size() int

func (*QueryAirdropResponse) XXX_Unmarshal

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

type QueryAirdropsRequest

type QueryAirdropsRequest struct {
	// pagination defines an optional pagination for the request.
	Completed  bool               `protobuf:"varint,1,opt,name=completed,proto3" json:"completed,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAirdropsRequest) Descriptor

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

func (*QueryAirdropsRequest) GetCompleted

func (m *QueryAirdropsRequest) GetCompleted() bool

func (*QueryAirdropsRequest) GetPagination

func (m *QueryAirdropsRequest) GetPagination() *query.PageRequest

func (*QueryAirdropsRequest) Marshal

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

func (*QueryAirdropsRequest) MarshalTo

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

func (*QueryAirdropsRequest) MarshalToSizedBuffer

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

func (*QueryAirdropsRequest) ProtoMessage

func (*QueryAirdropsRequest) ProtoMessage()

func (*QueryAirdropsRequest) Reset

func (m *QueryAirdropsRequest) Reset()

func (*QueryAirdropsRequest) Size

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

func (*QueryAirdropsRequest) String

func (m *QueryAirdropsRequest) String() string

func (*QueryAirdropsRequest) Unmarshal

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

func (*QueryAirdropsRequest) XXX_DiscardUnknown

func (m *QueryAirdropsRequest) XXX_DiscardUnknown()

func (*QueryAirdropsRequest) XXX_Marshal

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

func (*QueryAirdropsRequest) XXX_Merge

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

func (*QueryAirdropsRequest) XXX_Size

func (m *QueryAirdropsRequest) XXX_Size() int

func (*QueryAirdropsRequest) XXX_Unmarshal

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

type QueryAirdropsResponse

type QueryAirdropsResponse struct {
	// airdrops contains all the queried airdrops.
	Airdrops []Airdrop `protobuf:"bytes,1,rep,name=airdrops,proto3" json:"airdrops"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAirdropsResponse) Descriptor

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

func (*QueryAirdropsResponse) GetAirdrops

func (m *QueryAirdropsResponse) GetAirdrops() []Airdrop

func (*QueryAirdropsResponse) GetPagination

func (m *QueryAirdropsResponse) GetPagination() *query.PageResponse

func (*QueryAirdropsResponse) Marshal

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

func (*QueryAirdropsResponse) MarshalTo

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

func (*QueryAirdropsResponse) MarshalToSizedBuffer

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

func (*QueryAirdropsResponse) ProtoMessage

func (*QueryAirdropsResponse) ProtoMessage()

func (*QueryAirdropsResponse) Reset

func (m *QueryAirdropsResponse) Reset()

func (*QueryAirdropsResponse) Size

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

func (*QueryAirdropsResponse) String

func (m *QueryAirdropsResponse) String() string

func (*QueryAirdropsResponse) Unmarshal

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

func (*QueryAirdropsResponse) XXX_DiscardUnknown

func (m *QueryAirdropsResponse) XXX_DiscardUnknown()

func (*QueryAirdropsResponse) XXX_Marshal

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

func (*QueryAirdropsResponse) XXX_Merge

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

func (*QueryAirdropsResponse) XXX_Size

func (m *QueryAirdropsResponse) XXX_Size() int

func (*QueryAirdropsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Airdrops queries airdrop targets.
	Airdrops(ctx context.Context, in *QueryAirdropsRequest, opts ...grpc.CallOption) (*QueryAirdropsResponse, error)
	// Airdrops queries airdrop target for given address.
	Airdrop(ctx context.Context, in *QueryAirdropRequest, opts ...grpc.CallOption) (*QueryAirdropResponse, error)
	// Parameters queries the parameters of the module.
	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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params 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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

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 {
	// Airdrops queries airdrop targets.
	Airdrops(context.Context, *QueryAirdropsRequest) (*QueryAirdropsResponse, error)
	// Airdrops queries airdrop target for given address.
	Airdrop(context.Context, *QueryAirdropRequest) (*QueryAirdropResponse, error)
	// Parameters queries the parameters of the module.
	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) AddAirdrops

func (*UnimplementedMsgServer) ExecuteAirdrops

func (*UnimplementedMsgServer) SetAllocationAddress

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Airdrop

func (*UnimplementedQueryServer) Airdrops

func (*UnimplementedQueryServer) Params

type VeKeeper

type VeKeeper interface {
	AddTotalEmission(ctx sdk.Context, emission sdk.Int)
}

VeKeeper defines the expected ve keeper.

Jump to

Keyboard shortcuts

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