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
- Variables
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type DistrKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetLocks() []*Lock
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Lock
- func (*Lock) Descriptor() ([]byte, []int)
- func (m *Lock) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Lock) GetDuration() time.Duration
- func (m *Lock) GetEndTime() time.Time
- func (m *Lock) GetLockId() uint64
- func (m *Lock) GetOwner() string
- func (m *Lock) Marshal() (dAtA []byte, err error)
- func (m *Lock) MarshalTo(dAtA []byte) (int, error)
- func (m *Lock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p Lock) OwnerAddress() sdk.AccAddress
- func (*Lock) ProtoMessage()
- func (m *Lock) Reset()
- func (m *Lock) Size() (n int)
- func (m *Lock) String() string
- func (m *Lock) Unmarshal(dAtA []byte) error
- func (m *Lock) XXX_DiscardUnknown()
- func (m *Lock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lock) XXX_Merge(src proto.Message)
- func (m *Lock) XXX_Size() int
- func (m *Lock) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgInitiateUnlock
- func (*MsgInitiateUnlock) Descriptor() ([]byte, []int)
- func (m *MsgInitiateUnlock) GetLockId() uint64
- func (m *MsgInitiateUnlock) GetOwner() string
- func (m *MsgInitiateUnlock) GetSigners() []sdk.AccAddress
- func (m *MsgInitiateUnlock) Marshal() (dAtA []byte, err error)
- func (m *MsgInitiateUnlock) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInitiateUnlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInitiateUnlock) ProtoMessage()
- func (m *MsgInitiateUnlock) Reset()
- func (m *MsgInitiateUnlock) Size() (n int)
- func (m *MsgInitiateUnlock) String() string
- func (m *MsgInitiateUnlock) Unmarshal(dAtA []byte) error
- func (m *MsgInitiateUnlock) ValidateBasic() error
- func (m *MsgInitiateUnlock) XXX_DiscardUnknown()
- func (m *MsgInitiateUnlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInitiateUnlock) XXX_Merge(src proto.Message)
- func (m *MsgInitiateUnlock) XXX_Size() int
- func (m *MsgInitiateUnlock) XXX_Unmarshal(b []byte) error
- type MsgInitiateUnlockResponse
- func (*MsgInitiateUnlockResponse) Descriptor() ([]byte, []int)
- func (m *MsgInitiateUnlockResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInitiateUnlockResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInitiateUnlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInitiateUnlockResponse) ProtoMessage()
- func (m *MsgInitiateUnlockResponse) Reset()
- func (m *MsgInitiateUnlockResponse) Size() (n int)
- func (m *MsgInitiateUnlockResponse) String() string
- func (m *MsgInitiateUnlockResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInitiateUnlockResponse) XXX_DiscardUnknown()
- func (m *MsgInitiateUnlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInitiateUnlockResponse) XXX_Merge(src proto.Message)
- func (m *MsgInitiateUnlockResponse) XXX_Size() int
- func (m *MsgInitiateUnlockResponse) XXX_Unmarshal(b []byte) error
- type MsgLockTokens
- func (*MsgLockTokens) Descriptor() ([]byte, []int)
- func (m *MsgLockTokens) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgLockTokens) GetDuration() time.Duration
- func (m *MsgLockTokens) GetOwner() string
- func (m MsgLockTokens) GetSignBytes() []byte
- func (m MsgLockTokens) GetSigners() []sdk.AccAddress
- func (m *MsgLockTokens) Marshal() (dAtA []byte, err error)
- func (m *MsgLockTokens) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLockTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLockTokens) ProtoMessage()
- func (m *MsgLockTokens) Reset()
- func (m MsgLockTokens) Route() string
- func (m *MsgLockTokens) Size() (n int)
- func (m *MsgLockTokens) String() string
- func (m MsgLockTokens) Type() string
- func (m *MsgLockTokens) Unmarshal(dAtA []byte) error
- func (m MsgLockTokens) ValidateBasic() error
- func (m *MsgLockTokens) XXX_DiscardUnknown()
- func (m *MsgLockTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLockTokens) XXX_Merge(src proto.Message)
- func (m *MsgLockTokens) XXX_Size() int
- func (m *MsgLockTokens) XXX_Unmarshal(b []byte) error
- type MsgLockTokensResponse
- func (*MsgLockTokensResponse) Descriptor() ([]byte, []int)
- func (m *MsgLockTokensResponse) GetLockId() uint64
- func (m *MsgLockTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgLockTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLockTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLockTokensResponse) ProtoMessage()
- func (m *MsgLockTokensResponse) Reset()
- func (m *MsgLockTokensResponse) Size() (n int)
- func (m *MsgLockTokensResponse) String() string
- func (m *MsgLockTokensResponse) Unmarshal(dAtA []byte) error
- func (m *MsgLockTokensResponse) XXX_DiscardUnknown()
- func (m *MsgLockTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLockTokensResponse) XXX_Merge(src proto.Message)
- func (m *MsgLockTokensResponse) XXX_Size() int
- func (m *MsgLockTokensResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryLockRequest
- func (*QueryLockRequest) Descriptor() ([]byte, []int)
- func (m *QueryLockRequest) GetId() uint64
- func (m *QueryLockRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLockRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLockRequest) ProtoMessage()
- func (m *QueryLockRequest) Reset()
- func (m *QueryLockRequest) Size() (n int)
- func (m *QueryLockRequest) String() string
- func (m *QueryLockRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLockRequest) XXX_DiscardUnknown()
- func (m *QueryLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLockRequest) XXX_Merge(src proto.Message)
- func (m *QueryLockRequest) XXX_Size() int
- func (m *QueryLockRequest) XXX_Unmarshal(b []byte) error
- type QueryLockResponse
- func (*QueryLockResponse) Descriptor() ([]byte, []int)
- func (m *QueryLockResponse) GetLock() *Lock
- func (m *QueryLockResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLockResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLockResponse) ProtoMessage()
- func (m *QueryLockResponse) Reset()
- func (m *QueryLockResponse) Size() (n int)
- func (m *QueryLockResponse) String() string
- func (m *QueryLockResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLockResponse) XXX_DiscardUnknown()
- func (m *QueryLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLockResponse) XXX_Merge(src proto.Message)
- func (m *QueryLockResponse) XXX_Size() int
- func (m *QueryLockResponse) XXX_Unmarshal(b []byte) error
- type QueryLockedCoinsRequest
- func (*QueryLockedCoinsRequest) Descriptor() ([]byte, []int)
- func (m *QueryLockedCoinsRequest) GetAddress() string
- func (m *QueryLockedCoinsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLockedCoinsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLockedCoinsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLockedCoinsRequest) ProtoMessage()
- func (m *QueryLockedCoinsRequest) Reset()
- func (m *QueryLockedCoinsRequest) Size() (n int)
- func (m *QueryLockedCoinsRequest) String() string
- func (m *QueryLockedCoinsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLockedCoinsRequest) XXX_DiscardUnknown()
- func (m *QueryLockedCoinsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLockedCoinsRequest) XXX_Merge(src proto.Message)
- func (m *QueryLockedCoinsRequest) XXX_Size() int
- func (m *QueryLockedCoinsRequest) XXX_Unmarshal(b []byte) error
- type QueryLockedCoinsResponse
- func (*QueryLockedCoinsResponse) Descriptor() ([]byte, []int)
- func (m *QueryLockedCoinsResponse) GetLockedCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryLockedCoinsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLockedCoinsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLockedCoinsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLockedCoinsResponse) ProtoMessage()
- func (m *QueryLockedCoinsResponse) Reset()
- func (m *QueryLockedCoinsResponse) Size() (n int)
- func (m *QueryLockedCoinsResponse) String() string
- func (m *QueryLockedCoinsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLockedCoinsResponse) XXX_DiscardUnknown()
- func (m *QueryLockedCoinsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLockedCoinsResponse) XXX_Merge(src proto.Message)
- func (m *QueryLockedCoinsResponse) XXX_Size() int
- func (m *QueryLockedCoinsResponse) XXX_Unmarshal(b []byte) error
- type QueryLocksByAddress
- func (*QueryLocksByAddress) Descriptor() ([]byte, []int)
- func (m *QueryLocksByAddress) GetAddress() string
- func (m *QueryLocksByAddress) GetPagination() *query.PageRequest
- func (m *QueryLocksByAddress) Marshal() (dAtA []byte, err error)
- func (m *QueryLocksByAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLocksByAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLocksByAddress) ProtoMessage()
- func (m *QueryLocksByAddress) Reset()
- func (m *QueryLocksByAddress) Size() (n int)
- func (m *QueryLocksByAddress) String() string
- func (m *QueryLocksByAddress) Unmarshal(dAtA []byte) error
- func (m *QueryLocksByAddress) XXX_DiscardUnknown()
- func (m *QueryLocksByAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLocksByAddress) XXX_Merge(src proto.Message)
- func (m *QueryLocksByAddress) XXX_Size() int
- func (m *QueryLocksByAddress) XXX_Unmarshal(b []byte) error
- type QueryLocksByAddressResponse
- func (*QueryLocksByAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryLocksByAddressResponse) GetLocks() []*Lock
- func (m *QueryLocksByAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLocksByAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLocksByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLocksByAddressResponse) ProtoMessage()
- func (m *QueryLocksByAddressResponse) Reset()
- func (m *QueryLocksByAddressResponse) Size() (n int)
- func (m *QueryLocksByAddressResponse) String() string
- func (m *QueryLocksByAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLocksByAddressResponse) XXX_DiscardUnknown()
- func (m *QueryLocksByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLocksByAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryLocksByAddressResponse) XXX_Size() int
- func (m *QueryLocksByAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Lock(ctx context.Context, req *QueryLockRequest) (*QueryLockResponse, error)
- func (*UnimplementedQueryServer) LockedCoins(ctx context.Context, req *QueryLockedCoinsRequest) (*QueryLockedCoinsResponse, error)
- func (*UnimplementedQueryServer) LocksByAddress(ctx context.Context, req *QueryLocksByAddress) (*QueryLocksByAddressResponse, error)
Constants ¶
const ( TypeMsgLockTokens = "lock_tokens" TypeMsgBeginUnlockingAll = "begin_unlocking_all" TypeMsgBeginUnlocking = "begin_unlocking" )
constants.
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index.
Variables ¶
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.
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
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} )
var ( ErrInvalidLengthLock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLock = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
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
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
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
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 RegisterQueryHandler ¶ added in v0.1.0
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 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 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) 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) GetCoins ¶
func (m *Lock) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*Lock) GetDuration ¶
func (*Lock) GetEndTime ¶
func (Lock) OwnerAddress ¶
func (p Lock) OwnerAddress() sdk.AccAddress
OwnerAddress returns locks owner address.
func (*Lock) ProtoMessage ¶
func (*Lock) ProtoMessage()
func (*Lock) XXX_DiscardUnknown ¶
func (m *Lock) XXX_DiscardUnknown()
func (*Lock) XXX_Unmarshal ¶
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) }
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 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 (m *MsgLockTokens) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
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) 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) }
MsgServer is the server API for Msg service.
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 (m *QueryLockedCoinsResponse) GetLockedCoins() github_com_cosmos_cosmos_sdk_types.Coins
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"`
}
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) 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 ¶
type QueryServer interface { LockedCoins(context.Context, *QueryLockedCoinsRequest) (*QueryLockedCoinsResponse, error) Lock(context.Context, *QueryLockRequest) (*QueryLockResponse, error) LocksByAddress(context.Context, *QueryLocksByAddress) (*QueryLocksByAddressResponse, 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) InitiateUnlock ¶ added in v0.1.0
func (*UnimplementedMsgServer) InitiateUnlock(ctx context.Context, req *MsgInitiateUnlock) (*MsgInitiateUnlockResponse, error)
func (*UnimplementedMsgServer) LockTokens ¶
func (*UnimplementedMsgServer) LockTokens(ctx context.Context, req *MsgLockTokens) (*MsgLockTokensResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Lock ¶ added in v0.2.2
func (*UnimplementedQueryServer) Lock(ctx context.Context, req *QueryLockRequest) (*QueryLockResponse, error)
func (*UnimplementedQueryServer) LockedCoins ¶
func (*UnimplementedQueryServer) LockedCoins(ctx context.Context, req *QueryLockedCoinsRequest) (*QueryLockedCoinsResponse, error)
func (*UnimplementedQueryServer) LocksByAddress ¶ added in v0.2.2
func (*UnimplementedQueryServer) LocksByAddress(ctx context.Context, req *QueryLocksByAddress) (*QueryLocksByAddressResponse, error)