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: 34 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 (
	EmptyVeID = 0
	FirstVeID = 1
	MaxVeID   = math.MaxUint64 - 1

	// 4 years, i.e., 209 weeks
	MaxLockTimeWeeks = merlion.DaysPer4Years/7 + 1
	MaxLockTime      = MaxLockTimeWeeks * merlion.SecondsPerWeek

	MaxUnixTime = math.MaxInt64

	// Regulated period for ve locking time
	RegulatedPeriod = merlion.SecondsPerWeek

	EmptyEpoch = 0
	FirstEpoch = 1
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "ve"

	// 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_ve"

	EmissionPoolName     = "ve_emission_pool"
	DistributionPoolName = "ve_distribution_pool"
)
View Source
const (
	TypeMsgCreate     = "create"
	TypeMsgDeposit    = "deposit"
	TypeMsgExtendTime = "extend_time"
	TypeMsgMerge      = "merge"
	TypeMsgWithdraw   = "withdraw"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	// Emission amount are halved every 4 years (almost 209 weeks).
	// For geometric sequence of every 4 years,
	// a * (r ^ n) = a * 0.5 where n = 209
	// so that <emission ratio per week> ^ 209 = 0.5
	EmissionRatio, _ = sdk.NewDecFromStr("0.9966889998035777")

	// Minimum circulating rate allowed for calculating emission
	MinEmissionCirculating = sdk.NewDecWithPrec(1, 10)
)
View Source
var (
	ErrInvalidLockDenom     = sdkerrors.Register(ModuleName, 2, "invalid lock denom")
	ErrInvalidVeID          = sdkerrors.Register(ModuleName, 3, "invalid ve id")
	ErrPastLockTime         = sdkerrors.Register(ModuleName, 4, "cannot lock until time in the past")
	ErrTooLongLockTime      = sdkerrors.Register(ModuleName, 5, "too long lock time")
	ErrNotIncreasedLockTime = sdkerrors.Register(ModuleName, 6, "lock time can only be increased")
	ErrLockNotExpired       = sdkerrors.Register(ModuleName, 7, "lock didn't expire")
	ErrLockExpired          = sdkerrors.Register(ModuleName, 8, "lock expired")
	ErrAmountNotPositive    = sdkerrors.Register(ModuleName, 9, "amount must be positive")
	ErrSameVeID             = sdkerrors.Register(ModuleName, 10, "from ve id and to ve id must be different")
	ErrVeAttached           = sdkerrors.Register(ModuleName, 11, "ve owner deposited into gauge or ve voted")
)

x/ve module sentinel errors

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
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 (
	KeyPrefixTotalLockedAmount           = []byte{prefixTotalLockedAmount}
	KeyPrefixLockedAmountByUser          = []byte{prefixLockedAmountByUser}
	KeyPrefixNextVeID                    = []byte{prefixNextVeID}
	KeyPrefixEpoch                       = []byte{prefixEpoch}
	KeyPrefixPointHistoryByEpoch         = []byte{prefixPointHistoryByEpoch}
	KeyPrefixUserEpoch                   = []byte{prefixUserEpoch}
	KeyPrefixUserPointHistoryByUserEpoch = []byte{prefixUserPointHistoryByUserEpoch}
	KeyPrefixSlopeChange                 = []byte{prefixSlopeChange}

	KeyPrefixAttached = []byte{prefixAttached}
	KeyPrefixVoted    = []byte{prefixVoted}

	KeyPrefixTotalEmission         = []byte{prefixTotalEmission}
	KeyPrefixEmissionAtLastPeriod  = []byte{prefixEmissionAtLastPeriod}
	KeyPrefixEmissionLastTimestamp = []byte{prefixEmissionLastTimestamp}

	KeyPrefixDistributionAccruedLastTimestamp     = []byte{prefixDistributionAccruedLastTimestamp}
	KeyPrefixDistributionTotalAmount              = []byte{prefixDistributionTotalAmount}
	KeyPrefixDistributionPerPeriod                = []byte{prefixDistributionPerPeriod}
	KeyPrefixDistributionClaimLastTimestampByUser = []byte{prefixDistributionClaimLastTimestampByUser}
)
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 (
	ErrInvalidLengthVe        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVe          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVe = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyLockDenom = []byte("LockDenom")
)

Parameter keys

View Source
var VeNftClass = nft.Class{
	Id:          "veNFT",
	Name:        "veNFT",
	Symbol:      "veNFT",
	Description: "Merlion locks, can be used to boost gauge yields, vote on token emission, and receive bribes",
}

VeNftClass represents the NFT class of ve

Functions

func AttachedKey

func AttachedKey(veID uint64) []byte

func CheckRegulatedUnixTime

func CheckRegulatedUnixTime(timestamp uint64)

func DistributionAccruedLastTimestampKey

func DistributionAccruedLastTimestampKey() []byte

func DistributionClaimLastTimestampByUserKey

func DistributionClaimLastTimestampByUserKey(veID uint64) []byte

func DistributionPerPeriodKey

func DistributionPerPeriodKey(timestamp uint64) []byte

func DistributionTotalAmountKey

func DistributionTotalAmountKey() []byte

func EmissionAtLastPeriodKey

func EmissionAtLastPeriodKey() []byte

func EmissionLastTimestampKey

func EmissionLastTimestampKey() []byte

func EpochKey

func EpochKey() []byte

func LockedAmountByUserKey

func LockedAmountByUserKey(veID uint64) []byte

func NextRegulatedUnixTime

func NextRegulatedUnixTime(timestamp uint64) uint64

func NextVeIDKey

func NextVeIDKey() []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func PointKey

func PointKey(epoch uint64) []byte

func PreviousRegulatedUnixTime

func PreviousRegulatedUnixTime(timestamp uint64) uint64

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)

func RegulatedUnixTime

func RegulatedUnixTime(timestamp uint64) uint64

func RegulatedUnixTimeFromNow

