types

package
v23.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeEvtLockTokens      = "lock_tokens"
	TypeEvtAddTokensToLock = "add_tokens_to_lock"
	TypeEvtBeginUnlockAll  = "begin_unlock_all"
	TypeEvtBeginUnlock     = "begin_unlock"

	AttributePeriodLockID         = "period_lock_id"
	AttributePeriodLockOwner      = "owner"
	AttributePeriodLockAmount     = "amount"
	AttributePeriodLockDuration   = "duration"
	AttributePeriodLockUnlockTime = "unlock_time"
	AttributeUnlockedCoins        = "unlocked_coins"
)

event types.

View Source
const (
	TypeMsgLockTokens               = "lock_tokens"
	TypeMsgBeginUnlockingAll        = "begin_unlocking_all"
	TypeMsgBeginUnlocking           = "begin_unlocking"
	TypeMsgExtendLockup             = "edit_lockup"
	TypeForceUnlock                 = "force_unlock"
	TypeMsgSetRewardReceiverAddress = "set_reward_receiver_address"
)

constants.

View Source
const (
	QueryModuleBalance                    = "module_balance"
	QueryModuleLockedAmount               = "module_locked_amount"
	QueryAccountUnlockableCoins           = "account_unlockable_coins"
	QueryAccountLockedCoins               = "account_locked_coins"
	QueryAccountLockedPastTime            = "account_locked_pastime"
	QueryAccountUnlockedBeforeTime        = "account_unlocked_beforetime"
	QueryAccountLockedPastTimeDenom       = "account_locked_denom_pastime"
	QueryLockedByID                       = "locked_by_id"
	QueryAccountLockedLongerDuration      = "account_locked_longer_than_duration"
	QueryAccountLockedLongerDurationDenom = "account_locked_longer_than_duration_denom"
	QueryAccountLockedDuration            = "account_locked_duration"
)

query endpoints supported by the lockup Querier.

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index.

View Source
const DefaultOwnerReceiverPlaceholder = ""

defaultOwnerReceiverPlaceholder is used as a place holder for default owner receiver for the reward receiver field. Using this as the value for reward receiver would indicate that the lock's reward receiver is the owner.

Variables

View Source
var (
	ErrNotLockOwner                      = errorsmod.Register(ModuleName, 1, "msg sender is not the owner of specified lock")
	ErrSyntheticLockupAlreadyExists      = errorsmod.Register(ModuleName, 2, "synthetic lockup already exists for same lock")
	ErrSyntheticDurationLongerThanNative = errorsmod.Register(ModuleName, 3, "synthetic lockup duration should be shorter than native lockup duration")
	ErrLockupNotFound                    = errorsmod.Register(ModuleName, 4, "lockup not found")
	ErrRewardReceiverIsSame              = errorsmod.Register(ModuleName, 5, "reward receiver is the same")
)

x/lockup module sentinel errors.

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 (
	// ModuleName defines the module name.
	ModuleName = "lockup"

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

	// KeyLastLockID defines key to store lock ID used by last.
	KeyLastLockID = []byte{0x01}

	// KeyPrefixPeriodLock defines prefix to store period lock by ID.
	KeyPrefixPeriodLock = []byte{0x02}

	// KeyPrefixNotUnlocking defines prefix to query iterators which hasn't started unlocking.
	KeyPrefixNotUnlocking = []byte{0x03}

	// KeyPrefixUnlocking defines prefix to query iterators which has started unlocking.
	KeyPrefixUnlocking = []byte{0x04}

	// KeyPrefixTimestamp defines prefix key for timestamp iterator key.
	KeyPrefixTimestamp = []byte{0x05}

	// KeyPrefixDuration defines prefix key for duration iterator key.
	KeyPrefixDuration = []byte{0x06}

	// KeyPrefixLockDuration defines prefix for the iteration of lock IDs by duration.
	KeyPrefixLockDuration = []byte{0x07}

	// KeyPrefixAccountLockDuration defines prefix for the iteration of lock IDs by account and duration.
	KeyPrefixAccountLockDuration = []byte{0x08}

	// KeyPrefixDenomLockDuration defines prefix for the iteration of lock IDs by denom and duration.
	KeyPrefixDenomLockDuration = []byte{0x09}

	// KeyPrefixAccountDenomLockDuration defines prefix for the iteration of lock IDs by account, denomination and duration.
	KeyPrefixAccountDenomLockDuration = []byte{0x0A}

	// KeyPrefixLockTimestamp defines prefix for the iteration of lock IDs by timestamp.
	KeyPrefixLockTimestamp = []byte{0x0B}

	// KeyPrefixAccountLockTimestamp defines prefix for the iteration of lock IDs by account and timestamp.
	KeyPrefixAccountLockTimestamp = []byte{0x0C}

	// KeyPrefixDenomLockTimestamp defines prefix for the iteration of lock IDs by denom and timestamp.
	KeyPrefixDenomLockTimestamp = []byte{0x0D}

	// KeyPrefixAccountDenomLockTimestamp defines prefix for the iteration of lock IDs by account, denomination and timestamp.
	KeyPrefixAccountDenomLockTimestamp = []byte{0x0E}

	// KeyPrefixPeriodLock defines prefix to store synthetic lockup by lock ID and synthetic suffix.
	KeyPrefixSyntheticLockup = []byte{0x0F}

	// KeyPrefixSyntheticLockTimestamp defines prefix for the iteration of synthetic lockups by timestamp.
	KeyPrefixSyntheticLockTimestamp = []byte{0x10}

	// KeyPrefixLockAccumulation defines prefix for the lock accumulation store.
	KeyPrefixLockAccumulation = []byte{0x20}

	// KeyIndexSeparator defines separator between keys when combine, it should be one that is not used in denom expression.
	KeyIndexSeparator = []byte{0xFF}
)
View Source
var (
	ErrInvalidLengthLock        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLock          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLock = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
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 (
	KeyForceUnlockAllowedAddresses = []byte("ForceUnlockAllowedAddresses")
)

Parameter store keys.

View Source
var LockQueryType_name = map[int32]string{
	0: "ByDuration",
	1: "ByTime",
	2: "NoLock",
	3: "ByGroup",
}
View Source
var LockQueryType_value = map[string]int32{
	"ByDuration": 0,
	"ByTime":     1,
	"NoLock":     2,
	"ByGroup":    3,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func IsSyntheticDenom

func IsSyntheticDenom(denom string) bool

func NativeDenom

func NativeDenom(denom string) string

quick fix for getting native denom from synthetic denom.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamTable for lockup module.

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SumLocksByDenom

func SumLocksByDenom(locks []*PeriodLock, denom string) (osmomath.Int, error)

TODO: Can we use sumtree instead here? Assumes that caller is passing in locks that contain denom

Types

type AccountKeeper

type AccountKeeper interface {
	GetAllAccounts(ctx sdk.Context) []authtypes.AccountI
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
	GetModuleAddress(moduleName string) sdk.AccAddress
}

type AccountLockedCoinsRequest

type AccountLockedCoinsRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
}

func (*AccountLockedCoinsRequest) Descriptor

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

func (*AccountLockedCoinsRequest) GetOwner

func (m *AccountLockedCoinsRequest) GetOwner() string

func (*AccountLockedCoinsRequest) Marshal

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

func (*AccountLockedCoinsRequest) MarshalTo

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

func (*AccountLockedCoinsRequest) MarshalToSizedBuffer

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

func (*AccountLockedCoinsRequest) ProtoMessage

func (*AccountLockedCoinsRequest) ProtoMessage()

func (*AccountLockedCoinsRequest) Reset

func (m *AccountLockedCoinsRequest) Reset()

func (*AccountLockedCoinsRequest) Size

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

func (*AccountLockedCoinsRequest) String

func (m *AccountLockedCoinsRequest) String() string

func (*AccountLockedCoinsRequest) Unmarshal

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

func (*AccountLockedCoinsRequest) XXX_DiscardUnknown

func (m *AccountLockedCoinsRequest) XXX_DiscardUnknown()

func (*AccountLockedCoinsRequest) XXX_Marshal

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

func (*AccountLockedCoinsRequest) XXX_Merge

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

func (*AccountLockedCoinsRequest) XXX_Size

func (m *AccountLockedCoinsRequest) XXX_Size() int

func (*AccountLockedCoinsRequest) XXX_Unmarshal

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

type AccountLockedCoinsResponse

type AccountLockedCoinsResponse struct {
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

func (*AccountLockedCoinsResponse) Descriptor

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

func (*AccountLockedCoinsResponse) GetCoins

func (*AccountLockedCoinsResponse) Marshal

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

func (*AccountLockedCoinsResponse) MarshalTo

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

func (*AccountLockedCoinsResponse) MarshalToSizedBuffer

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

func (*AccountLockedCoinsResponse) ProtoMessage

func (*AccountLockedCoinsResponse) ProtoMessage()

func (*AccountLockedCoinsResponse) Reset

func (m *AccountLockedCoinsResponse) Reset()

func (*AccountLockedCoinsResponse) Size

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

func (*AccountLockedCoinsResponse) String

func (m *AccountLockedCoinsResponse) String() string

func (*AccountLockedCoinsResponse) Unmarshal

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

func (*AccountLockedCoinsResponse) XXX_DiscardUnknown

func (m *AccountLockedCoinsResponse) XXX_DiscardUnknown()

func (*AccountLockedCoinsResponse) XXX_Marshal

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

func (*AccountLockedCoinsResponse) XXX_Merge

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

func (*AccountLockedCoinsResponse) XXX_Size

func (m *AccountLockedCoinsResponse) XXX_Size() int

func (*AccountLockedCoinsResponse) XXX_Unmarshal

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

type AccountLockedDurationRequest

type AccountLockedDurationRequest struct {
	Owner    string        `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration" yaml:"duration"`
}

func (*AccountLockedDurationRequest) Descriptor

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

func (*AccountLockedDurationRequest) GetDuration

func (m *AccountLockedDurationRequest) GetDuration() time.Duration

func (*AccountLockedDurationRequest) GetOwner

func (m *AccountLockedDurationRequest) GetOwner() string

func (*AccountLockedDurationRequest) Marshal

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

func (*AccountLockedDurationRequest) MarshalTo

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

func (*AccountLockedDurationRequest) MarshalToSizedBuffer

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

func (*AccountLockedDurationRequest) ProtoMessage

func (*AccountLockedDurationRequest) ProtoMessage()

func (*AccountLockedDurationRequest) Reset

func (m *AccountLockedDurationRequest) Reset()

func (*AccountLockedDurationRequest) Size

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

func (*AccountLockedDurationRequest) String

func (*AccountLockedDurationRequest) Unmarshal

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

func (*AccountLockedDurationRequest) XXX_DiscardUnknown

func (m *AccountLockedDurationRequest) XXX_DiscardUnknown()

func (*AccountLockedDurationRequest) XXX_Marshal

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

func (*AccountLockedDurationRequest) XXX_Merge

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

func (*AccountLockedDurationRequest) XXX_Size

func (m *AccountLockedDurationRequest) XXX_Size() int

func (*AccountLockedDurationRequest) XXX_Unmarshal

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

type AccountLockedDurationResponse

type AccountLockedDurationResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountLockedDurationResponse) Descriptor

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

func (*AccountLockedDurationResponse) GetLocks

func (m *AccountLockedDurationResponse) GetLocks() []PeriodLock

func (*AccountLockedDurationResponse) Marshal

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

func (*AccountLockedDurationResponse) MarshalTo

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

func (*AccountLockedDurationResponse) MarshalToSizedBuffer

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

func (*AccountLockedDurationResponse) ProtoMessage

func (*AccountLockedDurationResponse) ProtoMessage()

func (*AccountLockedDurationResponse) Reset

func (m *AccountLockedDurationResponse) Reset()

func (*AccountLockedDurationResponse) Size

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

func (*AccountLockedDurationResponse) String

func (*AccountLockedDurationResponse) Unmarshal

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

func (*AccountLockedDurationResponse) XXX_DiscardUnknown

func (m *AccountLockedDurationResponse) XXX_DiscardUnknown()

func (*AccountLockedDurationResponse) XXX_Marshal

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

func (*AccountLockedDurationResponse) XXX_Merge

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

func (*AccountLockedDurationResponse) XXX_Size

func (m *AccountLockedDurationResponse) XXX_Size() int

func (*AccountLockedDurationResponse) XXX_Unmarshal

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

type AccountLockedLongerDurationDenomRequest

type AccountLockedLongerDurationDenomRequest struct {
	Owner    string        `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration" yaml:"duration"`
	Denom    string        `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*AccountLockedLongerDurationDenomRequest) Descriptor

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

func (*AccountLockedLongerDurationDenomRequest) GetDenom

func (*AccountLockedLongerDurationDenomRequest) GetDuration

func (*AccountLockedLongerDurationDenomRequest) GetOwner

func (*AccountLockedLongerDurationDenomRequest) Marshal

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

func (*AccountLockedLongerDurationDenomRequest) MarshalTo

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

func (*AccountLockedLongerDurationDenomRequest) MarshalToSizedBuffer

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

func (*AccountLockedLongerDurationDenomRequest) ProtoMessage

func (*AccountLockedLongerDurationDenomRequest) Reset

func (*AccountLockedLongerDurationDenomRequest) Size

func (*AccountLockedLongerDurationDenomRequest) String

func (*AccountLockedLongerDurationDenomRequest) Unmarshal

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

func (*AccountLockedLongerDurationDenomRequest) XXX_DiscardUnknown

func (m *AccountLockedLongerDurationDenomRequest) XXX_DiscardUnknown()

func (*AccountLockedLongerDurationDenomRequest) XXX_Marshal

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

func (*AccountLockedLongerDurationDenomRequest) XXX_Merge

func (*AccountLockedLongerDurationDenomRequest) XXX_Size

func (*AccountLockedLongerDurationDenomRequest) XXX_Unmarshal

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

type AccountLockedLongerDurationDenomResponse

type AccountLockedLongerDurationDenomResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountLockedLongerDurationDenomResponse) Descriptor

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

func (*AccountLockedLongerDurationDenomResponse) GetLocks

func (*AccountLockedLongerDurationDenomResponse) Marshal

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

func (*AccountLockedLongerDurationDenomResponse) MarshalTo

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

func (*AccountLockedLongerDurationDenomResponse) MarshalToSizedBuffer

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

func (*AccountLockedLongerDurationDenomResponse) ProtoMessage

func (*AccountLockedLongerDurationDenomResponse) Reset

func (*AccountLockedLongerDurationDenomResponse) Size

func (*AccountLockedLongerDurationDenomResponse) String

func (*AccountLockedLongerDurationDenomResponse) Unmarshal

func (*AccountLockedLongerDurationDenomResponse) XXX_DiscardUnknown

func (m *AccountLockedLongerDurationDenomResponse) XXX_DiscardUnknown()

func (*AccountLockedLongerDurationDenomResponse) XXX_Marshal

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

func (*AccountLockedLongerDurationDenomResponse) XXX_Merge

func (*AccountLockedLongerDurationDenomResponse) XXX_Size

func (*AccountLockedLongerDurationDenomResponse) XXX_Unmarshal

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

type AccountLockedLongerDurationNotUnlockingOnlyRequest

type AccountLockedLongerDurationNotUnlockingOnlyRequest struct {
	Owner    string        `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration" yaml:"duration"`
}

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) Descriptor

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) GetDuration

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) GetOwner

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) Marshal

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) MarshalTo

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) MarshalToSizedBuffer

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

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) ProtoMessage

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) Reset

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) Size

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) String

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) Unmarshal

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) XXX_DiscardUnknown

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) XXX_Marshal

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

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) XXX_Merge

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) XXX_Size

