types

package
v6.2.0-bdjuno Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 29 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"
)

constants

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

query endpoints supported by the lockup Querier

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// 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}

	// 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 (
	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 (
	ErrNotLockOwner = sdkerrors.Register(ModuleName, 1, "msg sender is not the owner of specified lock")
)

x/lockup module sentinel errors

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

Functions

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SumLocksByDenom

func SumLocksByDenom(locks []PeriodLock, denom string) sdk.Int

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}

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 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
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(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 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"`
}

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

type LockQueryType int32
const (
	ByDuration LockQueryType = 0
	ByTime     LockQueryType = 1
)

func (LockQueryType) EnumDescriptor

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

func (LockQueryType) String

func (x LockQueryType) String() string

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 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.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 {
	OnTokenLocked(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)
}

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"`
}

func NewMsgBeginUnlocking

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

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

func (*MsgBeginUnlocking) Descriptor

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

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"`
}

func (*MsgBeginUnlockingResponse) Descriptor

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

func (*MsgBeginUnlockingResponse) GetSuccess

func (m *MsgBeginUnlockingResponse) GetSuccess() bool

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

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

MsgServer is the server API for Msg service.

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

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

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 PeriodLock

type PeriodLock struct {
	ID       uint64                                   `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Owner    string                                   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Duration time.Duration                            `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"`
	EndTime  time.Time                                `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"`
	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"`
}

PeriodLock is a single unit of lock by period. It's a record of locked coin at a specific time. It stores owner, duration, unlock time and the amount of coins locked.

func NewPeriodLock

func NewPeriodLock(ID uint64, owner sdk.AccAddress, 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) 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) ProtoMessage

func (*PeriodLock) ProtoMessage()

func (*PeriodLock) Reset

func (m *PeriodLock) Reset()

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 account locked records with longer duration
	AccountLockedLongerDuration(ctx context.Context, in *AccountLockedLongerDurationRequest, opts ...grpc.CallOption) (*AccountLockedLongerDurationResponse, 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)
}

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 LockQueryType `` /* 137-byte string literal not displayed */
	Denom         string        `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// valid when query condition is ByDuration
	Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration" yaml:"duration"`
	// valid when query condition is ByTime
	Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
}

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 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 account locked records with longer duration
	AccountLockedLongerDuration(context.Context, *AccountLockedLongerDurationRequest) (*AccountLockedLongerDurationResponse, 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)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BeginUnlocking

func (*UnimplementedMsgServer) BeginUnlockingAll

func (*UnimplementedMsgServer) LockTokens

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccountLockedCoins

func (*UnimplementedQueryServer) AccountLockedPastTime

func (*UnimplementedQueryServer) AccountLockedPastTimeDenom

func (*UnimplementedQueryServer) AccountUnlockableCoins

func (*UnimplementedQueryServer) AccountUnlockedBeforeTime

func (*UnimplementedQueryServer) AccountUnlockingCoins

func (*UnimplementedQueryServer) LockedByID

func (*UnimplementedQueryServer) LockedDenom

func (*UnimplementedQueryServer) ModuleBalance

func (*UnimplementedQueryServer) ModuleLockedAmount

Jump to

Keyboard shortcuts

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