func RegulatedUnixTimeFromNow(ctx sdk.Context, seconds uint64) uint64

func SlopeChangeKey

func SlopeChangeKey(timestamp uint64) []byte

func TotalEmissionKey

func TotalEmissionKey() []byte

func TotalLockedAmountKey

func TotalLockedAmountKey() []byte

func Uint64FromVeID

func Uint64FromVeID(veID string) uint64

Uint64FromVeID converts ve id from string to integer

func UserEpochKey

func UserEpochKey(veID uint64) []byte

func UserPointKey

func UserPointKey(veID uint64, userEpoch uint64) []byte

func VeIDFromUint64

func VeIDFromUint64(idNumber uint64) string

VeIDFromUint64 converts ve id from integer to string

func VeNftUri

func VeNftUri(nftID string, balance sdk.Int, lockedEnd uint64, value sdk.Int) string

func VotedKey

func VotedKey(veID uint64) []byte

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Checkpoint

type Checkpoint struct {
	// voting power at checkpoint
	Bias github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=bias,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bias"`
	// weight decay slope
	// so voting power at time t: bias - slope * (t - timestamp)
	Slope github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=slope,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"slope"`
	// unix timestamp at checkpoint
	Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// block height at checkpoint
	Block int64 `protobuf:"varint,4,opt,name=block,proto3" json:"block,omitempty"`
}

Checkpoint defines a checkpoint of voting power.

func (*Checkpoint) Descriptor

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

func (*Checkpoint) GetBlock

func (m *Checkpoint) GetBlock() int64

func (*Checkpoint) GetTimestamp

func (m *Checkpoint) GetTimestamp() uint64

func (*Checkpoint) Marshal

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

func (*Checkpoint) MarshalTo

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

func (*Checkpoint) MarshalToSizedBuffer

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

func (*Checkpoint) ProtoMessage

func (*Checkpoint) ProtoMessage()

func (*Checkpoint) Reset

func (m *Checkpoint) Reset()

func (*Checkpoint) Size

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

func (*Checkpoint) String

func (m *Checkpoint) String() string

func (*Checkpoint) Unmarshal

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

func (*Checkpoint) XXX_DiscardUnknown

func (m *Checkpoint) XXX_DiscardUnknown()

func (*Checkpoint) XXX_Marshal

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

func (*Checkpoint) XXX_Merge

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

func (*Checkpoint) XXX_Size

func (m *Checkpoint) XXX_Size() int

func (*Checkpoint) XXX_Unmarshal

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

type EventCreate

type EventCreate struct {
	Sender     string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver   string     `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	VeId       string     `protobuf:"bytes,3,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	Amount     types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
	UnlockTime uint64     `protobuf:"varint,5,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty"`
}

func (*EventCreate) Descriptor

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

func (*EventCreate) GetAmount

func (m *EventCreate) GetAmount() types.Coin

func (*EventCreate) GetReceiver

func (m *EventCreate) GetReceiver() string

func (*EventCreate) GetSender

func (m *EventCreate) GetSender() string

func (*EventCreate) GetUnlockTime

func (m *EventCreate) GetUnlockTime() uint64

func (*EventCreate) GetVeId

func (m *EventCreate) GetVeId() string

func (*EventCreate) Marshal

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

func (*EventCreate) MarshalTo

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

func (*EventCreate) MarshalToSizedBuffer

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

func (*EventCreate) ProtoMessage

func (*EventCreate) ProtoMessage()

func (*EventCreate) Reset

func (m *EventCreate) Reset()

func (*EventCreate) Size

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

func (*EventCreate) String

func (m *EventCreate) String() string

func (*EventCreate) Unmarshal

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

func (*EventCreate) XXX_DiscardUnknown

func (m *EventCreate) XXX_DiscardUnknown()

func (*EventCreate) XXX_Marshal

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

func (*EventCreate) XXX_Merge

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

func (*EventCreate) XXX_Size

func (m *EventCreate) XXX_Size() int

func (*EventCreate) XXX_Unmarshal

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

type EventDeposit

type EventDeposit struct {
	Sender string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	VeId   string     `protobuf:"bytes,2,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

func (*EventDeposit) Descriptor

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

func (*EventDeposit) GetAmount

func (m *EventDeposit) GetAmount() types.Coin

func (*EventDeposit) GetSender

func (m *EventDeposit) GetSender() string

func (*EventDeposit) GetVeId

func (m *EventDeposit) GetVeId() string

func (*EventDeposit) Marshal

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

func (*EventDeposit) MarshalTo

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

func (*EventDeposit) MarshalToSizedBuffer

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

func (*EventDeposit) ProtoMessage

func (*EventDeposit) ProtoMessage()

func (*EventDeposit) Reset

func (m *EventDeposit) Reset()

func (*EventDeposit) Size

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

func (*EventDeposit) String

func (m *EventDeposit) String() string

func (*EventDeposit) Unmarshal

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

func (*EventDeposit) XXX_DiscardUnknown

func (m *EventDeposit) XXX_DiscardUnknown()

func (*EventDeposit) XXX_Marshal

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

func (*EventDeposit) XXX_Merge

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

func (*EventDeposit) XXX_Size

func (m *EventDeposit) XXX_Size() int

func (*EventDeposit) XXX_Unmarshal

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

type EventExtendTime

type EventExtendTime struct {
	Sender     string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	VeId       string `protobuf:"bytes,2,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	UnlockTime uint64 `protobuf:"varint,3,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty"`
}

func (*EventExtendTime) Descriptor

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

func (*EventExtendTime) GetSender

func (m *EventExtendTime) GetSender() string

func (*EventExtendTime) GetUnlockTime

func (m *EventExtendTime) GetUnlockTime() uint64

func (*EventExtendTime) GetVeId

func (m *EventExtendTime) GetVeId() string

func (*EventExtendTime) Marshal

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

func (*EventExtendTime) MarshalTo

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

func (*EventExtendTime) MarshalToSizedBuffer

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

func (*EventExtendTime) ProtoMessage

func (*EventExtendTime) ProtoMessage()

func (*EventExtendTime) Reset

func (m *EventExtendTime) Reset()

func (*EventExtendTime) Size

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

func (*EventExtendTime) String

func (m *EventExtendTime) String() string

func (*EventExtendTime) Unmarshal

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

func (*EventExtendTime) XXX_DiscardUnknown

func (m *EventExtendTime) XXX_DiscardUnknown()

func (*EventExtendTime) XXX_Marshal

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

func (*EventExtendTime) XXX_Merge

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

func (*EventExtendTime) XXX_Size

func (m *EventExtendTime) XXX_Size() int

func (*EventExtendTime) XXX_Unmarshal

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

type EventMerge

type EventMerge struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	FromVeId string `protobuf:"bytes,2,opt,name=from_ve_id,json=fromVeId,proto3" json:"from_ve_id,omitempty"`
	ToVeId   string `protobuf:"bytes,3,opt,name=to_ve_id,json=toVeId,proto3" json:"to_ve_id,omitempty"`
}

func (*EventMerge) Descriptor

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

func (*EventMerge) GetFromVeId

func (m *EventMerge) GetFromVeId() string

func (*EventMerge) GetSender

func (m *EventMerge) GetSender() string

func (*EventMerge) GetToVeId

func (m *EventMerge) GetToVeId() string

func (*EventMerge) Marshal

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

func (*EventMerge) MarshalTo

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

func (*EventMerge) MarshalToSizedBuffer

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

func (*EventMerge) ProtoMessage

func (*EventMerge) ProtoMessage()

func (*EventMerge) Reset

func (m *EventMerge) Reset()

func (*EventMerge) Size

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

func (*EventMerge) String

func (m *EventMerge) String() string

func (*EventMerge) Unmarshal

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

func (*EventMerge) XXX_DiscardUnknown

func (m *EventMerge) XXX_DiscardUnknown()

func (*EventMerge) XXX_Marshal

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

func (*EventMerge) XXX_Merge

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

func (*EventMerge) XXX_Size

func (m *EventMerge) XXX_Size() int

func (*EventMerge) XXX_Unmarshal

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

type EventWithdraw

type EventWithdraw struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	VeId   string `protobuf:"bytes,2,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
}

func (*EventWithdraw) Descriptor

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

func (*EventWithdraw) GetSender

func (m *EventWithdraw) GetSender() string

func (*EventWithdraw) GetVeId

func (m *EventWithdraw) GetVeId() string

func (*EventWithdraw) Marshal

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

func (*EventWithdraw) MarshalTo

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

func (*EventWithdraw) MarshalToSizedBuffer

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

func (*EventWithdraw) ProtoMessage

func (*EventWithdraw) ProtoMessage()

func (*EventWithdraw) Reset

func (m *EventWithdraw) Reset()

func (*EventWithdraw) Size

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

func (*EventWithdraw) String

func (m *EventWithdraw) String() string

func (*EventWithdraw) Unmarshal

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

func (*EventWithdraw) XXX_DiscardUnknown

func (m *EventWithdraw) XXX_DiscardUnknown()

func (*EventWithdraw) XXX_Marshal

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

func (*EventWithdraw) XXX_Merge

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

func (*EventWithdraw) XXX_Size

func (m *EventWithdraw) XXX_Size() int

func (*EventWithdraw) XXX_Unmarshal

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

type GenesisState

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

GenesisState defines the ve 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) 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 LockedBalance