func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) XXX_Unmarshal

type AccountLockedLongerDurationNotUnlockingOnlyResponse

type AccountLockedLongerDurationNotUnlockingOnlyResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) Descriptor

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) GetLocks

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) Marshal

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) MarshalTo

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) MarshalToSizedBuffer

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

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) ProtoMessage

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) Reset

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) Size

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) String

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) Unmarshal

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) XXX_DiscardUnknown

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) XXX_Marshal

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

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) XXX_Merge

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) XXX_Size

func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) XXX_Unmarshal

type AccountLockedLongerDurationRequest

type AccountLockedLongerDurationRequest struct {
	Owner    string        `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration" yaml:"duration"`
}

func (*AccountLockedLongerDurationRequest) Descriptor

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

func (*AccountLockedLongerDurationRequest) GetDuration

func (*AccountLockedLongerDurationRequest) GetOwner

func (*AccountLockedLongerDurationRequest) Marshal

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

func (*AccountLockedLongerDurationRequest) MarshalTo

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

func (*AccountLockedLongerDurationRequest) MarshalToSizedBuffer

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

func (*AccountLockedLongerDurationRequest) ProtoMessage

func (*AccountLockedLongerDurationRequest) ProtoMessage()

func (*AccountLockedLongerDurationRequest) Reset

func (*AccountLockedLongerDurationRequest) Size

func (*AccountLockedLongerDurationRequest) String

func (*AccountLockedLongerDurationRequest) Unmarshal

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

func (*AccountLockedLongerDurationRequest) XXX_DiscardUnknown

func (m *AccountLockedLongerDurationRequest) XXX_DiscardUnknown()

func (*AccountLockedLongerDurationRequest) XXX_Marshal

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

func (*AccountLockedLongerDurationRequest) XXX_Merge

func (*AccountLockedLongerDurationRequest) XXX_Size

func (*AccountLockedLongerDurationRequest) XXX_Unmarshal

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

type AccountLockedLongerDurationResponse

type AccountLockedLongerDurationResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountLockedLongerDurationResponse) Descriptor

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

func (*AccountLockedLongerDurationResponse) GetLocks

func (*AccountLockedLongerDurationResponse) Marshal

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

func (*AccountLockedLongerDurationResponse) MarshalTo

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

func (*AccountLockedLongerDurationResponse) MarshalToSizedBuffer

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

func (*AccountLockedLongerDurationResponse) ProtoMessage

func (*AccountLockedLongerDurationResponse) ProtoMessage()

func (*AccountLockedLongerDurationResponse) Reset

func (*AccountLockedLongerDurationResponse) Size

func (*AccountLockedLongerDurationResponse) String

func (*AccountLockedLongerDurationResponse) Unmarshal

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

func (*AccountLockedLongerDurationResponse) XXX_DiscardUnknown

func (m *AccountLockedLongerDurationResponse) XXX_DiscardUnknown()

func (*AccountLockedLongerDurationResponse) XXX_Marshal

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

func (*AccountLockedLongerDurationResponse) XXX_Merge

func (*AccountLockedLongerDurationResponse) XXX_Size

func (*AccountLockedLongerDurationResponse) XXX_Unmarshal

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

type AccountLockedPastTimeDenomRequest

type AccountLockedPastTimeDenomRequest struct {
	Owner     string    `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
	Denom     string    `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*AccountLockedPastTimeDenomRequest) Descriptor

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

func (*AccountLockedPastTimeDenomRequest) GetDenom

func (*AccountLockedPastTimeDenomRequest) GetOwner

func (*AccountLockedPastTimeDenomRequest) GetTimestamp

func (m *AccountLockedPastTimeDenomRequest) GetTimestamp() time.Time

func (*AccountLockedPastTimeDenomRequest) Marshal

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

func (*AccountLockedPastTimeDenomRequest) MarshalTo

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

func (*AccountLockedPastTimeDenomRequest) MarshalToSizedBuffer

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

func (*AccountLockedPastTimeDenomRequest) ProtoMessage

func (*AccountLockedPastTimeDenomRequest) ProtoMessage()

func (*AccountLockedPastTimeDenomRequest) Reset

func (*AccountLockedPastTimeDenomRequest) Size

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

func (*AccountLockedPastTimeDenomRequest) String

func (*AccountLockedPastTimeDenomRequest) Unmarshal

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

func (*AccountLockedPastTimeDenomRequest) XXX_DiscardUnknown

func (m *AccountLockedPastTimeDenomRequest) XXX_DiscardUnknown()

func (*AccountLockedPastTimeDenomRequest) XXX_Marshal

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

func (*AccountLockedPastTimeDenomRequest) XXX_Merge

func (*AccountLockedPastTimeDenomRequest) XXX_Size

func (m *AccountLockedPastTimeDenomRequest) XXX_Size() int

func (*AccountLockedPastTimeDenomRequest) XXX_Unmarshal

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

type AccountLockedPastTimeDenomResponse

type AccountLockedPastTimeDenomResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountLockedPastTimeDenomResponse) Descriptor

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

func (*AccountLockedPastTimeDenomResponse) GetLocks

func (*AccountLockedPastTimeDenomResponse) Marshal

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

func (*AccountLockedPastTimeDenomResponse) MarshalTo

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

func (*AccountLockedPastTimeDenomResponse) MarshalToSizedBuffer

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

func (*AccountLockedPastTimeDenomResponse) ProtoMessage

func (*AccountLockedPastTimeDenomResponse) ProtoMessage()

func (*AccountLockedPastTimeDenomResponse) Reset

func (*AccountLockedPastTimeDenomResponse) Size

func (*AccountLockedPastTimeDenomResponse) String

func (*AccountLockedPastTimeDenomResponse) Unmarshal

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

func (*AccountLockedPastTimeDenomResponse) XXX_DiscardUnknown

func (m *AccountLockedPastTimeDenomResponse) XXX_DiscardUnknown()

func (*AccountLockedPastTimeDenomResponse) XXX_Marshal

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

func (*AccountLockedPastTimeDenomResponse) XXX_Merge

func (*AccountLockedPastTimeDenomResponse) XXX_Size

func (*AccountLockedPastTimeDenomResponse) XXX_Unmarshal

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

type AccountLockedPastTimeNotUnlockingOnlyRequest

type AccountLockedPastTimeNotUnlockingOnlyRequest struct {
	Owner     string    `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
}

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) Descriptor

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) GetOwner

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) GetTimestamp

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) Marshal

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

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) MarshalTo

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) MarshalToSizedBuffer

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

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) ProtoMessage

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) Reset

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) Size

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) String

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) Unmarshal

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) XXX_DiscardUnknown

func (m *AccountLockedPastTimeNotUnlockingOnlyRequest) XXX_DiscardUnknown()

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) XXX_Marshal

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

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) XXX_Merge

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) XXX_Size

func (*AccountLockedPastTimeNotUnlockingOnlyRequest) XXX_Unmarshal

type AccountLockedPastTimeNotUnlockingOnlyResponse

type AccountLockedPastTimeNotUnlockingOnlyResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) Descriptor

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) GetLocks

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) Marshal

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

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) MarshalTo

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) MarshalToSizedBuffer

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

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) ProtoMessage

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) Reset

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) Size

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) String

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) Unmarshal

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) XXX_DiscardUnknown

func (m *AccountLockedPastTimeNotUnlockingOnlyResponse) XXX_DiscardUnknown()

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) XXX_Marshal

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

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) XXX_Merge

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) XXX_Size

func (*AccountLockedPastTimeNotUnlockingOnlyResponse) XXX_Unmarshal

type AccountLockedPastTimeRequest

type AccountLockedPastTimeRequest struct {
	Owner     string    `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
}

func (*AccountLockedPastTimeRequest) Descriptor

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

func (*AccountLockedPastTimeRequest) GetOwner

func (m *AccountLockedPastTimeRequest) GetOwner() string

func (*AccountLockedPastTimeRequest) GetTimestamp

func (m *AccountLockedPastTimeRequest) GetTimestamp() time.Time

func (*AccountLockedPastTimeRequest) Marshal

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

func (*AccountLockedPastTimeRequest) MarshalTo

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

func (*AccountLockedPastTimeRequest) MarshalToSizedBuffer

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

func (*AccountLockedPastTimeRequest) ProtoMessage

func (*AccountLockedPastTimeRequest) ProtoMessage()

func (*AccountLockedPastTimeRequest) Reset

func (m *AccountLockedPastTimeRequest) Reset()

func (*AccountLockedPastTimeRequest) Size

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

func (*AccountLockedPastTimeRequest) String

func (*AccountLockedPastTimeRequest) Unmarshal

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

func (*AccountLockedPastTimeRequest) XXX_DiscardUnknown

func (m *AccountLockedPastTimeRequest) XXX_DiscardUnknown()

func (*AccountLockedPastTimeRequest) XXX_Marshal

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

func (*AccountLockedPastTimeRequest) XXX_Merge

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

func (*AccountLockedPastTimeRequest) XXX_Size

func (m *AccountLockedPastTimeRequest) XXX_Size() int

func (*AccountLockedPastTimeRequest) XXX_Unmarshal

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

type AccountLockedPastTimeResponse

type AccountLockedPastTimeResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountLockedPastTimeResponse) Descriptor

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

func (*AccountLockedPastTimeResponse) GetLocks

func (m *AccountLockedPastTimeResponse) GetLocks() []PeriodLock

func (*AccountLockedPastTimeResponse) Marshal

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

func (*AccountLockedPastTimeResponse) MarshalTo

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

func (*AccountLockedPastTimeResponse) MarshalToSizedBuffer

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

func (*AccountLockedPastTimeResponse) ProtoMessage

func (*AccountLockedPastTimeResponse) ProtoMessage()

func (*AccountLockedPastTimeResponse) Reset

