types

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 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.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeMsgLockTokens        = "lock_tokens"
	TypeMsgBeginUnlockingAll = "begin_unlocking_all"
	TypeMsgBeginUnlocking    = "begin_unlocking"
)

constants.

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index.

Variables

View Source
var (
	ErrNotLockOwner     = sdkerrors.Register(ModuleName, 1, "msg sender is not the owner of specified lock")
	ErrLockupNotFound   = sdkerrors.Register(ModuleName, 2, "lockup not found")
	ErrLockEndTime      = sdkerrors.Register(ModuleName, 3, "lock end time not met")
	ErrAlreadyUnlocking = sdkerrors.Register(ModuleName, 4, "lockup is already unlocking")
)

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}

	// 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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgHandler added in v0.1.0

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

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

func RegisterMsgHandlerClient added in v0.1.0

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

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

func RegisterMsgHandlerFromEndpoint added in v0.1.0

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

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

func RegisterMsgHandlerServer added in v0.1.0

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

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.1.0

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 added in v0.1.0

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 added in v0.1.0

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 added in v0.1.0

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

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

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 DistrKeeper

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

type EventLock added in v0.5.0

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

func (*EventLock) Descriptor added in v0.5.0

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

func (*EventLock) GetCoins added in v0.5.0

func (*EventLock) GetDuration added in v0.5.0

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

func (*EventLock) GetLockId added in v0.5.0

func (m *EventLock) GetLockId() uint64

func (*EventLock) GetOwner added in v0.5.0

func (m *EventLock) GetOwner() string

func (*EventLock) Marshal added in v0.5.0

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

func (*EventLock) MarshalTo added in v0.5.0

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

func (*EventLock) MarshalToSizedBuffer added in v0.5.0

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

func (*EventLock) ProtoMessage added in v0.5.0

func (*EventLock) ProtoMessage()

func (*EventLock) Reset added in v0.5.0

func (m *EventLock) Reset()

func (*EventLock) Size added in v0.5.0

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

func (*EventLock) String added in v0.5.0

func (m *EventLock) String() string

func (*EventLock) Unmarshal added in v0.5.0

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

func (*EventLock) XXX_DiscardUnknown added in v0.5.0

func (m *EventLock) XXX_DiscardUnknown()

func (*EventLock) XXX_Marshal added in v0.5.0

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

func (*EventLock) XXX_Merge added in v0.5.0

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

func (*EventLock) XXX_Size added in v0.5.0

func (m *EventLock) XXX_Size() int

func (*EventLock) XXX_Unmarshal added in v0.5.0

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

type EventUnlock added in v0.5.0

type EventUnlock struct {
	LockId uint64                                   `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
	Owner  string                                   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	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 (*EventUnlock) Descriptor added in v0.5.0

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

func (*EventUnlock) GetCoins added in v0.5.0

func (*EventUnlock) GetLockId added in v0.5.0

func (m *EventUnlock) GetLockId() uint64

func (*EventUnlock) GetOwner added in v0.5.0

func (m *EventUnlock) GetOwner() string

func (*EventUnlock) Marshal added in v0.5.0

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

func (*EventUnlock) MarshalTo added in v0.5.0

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

func (*EventUnlock) MarshalToSizedBuffer added in v0.5.0

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

func (*EventUnlock) ProtoMessage added in v0.5.0

func (*EventUnlock) ProtoMessage()

func (*EventUnlock) Reset added in v0.5.0

func (m *EventUnlock) Reset()

func (*EventUnlock) Size added in v0.5.0

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

func (*EventUnlock) String added in v0.5.0

func (m *EventUnlock) String() string

func (*EventUnlock) Unmarshal added in v0.5.0

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

func (*EventUnlock) XXX_DiscardUnknown added in v0.5.0

func (m *EventUnlock) XXX_DiscardUnknown()

func (*EventUnlock) XXX_Marshal added in v0.5.0

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

func (*EventUnlock) XXX_Merge added in v0.5.0

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

func (*EventUnlock) XXX_Size added in v0.5.0

func (m *EventUnlock) XXX_Size() int

func (*EventUnlock) XXX_Unmarshal added in v0.5.0

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

type EventUnlockInitiated added in v0.5.0

type EventUnlockInitiated struct {
	LockId      uint64                                   `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
	Owner       string                                   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	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"`
	UnlockingAt time.Time                                `protobuf:"bytes,4,opt,name=unlocking_at,json=unlockingAt,proto3,stdtime" json:"unlocking_at" yaml:"end_time"`
}