type LockedBalance struct {
	// locked amount
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	// unlocking unix time
	End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
}

LockedBalance represents locked amount and unlock time of a ve.

func NewLockedBalance

func NewLockedBalance() LockedBalance

func (*LockedBalance) Descriptor

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

func (*LockedBalance) GetEnd

func (m *LockedBalance) GetEnd() uint64

func (*LockedBalance) Marshal

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

func (*LockedBalance) MarshalTo

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

func (*LockedBalance) MarshalToSizedBuffer

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

func (*LockedBalance) ProtoMessage

func (*LockedBalance) ProtoMessage()

func (*LockedBalance) Reset

func (m *LockedBalance) Reset()

func (*LockedBalance) Size

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

func (*LockedBalance) String

func (m *LockedBalance) String() string

func (*LockedBalance) Unmarshal

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

func (*LockedBalance) XXX_DiscardUnknown

func (m *LockedBalance) XXX_DiscardUnknown()

func (*LockedBalance) XXX_Marshal

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

func (*LockedBalance) XXX_Merge

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

func (*LockedBalance) XXX_Size

func (m *LockedBalance) XXX_Size() int

func (*LockedBalance) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Create creates a veNFT.
	Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error)
	// Deposit deposits some coin amount for a veNFT.
	Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
	// ExtendTime extends locking duration for a veNFT.
	ExtendTime(ctx context.Context, in *MsgExtendTime, opts ...grpc.CallOption) (*MsgExtendTimeResponse, error)
	// Merge merges a veNFT (burn it) to another veNFT.
	Merge(ctx context.Context, in *MsgMerge, opts ...grpc.CallOption) (*MsgMergeResponse, error)
	// Withdraw withdraws all coin amount of a veNFT.
	Withdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, 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 MsgCreate

type MsgCreate struct {
	Sender       string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	To           string     `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" yaml:"to"`
	Amount       types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount" yaml:"amount"`
	LockDuration uint64     `protobuf:"varint,4,opt,name=lock_duration,json=lockDuration,proto3" json:"lock_duration,omitempty" yaml:"lock_duration"`
}

func (*MsgCreate) Descriptor

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

func (*MsgCreate) GetSignBytes

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

GetSignBytes implements sdk.Msg

func (*MsgCreate) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgCreate) Marshal

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

func (*MsgCreate) MarshalTo

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

func (*MsgCreate) MarshalToSizedBuffer

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