func (m *AccountLockedPastTimeResponse) Reset()

func (*AccountLockedPastTimeResponse) Size

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

func (*AccountLockedPastTimeResponse) String

func (*AccountLockedPastTimeResponse) Unmarshal

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

func (*AccountLockedPastTimeResponse) XXX_DiscardUnknown

func (m *AccountLockedPastTimeResponse) XXX_DiscardUnknown()

func (*AccountLockedPastTimeResponse) XXX_Marshal

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

func (*AccountLockedPastTimeResponse) XXX_Merge

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

func (*AccountLockedPastTimeResponse) XXX_Size

func (m *AccountLockedPastTimeResponse) XXX_Size() int

func (*AccountLockedPastTimeResponse) XXX_Unmarshal

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

type AccountUnlockableCoinsRequest

type AccountUnlockableCoinsRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
}

func (*AccountUnlockableCoinsRequest) Descriptor

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

func (*AccountUnlockableCoinsRequest) GetOwner

func (m *AccountUnlockableCoinsRequest) GetOwner() string

func (*AccountUnlockableCoinsRequest) Marshal

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

func (*AccountUnlockableCoinsRequest) MarshalTo

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

func (*AccountUnlockableCoinsRequest) MarshalToSizedBuffer

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

func (*AccountUnlockableCoinsRequest) ProtoMessage

func (*AccountUnlockableCoinsRequest) ProtoMessage()

func (*AccountUnlockableCoinsRequest) Reset

func (m *AccountUnlockableCoinsRequest) Reset()

func (*AccountUnlockableCoinsRequest) Size

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

func (*AccountUnlockableCoinsRequest) String

func (*AccountUnlockableCoinsRequest) Unmarshal

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

func (*AccountUnlockableCoinsRequest) XXX_DiscardUnknown

func (m *AccountUnlockableCoinsRequest) XXX_DiscardUnknown()

func (*AccountUnlockableCoinsRequest) XXX_Marshal

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

func (*AccountUnlockableCoinsRequest) XXX_Merge

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

func (*AccountUnlockableCoinsRequest) XXX_Size

func (m *AccountUnlockableCoinsRequest) XXX_Size() int

func (*AccountUnlockableCoinsRequest) XXX_Unmarshal

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

type AccountUnlockableCoinsResponse

type AccountUnlockableCoinsResponse struct {
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

func (*AccountUnlockableCoinsResponse) Descriptor

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

func (*AccountUnlockableCoinsResponse) GetCoins

func (*AccountUnlockableCoinsResponse) Marshal

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

func (*AccountUnlockableCoinsResponse) MarshalTo

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

func (*AccountUnlockableCoinsResponse) MarshalToSizedBuffer

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

func (*AccountUnlockableCoinsResponse) ProtoMessage

func (*AccountUnlockableCoinsResponse) ProtoMessage()

func (*AccountUnlockableCoinsResponse) Reset

func (m *AccountUnlockableCoinsResponse) Reset()

func (*AccountUnlockableCoinsResponse) Size

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

func (*AccountUnlockableCoinsResponse) String

func (*AccountUnlockableCoinsResponse) Unmarshal

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

func (*AccountUnlockableCoinsResponse) XXX_DiscardUnknown

func (m *AccountUnlockableCoinsResponse) XXX_DiscardUnknown()

func (*AccountUnlockableCoinsResponse) XXX_Marshal

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

func (*AccountUnlockableCoinsResponse) XXX_Merge

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

func (*AccountUnlockableCoinsResponse) XXX_Size

func (m *AccountUnlockableCoinsResponse) XXX_Size() int

func (*AccountUnlockableCoinsResponse) XXX_Unmarshal

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

type AccountUnlockedBeforeTimeRequest

type AccountUnlockedBeforeTimeRequest struct {
	Owner     string    `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
}

func (*AccountUnlockedBeforeTimeRequest) Descriptor

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

func (*AccountUnlockedBeforeTimeRequest) GetOwner

func (*AccountUnlockedBeforeTimeRequest) GetTimestamp

func (m *AccountUnlockedBeforeTimeRequest) GetTimestamp() time.Time

func (*AccountUnlockedBeforeTimeRequest) Marshal

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

func (*AccountUnlockedBeforeTimeRequest) MarshalTo

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

func (*AccountUnlockedBeforeTimeRequest) MarshalToSizedBuffer

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

func (*AccountUnlockedBeforeTimeRequest) ProtoMessage

func (*AccountUnlockedBeforeTimeRequest) ProtoMessage()

func (*AccountUnlockedBeforeTimeRequest) Reset

func (*AccountUnlockedBeforeTimeRequest) Size

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

func (*AccountUnlockedBeforeTimeRequest) String

func (*AccountUnlockedBeforeTimeRequest) Unmarshal

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

func (*AccountUnlockedBeforeTimeRequest) XXX_DiscardUnknown

func (m *AccountUnlockedBeforeTimeRequest) XXX_DiscardUnknown()

func (*AccountUnlockedBeforeTimeRequest) XXX_Marshal

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

func (*AccountUnlockedBeforeTimeRequest) XXX_Merge

func (*AccountUnlockedBeforeTimeRequest) XXX_Size

func (m *AccountUnlockedBeforeTimeRequest) XXX_Size() int

func (*AccountUnlockedBeforeTimeRequest) XXX_Unmarshal

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

type AccountUnlockedBeforeTimeResponse

type AccountUnlockedBeforeTimeResponse struct {
	Locks []PeriodLock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks"`
}

func (*AccountUnlockedBeforeTimeResponse) Descriptor

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

func (*AccountUnlockedBeforeTimeResponse) GetLocks

func (*AccountUnlockedBeforeTimeResponse) Marshal

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

func (*AccountUnlockedBeforeTimeResponse) MarshalTo

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

func (*AccountUnlockedBeforeTimeResponse) MarshalToSizedBuffer

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

func (*AccountUnlockedBeforeTimeResponse) ProtoMessage

func (*AccountUnlockedBeforeTimeResponse) ProtoMessage()

func (*AccountUnlockedBeforeTimeResponse) Reset

func (*AccountUnlockedBeforeTimeResponse) Size

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

func (*AccountUnlockedBeforeTimeResponse) String

func (*AccountUnlockedBeforeTimeResponse) Unmarshal

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

func (*AccountUnlockedBeforeTimeResponse) XXX_DiscardUnknown

func (m *AccountUnlockedBeforeTimeResponse) XXX_DiscardUnknown()

func (*AccountUnlockedBeforeTimeResponse) XXX_Marshal

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

func (*AccountUnlockedBeforeTimeResponse) XXX_Merge

func (*AccountUnlockedBeforeTimeResponse) XXX_Size

func (m *AccountUnlockedBeforeTimeResponse) XXX_Size() int

func (*AccountUnlockedBeforeTimeResponse) XXX_Unmarshal

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

type AccountUnlockingCoinsRequest

type AccountUnlockingCoinsRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
}

func (*AccountUnlockingCoinsRequest) Descriptor

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

func (*AccountUnlockingCoinsRequest) GetOwner

func (m *AccountUnlockingCoinsRequest) GetOwner() string

func (*AccountUnlockingCoinsRequest) Marshal

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

func (*AccountUnlockingCoinsRequest) MarshalTo

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

func (*AccountUnlockingCoinsRequest) MarshalToSizedBuffer

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

func (*AccountUnlockingCoinsRequest) ProtoMessage

func (*AccountUnlockingCoinsRequest) ProtoMessage()

func (*AccountUnlockingCoinsRequest) Reset

func (m *AccountUnlockingCoinsRequest) Reset()

func (*AccountUnlockingCoinsRequest) Size

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

func (*AccountUnlockingCoinsRequest) String

func (*AccountUnlockingCoinsRequest) Unmarshal

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

func (*AccountUnlockingCoinsRequest) XXX_DiscardUnknown

func (m *AccountUnlockingCoinsRequest) XXX_DiscardUnknown()

func (*AccountUnlockingCoinsRequest) XXX_Marshal

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

func (*AccountUnlockingCoinsRequest) XXX_Merge

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

func (*AccountUnlockingCoinsRequest) XXX_Size

func (m *AccountUnlockingCoinsRequest) XXX_Size() int

func (*AccountUnlockingCoinsRequest) XXX_Unmarshal

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

type AccountUnlockingCoinsResponse

type AccountUnlockingCoinsResponse struct {
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

func (*AccountUnlockingCoinsResponse) Descriptor

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

func (*AccountUnlockingCoinsResponse) GetCoins

func (*AccountUnlockingCoinsResponse) Marshal

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

func (*AccountUnlockingCoinsResponse) MarshalTo

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

func (*AccountUnlockingCoinsResponse) MarshalToSizedBuffer

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

func (*AccountUnlockingCoinsResponse) ProtoMessage

func (*AccountUnlockingCoinsResponse) ProtoMessage()

func (*AccountUnlockingCoinsResponse) Reset

func (m *AccountUnlockingCoinsResponse) Reset()

func (*AccountUnlockingCoinsResponse) Size

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

func (*AccountUnlockingCoinsResponse) String

func (*AccountUnlockingCoinsResponse) Unmarshal

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

func (*AccountUnlockingCoinsResponse) XXX_DiscardUnknown

func (m *AccountUnlockingCoinsResponse) XXX_DiscardUnknown()

func (*AccountUnlockingCoinsResponse) XXX_Marshal

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

func (*AccountUnlockingCoinsResponse) XXX_Merge

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

func (*AccountUnlockingCoinsResponse) XXX_Size

func (m *AccountUnlockingCoinsResponse) XXX_Size() int

func (*AccountUnlockingCoinsResponse) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	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

	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommunityPoolKeeper

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

type GenesisState

type GenesisState struct {
	LastLockId     uint64          `protobuf:"varint,1,opt,name=last_lock_id,json=lastLockId,proto3" json:"last_lock_id,omitempty"`
	Locks          []PeriodLock    `protobuf:"bytes,2,rep,name=locks,proto3" json:"locks"`
	SyntheticLocks []SyntheticLock `protobuf:"bytes,3,rep,name=synthetic_locks,json=syntheticLocks,proto3" json:"synthetic_locks"`
	Params         *Params         `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"`
}

GenesisState defines the lockup 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) GetLastLockId

func (m *GenesisState) GetLastLockId() uint64

func (*GenesisState) GetLocks

func (m *GenesisState) GetLocks() []PeriodLock

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() *Params

func (*GenesisState) GetSyntheticLocks

func (m *GenesisState) GetSyntheticLocks() []SyntheticLock

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 LockI

type LockI interface {
	GetOwner() string
	Amount() sdk.Coins
}

type LockQueryType

type LockQueryType int32

LockQueryType defines the type of the lock query that can either be by duration or start time of the lock.

const (
	ByDuration LockQueryType = 0
	ByTime     LockQueryType = 1
	NoLock     LockQueryType = 2
	ByGroup    LockQueryType = 3
)

func (LockQueryType) EnumDescriptor

func (LockQueryType) EnumDescriptor() ([]byte, []int)

func (LockQueryType) String

func (x LockQueryType) String() string

type LockRewardReceiverRequest