func (*EventUnlockInitiated) Descriptor added in v0.5.0

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

func (*EventUnlockInitiated) GetCoins added in v0.5.0

func (*EventUnlockInitiated) GetLockId added in v0.5.0

func (m *EventUnlockInitiated) GetLockId() uint64

func (*EventUnlockInitiated) GetOwner added in v0.5.0

func (m *EventUnlockInitiated) GetOwner() string

func (*EventUnlockInitiated) GetUnlockingAt added in v0.5.0

func (m *EventUnlockInitiated) GetUnlockingAt() time.Time

func (*EventUnlockInitiated) Marshal added in v0.5.0

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

func (*EventUnlockInitiated) MarshalTo added in v0.5.0

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

func (*EventUnlockInitiated) MarshalToSizedBuffer added in v0.5.0

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

func (*EventUnlockInitiated) ProtoMessage added in v0.5.0

func (*EventUnlockInitiated) ProtoMessage()

func (*EventUnlockInitiated) Reset added in v0.5.0

func (m *EventUnlockInitiated) Reset()

func (*EventUnlockInitiated) Size added in v0.5.0

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

func (*EventUnlockInitiated) String added in v0.5.0

func (m *EventUnlockInitiated) String() string

func (*EventUnlockInitiated) Unmarshal added in v0.5.0

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

func (*EventUnlockInitiated) XXX_DiscardUnknown added in v0.5.0

func (m *EventUnlockInitiated) XXX_DiscardUnknown()

func (*EventUnlockInitiated) XXX_Marshal added in v0.5.0

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

func (*EventUnlockInitiated) XXX_Merge added in v0.5.0

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

func (*EventUnlockInitiated) XXX_Size added in v0.5.0

func (m *EventUnlockInitiated) XXX_Size() int

func (*EventUnlockInitiated) XXX_Unmarshal added in v0.5.0

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

type GenesisState

type GenesisState struct {
	Locks []*Lock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks,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) GetLocks

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

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 Lock

type Lock struct {
	// unique autoincrementing numeric lock id
	LockId uint64 `protobuf:"varint,1,opt,name=lockId,proto3" json:"lockId,omitempty"`
	// the user's address who owns the tokens that are locked
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// the duration that the lock is locked for
	Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"`
	// when the lock was unlocked
	EndTime time.Time `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"`
	// the coins locked in this Lock
	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"`
}

Lock represents a users locked tokens for a period of time. It stores owner, duration, unlock time and the amount of coins locked.

func NewLock

func NewLock(lockId uint64, owner sdk.AccAddress, duration time.Duration,
	endTime time.Time, coins sdk.Coins) Lock

NewLock returns a new instance of period lock.

func (*Lock) Descriptor

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

func (*Lock) GetCoins

func (*Lock) GetDuration

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

func (*Lock) GetEndTime

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

func (*Lock) GetLockId

func (m *Lock) GetLockId() uint64

func (*Lock) GetOwner

func (m *Lock) GetOwner() string

func (*Lock) Marshal

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

func (*Lock) MarshalTo

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

func (*Lock) MarshalToSizedBuffer

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

func (Lock) OwnerAddress

func (p Lock) OwnerAddress() sdk.AccAddress

OwnerAddress returns locks owner address.

func (*Lock) ProtoMessage

func (*Lock) ProtoMessage()

func (*Lock) Reset

func (m *Lock) Reset()

func (*Lock) Size

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

func (*Lock) String

func (m *Lock) String() string

func (*Lock) Unmarshal

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

func (*Lock) XXX_DiscardUnknown

func (m *Lock) XXX_DiscardUnknown()

func (*Lock) XXX_Marshal

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

func (*Lock) XXX_Merge

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

func (*Lock) XXX_Size

func (m *Lock) XXX_Size() int