func (*MsgCreate) ProtoMessage

func (*MsgCreate) ProtoMessage()

func (*MsgCreate) Reset

func (m *MsgCreate) Reset()

func (*MsgCreate) Route

func (m *MsgCreate) Route() string

Route implements sdk.Msg

func (*MsgCreate) Size

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

func (*MsgCreate) String

func (m *MsgCreate) String() string

func (*MsgCreate) Type

func (m *MsgCreate) Type() string

Type implements sdk.Msg

func (*MsgCreate) Unmarshal

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

func (*MsgCreate) ValidateBasic

func (m *MsgCreate) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCreate) XXX_DiscardUnknown

func (m *MsgCreate) XXX_DiscardUnknown()

func (*MsgCreate) XXX_Marshal

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

func (*MsgCreate) XXX_Merge

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

func (*MsgCreate) XXX_Size

func (m *MsgCreate) XXX_Size() int

func (*MsgCreate) XXX_Unmarshal

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

type MsgCreateResponse

type MsgCreateResponse struct {
	VeId       string `protobuf:"bytes,1,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	UnlockTime uint64 `protobuf:"varint,2,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty"`
}

func (*MsgCreateResponse) Descriptor

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

func (*MsgCreateResponse) GetUnlockTime

func (m *MsgCreateResponse) GetUnlockTime() uint64

func (*MsgCreateResponse) GetVeId

func (m *MsgCreateResponse) GetVeId() string

func (*MsgCreateResponse) Marshal

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

func (*MsgCreateResponse) MarshalTo

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

func (*MsgCreateResponse) MarshalToSizedBuffer

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

func (*MsgCreateResponse) ProtoMessage

func (*MsgCreateResponse) ProtoMessage()

func (*MsgCreateResponse) Reset

func (m *MsgCreateResponse) Reset()

func (*MsgCreateResponse) Size

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

func (*MsgCreateResponse) String

func (m *MsgCreateResponse) String() string

func (*MsgCreateResponse) Unmarshal

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

func (*MsgCreateResponse) XXX_DiscardUnknown

func (m *MsgCreateResponse) XXX_DiscardUnknown()

func (*MsgCreateResponse) XXX_Marshal

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

func (*MsgCreateResponse) XXX_Merge

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

func (*MsgCreateResponse) XXX_Size

func (m *MsgCreateResponse) XXX_Size() int

func (*MsgCreateResponse) XXX_Unmarshal

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

type MsgDeposit

type MsgDeposit struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	VeId   string `protobuf:"bytes,2,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty" yaml:"ve_id"`
	// Amount to deposit, must be greater than 0
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount" yaml:"amount"`
}

func (*MsgDeposit) Descriptor

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

func (*MsgDeposit) GetSignBytes

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

GetSignBytes implements sdk.Msg

func (*MsgDeposit) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgDeposit) Marshal

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

func (*MsgDeposit) MarshalTo

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

func (*MsgDeposit) MarshalToSizedBuffer

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

func (*MsgDeposit) ProtoMessage

func (*MsgDeposit) ProtoMessage()

func (*MsgDeposit) Reset

func (m *MsgDeposit) Reset()

func (*MsgDeposit) Route

func (m *MsgDeposit) Route() string

Route implements sdk.Msg

func (*MsgDeposit) Size

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

func (*MsgDeposit) String

func (m *MsgDeposit) String() string

func (*MsgDeposit) Type

func (m *MsgDeposit) Type() string

Type implements sdk.Msg

func (*MsgDeposit) Unmarshal

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

func (*MsgDeposit) ValidateBasic

func (m *MsgDeposit) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDeposit) XXX_DiscardUnknown

func (m *MsgDeposit) XXX_DiscardUnknown()

func (*MsgDeposit) XXX_Marshal

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

func (*MsgDeposit) XXX_Merge

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

func (*MsgDeposit) XXX_Size

func (m *MsgDeposit) XXX_Size() int

func (*MsgDeposit) XXX_Unmarshal

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

type MsgDepositResponse

type MsgDepositResponse struct {
}

func (*MsgDepositResponse) Descriptor

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

func (*MsgDepositResponse) Marshal

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

func (*MsgDepositResponse) MarshalTo

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

func (*MsgDepositResponse) MarshalToSizedBuffer

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

func (*MsgDepositResponse) ProtoMessage

func (*MsgDepositResponse) ProtoMessage()

func (*MsgDepositResponse) Reset

func (m *MsgDepositResponse) Reset()

func (*MsgDepositResponse) Size

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

func (*MsgDepositResponse) String

func (m *MsgDepositResponse) String() string

func (*MsgDepositResponse) Unmarshal

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

func (*MsgDepositResponse) XXX_DiscardUnknown

func (m *MsgDepositResponse) XXX_DiscardUnknown()

func (*MsgDepositResponse) XXX_Marshal

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

func (*MsgDepositResponse) XXX_Merge

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

func (*MsgDepositResponse) XXX_Size

func (m *MsgDepositResponse) XXX_Size() int

func (*MsgDepositResponse) XXX_Unmarshal

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

type MsgExtendTime

type MsgExtendTime struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	VeId   string `protobuf:"bytes,2,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty" yaml:"ve_id"`
	// Locking duration, must be greater than current locking duration
	LockDuration uint64 `protobuf:"varint,3,opt,name=lock_duration,json=lockDuration,proto3" json:"lock_duration,omitempty" yaml:"lock_duration"`
}

func (*MsgExtendTime) Descriptor

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

func (*MsgExtendTime) GetSignBytes

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

GetSignBytes implements sdk.Msg

func (*MsgExtendTime) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgExtendTime) Marshal

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

func (*MsgExtendTime) MarshalTo

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

func (*MsgExtendTime) MarshalToSizedBuffer

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

func (*MsgExtendTime) ProtoMessage

func (*MsgExtendTime) ProtoMessage()

func (*MsgExtendTime) Reset