type LockRewardReceiverRequest struct {
	LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

func (*LockRewardReceiverRequest) Descriptor

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

func (*LockRewardReceiverRequest) GetLockId

func (m *LockRewardReceiverRequest) GetLockId() uint64

func (*LockRewardReceiverRequest) Marshal

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

func (*LockRewardReceiverRequest) MarshalTo

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

func (*LockRewardReceiverRequest) MarshalToSizedBuffer

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

func (*LockRewardReceiverRequest) ProtoMessage

func (*LockRewardReceiverRequest) ProtoMessage()

func (*LockRewardReceiverRequest) Reset

func (m *LockRewardReceiverRequest) Reset()

func (*LockRewardReceiverRequest) Size

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

func (*LockRewardReceiverRequest) String

func (m *LockRewardReceiverRequest) String() string

func (*LockRewardReceiverRequest) Unmarshal

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

func (*LockRewardReceiverRequest) XXX_DiscardUnknown

func (m *LockRewardReceiverRequest) XXX_DiscardUnknown()

func (*LockRewardReceiverRequest) XXX_Marshal

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

func (*LockRewardReceiverRequest) XXX_Merge

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

func (*LockRewardReceiverRequest) XXX_Size

func (m *LockRewardReceiverRequest) XXX_Size() int

func (*LockRewardReceiverRequest) XXX_Unmarshal

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

type LockRewardReceiverResponse

type LockRewardReceiverResponse struct {
	RewardReceiver string `protobuf:"bytes,1,opt,name=reward_receiver,json=rewardReceiver,proto3" json:"reward_receiver,omitempty"`
}

func (*LockRewardReceiverResponse) Descriptor

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

func (*LockRewardReceiverResponse) GetRewardReceiver

func (m *LockRewardReceiverResponse) GetRewardReceiver() string

func (*LockRewardReceiverResponse) Marshal

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

func (*LockRewardReceiverResponse) MarshalTo

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

func (*LockRewardReceiverResponse) MarshalToSizedBuffer

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

func (*LockRewardReceiverResponse) ProtoMessage

func (*LockRewardReceiverResponse) ProtoMessage()

func (*LockRewardReceiverResponse) Reset

func (m *LockRewardReceiverResponse) Reset()

func (*LockRewardReceiverResponse) Size

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

func (*LockRewardReceiverResponse) String

func (m *LockRewardReceiverResponse) String() string

func (*LockRewardReceiverResponse) Unmarshal

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

func (*LockRewardReceiverResponse) XXX_DiscardUnknown

func (m *LockRewardReceiverResponse) XXX_DiscardUnknown()

func (*LockRewardReceiverResponse) XXX_Marshal

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

func (*LockRewardReceiverResponse) XXX_Merge

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

func (*LockRewardReceiverResponse) XXX_Size

func (m *LockRewardReceiverResponse) XXX_Size() int

func (*LockRewardReceiverResponse) XXX_Unmarshal

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

type LockedDenomRequest

type LockedDenomRequest struct {
	Denom    string        `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration" yaml:"duration"`
}

func (*LockedDenomRequest) Descriptor

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

func (*LockedDenomRequest) GetDenom

func (m *LockedDenomRequest) GetDenom() string

func (*LockedDenomRequest) GetDuration

func (m *LockedDenomRequest) GetDuration() time.Duration

func (*LockedDenomRequest) Marshal

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

func (*LockedDenomRequest) MarshalTo

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

func (*LockedDenomRequest) MarshalToSizedBuffer

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

func (*LockedDenomRequest) ProtoMessage

func (*LockedDenomRequest) ProtoMessage()

func (*LockedDenomRequest) Reset

func (m *LockedDenomRequest) Reset()

func (*LockedDenomRequest) Size

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

func (*LockedDenomRequest) String

func (m *LockedDenomRequest) String() string

func (*LockedDenomRequest) Unmarshal

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

func (*LockedDenomRequest) XXX_DiscardUnknown

func (m *LockedDenomRequest) XXX_DiscardUnknown()

func (*LockedDenomRequest) XXX_Marshal

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

func (*LockedDenomRequest) XXX_Merge

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

func (*LockedDenomRequest) XXX_Size

func (m *LockedDenomRequest) XXX_Size() int

func (*LockedDenomRequest) XXX_Unmarshal

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

type LockedDenomResponse

type LockedDenomResponse struct {
	Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount" yaml:"amount"`
}

func (*LockedDenomResponse) Descriptor

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

func (*LockedDenomResponse) Marshal

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

func (*LockedDenomResponse) MarshalTo

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

func (*LockedDenomResponse) MarshalToSizedBuffer

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

func (*LockedDenomResponse) ProtoMessage

func (*LockedDenomResponse) ProtoMessage()

func (*LockedDenomResponse) Reset

func (m *LockedDenomResponse) Reset()

func (*LockedDenomResponse) Size

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

func (*LockedDenomResponse) String

func (m *LockedDenomResponse) String() string

func (*LockedDenomResponse) Unmarshal

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

func (*LockedDenomResponse) XXX_DiscardUnknown

func (m *LockedDenomResponse) XXX_DiscardUnknown()

func (*LockedDenomResponse) XXX_Marshal

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

func (*LockedDenomResponse) XXX_Merge

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

func (*LockedDenomResponse) XXX_Size

func (m *LockedDenomResponse) XXX_Size() int

func (*LockedDenomResponse) XXX_Unmarshal

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

type LockedRequest

type LockedRequest struct {
	LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

func (*LockedRequest) Descriptor

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

func (*LockedRequest) GetLockId

func (m *LockedRequest) GetLockId() uint64

func (*LockedRequest) Marshal

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

func (*LockedRequest) MarshalTo

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

func (*LockedRequest) MarshalToSizedBuffer

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

func (*LockedRequest) ProtoMessage

func (*LockedRequest) ProtoMessage()

func (*LockedRequest) Reset

func (m *LockedRequest) Reset()

func (*LockedRequest) Size

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

func (*LockedRequest) String

func (m *LockedRequest) String() string

func (*LockedRequest) Unmarshal

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

func (*LockedRequest) XXX_DiscardUnknown

func (m *LockedRequest) XXX_DiscardUnknown()

func (*LockedRequest) XXX_Marshal

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

func (*LockedRequest) XXX_Merge

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

func (*LockedRequest) XXX_Size

func (m *LockedRequest) XXX_Size() int

func (*LockedRequest) XXX_Unmarshal

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

type LockedResponse

type LockedResponse struct {
	Lock *PeriodLock `protobuf:"bytes,1,opt,name=lock,proto3" json:"lock,omitempty"`
}

func (*LockedResponse) Descriptor

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

func (*LockedResponse) GetLock

func (m *LockedResponse) GetLock() *PeriodLock

func (*LockedResponse) Marshal

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

func (*LockedResponse) MarshalTo

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

func (*LockedResponse) MarshalToSizedBuffer

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

func (*LockedResponse) ProtoMessage

func (*LockedResponse) ProtoMessage()

func (*LockedResponse) Reset

func (m *LockedResponse) Reset()

func (*LockedResponse) Size

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

func (*LockedResponse) String

func (m *LockedResponse) String() string

func (*LockedResponse) Unmarshal

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

func (*LockedResponse) XXX_DiscardUnknown

func (m *LockedResponse) XXX_DiscardUnknown()

func (*LockedResponse) XXX_Marshal

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

func (*LockedResponse) XXX_Merge

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

func (*LockedResponse) XXX_Size

func (m *LockedResponse) XXX_Size() int

func (*LockedResponse) XXX_Unmarshal

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

type LockupHooks

type LockupHooks interface {
	AfterAddTokensToLock(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins)
	OnTokenLocked(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins, lockDuration time.Duration, unlockTime time.Time)
	OnStartUnlock(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins, lockDuration time.Duration, unlockTime time.Time)
	OnTokenUnlocked(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins, lockDuration time.Duration, unlockTime time.Time)
	OnTokenSlashed(ctx sdk.Context, lockID uint64, amount sdk.Coins)
	OnLockupExtend(ctx sdk.Context, lockID uint64, prevDuration time.Duration, newDuration time.Duration)
}

type ModuleBalanceRequest

type ModuleBalanceRequest struct {
}

func (*ModuleBalanceRequest) Descriptor

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

func (*ModuleBalanceRequest) Marshal

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

func (*ModuleBalanceRequest) MarshalTo

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

func (*ModuleBalanceRequest) MarshalToSizedBuffer

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

func (*ModuleBalanceRequest) ProtoMessage

func (*ModuleBalanceRequest) ProtoMessage()

func (*ModuleBalanceRequest) Reset

func (m *ModuleBalanceRequest) Reset()

func (*ModuleBalanceRequest) Size

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

func (*ModuleBalanceRequest) String

func (m *ModuleBalanceRequest) String() string

func (*ModuleBalanceRequest) Unmarshal

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

func (*ModuleBalanceRequest) XXX_DiscardUnknown

func (m *ModuleBalanceRequest) XXX_DiscardUnknown()

func (*ModuleBalanceRequest) XXX_Marshal

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

func (*ModuleBalanceRequest) XXX_Merge

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

func (*ModuleBalanceRequest) XXX_Size

func (m *ModuleBalanceRequest) XXX_Size() int

func (*ModuleBalanceRequest) XXX_Unmarshal

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

type ModuleBalanceResponse

type ModuleBalanceResponse struct {
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

func (*ModuleBalanceResponse) Descriptor

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

func (*ModuleBalanceResponse) GetCoins

func (*ModuleBalanceResponse) Marshal

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

func (*ModuleBalanceResponse) MarshalTo

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

func (*ModuleBalanceResponse) MarshalToSizedBuffer

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

func (*ModuleBalanceResponse) ProtoMessage

func (*ModuleBalanceResponse) ProtoMessage()

func (*ModuleBalanceResponse) Reset

func (m *ModuleBalanceResponse) Reset()

func (*ModuleBalanceResponse) Size

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

func (*ModuleBalanceResponse) String

func (m *ModuleBalanceResponse) String() string

func (*ModuleBalanceResponse) Unmarshal

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

func (*ModuleBalanceResponse) XXX_DiscardUnknown

func (m *ModuleBalanceResponse) XXX_DiscardUnknown()

func (*ModuleBalanceResponse) XXX_Marshal

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

func (*ModuleBalanceResponse) XXX_Merge

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

func (*ModuleBalanceResponse) XXX_Size

func (m *ModuleBalanceResponse) XXX_Size() int

func (*ModuleBalanceResponse) XXX_Unmarshal

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

type ModuleLockedAmountRequest

type ModuleLockedAmountRequest struct {
}

func (*ModuleLockedAmountRequest) Descriptor

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

func (*ModuleLockedAmountRequest) Marshal

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

func (*ModuleLockedAmountRequest) MarshalTo

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

func (*ModuleLockedAmountRequest) MarshalToSizedBuffer

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

func (*ModuleLockedAmountRequest) ProtoMessage

func (*ModuleLockedAmountRequest) ProtoMessage()

func (*ModuleLockedAmountRequest) Reset

func (m *ModuleLockedAmountRequest) Reset()

func (*ModuleLockedAmountRequest) Size

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

func (*ModuleLockedAmountRequest) String

func (m *ModuleLockedAmountRequest) String() string

func (*ModuleLockedAmountRequest) Unmarshal

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

func (*ModuleLockedAmountRequest) XXX_DiscardUnknown

func (m *ModuleLockedAmountRequest) XXX_DiscardUnknown()

func (*ModuleLockedAmountRequest) XXX_Marshal

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

func (*ModuleLockedAmountRequest) XXX_Merge

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

func (*ModuleLockedAmountRequest) XXX_Size

func (m *ModuleLockedAmountRequest) XXX_Size() int

func (*ModuleLockedAmountRequest) XXX_Unmarshal

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

type ModuleLockedAmountResponse

type ModuleLockedAmountResponse struct {
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

func (*ModuleLockedAmountResponse) Descriptor

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

func (*ModuleLockedAmountResponse) GetCoins

func (*ModuleLockedAmountResponse) Marshal

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

func (*ModuleLockedAmountResponse) MarshalTo

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

func (*ModuleLockedAmountResponse) MarshalToSizedBuffer

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

func (*ModuleLockedAmountResponse) ProtoMessage

func (*ModuleLockedAmountResponse) ProtoMessage()

func (*ModuleLockedAmountResponse) Reset

func (m *ModuleLockedAmountResponse) Reset()

func (*ModuleLockedAmountResponse) Size

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

func (*ModuleLockedAmountResponse) String

func (m *ModuleLockedAmountResponse) String() string

func (*ModuleLockedAmountResponse) Unmarshal

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

func (*ModuleLockedAmountResponse) XXX_DiscardUnknown

func (m *ModuleLockedAmountResponse) XXX_DiscardUnknown()

func (*ModuleLockedAmountResponse) XXX_Marshal

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

func (*ModuleLockedAmountResponse) XXX_Merge

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

func (*ModuleLockedAmountResponse) XXX_Size

func (m *ModuleLockedAmountResponse) XXX_Size() int

func (*ModuleLockedAmountResponse) XXX_Unmarshal

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

type MsgBeginUnlocking

type MsgBeginUnlocking struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	ID    uint64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
	// Amount of unlocking coins. Unlock all if not set.
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

func NewMsgBeginUnlocking

func NewMsgBeginUnlocking(owner sdk.AccAddress, id uint64, coins sdk.Coins) *MsgBeginUnlocking

NewMsgBeginUnlocking creates a message to begin unlocking the tokens of a specific lock.

func (*MsgBeginUnlocking) Descriptor

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

func (*MsgBeginUnlocking) GetCoins

func (*MsgBeginUnlocking) GetID

func (m *MsgBeginUnlocking) GetID() uint64

func (*MsgBeginUnlocking) GetOwner

func (m *MsgBeginUnlocking) GetOwner() string

func (MsgBeginUnlocking) GetSignBytes

func (m MsgBeginUnlocking) GetSignBytes() []byte

func (MsgBeginUnlocking) GetSigners

func (m MsgBeginUnlocking) GetSigners() []sdk.AccAddress

func (*MsgBeginUnlocking) Marshal

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

func (*MsgBeginUnlocking) MarshalTo

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

func (*MsgBeginUnlocking) MarshalToSizedBuffer

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

func (*MsgBeginUnlocking) ProtoMessage

func (*MsgBeginUnlocking) ProtoMessage()

func (*MsgBeginUnlocking) Reset

func (m *MsgBeginUnlocking) Reset()

func (MsgBeginUnlocking) Route

func (m MsgBeginUnlocking) Route() string

func (*MsgBeginUnlocking) Size

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

func (*MsgBeginUnlocking) String

func (m *MsgBeginUnlocking) String() string

func (MsgBeginUnlocking) Type

func (m MsgBeginUnlocking) Type() string

func (*MsgBeginUnlocking) Unmarshal

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

func (MsgBeginUnlocking) ValidateBasic

func (m MsgBeginUnlocking) ValidateBasic() error

func (*MsgBeginUnlocking) XXX_DiscardUnknown

func (m *MsgBeginUnlocking) XXX_DiscardUnknown()

func (*MsgBeginUnlocking) XXX_Marshal

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

func (*MsgBeginUnlocking) XXX_Merge

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

func (*MsgBeginUnlocking) XXX_Size

func (m *MsgBeginUnlocking) XXX_Size() int

func (*MsgBeginUnlocking) XXX_Unmarshal

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

type MsgBeginUnlockingAll

type MsgBeginUnlockingAll struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
}

func NewMsgBeginUnlockingAll

func NewMsgBeginUnlockingAll(owner sdk.AccAddress) *MsgBeginUnlockingAll

NewMsgBeginUnlockingAll creates a message to begin unlocking tokens.

func (*MsgBeginUnlockingAll) Descriptor

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

func (*MsgBeginUnlockingAll) GetOwner

func (m *MsgBeginUnlockingAll) GetOwner() string

func (MsgBeginUnlockingAll) GetSignBytes

func (m MsgBeginUnlockingAll) GetSignBytes() []byte

func (MsgBeginUnlockingAll) GetSigners

func (m MsgBeginUnlockingAll) GetSigners() []sdk.AccAddress

func (*MsgBeginUnlockingAll) Marshal

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

func (*MsgBeginUnlockingAll) MarshalTo

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

func (*MsgBeginUnlockingAll) MarshalToSizedBuffer

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

func (*MsgBeginUnlockingAll) ProtoMessage

func (*MsgBeginUnlockingAll) ProtoMessage()

func (*MsgBeginUnlockingAll) Reset

func (m *MsgBeginUnlockingAll) Reset()

func (MsgBeginUnlockingAll) Route

func (m MsgBeginUnlockingAll) Route() string

func (*MsgBeginUnlockingAll) Size

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

func (*MsgBeginUnlockingAll) String

func (m *MsgBeginUnlockingAll) String() string

func (MsgBeginUnlockingAll) Type

func (m MsgBeginUnlockingAll) Type() string

func (*MsgBeginUnlockingAll) Unmarshal

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

func (MsgBeginUnlockingAll) ValidateBasic

func (m MsgBeginUnlockingAll) ValidateBasic() error

func (*MsgBeginUnlockingAll) XXX_DiscardUnknown

func (m *MsgBeginUnlockingAll) XXX_DiscardUnknown()

func (*MsgBeginUnlockingAll) XXX_Marshal

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

func (*MsgBeginUnlockingAll) XXX_Merge

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

func (*MsgBeginUnlockingAll) XXX_Size

func (m *MsgBeginUnlockingAll) XXX_Size() int

func (*MsgBeginUnlockingAll) XXX_Unmarshal

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

type MsgBeginUnlockingAllResponse

type MsgBeginUnlockingAllResponse struct {
	Unlocks []*PeriodLock `protobuf:"bytes,1,rep,name=unlocks,proto3" json:"unlocks,omitempty"`
}

func (*MsgBeginUnlockingAllResponse) Descriptor

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

func (*MsgBeginUnlockingAllResponse) GetUnlocks

func (m *MsgBeginUnlockingAllResponse) GetUnlocks() []*PeriodLock

func (*MsgBeginUnlockingAllResponse) Marshal

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

func (*MsgBeginUnlockingAllResponse) MarshalTo

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

func (*MsgBeginUnlockingAllResponse) MarshalToSizedBuffer

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

func (*MsgBeginUnlockingAllResponse) ProtoMessage

func (*MsgBeginUnlockingAllResponse) ProtoMessage()

func (*MsgBeginUnlockingAllResponse) Reset

func (m *MsgBeginUnlockingAllResponse) Reset()

func (*MsgBeginUnlockingAllResponse) Size

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

func (*MsgBeginUnlockingAllResponse) String

func (*MsgBeginUnlockingAllResponse) Unmarshal

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

func (*MsgBeginUnlockingAllResponse) XXX_DiscardUnknown

func (m *MsgBeginUnlockingAllResponse) XXX_DiscardUnknown()

func (*MsgBeginUnlockingAllResponse) XXX_Marshal

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

func (*MsgBeginUnlockingAllResponse) XXX_Merge

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

func (*MsgBeginUnlockingAllResponse) XXX_Size

func (m *MsgBeginUnlockingAllResponse) XXX_Size() int

func (*MsgBeginUnlockingAllResponse) XXX_Unmarshal

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

type MsgBeginUnlockingResponse

type MsgBeginUnlockingResponse struct {
	Success         bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	UnlockingLockID uint64 `protobuf:"varint,2,opt,name=unlockingLockID,proto3" json:"unlockingLockID,omitempty"`
}

func (*MsgBeginUnlockingResponse) Descriptor

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

func (*MsgBeginUnlockingResponse) GetSuccess

func (m *MsgBeginUnlockingResponse) GetSuccess() bool

func (*MsgBeginUnlockingResponse) GetUnlockingLockID

func (m *MsgBeginUnlockingResponse) GetUnlockingLockID() uint64

func (*MsgBeginUnlockingResponse) Marshal

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

func (*MsgBeginUnlockingResponse) MarshalTo

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

func (*MsgBeginUnlockingResponse) MarshalToSizedBuffer

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

func (*MsgBeginUnlockingResponse) ProtoMessage

func (*MsgBeginUnlockingResponse) ProtoMessage()

func (*MsgBeginUnlockingResponse) Reset

func (m *MsgBeginUnlockingResponse) Reset()

func (*MsgBeginUnlockingResponse) Size

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

func (*MsgBeginUnlockingResponse) String

func (m *MsgBeginUnlockingResponse) String() string

func (*MsgBeginUnlockingResponse) Unmarshal

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

func (*MsgBeginUnlockingResponse) XXX_DiscardUnknown

func (m *MsgBeginUnlockingResponse) XXX_DiscardUnknown()

func (*MsgBeginUnlockingResponse) XXX_Marshal

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

func (*MsgBeginUnlockingResponse) XXX_Merge

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

func (*MsgBeginUnlockingResponse) XXX_Size

func (m *MsgBeginUnlockingResponse) XXX_Size() int

func (*MsgBeginUnlockingResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// LockTokens lock tokens
	LockTokens(ctx context.Context, in *MsgLockTokens, opts ...grpc.CallOption) (*MsgLockTokensResponse, error)
	// BeginUnlockingAll begin unlocking all tokens
	BeginUnlockingAll(ctx context.Context, in *MsgBeginUnlockingAll, opts ...grpc.CallOption) (*MsgBeginUnlockingAllResponse, error)
	// MsgBeginUnlocking begins unlocking tokens by lock ID
	BeginUnlocking(ctx context.Context, in *MsgBeginUnlocking, opts ...grpc.CallOption) (*MsgBeginUnlockingResponse, error)
	// MsgEditLockup edits the existing lockups by lock ID
	ExtendLockup(ctx context.Context, in *MsgExtendLockup, opts ...grpc.CallOption) (*MsgExtendLockupResponse, error)
	ForceUnlock(ctx context.Context, in *MsgForceUnlock, opts ...grpc.CallOption) (*MsgForceUnlockResponse, error)
	// SetRewardReceiverAddress edits the reward receiver for the given lock ID
	SetRewardReceiverAddress(ctx context.Context, in *MsgSetRewardReceiverAddress, opts ...grpc.CallOption) (*MsgSetRewardReceiverAddressResponse, 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 MsgExtendLockup

type MsgExtendLockup struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	ID    uint64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
	// duration to be set. fails if lower than the current duration, or is
	// unlocking
	Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"`
}

MsgExtendLockup extends the existing lockup's duration. The new duration is longer than the original.

func NewMsgExtendLockup

func NewMsgExtendLockup(owner sdk.AccAddress, id uint64, duration time.Duration) *MsgExtendLockup

NewMsgExtendLockup creates a message to edit the properties of existing locks

func (*MsgExtendLockup) Descriptor

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

func (*MsgExtendLockup) GetDuration

func (m *MsgExtendLockup) GetDuration() time.Duration

func (*MsgExtendLockup) GetID

func (m *MsgExtendLockup) GetID() uint64

func (*MsgExtendLockup) GetOwner

func (m *MsgExtendLockup) GetOwner() string

func (MsgExtendLockup) GetSignBytes

func (m MsgExtendLockup) GetSignBytes() []byte

func (MsgExtendLockup) GetSigners

func (m MsgExtendLockup) GetSigners() []sdk.AccAddress

func (*MsgExtendLockup) Marshal

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

func (*MsgExtendLockup) MarshalTo

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

func (*MsgExtendLockup) MarshalToSizedBuffer

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

func (*MsgExtendLockup) ProtoMessage

func (*MsgExtendLockup) ProtoMessage()

func (*MsgExtendLockup) Reset

func (m *MsgExtendLockup) Reset()

func (MsgExtendLockup) Route

func (m MsgExtendLockup) Route() string

func (*MsgExtendLockup) Size

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

func (*MsgExtendLockup) String

func (m *MsgExtendLockup) String() string

func (MsgExtendLockup) Type

func (m MsgExtendLockup) Type() string

func (*MsgExtendLockup) Unmarshal

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

func (MsgExtendLockup) ValidateBasic

func (m MsgExtendLockup) ValidateBasic() error

func (*MsgExtendLockup) XXX_DiscardUnknown

func (m *MsgExtendLockup) XXX_DiscardUnknown()

func (*MsgExtendLockup) XXX_Marshal

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

func (*MsgExtendLockup) XXX_Merge

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

func (*MsgExtendLockup) XXX_Size

func (m *MsgExtendLockup) XXX_Size() int

func (*MsgExtendLockup) XXX_Unmarshal

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

type MsgExtendLockupResponse

type MsgExtendLockupResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

func (*MsgExtendLockupResponse) Descriptor

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

func (*MsgExtendLockupResponse) GetSuccess

func (m *MsgExtendLockupResponse) GetSuccess() bool

func (*MsgExtendLockupResponse) Marshal

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

func (*MsgExtendLockupResponse) MarshalTo

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

func (*MsgExtendLockupResponse) MarshalToSizedBuffer

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

func (*MsgExtendLockupResponse) ProtoMessage

func (*MsgExtendLockupResponse) ProtoMessage()

func (*MsgExtendLockupResponse) Reset

func (m *MsgExtendLockupResponse) Reset()

func (*MsgExtendLockupResponse) Size

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

func (*MsgExtendLockupResponse) String

func (m *MsgExtendLockupResponse) String() string

func (*MsgExtendLockupResponse) Unmarshal

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

func (*MsgExtendLockupResponse) XXX_DiscardUnknown

func (m *MsgExtendLockupResponse) XXX_DiscardUnknown()

func (*MsgExtendLockupResponse) XXX_Marshal

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

func (*MsgExtendLockupResponse) XXX_Merge

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

func (*MsgExtendLockupResponse) XXX_Size

func (m *MsgExtendLockupResponse) XXX_Size() int

func (*MsgExtendLockupResponse) XXX_Unmarshal

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

type MsgForceUnlock

type MsgForceUnlock struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	ID    uint64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
	// Amount of unlocking coins. Unlock all if not set.
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

MsgForceUnlock unlocks locks immediately for addresses registered via governance.

func NewMsgForceUnlock

func NewMsgForceUnlock(owner sdk.AccAddress, id uint64, coins sdk.Coins) *MsgForceUnlock

NewMsgForceUnlock creates a message to force unlock tokens.

func (*MsgForceUnlock) Descriptor

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

func (*MsgForceUnlock) GetCoins

func (*MsgForceUnlock) GetID

func (m *MsgForceUnlock) GetID() uint64

func (*MsgForceUnlock) GetOwner

func (m *MsgForceUnlock) GetOwner() string

func (MsgForceUnlock) GetSignBytes

func (m MsgForceUnlock) GetSignBytes() []byte

func (MsgForceUnlock) GetSigners

func (m MsgForceUnlock) GetSigners() []sdk.AccAddress

func (*MsgForceUnlock) Marshal

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

func (*MsgForceUnlock) MarshalTo

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

func (*MsgForceUnlock) MarshalToSizedBuffer

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

func (*MsgForceUnlock) ProtoMessage

func (*MsgForceUnlock) ProtoMessage()

func (*MsgForceUnlock) Reset

func (m *MsgForceUnlock) Reset()

func (MsgForceUnlock) Route

func (m MsgForceUnlock) Route() string

func (*MsgForceUnlock) Size

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

func (*MsgForceUnlock) String

func (m *MsgForceUnlock) String() string

func (MsgForceUnlock) Type

func (m MsgForceUnlock) Type() string

func (*MsgForceUnlock) Unmarshal

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

func (MsgForceUnlock) ValidateBasic

func (m MsgForceUnlock) ValidateBasic() error

func (*MsgForceUnlock) XXX_DiscardUnknown

func (m *MsgForceUnlock) XXX_DiscardUnknown()

func (*MsgForceUnlock) XXX_Marshal

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

func (*MsgForceUnlock) XXX_Merge

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

func (*MsgForceUnlock) XXX_Size

func (m *MsgForceUnlock) XXX_Size() int

func (*MsgForceUnlock) XXX_Unmarshal

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

type MsgForceUnlockResponse

type MsgForceUnlockResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

func (*MsgForceUnlockResponse) Descriptor

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

func (*MsgForceUnlockResponse) GetSuccess

func (m *MsgForceUnlockResponse) GetSuccess() bool

func (*MsgForceUnlockResponse) Marshal

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

func (*MsgForceUnlockResponse) MarshalTo

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

func (*MsgForceUnlockResponse) MarshalToSizedBuffer

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

func (*MsgForceUnlockResponse) ProtoMessage

func (*MsgForceUnlockResponse) ProtoMessage()

func (*MsgForceUnlockResponse) Reset

func (m *MsgForceUnlockResponse) Reset()

func (*MsgForceUnlockResponse) Size

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

func (*MsgForceUnlockResponse) String

func (m *MsgForceUnlockResponse) String() string

func (*MsgForceUnlockResponse) Unmarshal

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

func (*MsgForceUnlockResponse) XXX_DiscardUnknown

func (m *MsgForceUnlockResponse) XXX_DiscardUnknown()

func (*MsgForceUnlockResponse) XXX_Marshal

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

func (*MsgForceUnlockResponse) XXX_Merge

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

func (*MsgForceUnlockResponse) XXX_Size

func (m *MsgForceUnlockResponse) XXX_Size() int

func (*MsgForceUnlockResponse) XXX_Unmarshal

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

type MsgLockTokens

type MsgLockTokens struct {
	Owner    string                                   `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Duration time.Duration                            `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"`
	Coins    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

func NewMsgLockTokens

func NewMsgLockTokens(owner sdk.AccAddress, duration time.Duration, coins sdk.Coins) *MsgLockTokens

NewMsgLockTokens creates a message to lock tokens.

func (*MsgLockTokens) Descriptor

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

func (*MsgLockTokens) GetCoins

func (*MsgLockTokens) GetDuration

func (m *MsgLockTokens) GetDuration() time.Duration

func (*MsgLockTokens) GetOwner

func (m *MsgLockTokens) GetOwner() string

func (MsgLockTokens) GetSignBytes

func (m MsgLockTokens) GetSignBytes() []byte

func (MsgLockTokens) GetSigners

func (m MsgLockTokens) GetSigners() []sdk.AccAddress

func (*MsgLockTokens) Marshal

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

func (*MsgLockTokens) MarshalTo

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

func (*MsgLockTokens) MarshalToSizedBuffer

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

func (*MsgLockTokens) ProtoMessage

func (*MsgLockTokens) ProtoMessage()

func (*MsgLockTokens) Reset

func (m *MsgLockTokens) Reset()

func (MsgLockTokens) Route

func (m MsgLockTokens) Route() string

func (*MsgLockTokens) Size

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

func (*MsgLockTokens) String

func (m *MsgLockTokens) String() string

func (MsgLockTokens) Type

func (m MsgLockTokens) Type() string

func (*MsgLockTokens) Unmarshal

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

func (MsgLockTokens) ValidateBasic

func (m MsgLockTokens) ValidateBasic() error

func (*MsgLockTokens) XXX_DiscardUnknown

func (m *MsgLockTokens) XXX_DiscardUnknown()

func (*MsgLockTokens) XXX_Marshal

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

func (*MsgLockTokens) XXX_Merge

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

func (*MsgLockTokens) XXX_Size

func (m *MsgLockTokens) XXX_Size() int

func (*MsgLockTokens) XXX_Unmarshal

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

type MsgLockTokensResponse

type MsgLockTokensResponse struct {
	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*MsgLockTokensResponse) Descriptor

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

func (*MsgLockTokensResponse) GetID

func (m *MsgLockTokensResponse) GetID() uint64

func (*MsgLockTokensResponse) Marshal

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

func (*MsgLockTokensResponse) MarshalTo

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

func (*MsgLockTokensResponse) MarshalToSizedBuffer

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

func (*MsgLockTokensResponse) ProtoMessage

func (*MsgLockTokensResponse) ProtoMessage()

func (*MsgLockTokensResponse) Reset

func (m *MsgLockTokensResponse) Reset()

func (*MsgLockTokensResponse) Size

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

func (*MsgLockTokensResponse) String

func (m *MsgLockTokensResponse) String() string

func (*MsgLockTokensResponse) Unmarshal

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

func (*MsgLockTokensResponse) XXX_DiscardUnknown

func (m *MsgLockTokensResponse) XXX_DiscardUnknown()

func (*MsgLockTokensResponse) XXX_Marshal

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

func (*MsgLockTokensResponse) XXX_Merge

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

func (*MsgLockTokensResponse) XXX_Size

func (m *MsgLockTokensResponse) XXX_Size() int

func (*MsgLockTokensResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// LockTokens lock tokens
	LockTokens(context.Context, *MsgLockTokens) (*MsgLockTokensResponse, error)
	// BeginUnlockingAll begin unlocking all tokens
	BeginUnlockingAll(context.Context, *MsgBeginUnlockingAll) (*MsgBeginUnlockingAllResponse, error)
	// MsgBeginUnlocking begins unlocking tokens by lock ID
	BeginUnlocking(context.Context, *MsgBeginUnlocking) (*MsgBeginUnlockingResponse, error)
	// MsgEditLockup edits the existing lockups by lock ID
	ExtendLockup(context.Context, *MsgExtendLockup) (*MsgExtendLockupResponse, error)
	ForceUnlock(context.Context, *MsgForceUnlock) (*MsgForceUnlockResponse, error)
	// SetRewardReceiverAddress edits the reward receiver for the given lock ID
	SetRewardReceiverAddress(context.Context, *MsgSetRewardReceiverAddress) (*MsgSetRewardReceiverAddressResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetRewardReceiverAddress

type MsgSetRewardReceiverAddress struct {
	Owner          string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	LockID         uint64 `protobuf:"varint,2,opt,name=lockID,proto3" json:"lockID,omitempty"`
	RewardReceiver string `` /* 126-byte string literal not displayed */
}

func NewMsgSetRewardReceiverAddress

func NewMsgSetRewardReceiverAddress(owner, rewardReceiver sdk.AccAddress, lockId uint64) *MsgSetRewardReceiverAddress

NewMsgSetRewardReceiverAddress creates a message for setting reward receiver address

func (*MsgSetRewardReceiverAddress) Descriptor

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

func (*MsgSetRewardReceiverAddress) GetLockID

func (m *MsgSetRewardReceiverAddress) GetLockID() uint64

func (*MsgSetRewardReceiverAddress) GetOwner

func (m *MsgSetRewardReceiverAddress) GetOwner() string

func (*MsgSetRewardReceiverAddress) GetRewardReceiver

func (m *MsgSetRewardReceiverAddress) GetRewardReceiver() string

func (MsgSetRewardReceiverAddress) GetSignBytes

func (m MsgSetRewardReceiverAddress) GetSignBytes() []byte

func (MsgSetRewardReceiverAddress) GetSigners

func (m MsgSetRewardReceiverAddress) GetSigners() []sdk.AccAddress

func (*MsgSetRewardReceiverAddress) Marshal

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

func (*MsgSetRewardReceiverAddress) MarshalTo

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

func (*MsgSetRewardReceiverAddress) MarshalToSizedBuffer

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

func (*MsgSetRewardReceiverAddress) ProtoMessage

func (*MsgSetRewardReceiverAddress) ProtoMessage()

func (*MsgSetRewardReceiverAddress) Reset

func (m *MsgSetRewardReceiverAddress) Reset()

func (MsgSetRewardReceiverAddress) Route

func (*MsgSetRewardReceiverAddress) Size

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

func (*MsgSetRewardReceiverAddress) String

func (m *MsgSetRewardReceiverAddress) String() string

func (MsgSetRewardReceiverAddress) Type

func (*MsgSetRewardReceiverAddress) Unmarshal

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

func (MsgSetRewardReceiverAddress) ValidateBasic

func (m MsgSetRewardReceiverAddress) ValidateBasic() error

func (*MsgSetRewardReceiverAddress) XXX_DiscardUnknown

func (m *MsgSetRewardReceiverAddress) XXX_DiscardUnknown()

func (*MsgSetRewardReceiverAddress) XXX_Marshal

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

func (*MsgSetRewardReceiverAddress) XXX_Merge

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

func (*MsgSetRewardReceiverAddress) XXX_Size

func (m *MsgSetRewardReceiverAddress) XXX_Size() int

func (*MsgSetRewardReceiverAddress) XXX_Unmarshal

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

type MsgSetRewardReceiverAddressResponse

type MsgSetRewardReceiverAddressResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

func (*MsgSetRewardReceiverAddressResponse) Descriptor

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

func (*MsgSetRewardReceiverAddressResponse) GetSuccess

func (m *MsgSetRewardReceiverAddressResponse) GetSuccess() bool

func (*MsgSetRewardReceiverAddressResponse) Marshal

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

func (*MsgSetRewardReceiverAddressResponse) MarshalTo

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

func (*MsgSetRewardReceiverAddressResponse) MarshalToSizedBuffer

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

func (*MsgSetRewardReceiverAddressResponse) ProtoMessage

func (*MsgSetRewardReceiverAddressResponse) ProtoMessage()

func (*MsgSetRewardReceiverAddressResponse) Reset

func (*MsgSetRewardReceiverAddressResponse) Size

func (*MsgSetRewardReceiverAddressResponse) String

func (*MsgSetRewardReceiverAddressResponse) Unmarshal

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

func (*MsgSetRewardReceiverAddressResponse) XXX_DiscardUnknown

func (m *MsgSetRewardReceiverAddressResponse) XXX_DiscardUnknown()

func (*MsgSetRewardReceiverAddressResponse) XXX_Marshal

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

func (*MsgSetRewardReceiverAddressResponse) XXX_Merge

func (*MsgSetRewardReceiverAddressResponse) XXX_Size

func (*MsgSetRewardReceiverAddressResponse) XXX_Unmarshal

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

type MultiLockupHooks

type MultiLockupHooks []LockupHooks

combine multiple gamm hooks, all hook functions are run in array sequence.

func NewMultiLockupHooks

func NewMultiLockupHooks(hooks ...LockupHooks) MultiLockupHooks

func (MultiLockupHooks) AfterAddTokensToLock

func (h MultiLockupHooks) AfterAddTokensToLock(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins)

func (MultiLockupHooks) OnLockupExtend

func (h MultiLockupHooks) OnLockupExtend(ctx sdk.Context, lockID uint64, prevDuration, newDuration time.Duration)

func (MultiLockupHooks) OnStartUnlock

func (h MultiLockupHooks) OnStartUnlock(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins, lockDuration time.Duration, unlockTime time.Time)

func (MultiLockupHooks) OnTokenLocked

func (h MultiLockupHooks) OnTokenLocked(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins, lockDuration time.Duration, unlockTime time.Time)

func (MultiLockupHooks) OnTokenSlashed

func (h MultiLockupHooks) OnTokenSlashed(ctx sdk.Context, lockID uint64, amount sdk.Coins)

func (MultiLockupHooks) OnTokenUnlocked

func (h MultiLockupHooks) OnTokenUnlocked(ctx sdk.Context, address sdk.AccAddress, lockID uint64, amount sdk.Coins, lockDuration time.Duration, unlockTime time.Time)

type NextLockIDRequest

type NextLockIDRequest struct {
}

func (*NextLockIDRequest) Descriptor

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

func (*NextLockIDRequest) Marshal

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

func (*NextLockIDRequest) MarshalTo

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

func (*NextLockIDRequest) MarshalToSizedBuffer

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

func (*NextLockIDRequest) ProtoMessage

func (*NextLockIDRequest) ProtoMessage()

func (*NextLockIDRequest) Reset

func (m *NextLockIDRequest) Reset()

func (*NextLockIDRequest) Size

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

func (*NextLockIDRequest) String

func (m *NextLockIDRequest) String() string

func (*NextLockIDRequest) Unmarshal

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

func (*NextLockIDRequest) XXX_DiscardUnknown

func (m *NextLockIDRequest) XXX_DiscardUnknown()

func (*NextLockIDRequest) XXX_Marshal

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

func (*NextLockIDRequest) XXX_Merge

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

func (*NextLockIDRequest) XXX_Size

func (m *NextLockIDRequest) XXX_Size() int

func (*NextLockIDRequest) XXX_Unmarshal

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

type NextLockIDResponse

type NextLockIDResponse struct {
	LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

func (*NextLockIDResponse) Descriptor

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

func (*NextLockIDResponse) GetLockId

func (m *NextLockIDResponse) GetLockId() uint64

func (*NextLockIDResponse) Marshal

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

func (*NextLockIDResponse) MarshalTo

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

func (*NextLockIDResponse) MarshalToSizedBuffer

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

func (*NextLockIDResponse) ProtoMessage

func (*NextLockIDResponse) ProtoMessage()

func (*NextLockIDResponse) Reset

func (m *NextLockIDResponse) Reset()

func (*NextLockIDResponse) Size

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

func (*NextLockIDResponse) String

func (m *NextLockIDResponse) String() string

func (*NextLockIDResponse) Unmarshal

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

func (*NextLockIDResponse) XXX_DiscardUnknown

func (m *NextLockIDResponse) XXX_DiscardUnknown()

func (*NextLockIDResponse) XXX_Marshal

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

func (*NextLockIDResponse) XXX_Merge

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

func (*NextLockIDResponse) XXX_Size

func (m *NextLockIDResponse) XXX_Size() int

func (*NextLockIDResponse) XXX_Unmarshal

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

type Params

type Params struct {
	ForceUnlockAllowedAddresses []string `` /* 182-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns default lockup module parameters.

func NewParams

func NewParams(forceUnlockAllowedAddresses []string) Params

func (*Params) Descriptor

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

func (*Params) GetForceUnlockAllowedAddresses

func (m *Params) GetForceUnlockAllowedAddresses() []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

Implements 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 (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

validate 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 PeriodLock

type PeriodLock struct {
	// ID is the unique id of the lock.
	// The ID of the lock is decided upon lock creation, incrementing by 1 for
	// every lock.
	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// Owner is the account address of the lock owner.
	// Only the owner can modify the state of the lock.
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// Duration is the time needed for a lock to mature after unlocking has
	// started.
	Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"`
	// EndTime refers to the time at which the lock would mature and get deleted.
	// This value is first initialized when an unlock has started for the lock,
	// end time being block time + duration.
	EndTime time.Time `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"`
	// Coins are the tokens locked within the lock, kept in the module account.
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
	// Reward Receiver Address is the address that would be receiving rewards for
	// the incentives for the lock. This is set to owner by default and can be
	// changed via separate msg.
	RewardReceiverAddress string `` /* 157-byte string literal not displayed */
}

PeriodLock is a single lock unit by period defined by the x/lockup module. It's a record of a locked coin at a specific time. It stores owner, duration, unlock time and the number of coins locked. A state of a period lock is created upon lock creation, and deleted once the lock has been matured after the `duration` has passed since unbonding started.

func NewPeriodLock

func NewPeriodLock(ID uint64, owner sdk.AccAddress, reward_address string, duration time.Duration, endTime time.Time, coins sdk.Coins) PeriodLock

NewPeriodLock returns a new instance of period lock.

func (*PeriodLock) Descriptor

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

func (*PeriodLock) GetCoins

func (*PeriodLock) GetDuration

func (m *PeriodLock) GetDuration() time.Duration

func (*PeriodLock) GetEndTime

func (m *PeriodLock) GetEndTime() time.Time

func (*PeriodLock) GetID

func (m *PeriodLock) GetID() uint64

func (*PeriodLock) GetOwner

func (m *PeriodLock) GetOwner() string

func (*PeriodLock) GetRewardReceiverAddress

func (m *PeriodLock) GetRewardReceiverAddress() string

func (PeriodLock) IsUnlocking

func (p PeriodLock) IsUnlocking() bool

IsUnlocking returns lock started unlocking already.

func (*PeriodLock) Marshal

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

func (*PeriodLock) MarshalTo

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

func (*PeriodLock) MarshalToSizedBuffer

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

func (PeriodLock) OwnerAddress

func (p PeriodLock) OwnerAddress() sdk.AccAddress

OwnerAddress returns locks owner address.

func (*PeriodLock) ProtoMessage

func (*PeriodLock) ProtoMessage()

func (*PeriodLock) Reset

func (m *PeriodLock) Reset()

func (PeriodLock) SingleCoin

func (p PeriodLock) SingleCoin() (sdk.Coin, error)

func (*PeriodLock) Size

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

func (*PeriodLock) String

func (m *PeriodLock) String() string

func (*PeriodLock) Unmarshal

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

func (*PeriodLock) XXX_DiscardUnknown

func (m *PeriodLock) XXX_DiscardUnknown()

func (*PeriodLock) XXX_Marshal

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

func (*PeriodLock) XXX_Merge

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

func (*PeriodLock) XXX_Size

func (m *PeriodLock) XXX_Size() int

func (*PeriodLock) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Return full balance of the module
	ModuleBalance(ctx context.Context, in *ModuleBalanceRequest, opts ...grpc.CallOption) (*ModuleBalanceResponse, error)
	// Return locked balance of the module
	ModuleLockedAmount(ctx context.Context, in *ModuleLockedAmountRequest, opts ...grpc.CallOption) (*ModuleLockedAmountResponse, error)
	// Returns unlockable coins which are not withdrawn yet
	AccountUnlockableCoins(ctx context.Context, in *AccountUnlockableCoinsRequest, opts ...grpc.CallOption) (*AccountUnlockableCoinsResponse, error)
	// Returns unlocking coins
	AccountUnlockingCoins(ctx context.Context, in *AccountUnlockingCoinsRequest, opts ...grpc.CallOption) (*AccountUnlockingCoinsResponse, error)
	// Return a locked coins that can't be withdrawn
	AccountLockedCoins(ctx context.Context, in *AccountLockedCoinsRequest, opts ...grpc.CallOption) (*AccountLockedCoinsResponse, error)
	// Returns locked records of an account with unlock time beyond timestamp
	AccountLockedPastTime(ctx context.Context, in *AccountLockedPastTimeRequest, opts ...grpc.CallOption) (*AccountLockedPastTimeResponse, error)
	// Returns locked records of an account with unlock time beyond timestamp
	// excluding tokens started unlocking
	AccountLockedPastTimeNotUnlockingOnly(ctx context.Context, in *AccountLockedPastTimeNotUnlockingOnlyRequest, opts ...grpc.CallOption) (*AccountLockedPastTimeNotUnlockingOnlyResponse, error)
	// Returns unlocked records with unlock time before timestamp
	AccountUnlockedBeforeTime(ctx context.Context, in *AccountUnlockedBeforeTimeRequest, opts ...grpc.CallOption) (*AccountUnlockedBeforeTimeResponse, error)
	// Returns lock records by address, timestamp, denom
	AccountLockedPastTimeDenom(ctx context.Context, in *AccountLockedPastTimeDenomRequest, opts ...grpc.CallOption) (*AccountLockedPastTimeDenomResponse, error)
	// Returns total locked per denom with longer past given time
	LockedDenom(ctx context.Context, in *LockedDenomRequest, opts ...grpc.CallOption) (*LockedDenomResponse, error)
	// Returns lock record by id
	LockedByID(ctx context.Context, in *LockedRequest, opts ...grpc.CallOption) (*LockedResponse, error)
	// Returns lock record by id
	LockRewardReceiver(ctx context.Context, in *LockRewardReceiverRequest, opts ...grpc.CallOption) (*LockRewardReceiverResponse, error)
	// Returns next lock ID
	NextLockID(ctx context.Context, in *NextLockIDRequest, opts ...grpc.CallOption) (*NextLockIDResponse, error)
	// Returns synthetic lockup by native lockup id
	// Deprecated: use SyntheticLockupByLockupID instead
	SyntheticLockupsByLockupID(ctx context.Context, in *SyntheticLockupsByLockupIDRequest, opts ...grpc.CallOption) (*SyntheticLockupsByLockupIDResponse, error)
	// Returns synthetic lockup by native lockup id
	SyntheticLockupByLockupID(ctx context.Context, in *SyntheticLockupByLockupIDRequest, opts ...grpc.CallOption) (*SyntheticLockupByLockupIDResponse, error)
	// Returns account locked records with longer duration
	AccountLockedLongerDuration(ctx context.Context, in *AccountLockedLongerDurationRequest, opts ...grpc.CallOption) (*AccountLockedLongerDurationResponse, error)
	// Returns account locked records with a specific duration
	AccountLockedDuration(ctx context.Context, in *AccountLockedDurationRequest, opts ...grpc.CallOption) (*AccountLockedDurationResponse, error)
	// Returns account locked records with longer duration excluding tokens
	// started unlocking
	AccountLockedLongerDurationNotUnlockingOnly(ctx context.Context, in *AccountLockedLongerDurationNotUnlockingOnlyRequest, opts ...grpc.CallOption) (*AccountLockedLongerDurationNotUnlockingOnlyResponse, error)
	// Returns account's locked records for a denom with longer duration
	AccountLockedLongerDurationDenom(ctx context.Context, in *AccountLockedLongerDurationDenomRequest, opts ...grpc.CallOption) (*AccountLockedLongerDurationDenomResponse, error)
	// Params returns lockup params.
	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 QueryCondition

type QueryCondition struct {
	// LockQueryType is a type of lock query, ByLockDuration | ByLockTime
	LockQueryType LockQueryType `` /* 137-byte string literal not displayed */
	// Denom represents the token denomination we are looking to lock up
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// Duration is used to query locks with longer duration than the specified
	// duration. Duration field must not be nil when the lock query type is
	// `ByLockDuration`.
	Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration" yaml:"duration"`
	// Timestamp is used by locks started before the specified duration.
	// Timestamp field must not be nil when the lock query type is `ByLockTime`.
	// Querying locks with timestamp is currently not implemented.
	Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
}

QueryCondition is a struct used for querying locks upon different conditions. Duration field and timestamp fields could be optional, depending on the LockQueryType.

func (*QueryCondition) Descriptor

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

func (*QueryCondition) GetDenom

func (m *QueryCondition) GetDenom() string

func (*QueryCondition) GetDuration

func (m *QueryCondition) GetDuration() time.Duration

func (*QueryCondition) GetLockQueryType

func (m *QueryCondition) GetLockQueryType() LockQueryType

func (*QueryCondition) GetTimestamp

func (m *QueryCondition) GetTimestamp() time.Time

func (*QueryCondition) Marshal

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

func (*QueryCondition) MarshalTo

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

func (*QueryCondition) MarshalToSizedBuffer

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

func (*QueryCondition) ProtoMessage

func (*QueryCondition) ProtoMessage()

func (*QueryCondition) Reset

func (m *QueryCondition) Reset()

func (*QueryCondition) Size

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

func (*QueryCondition) String

func (m *QueryCondition) String() string

func (*QueryCondition) Unmarshal

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

func (*QueryCondition) XXX_DiscardUnknown

func (m *QueryCondition) XXX_DiscardUnknown()

func (*QueryCondition) XXX_Marshal

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

func (*QueryCondition) XXX_Merge

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

func (*QueryCondition) XXX_Size

func (m *QueryCondition) XXX_Size() int

func (*QueryCondition) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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 {
	// Return full balance of the module
	ModuleBalance(context.Context, *ModuleBalanceRequest) (*ModuleBalanceResponse, error)
	// Return locked balance of the module
	ModuleLockedAmount(context.Context, *ModuleLockedAmountRequest) (*ModuleLockedAmountResponse, error)
	// Returns unlockable coins which are not withdrawn yet
	AccountUnlockableCoins(context.Context, *AccountUnlockableCoinsRequest) (*AccountUnlockableCoinsResponse, error)
	// Returns unlocking coins
	AccountUnlockingCoins(context.Context, *AccountUnlockingCoinsRequest) (*AccountUnlockingCoinsResponse, error)
	// Return a locked coins that can't be withdrawn
	AccountLockedCoins(context.Context, *AccountLockedCoinsRequest) (*AccountLockedCoinsResponse, error)
	// Returns locked records of an account with unlock time beyond timestamp
	AccountLockedPastTime(context.Context, *AccountLockedPastTimeRequest) (*AccountLockedPastTimeResponse, error)
	// Returns locked records of an account with unlock time beyond timestamp
	// excluding tokens started unlocking
	AccountLockedPastTimeNotUnlockingOnly(context.Context, *AccountLockedPastTimeNotUnlockingOnlyRequest) (*AccountLockedPastTimeNotUnlockingOnlyResponse, error)
	// Returns unlocked records with unlock time before timestamp
	AccountUnlockedBeforeTime(context.Context, *AccountUnlockedBeforeTimeRequest) (*AccountUnlockedBeforeTimeResponse, error)
	// Returns lock records by address, timestamp, denom
	AccountLockedPastTimeDenom(context.Context, *AccountLockedPastTimeDenomRequest) (*AccountLockedPastTimeDenomResponse, error)
	// Returns total locked per denom with longer past given time
	LockedDenom(context.Context, *LockedDenomRequest) (*LockedDenomResponse, error)
	// Returns lock record by id
	LockedByID(context.Context, *LockedRequest) (*LockedResponse, error)
	// Returns lock record by id
	LockRewardReceiver(context.Context, *LockRewardReceiverRequest) (*LockRewardReceiverResponse, error)
	// Returns next lock ID
	NextLockID(context.Context, *NextLockIDRequest) (*NextLockIDResponse, error)
	// Returns synthetic lockup by native lockup id
	// Deprecated: use SyntheticLockupByLockupID instead
	SyntheticLockupsByLockupID(context.Context, *SyntheticLockupsByLockupIDRequest) (*SyntheticLockupsByLockupIDResponse, error)
	// Returns synthetic lockup by native lockup id
	SyntheticLockupByLockupID(context.Context, *SyntheticLockupByLockupIDRequest) (*SyntheticLockupByLockupIDResponse, error)
	// Returns account locked records with longer duration
	AccountLockedLongerDuration(context.Context, *AccountLockedLongerDurationRequest) (*AccountLockedLongerDurationResponse, error)
	// Returns account locked records with a specific duration
	AccountLockedDuration(context.Context, *AccountLockedDurationRequest) (*AccountLockedDurationResponse, error)
	// Returns account locked records with longer duration excluding tokens
	// started unlocking
	AccountLockedLongerDurationNotUnlockingOnly(context.Context, *AccountLockedLongerDurationNotUnlockingOnlyRequest) (*AccountLockedLongerDurationNotUnlockingOnlyResponse, error)
	// Returns account's locked records for a denom with longer duration
	AccountLockedLongerDurationDenom(context.Context, *AccountLockedLongerDurationDenomRequest) (*AccountLockedLongerDurationDenomResponse, error)
	// Params returns lockup params.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type SyntheticLock

type SyntheticLock struct {
	// Underlying Lock ID is the underlying native lock's id for this synthetic
	// lockup. A synthetic lock MUST have an underlying lock.
	UnderlyingLockId uint64 `protobuf:"varint,1,opt,name=underlying_lock_id,json=underlyingLockId,proto3" json:"underlying_lock_id,omitempty"`
	// SynthDenom is the synthetic denom that is a combination of
	// gamm share + bonding status + validator address.
	SynthDenom string `protobuf:"bytes,2,opt,name=synth_denom,json=synthDenom,proto3" json:"synth_denom,omitempty"`
	// used for unbonding synthetic lockups, for active synthetic lockups, this
	// value is set to uninitialized value
	EndTime time.Time `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"`
	// Duration is the duration for a synthetic lock to mature
	// at the point of unbonding has started.
	Duration time.Duration `protobuf:"bytes,4,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"`
}

SyntheticLock is creating virtual lockup where new denom is combination of original denom and synthetic suffix. At the time of synthetic lockup creation and deletion, accumulation store is also being updated and on querier side, they can query as freely as native lockup.

func (*SyntheticLock) Descriptor

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

func (*SyntheticLock) GetDuration

func (m *SyntheticLock) GetDuration() time.Duration

func (*SyntheticLock) GetEndTime

func (m *SyntheticLock) GetEndTime() time.Time

func (*SyntheticLock) GetSynthDenom

func (m *SyntheticLock) GetSynthDenom() string

func (*SyntheticLock) GetUnderlyingLockId

func (m *SyntheticLock) GetUnderlyingLockId() uint64

func (SyntheticLock) IsNil

func (p SyntheticLock) IsNil() bool

IsNil returns if the synthetic lock is nil.

func (SyntheticLock) IsUnlocking

func (p SyntheticLock) IsUnlocking() bool

IsUnlocking returns lock started unlocking already.

func (*SyntheticLock) Marshal

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

func (*SyntheticLock) MarshalTo

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

func (*SyntheticLock) MarshalToSizedBuffer

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

func (*SyntheticLock) ProtoMessage

func (*SyntheticLock) ProtoMessage()

func (*SyntheticLock) Reset

func (m *SyntheticLock) Reset()

func (*SyntheticLock) Size

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

func (*SyntheticLock) String

func (m *SyntheticLock) String() string

func (*SyntheticLock) Unmarshal

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

func (*SyntheticLock) XXX_DiscardUnknown

func (m *SyntheticLock) XXX_DiscardUnknown()

func (*SyntheticLock) XXX_Marshal

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

func (*SyntheticLock) XXX_Merge

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

func (*SyntheticLock) XXX_Size

func (m *SyntheticLock) XXX_Size() int

func (*SyntheticLock) XXX_Unmarshal

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

type SyntheticLockupByLockupIDRequest

type SyntheticLockupByLockupIDRequest struct {
	LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

func (*SyntheticLockupByLockupIDRequest) Descriptor

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

func (*SyntheticLockupByLockupIDRequest) GetLockId

func (*SyntheticLockupByLockupIDRequest) Marshal

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

func (*SyntheticLockupByLockupIDRequest) MarshalTo

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

func (*SyntheticLockupByLockupIDRequest) MarshalToSizedBuffer

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

func (*SyntheticLockupByLockupIDRequest) ProtoMessage

func (*SyntheticLockupByLockupIDRequest) ProtoMessage()

func (*SyntheticLockupByLockupIDRequest) Reset

func (*SyntheticLockupByLockupIDRequest) Size

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

func (*SyntheticLockupByLockupIDRequest) String

func (*SyntheticLockupByLockupIDRequest) Unmarshal

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

func (*SyntheticLockupByLockupIDRequest) XXX_DiscardUnknown

func (m *SyntheticLockupByLockupIDRequest) XXX_DiscardUnknown()

func (*SyntheticLockupByLockupIDRequest) XXX_Marshal

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

func (*SyntheticLockupByLockupIDRequest) XXX_Merge

func (*SyntheticLockupByLockupIDRequest) XXX_Size

func (m *SyntheticLockupByLockupIDRequest) XXX_Size() int

func (*SyntheticLockupByLockupIDRequest) XXX_Unmarshal

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

type SyntheticLockupByLockupIDResponse

type SyntheticLockupByLockupIDResponse struct {
	SyntheticLock SyntheticLock `protobuf:"bytes,1,opt,name=synthetic_lock,json=syntheticLock,proto3" json:"synthetic_lock"`
}

func (*SyntheticLockupByLockupIDResponse) Descriptor

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

func (*SyntheticLockupByLockupIDResponse) GetSyntheticLock

func (m *SyntheticLockupByLockupIDResponse) GetSyntheticLock() SyntheticLock

func (*SyntheticLockupByLockupIDResponse) Marshal

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

func (*SyntheticLockupByLockupIDResponse) MarshalTo

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

func (*SyntheticLockupByLockupIDResponse) MarshalToSizedBuffer

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

func (*SyntheticLockupByLockupIDResponse) ProtoMessage

func (*SyntheticLockupByLockupIDResponse) ProtoMessage()

func (*SyntheticLockupByLockupIDResponse) Reset

func (*SyntheticLockupByLockupIDResponse) Size

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

func (*SyntheticLockupByLockupIDResponse) String

func (*SyntheticLockupByLockupIDResponse) Unmarshal

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

func (*SyntheticLockupByLockupIDResponse) XXX_DiscardUnknown

func (m *SyntheticLockupByLockupIDResponse) XXX_DiscardUnknown()

func (*SyntheticLockupByLockupIDResponse) XXX_Marshal

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

func (*SyntheticLockupByLockupIDResponse) XXX_Merge

func (*SyntheticLockupByLockupIDResponse) XXX_Size

func (m *SyntheticLockupByLockupIDResponse) XXX_Size() int

func (*SyntheticLockupByLockupIDResponse) XXX_Unmarshal

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

type SyntheticLockupsByLockupIDRequest deprecated

type SyntheticLockupsByLockupIDRequest struct {
	LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

Deprecated: Do not use.

func (*SyntheticLockupsByLockupIDRequest) Descriptor

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

func (*SyntheticLockupsByLockupIDRequest) GetLockId

func (*SyntheticLockupsByLockupIDRequest) Marshal

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

func (*SyntheticLockupsByLockupIDRequest) MarshalTo

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

func (*SyntheticLockupsByLockupIDRequest) MarshalToSizedBuffer

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

func (*SyntheticLockupsByLockupIDRequest) ProtoMessage

func (*SyntheticLockupsByLockupIDRequest) ProtoMessage()

func (*SyntheticLockupsByLockupIDRequest) Reset

func (*SyntheticLockupsByLockupIDRequest) Size

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

func (*SyntheticLockupsByLockupIDRequest) String

func (*SyntheticLockupsByLockupIDRequest) Unmarshal

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

func (*SyntheticLockupsByLockupIDRequest) XXX_DiscardUnknown

func (m *SyntheticLockupsByLockupIDRequest) XXX_DiscardUnknown()

func (*SyntheticLockupsByLockupIDRequest) XXX_Marshal

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

func (*SyntheticLockupsByLockupIDRequest) XXX_Merge

func (*SyntheticLockupsByLockupIDRequest) XXX_Size

func (m *SyntheticLockupsByLockupIDRequest) XXX_Size() int

func (*SyntheticLockupsByLockupIDRequest) XXX_Unmarshal

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

type SyntheticLockupsByLockupIDResponse deprecated

type SyntheticLockupsByLockupIDResponse struct {
	SyntheticLocks []SyntheticLock `protobuf:"bytes,1,rep,name=synthetic_locks,json=syntheticLocks,proto3" json:"synthetic_locks"`
}

Deprecated: Do not use.

func (*SyntheticLockupsByLockupIDResponse) Descriptor

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

func (*SyntheticLockupsByLockupIDResponse) GetSyntheticLocks

func (m *SyntheticLockupsByLockupIDResponse) GetSyntheticLocks() []SyntheticLock

func (*SyntheticLockupsByLockupIDResponse) Marshal

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

func (*SyntheticLockupsByLockupIDResponse) MarshalTo

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

func (*SyntheticLockupsByLockupIDResponse) MarshalToSizedBuffer

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

func (*SyntheticLockupsByLockupIDResponse) ProtoMessage

func (*SyntheticLockupsByLockupIDResponse) ProtoMessage()

func (*SyntheticLockupsByLockupIDResponse) Reset

func (*SyntheticLockupsByLockupIDResponse) Size

func (*SyntheticLockupsByLockupIDResponse) String

func (*SyntheticLockupsByLockupIDResponse) Unmarshal

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

func (*SyntheticLockupsByLockupIDResponse) XXX_DiscardUnknown

func (m *SyntheticLockupsByLockupIDResponse) XXX_DiscardUnknown()

func (*SyntheticLockupsByLockupIDResponse) XXX_Marshal

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

func (*SyntheticLockupsByLockupIDResponse) XXX_Merge

func (*SyntheticLockupsByLockupIDResponse) XXX_Size

func (*SyntheticLockupsByLockupIDResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BeginUnlocking

func (*UnimplementedMsgServer) BeginUnlockingAll

func (*UnimplementedMsgServer) ExtendLockup

func (*UnimplementedMsgServer) ForceUnlock

func (*UnimplementedMsgServer) LockTokens

func (*UnimplementedMsgServer) SetRewardReceiverAddress

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccountLockedCoins

func (*UnimplementedQueryServer) AccountLockedDuration

func (*UnimplementedQueryServer) AccountLockedPastTime

func (*UnimplementedQueryServer) AccountLockedPastTimeDenom

func (*UnimplementedQueryServer) AccountUnlockableCoins

func (*UnimplementedQueryServer) AccountUnlockedBeforeTime

func (*UnimplementedQueryServer) AccountUnlockingCoins

func (*UnimplementedQueryServer) LockRewardReceiver

func (*UnimplementedQueryServer) LockedByID

func (*UnimplementedQueryServer) LockedDenom

func (*UnimplementedQueryServer) ModuleBalance

func (*UnimplementedQueryServer) ModuleLockedAmount

func (*UnimplementedQueryServer) NextLockID

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) SyntheticLockupByLockupID

func (*UnimplementedQueryServer) SyntheticLockupsByLockupID

Jump to

Keyboard shortcuts

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