func (*Lock) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// LockTokens lock tokens
	LockTokens(ctx context.Context, in *MsgLockTokens, opts ...grpc.CallOption) (*MsgLockTokensResponse, error)
	InitiateUnlock(ctx context.Context, in *MsgInitiateUnlock, opts ...grpc.CallOption) (*MsgInitiateUnlockResponse, error)
	Unlock(ctx context.Context, in *MsgUnlock, opts ...grpc.CallOption) (*MsgUnlockResponse, 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 MsgInitiateUnlock added in v0.1.0

type MsgInitiateUnlock struct {
	Owner  string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	LockId uint64 `protobuf:"varint,2,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

func (*MsgInitiateUnlock) Descriptor added in v0.1.0

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

func (*MsgInitiateUnlock) GetLockId added in v0.1.0

func (m *MsgInitiateUnlock) GetLockId() uint64

func (*MsgInitiateUnlock) GetOwner added in v0.1.0

func (m *MsgInitiateUnlock) GetOwner() string

func (*MsgInitiateUnlock) GetSigners added in v0.1.0

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

func (*MsgInitiateUnlock) Marshal added in v0.1.0

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

func (*MsgInitiateUnlock) MarshalTo added in v0.1.0

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

func (*MsgInitiateUnlock) MarshalToSizedBuffer added in v0.1.0

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

func (*MsgInitiateUnlock) ProtoMessage added in v0.1.0

func (*MsgInitiateUnlock) ProtoMessage()

func (*MsgInitiateUnlock) Reset added in v0.1.0

func (m *MsgInitiateUnlock) Reset()

func (*MsgInitiateUnlock) Size added in v0.1.0

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

func (*MsgInitiateUnlock) String added in v0.1.0

func (m *MsgInitiateUnlock) String() string

func (*MsgInitiateUnlock) Unmarshal added in v0.1.0

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

func (*MsgInitiateUnlock) ValidateBasic added in v0.1.0

func (m *MsgInitiateUnlock) ValidateBasic() error

func (*MsgInitiateUnlock) XXX_DiscardUnknown added in v0.1.0

func (m *MsgInitiateUnlock) XXX_DiscardUnknown()

func (*MsgInitiateUnlock) XXX_Marshal added in v0.1.0

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

func (*MsgInitiateUnlock) XXX_Merge added in v0.1.0

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

func (*MsgInitiateUnlock) XXX_Size added in v0.1.0

func (m *MsgInitiateUnlock) XXX_Size() int

func (*MsgInitiateUnlock) XXX_Unmarshal added in v0.1.0

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

type MsgInitiateUnlockResponse added in v0.1.0

type MsgInitiateUnlockResponse struct {
}

func (*MsgInitiateUnlockResponse) Descriptor added in v0.1.0

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

func (*MsgInitiateUnlockResponse) Marshal added in v0.1.0

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

func (*MsgInitiateUnlockResponse) MarshalTo added in v0.1.0

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

func (*MsgInitiateUnlockResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*MsgInitiateUnlockResponse) ProtoMessage added in v0.1.0

func (*MsgInitiateUnlockResponse) ProtoMessage()

func (*MsgInitiateUnlockResponse) Reset added in v0.1.0

func (m *MsgInitiateUnlockResponse) Reset()

func (*MsgInitiateUnlockResponse) Size added in v0.1.0

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

func (*MsgInitiateUnlockResponse) String added in v0.1.0

func (m *MsgInitiateUnlockResponse) String() string

func (*MsgInitiateUnlockResponse) Unmarshal added in v0.1.0

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

func (*MsgInitiateUnlockResponse) XXX_DiscardUnknown added in v0.1.0

func (m *MsgInitiateUnlockResponse) XXX_DiscardUnknown()

func (*MsgInitiateUnlockResponse) XXX_Marshal added in v0.1.0

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

func (*MsgInitiateUnlockResponse) XXX_Merge added in v0.1.0

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

func (*MsgInitiateUnlockResponse) XXX_Size added in v0.1.0

func (m *MsgInitiateUnlockResponse) XXX_Size() int

func (*MsgInitiateUnlockResponse) XXX_Unmarshal added in v0.1.0

func (m *MsgInitiateUnlockResponse) 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 (*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 {
	LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

func (*MsgLockTokensResponse) Descriptor

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

func (*MsgLockTokensResponse) GetLockId

func (m *MsgLockTokensResponse) GetLockId() 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)
	InitiateUnlock(context.Context, *MsgInitiateUnlock) (*MsgInitiateUnlockResponse, error)
	Unlock(context.Context, *MsgUnlock) (*MsgUnlockResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnlock added in v0.5.0

type MsgUnlock struct {
	Owner  string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	LockId uint64 `protobuf:"varint,2,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
}

func (*MsgUnlock) Descriptor added in v0.5.0

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

func (*MsgUnlock) GetLockId added in v0.5.0

func (m *MsgUnlock) GetLockId() uint64

func (*MsgUnlock) GetOwner added in v0.5.0

func (m *MsgUnlock) GetOwner() string

func (*MsgUnlock) GetSigners added in v0.5.0

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

func (*MsgUnlock) Marshal added in v0.5.0

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

func (*MsgUnlock) MarshalTo added in v0.5.0

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

func (*MsgUnlock) MarshalToSizedBuffer added in v0.5.0

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

func (*MsgUnlock) ProtoMessage added in v0.5.0

func (*MsgUnlock) ProtoMessage()

func (*MsgUnlock) Reset added in v0.5.0

func (m *MsgUnlock) Reset()

func (*MsgUnlock) Size added in v0.5.0

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

func (*MsgUnlock) String added in v0.5.0

func (m *MsgUnlock) String() string

func (*MsgUnlock) Unmarshal added in v0.5.0

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

func (*MsgUnlock) ValidateBasic added in v0.5.0

func (m *MsgUnlock) ValidateBasic() error

func (*MsgUnlock) XXX_DiscardUnknown added in v0.5.0

func (m *MsgUnlock) XXX_DiscardUnknown()

func (*MsgUnlock) XXX_Marshal added in v0.5.0

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

func (*MsgUnlock) XXX_Merge added in v0.5.0

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

func (*MsgUnlock) XXX_Size added in v0.5.0

func (m *MsgUnlock) XXX_Size() int

func (*MsgUnlock) XXX_Unmarshal added in v0.5.0

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

type MsgUnlockResponse added in v0.5.0

type MsgUnlockResponse struct {
}

func (*MsgUnlockResponse) Descriptor added in v0.5.0

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

func (*MsgUnlockResponse) Marshal added in v0.5.0

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

func (*MsgUnlockResponse) MarshalTo added in v0.5.0

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

func (*MsgUnlockResponse) MarshalToSizedBuffer added in v0.5.0

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

func (*MsgUnlockResponse) ProtoMessage added in v0.5.0

func (*MsgUnlockResponse) ProtoMessage()

func (*MsgUnlockResponse) Reset added in v0.5.0

func (m *MsgUnlockResponse) Reset()

func (*MsgUnlockResponse) Size added in v0.5.0

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

func (*MsgUnlockResponse) String added in v0.5.0

func (m *MsgUnlockResponse) String() string

func (*MsgUnlockResponse) Unmarshal added in v0.5.0

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

func (*MsgUnlockResponse) XXX_DiscardUnknown added in v0.5.0

func (m *MsgUnlockResponse) XXX_DiscardUnknown()

func (*MsgUnlockResponse) XXX_Marshal added in v0.5.0

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

func (*MsgUnlockResponse) XXX_Merge added in v0.5.0

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

func (*MsgUnlockResponse) XXX_Size added in v0.5.0

func (m *MsgUnlockResponse) XXX_Size() int

func (*MsgUnlockResponse) XXX_Unmarshal added in v0.5.0

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

type QueryClient

type QueryClient interface {
	LockedCoins(ctx context.Context, in *QueryLockedCoinsRequest, opts ...grpc.CallOption) (*QueryLockedCoinsResponse, error)
	Lock(ctx context.Context, in *QueryLockRequest, opts ...grpc.CallOption) (*QueryLockResponse, error)
	LocksByAddress(ctx context.Context, in *QueryLocksByAddress, opts ...grpc.CallOption) (*QueryLocksByAddressResponse, 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 QueryLockRequest added in v0.2.2

type QueryLockRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryLockRequest) Descriptor added in v0.2.2

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

func (*QueryLockRequest) GetId added in v0.2.2

func (m *QueryLockRequest) GetId() uint64

func (*QueryLockRequest) Marshal added in v0.2.2

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

func (*QueryLockRequest) MarshalTo added in v0.2.2

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

func (*QueryLockRequest) MarshalToSizedBuffer added in v0.2.2

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

func (*QueryLockRequest) ProtoMessage added in v0.2.2

func (*QueryLockRequest) ProtoMessage()

func (*QueryLockRequest) Reset added in v0.2.2

func (m *QueryLockRequest) Reset()

func (*QueryLockRequest) Size added in v0.2.2

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

func (*QueryLockRequest) String added in v0.2.2

func (m *QueryLockRequest) String() string

func (*QueryLockRequest) Unmarshal added in v0.2.2

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

func (*QueryLockRequest) XXX_DiscardUnknown added in v0.2.2

func (m *QueryLockRequest) XXX_DiscardUnknown()

func (*QueryLockRequest) XXX_Marshal added in v0.2.2

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

func (*QueryLockRequest) XXX_Merge added in v0.2.2

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

func (*QueryLockRequest) XXX_Size added in v0.2.2

func (m *QueryLockRequest) XXX_Size() int

func (*QueryLockRequest) XXX_Unmarshal added in v0.2.2

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

type QueryLockResponse added in v0.2.2

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

func (*QueryLockResponse) Descriptor added in v0.2.2

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

func (*QueryLockResponse) GetLock added in v0.2.2

func (m *QueryLockResponse) GetLock() *Lock

func (*QueryLockResponse) Marshal added in v0.2.2

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

func (*QueryLockResponse) MarshalTo added in v0.2.2

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

func (*QueryLockResponse) MarshalToSizedBuffer added in v0.2.2

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

func (*QueryLockResponse) ProtoMessage added in v0.2.2

func (*QueryLockResponse) ProtoMessage()

func (*QueryLockResponse) Reset added in v0.2.2

func (m *QueryLockResponse) Reset()

func (*QueryLockResponse) Size added in v0.2.2

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

func (*QueryLockResponse) String added in v0.2.2

func (m *QueryLockResponse) String() string

func (*QueryLockResponse) Unmarshal added in v0.2.2

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

func (*QueryLockResponse) XXX_DiscardUnknown added in v0.2.2

func (m *QueryLockResponse) XXX_DiscardUnknown()

func (*QueryLockResponse) XXX_Marshal added in v0.2.2

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

func (*QueryLockResponse) XXX_Merge added in v0.2.2

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

func (*QueryLockResponse) XXX_Size added in v0.2.2

func (m *QueryLockResponse) XXX_Size() int

func (*QueryLockResponse) XXX_Unmarshal added in v0.2.2

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

type QueryLockedCoinsRequest

type QueryLockedCoinsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryLockedCoinsRequest) Descriptor

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

func (*QueryLockedCoinsRequest) GetAddress

func (m *QueryLockedCoinsRequest) GetAddress() string

func (*QueryLockedCoinsRequest) Marshal

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

func (*QueryLockedCoinsRequest) MarshalTo

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

func (*QueryLockedCoinsRequest) MarshalToSizedBuffer

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

func (*QueryLockedCoinsRequest) ProtoMessage

func (*QueryLockedCoinsRequest) ProtoMessage()

func (*QueryLockedCoinsRequest) Reset

func (m *QueryLockedCoinsRequest) Reset()

func (*QueryLockedCoinsRequest) Size

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

func (*QueryLockedCoinsRequest) String

func (m *QueryLockedCoinsRequest) String() string

func (*QueryLockedCoinsRequest) Unmarshal

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

func (*QueryLockedCoinsRequest) XXX_DiscardUnknown

func (m *QueryLockedCoinsRequest) XXX_DiscardUnknown()

func (*QueryLockedCoinsRequest) XXX_Marshal

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

func (*QueryLockedCoinsRequest) XXX_Merge

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

func (*QueryLockedCoinsRequest) XXX_Size

func (m *QueryLockedCoinsRequest) XXX_Size() int

func (*QueryLockedCoinsRequest) XXX_Unmarshal

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

type QueryLockedCoinsResponse

type QueryLockedCoinsResponse struct {
	LockedCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
}

func (*QueryLockedCoinsResponse) Descriptor

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

func (*QueryLockedCoinsResponse) GetLockedCoins

func (*QueryLockedCoinsResponse) Marshal

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

func (*QueryLockedCoinsResponse) MarshalTo

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

func (*QueryLockedCoinsResponse) MarshalToSizedBuffer

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

func (*QueryLockedCoinsResponse) ProtoMessage

func (*QueryLockedCoinsResponse) ProtoMessage()

func (*QueryLockedCoinsResponse) Reset

func (m *QueryLockedCoinsResponse) Reset()

func (*QueryLockedCoinsResponse) Size

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

func (*QueryLockedCoinsResponse) String

func (m *QueryLockedCoinsResponse) String() string

func (*QueryLockedCoinsResponse) Unmarshal

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

func (*QueryLockedCoinsResponse) XXX_DiscardUnknown

func (m *QueryLockedCoinsResponse) XXX_DiscardUnknown()

func (*QueryLockedCoinsResponse) XXX_Marshal

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

func (*QueryLockedCoinsResponse) XXX_Merge

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

func (*QueryLockedCoinsResponse) XXX_Size

func (m *QueryLockedCoinsResponse) XXX_Size() int

func (*QueryLockedCoinsResponse) XXX_Unmarshal

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

type QueryLocksByAddress added in v0.2.2

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

func (*QueryLocksByAddress) Descriptor added in v0.2.2

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

func (*QueryLocksByAddress) GetAddress added in v0.2.2

func (m *QueryLocksByAddress) GetAddress() string

func (*QueryLocksByAddress) GetPagination added in v0.2.2

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

func (*QueryLocksByAddress) Marshal added in v0.2.2

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

func (*QueryLocksByAddress) MarshalTo added in v0.2.2

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

func (*QueryLocksByAddress) MarshalToSizedBuffer added in v0.2.2

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

func (*QueryLocksByAddress) ProtoMessage added in v0.2.2

func (*QueryLocksByAddress) ProtoMessage()

func (*QueryLocksByAddress) Reset added in v0.2.2

func (m *QueryLocksByAddress) Reset()

func (*QueryLocksByAddress) Size added in v0.2.2

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

func (*QueryLocksByAddress) String added in v0.2.2

func (m *QueryLocksByAddress) String() string

func (*QueryLocksByAddress) Unmarshal added in v0.2.2

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

func (*QueryLocksByAddress) XXX_DiscardUnknown added in v0.2.2

func (m *QueryLocksByAddress) XXX_DiscardUnknown()

func (*QueryLocksByAddress) XXX_Marshal added in v0.2.2

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

func (*QueryLocksByAddress) XXX_Merge added in v0.2.2

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

func (*QueryLocksByAddress) XXX_Size added in v0.2.2

func (m *QueryLocksByAddress) XXX_Size() int

func (*QueryLocksByAddress) XXX_Unmarshal added in v0.2.2

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

type QueryLocksByAddressResponse added in v0.2.2

type QueryLocksByAddressResponse struct {
	Locks      []*Lock             `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryLocksByAddressResponse) Descriptor added in v0.2.2

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

func (*QueryLocksByAddressResponse) GetLocks added in v0.2.2

func (m *QueryLocksByAddressResponse) GetLocks() []*Lock

func (*QueryLocksByAddressResponse) GetPagination added in v0.4.5

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

func (*QueryLocksByAddressResponse) Marshal added in v0.2.2

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

func (*QueryLocksByAddressResponse) MarshalTo added in v0.2.2

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

func (*QueryLocksByAddressResponse) MarshalToSizedBuffer added in v0.2.2

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

func (*QueryLocksByAddressResponse) ProtoMessage added in v0.2.2

func (*QueryLocksByAddressResponse) ProtoMessage()

func (*QueryLocksByAddressResponse) Reset added in v0.2.2

func (m *QueryLocksByAddressResponse) Reset()

func (*QueryLocksByAddressResponse) Size added in v0.2.2

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

func (*QueryLocksByAddressResponse) String added in v0.2.2

func (m *QueryLocksByAddressResponse) String() string

func (*QueryLocksByAddressResponse) Unmarshal added in v0.2.2

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

func (*QueryLocksByAddressResponse) XXX_DiscardUnknown added in v0.2.2

func (m *QueryLocksByAddressResponse) XXX_DiscardUnknown()

func (*QueryLocksByAddressResponse) XXX_Marshal added in v0.2.2

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

func (*QueryLocksByAddressResponse) XXX_Merge added in v0.2.2

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

func (*QueryLocksByAddressResponse) XXX_Size added in v0.2.2

func (m *QueryLocksByAddressResponse) XXX_Size() int

func (*QueryLocksByAddressResponse) XXX_Unmarshal added in v0.2.2

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

type QueryServer

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) InitiateUnlock added in v0.1.0

func (*UnimplementedMsgServer) LockTokens

func (*UnimplementedMsgServer) Unlock added in v0.5.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Lock added in v0.2.2

func (*UnimplementedQueryServer) LockedCoins

func (*UnimplementedQueryServer) LocksByAddress added in v0.2.2

Jump to

Keyboard shortcuts

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