func (m *MsgExtendTime) Reset()

func (*MsgExtendTime) Route

func (m *MsgExtendTime) Route() string

Route implements sdk.Msg

func (*MsgExtendTime) Size

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

func (*MsgExtendTime) String

func (m *MsgExtendTime) String() string

func (*MsgExtendTime) Type

func (m *MsgExtendTime) Type() string

Type implements sdk.Msg

func (*MsgExtendTime) Unmarshal

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

func (*MsgExtendTime) ValidateBasic

func (m *MsgExtendTime) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgExtendTime) XXX_DiscardUnknown

func (m *MsgExtendTime) XXX_DiscardUnknown()

func (*MsgExtendTime) XXX_Marshal

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

func (*MsgExtendTime) XXX_Merge

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

func (*MsgExtendTime) XXX_Size

func (m *MsgExtendTime) XXX_Size() int

func (*MsgExtendTime) XXX_Unmarshal

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

type MsgExtendTimeResponse

type MsgExtendTimeResponse struct {
}

func (*MsgExtendTimeResponse) Descriptor

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

func (*MsgExtendTimeResponse) Marshal

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

func (*MsgExtendTimeResponse) MarshalTo

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

func (*MsgExtendTimeResponse) MarshalToSizedBuffer

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

func (*MsgExtendTimeResponse) ProtoMessage

func (*MsgExtendTimeResponse) ProtoMessage()

func (*MsgExtendTimeResponse) Reset

func (m *MsgExtendTimeResponse) Reset()

func (*MsgExtendTimeResponse) Size

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

func (*MsgExtendTimeResponse) String

func (m *MsgExtendTimeResponse) String() string

func (*MsgExtendTimeResponse) Unmarshal

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

func (*MsgExtendTimeResponse) XXX_DiscardUnknown

func (m *MsgExtendTimeResponse) XXX_DiscardUnknown()

func (*MsgExtendTimeResponse) XXX_Marshal

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

func (*MsgExtendTimeResponse) XXX_Merge

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

func (*MsgExtendTimeResponse) XXX_Size

func (m *MsgExtendTimeResponse) XXX_Size() int

func (*MsgExtendTimeResponse) XXX_Unmarshal

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

type MsgMerge

type MsgMerge struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	FromVeId string `protobuf:"bytes,2,opt,name=from_ve_id,json=fromVeId,proto3" json:"from_ve_id,omitempty" yaml:"from_ve_id"`
	ToVeId   string `protobuf:"bytes,3,opt,name=to_ve_id,json=toVeId,proto3" json:"to_ve_id,omitempty" yaml:"to_ve_id"`
}

func (*MsgMerge) Descriptor

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

func (*MsgMerge) GetSignBytes

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

GetSignBytes implements sdk.Msg

func (*MsgMerge) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgMerge) Marshal

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

func (*MsgMerge) MarshalTo

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

func (*MsgMerge) MarshalToSizedBuffer

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

func (*MsgMerge) ProtoMessage

func (*MsgMerge) ProtoMessage()

func (*MsgMerge) Reset

func (m *MsgMerge) Reset()

func (*MsgMerge) Route

func (m *MsgMerge) Route() string

Route implements sdk.Msg

func (*MsgMerge) Size

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

func (*MsgMerge) String

func (m *MsgMerge) String() string

func (*MsgMerge) Type

func (m *MsgMerge) Type() string

Type implements sdk.Msg

func (*MsgMerge) Unmarshal

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

func (*MsgMerge) ValidateBasic

func (m *MsgMerge) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgMerge) XXX_DiscardUnknown

func (m *MsgMerge) XXX_DiscardUnknown()

func (*MsgMerge) XXX_Marshal

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

func (*MsgMerge) XXX_Merge

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

func (*MsgMerge) XXX_Size

func (m *MsgMerge) XXX_Size() int

func (*MsgMerge) XXX_Unmarshal

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

type MsgMergeResponse

type MsgMergeResponse struct {
}

func (*MsgMergeResponse) Descriptor

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

func (*MsgMergeResponse) Marshal

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

func (*MsgMergeResponse) MarshalTo

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

func (*MsgMergeResponse) MarshalToSizedBuffer

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

func (*MsgMergeResponse) ProtoMessage

func (*MsgMergeResponse) ProtoMessage()

func (*MsgMergeResponse) Reset

func (m *MsgMergeResponse) Reset()

func (*MsgMergeResponse) Size

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

func (*MsgMergeResponse) String

func (m *MsgMergeResponse) String() string

func (*MsgMergeResponse) Unmarshal

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

func (*MsgMergeResponse) XXX_DiscardUnknown

func (m *MsgMergeResponse) XXX_DiscardUnknown()

func (*MsgMergeResponse) XXX_Marshal

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

func (*MsgMergeResponse) XXX_Merge

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

func (*MsgMergeResponse) XXX_Size

func (m *MsgMergeResponse) XXX_Size() int

func (*MsgMergeResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Create creates a veNFT.
	Create(context.Context, *MsgCreate) (*MsgCreateResponse, error)
	// Deposit deposits some coin amount for a veNFT.
	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
	// ExtendTime extends locking duration for a veNFT.
	ExtendTime(context.Context, *MsgExtendTime) (*MsgExtendTimeResponse, error)
	// Merge merges a veNFT (burn it) to another veNFT.
	Merge(context.Context, *MsgMerge) (*MsgMergeResponse, error)
	// Withdraw withdraws all coin amount of a veNFT.
	Withdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error)
}

MsgServer is the server API for Msg service.

type MsgWithdraw

type MsgWithdraw struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	VeId   string `protobuf:"bytes,2,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty" yaml:"ve_id"`
}

func (*MsgWithdraw) Descriptor

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

func (*MsgWithdraw) GetSignBytes

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

GetSignBytes implements sdk.Msg

func (*MsgWithdraw) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgWithdraw) Marshal

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

func (*MsgWithdraw) MarshalTo

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

func (*MsgWithdraw) MarshalToSizedBuffer

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

func (*MsgWithdraw) ProtoMessage

func (*MsgWithdraw) ProtoMessage()

func (*MsgWithdraw) Reset

func (m *MsgWithdraw) Reset()

func (*MsgWithdraw) Route

func (m *MsgWithdraw) Route() string

Route implements sdk.Msg

func (*MsgWithdraw) Size

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

func (*MsgWithdraw) String

func (m *MsgWithdraw) String() string

func (*MsgWithdraw) Type

func (m *MsgWithdraw) Type() string

Type implements sdk.Msg

func (*MsgWithdraw) Unmarshal

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

func (*MsgWithdraw) ValidateBasic

func (m *MsgWithdraw) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgWithdraw) XXX_DiscardUnknown

func (m *MsgWithdraw) XXX_DiscardUnknown()

func (*MsgWithdraw) XXX_Marshal

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

func (*MsgWithdraw) XXX_Merge

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

func (*MsgWithdraw) XXX_Size

func (m *MsgWithdraw) XXX_Size() int

func (*MsgWithdraw) XXX_Unmarshal

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

type MsgWithdrawResponse

type MsgWithdrawResponse struct {
}

func (*MsgWithdrawResponse) Descriptor

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

func (*MsgWithdrawResponse) Marshal

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

func (*MsgWithdrawResponse) MarshalTo

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

func (*MsgWithdrawResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawResponse) ProtoMessage

func (*MsgWithdrawResponse) ProtoMessage()

func (*MsgWithdrawResponse) Reset

func (m *MsgWithdrawResponse) Reset()

func (*MsgWithdrawResponse) Size

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

func (*MsgWithdrawResponse) String

func (m *MsgWithdrawResponse) String() string

func (*MsgWithdrawResponse) Unmarshal

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

func (*MsgWithdrawResponse) XXX_DiscardUnknown

func (m *MsgWithdrawResponse) XXX_DiscardUnknown()

func (*MsgWithdrawResponse) XXX_Marshal

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

func (*MsgWithdrawResponse) XXX_Merge

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

func (*MsgWithdrawResponse) XXX_Size

func (m *MsgWithdrawResponse) XXX_Size() int

func (*MsgWithdrawResponse) XXX_Unmarshal

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

type NftKeeper

type NftKeeper interface {
	Transfer(ctx sdk.Context, classID string, nftID string, receiver sdk.AccAddress) error
	SaveClass(ctx sdk.Context, class nft.Class) error
	HasClass(ctx sdk.Context, classID string) bool
	Mint(ctx sdk.Context, token nft.NFT, receiver sdk.AccAddress) error
	Burn(ctx sdk.Context, classID string, nftID string) error
	GetNFTsOfClassByOwner(ctx sdk.Context, classID string, owner sdk.AccAddress) (nfts []nft.NFT)
	GetOwner(ctx sdk.Context, classID string, nftID string) sdk.AccAddress
	HasNFT(ctx sdk.Context, classID, id string) bool
	NFTs(goCtx context.Context, r *nft.QueryNFTsRequest) (*nft.QueryNFTsResponse, error)
	NFT(goCtx context.Context, r *nft.QueryNFTRequest) (*nft.QueryNFTResponse, error)
}

NftKeeper defines the expected interface needed to transfer NFT tokens.

type Params

type Params struct {
	LockDenom string `protobuf:"bytes,1,opt,name=lock_denom,json=lockDenom,proto3" json:"lock_denom,omitempty"`
}

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

func (m *Params) GetLockDenom() string

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 QueryClient

type QueryClient interface {
	// TotalVotingPower queries the total voting power.
	TotalVotingPower(ctx context.Context, in *QueryTotalVotingPowerRequest, opts ...grpc.CallOption) (*QueryTotalVotingPowerResponse, error)
	// VotingPower queries the voting power of a veNFT.
	VotingPower(ctx context.Context, in *QueryVotingPowerRequest, opts ...grpc.CallOption) (*QueryVotingPowerResponse, error)
	// VeNfts queries all veNFTs of a given owner.
	VeNfts(ctx context.Context, in *QueryVeNftsRequest, opts ...grpc.CallOption) (*QueryVeNftsResponse, error)
	// VeNft queries an veNFT based on its id.
	VeNft(ctx context.Context, in *QueryVeNftRequest, opts ...grpc.CallOption) (*QueryVeNftResponse, 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 {
	// TotalVotingPower queries the total voting power.
	TotalVotingPower(context.Context, *QueryTotalVotingPowerRequest) (*QueryTotalVotingPowerResponse, error)
	// VotingPower queries the voting power of a veNFT.
	VotingPower(context.Context, *QueryVotingPowerRequest) (*QueryVotingPowerResponse, error)
	// VeNfts queries all veNFTs of a given owner.
	VeNfts(context.Context, *QueryVeNftsRequest) (*QueryVeNftsResponse, error)
	// VeNft queries an veNFT based on its id.
	VeNft(context.Context, *QueryVeNftRequest) (*QueryVeNftResponse, error)
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalVotingPowerRequest

type QueryTotalVotingPowerRequest struct {
	AtTime  uint64 `protobuf:"varint,1,opt,name=at_time,json=atTime,proto3" json:"at_time,omitempty"`
	AtBlock int64  `protobuf:"varint,2,opt,name=at_block,json=atBlock,proto3" json:"at_block,omitempty"`
}

func (*QueryTotalVotingPowerRequest) Descriptor

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

func (*QueryTotalVotingPowerRequest) GetAtBlock

func (m *QueryTotalVotingPowerRequest) GetAtBlock() int64

func (*QueryTotalVotingPowerRequest) GetAtTime

func (m *QueryTotalVotingPowerRequest) GetAtTime() uint64

func (*QueryTotalVotingPowerRequest) Marshal

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

func (*QueryTotalVotingPowerRequest) MarshalTo

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

func (*QueryTotalVotingPowerRequest) MarshalToSizedBuffer

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

func (*QueryTotalVotingPowerRequest) ProtoMessage

func (*QueryTotalVotingPowerRequest) ProtoMessage()

func (*QueryTotalVotingPowerRequest) Reset

func (m *QueryTotalVotingPowerRequest) Reset()

func (*QueryTotalVotingPowerRequest) Size

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

func (*QueryTotalVotingPowerRequest) String

func (*QueryTotalVotingPowerRequest) Unmarshal

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

func (*QueryTotalVotingPowerRequest) XXX_DiscardUnknown

func (m *QueryTotalVotingPowerRequest) XXX_DiscardUnknown()

func (*QueryTotalVotingPowerRequest) XXX_Marshal

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

func (*QueryTotalVotingPowerRequest) XXX_Merge

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

func (*QueryTotalVotingPowerRequest) XXX_Size

func (m *QueryTotalVotingPowerRequest) XXX_Size() int

func (*QueryTotalVotingPowerRequest) XXX_Unmarshal

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

type QueryTotalVotingPowerResponse

type QueryTotalVotingPowerResponse struct {
	Power github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=power,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"power"`
}

func (*QueryTotalVotingPowerResponse) Descriptor

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

func (*QueryTotalVotingPowerResponse) Marshal

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

func (*QueryTotalVotingPowerResponse) MarshalTo

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

func (*QueryTotalVotingPowerResponse) MarshalToSizedBuffer

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

func (*QueryTotalVotingPowerResponse) ProtoMessage

func (*QueryTotalVotingPowerResponse) ProtoMessage()

func (*QueryTotalVotingPowerResponse) Reset

func (m *QueryTotalVotingPowerResponse) Reset()

func (*QueryTotalVotingPowerResponse) Size

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

func (*QueryTotalVotingPowerResponse) String

func (*QueryTotalVotingPowerResponse) Unmarshal

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

func (*QueryTotalVotingPowerResponse) XXX_DiscardUnknown

func (m *QueryTotalVotingPowerResponse) XXX_DiscardUnknown()

func (*QueryTotalVotingPowerResponse) XXX_Marshal

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

func (*QueryTotalVotingPowerResponse) XXX_Merge

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

func (*QueryTotalVotingPowerResponse) XXX_Size

func (m *QueryTotalVotingPowerResponse) XXX_Size() int

func (*QueryTotalVotingPowerResponse) XXX_Unmarshal

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

type QueryVeNftRequest

type QueryVeNftRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryVeNftRequest is the request type for the Query/VeNft RPC method

func (*QueryVeNftRequest) Descriptor

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

func (*QueryVeNftRequest) GetId

func (m *QueryVeNftRequest) GetId() string

func (*QueryVeNftRequest) Marshal

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

func (*QueryVeNftRequest) MarshalTo

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

func (*QueryVeNftRequest) MarshalToSizedBuffer

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

func (*QueryVeNftRequest) ProtoMessage

func (*QueryVeNftRequest) ProtoMessage()

func (*QueryVeNftRequest) Reset

func (m *QueryVeNftRequest) Reset()

func (*QueryVeNftRequest) Size

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

func (*QueryVeNftRequest) String

func (m *QueryVeNftRequest) String() string

func (*QueryVeNftRequest) Unmarshal

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

func (*QueryVeNftRequest) XXX_DiscardUnknown

func (m *QueryVeNftRequest) XXX_DiscardUnknown()

func (*QueryVeNftRequest) XXX_Marshal

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

func (*QueryVeNftRequest) XXX_Merge

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

func (*QueryVeNftRequest) XXX_Size

func (m *QueryVeNftRequest) XXX_Size() int

func (*QueryVeNftRequest) XXX_Unmarshal

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

type QueryVeNftResponse

type QueryVeNftResponse struct {
	Nft *nft.NFT `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft,omitempty"`
}

QueryVeNftResponse is the response type for the Query/VeNft RPC method

func (*QueryVeNftResponse) Descriptor

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

func (*QueryVeNftResponse) GetNft

func (m *QueryVeNftResponse) GetNft() *nft.NFT

func (*QueryVeNftResponse) Marshal

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

func (*QueryVeNftResponse) MarshalTo

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

func (*QueryVeNftResponse) MarshalToSizedBuffer

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

func (*QueryVeNftResponse) ProtoMessage

func (*QueryVeNftResponse) ProtoMessage()

func (*QueryVeNftResponse) Reset

func (m *QueryVeNftResponse) Reset()

func (*QueryVeNftResponse) Size

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

func (*QueryVeNftResponse) String

func (m *QueryVeNftResponse) String() string

func (*QueryVeNftResponse) Unmarshal

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

func (*QueryVeNftResponse) XXX_DiscardUnknown

func (m *QueryVeNftResponse) XXX_DiscardUnknown()

func (*QueryVeNftResponse) XXX_Marshal

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

func (*QueryVeNftResponse) XXX_Merge

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

func (*QueryVeNftResponse) XXX_Size

func (m *QueryVeNftResponse) XXX_Size() int

func (*QueryVeNftResponse) XXX_Unmarshal

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

type QueryVeNftsRequest

type QueryVeNftsRequest struct {
	Owner      string             `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryVeNftsRequest is the request type for the Query/VeNfts RPC method

func (*QueryVeNftsRequest) Descriptor

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

func (*QueryVeNftsRequest) GetOwner

func (m *QueryVeNftsRequest) GetOwner() string

func (*QueryVeNftsRequest) GetPagination

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

func (*QueryVeNftsRequest) Marshal

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

func (*QueryVeNftsRequest) MarshalTo

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

func (*QueryVeNftsRequest) MarshalToSizedBuffer

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

func (*QueryVeNftsRequest) ProtoMessage

func (*QueryVeNftsRequest) ProtoMessage()

func (*QueryVeNftsRequest) Reset

func (m *QueryVeNftsRequest) Reset()

func (*QueryVeNftsRequest) Size

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

func (*QueryVeNftsRequest) String

func (m *QueryVeNftsRequest) String() string

func (*QueryVeNftsRequest) Unmarshal

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

func (*QueryVeNftsRequest) XXX_DiscardUnknown

func (m *QueryVeNftsRequest) XXX_DiscardUnknown()

func (*QueryVeNftsRequest) XXX_Marshal

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

func (*QueryVeNftsRequest) XXX_Merge

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

func (*QueryVeNftsRequest) XXX_Size

func (m *QueryVeNftsRequest) XXX_Size() int

func (*QueryVeNftsRequest) XXX_Unmarshal

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

type QueryVeNftsResponse

type QueryVeNftsResponse struct {
	Nfts       []*nft.NFT          `protobuf:"bytes,1,rep,name=nfts,proto3" json:"nfts,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryVeNftsResponse is the response type for the Query/VeNfts RPC methods

func (*QueryVeNftsResponse) Descriptor

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

func (*QueryVeNftsResponse) GetNfts

func (m *QueryVeNftsResponse) GetNfts() []*nft.NFT

func (*QueryVeNftsResponse) GetPagination

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

func (*QueryVeNftsResponse) Marshal

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

func (*QueryVeNftsResponse) MarshalTo

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

func (*QueryVeNftsResponse) MarshalToSizedBuffer

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

func (*QueryVeNftsResponse) ProtoMessage

func (*QueryVeNftsResponse) ProtoMessage()

func (*QueryVeNftsResponse) Reset

func (m *QueryVeNftsResponse) Reset()

func (*QueryVeNftsResponse) Size

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

func (*QueryVeNftsResponse) String

func (m *QueryVeNftsResponse) String() string

func (*QueryVeNftsResponse) Unmarshal

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

func (*QueryVeNftsResponse) XXX_DiscardUnknown

func (m *QueryVeNftsResponse) XXX_DiscardUnknown()

func (*QueryVeNftsResponse) XXX_Marshal

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

func (*QueryVeNftsResponse) XXX_Merge

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

func (*QueryVeNftsResponse) XXX_Size

func (m *QueryVeNftsResponse) XXX_Size() int

func (*QueryVeNftsResponse) XXX_Unmarshal

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

type QueryVotingPowerRequest

type QueryVotingPowerRequest struct {
	VeId    string `protobuf:"bytes,1,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	AtTime  uint64 `protobuf:"varint,2,opt,name=at_time,json=atTime,proto3" json:"at_time,omitempty"`
	AtBlock int64  `protobuf:"varint,3,opt,name=at_block,json=atBlock,proto3" json:"at_block,omitempty"`
}

func (*QueryVotingPowerRequest) Descriptor

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

func (*QueryVotingPowerRequest) GetAtBlock

func (m *QueryVotingPowerRequest) GetAtBlock() int64

func (*QueryVotingPowerRequest) GetAtTime

func (m *QueryVotingPowerRequest) GetAtTime() uint64

func (*QueryVotingPowerRequest) GetVeId

func (m *QueryVotingPowerRequest) GetVeId() string

func (*QueryVotingPowerRequest) Marshal

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

func (*QueryVotingPowerRequest) MarshalTo

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

func (*QueryVotingPowerRequest) MarshalToSizedBuffer

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

func (*QueryVotingPowerRequest) ProtoMessage

func (*QueryVotingPowerRequest) ProtoMessage()

func (*QueryVotingPowerRequest) Reset

func (m *QueryVotingPowerRequest) Reset()

func (*QueryVotingPowerRequest) Size

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

func (*QueryVotingPowerRequest) String

func (m *QueryVotingPowerRequest) String() string

func (*QueryVotingPowerRequest) Unmarshal

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

func (*QueryVotingPowerRequest) XXX_DiscardUnknown

func (m *QueryVotingPowerRequest) XXX_DiscardUnknown()

func (*QueryVotingPowerRequest) XXX_Marshal

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

func (*QueryVotingPowerRequest) XXX_Merge

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

func (*QueryVotingPowerRequest) XXX_Size

func (m *QueryVotingPowerRequest) XXX_Size() int

func (*QueryVotingPowerRequest) XXX_Unmarshal

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

type QueryVotingPowerResponse

type QueryVotingPowerResponse struct {
	Power github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=power,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"power"`
}

func (*QueryVotingPowerResponse) Descriptor

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

func (*QueryVotingPowerResponse) Marshal

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

func (*QueryVotingPowerResponse) MarshalTo

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

func (*QueryVotingPowerResponse) MarshalToSizedBuffer

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

func (*QueryVotingPowerResponse) ProtoMessage

func (*QueryVotingPowerResponse) ProtoMessage()

func (*QueryVotingPowerResponse) Reset

func (m *QueryVotingPowerResponse) Reset()

func (*QueryVotingPowerResponse) Size

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

func (*QueryVotingPowerResponse) String

func (m *QueryVotingPowerResponse) String() string

func (*QueryVotingPowerResponse) Unmarshal

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

func (*QueryVotingPowerResponse) XXX_DiscardUnknown

func (m *QueryVotingPowerResponse) XXX_DiscardUnknown()

func (*QueryVotingPowerResponse) XXX_Marshal

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

func (*QueryVotingPowerResponse) XXX_Merge

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

func (*QueryVotingPowerResponse) XXX_Size

func (m *QueryVotingPowerResponse) XXX_Size() int

func (*QueryVotingPowerResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Create

func (*UnimplementedMsgServer) Deposit

func (*UnimplementedMsgServer) ExtendTime

func (*UnimplementedMsgServer) Merge

func (*UnimplementedMsgServer) Withdraw

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalVotingPower

func (*UnimplementedQueryServer) VeNft

func (*UnimplementedQueryServer) VeNfts

func (*UnimplementedQueryServer) VotingPower

Jump to

Keyboard shortcuts

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