Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 BankKeeper
- type EventReturnLegacyCoins
- func (*EventReturnLegacyCoins) Descriptor() ([]byte, []int)
- func (m *EventReturnLegacyCoins) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *EventReturnLegacyCoins) GetLegacyOwner() string
- func (m *EventReturnLegacyCoins) GetOwner() string
- func (m *EventReturnLegacyCoins) Marshal() (dAtA []byte, err error)
- func (m *EventReturnLegacyCoins) MarshalTo(dAtA []byte) (int, error)
- func (m *EventReturnLegacyCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventReturnLegacyCoins) ProtoMessage()
- func (m *EventReturnLegacyCoins) Reset()
- func (m *EventReturnLegacyCoins) Size() (n int)
- func (m *EventReturnLegacyCoins) String() string
- func (m *EventReturnLegacyCoins) Unmarshal(dAtA []byte) error
- func (m *EventReturnLegacyCoins) XXX_DiscardUnknown()
- func (m *EventReturnLegacyCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReturnLegacyCoins) XXX_Merge(src proto.Message)
- func (m *EventReturnLegacyCoins) XXX_Size() int
- func (m *EventReturnLegacyCoins) XXX_Unmarshal(b []byte) error
- type EventReturnLegacySubToken
- func (*EventReturnLegacySubToken) Descriptor() ([]byte, []int)
- func (m *EventReturnLegacySubToken) GetDenom() string
- func (m *EventReturnLegacySubToken) GetID() string
- func (m *EventReturnLegacySubToken) GetLegacyOwner() string
- func (m *EventReturnLegacySubToken) GetOwner() string
- func (m *EventReturnLegacySubToken) GetSubTokenIDs() []uint32
- func (m *EventReturnLegacySubToken) Marshal() (dAtA []byte, err error)
- func (m *EventReturnLegacySubToken) MarshalTo(dAtA []byte) (int, error)
- func (m *EventReturnLegacySubToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventReturnLegacySubToken) ProtoMessage()
- func (m *EventReturnLegacySubToken) Reset()
- func (m *EventReturnLegacySubToken) Size() (n int)
- func (m *EventReturnLegacySubToken) String() string
- func (m *EventReturnLegacySubToken) Unmarshal(dAtA []byte) error
- func (m *EventReturnLegacySubToken) XXX_DiscardUnknown()
- func (m *EventReturnLegacySubToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReturnLegacySubToken) XXX_Merge(src proto.Message)
- func (m *EventReturnLegacySubToken) XXX_Size() int
- func (m *EventReturnLegacySubToken) XXX_Unmarshal(b []byte) error
- type EventReturnMultisigWallet
- func (*EventReturnMultisigWallet) Descriptor() ([]byte, []int)
- func (m *EventReturnMultisigWallet) GetLegacyOwner() string
- func (m *EventReturnMultisigWallet) GetOwner() string
- func (m *EventReturnMultisigWallet) GetWallet() string
- func (m *EventReturnMultisigWallet) Marshal() (dAtA []byte, err error)
- func (m *EventReturnMultisigWallet) MarshalTo(dAtA []byte) (int, error)
- func (m *EventReturnMultisigWallet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventReturnMultisigWallet) ProtoMessage()
- func (m *EventReturnMultisigWallet) Reset()
- func (m *EventReturnMultisigWallet) Size() (n int)
- func (m *EventReturnMultisigWallet) String() string
- func (m *EventReturnMultisigWallet) Unmarshal(dAtA []byte) error
- func (m *EventReturnMultisigWallet) XXX_DiscardUnknown()
- func (m *EventReturnMultisigWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReturnMultisigWallet) XXX_Merge(src proto.Message)
- func (m *EventReturnMultisigWallet) XXX_Size() int
- func (m *EventReturnMultisigWallet) XXX_Unmarshal(b []byte) error
- type EventReturnValidator
- func (*EventReturnValidator) Descriptor() ([]byte, []int)
- func (m *EventReturnValidator) GetLegacyOwner() string
- func (m *EventReturnValidator) GetOwner() string
- func (m *EventReturnValidator) GetValidator() string
- func (m *EventReturnValidator) Marshal() (dAtA []byte, err error)
- func (m *EventReturnValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *EventReturnValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventReturnValidator) ProtoMessage()
- func (m *EventReturnValidator) Reset()
- func (m *EventReturnValidator) Size() (n int)
- func (m *EventReturnValidator) String() string
- func (m *EventReturnValidator) Unmarshal(dAtA []byte) error
- func (m *EventReturnValidator) XXX_DiscardUnknown()
- func (m *EventReturnValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReturnValidator) XXX_Merge(src proto.Message)
- func (m *EventReturnValidator) XXX_Size() int
- func (m *EventReturnValidator) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRecords() []Record
- 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 LegacyKeeper
- type MsgClient
- type MsgReturnLegacy
- func (*MsgReturnLegacy) Descriptor() ([]byte, []int)
- func (m *MsgReturnLegacy) GetPublicKey() []byte
- func (m *MsgReturnLegacy) GetSender() string
- func (msg *MsgReturnLegacy) GetSignBytes() []byte
- func (msg MsgReturnLegacy) GetSigners() []sdk.AccAddress
- func (m *MsgReturnLegacy) Marshal() (dAtA []byte, err error)
- func (m *MsgReturnLegacy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgReturnLegacy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgReturnLegacy) ProtoMessage()
- func (m *MsgReturnLegacy) Reset()
- func (msg MsgReturnLegacy) Route() string
- func (m *MsgReturnLegacy) Size() (n int)
- func (m *MsgReturnLegacy) String() string
- func (msg MsgReturnLegacy) Type() string
- func (m *MsgReturnLegacy) Unmarshal(dAtA []byte) error
- func (msg MsgReturnLegacy) ValidateBasic() error
- func (m *MsgReturnLegacy) XXX_DiscardUnknown()
- func (m *MsgReturnLegacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgReturnLegacy) XXX_Merge(src proto.Message)
- func (m *MsgReturnLegacy) XXX_Size() int
- func (m *MsgReturnLegacy) XXX_Unmarshal(b []byte) error
- type MsgReturnLegacyResponse
- func (*MsgReturnLegacyResponse) Descriptor() ([]byte, []int)
- func (m *MsgReturnLegacyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgReturnLegacyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgReturnLegacyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgReturnLegacyResponse) ProtoMessage()
- func (m *MsgReturnLegacyResponse) Reset()
- func (m *MsgReturnLegacyResponse) Size() (n int)
- func (m *MsgReturnLegacyResponse) String() string
- func (m *MsgReturnLegacyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgReturnLegacyResponse) XXX_DiscardUnknown()
- func (m *MsgReturnLegacyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgReturnLegacyResponse) XXX_Merge(src proto.Message)
- func (m *MsgReturnLegacyResponse) XXX_Size() int
- func (m *MsgReturnLegacyResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MultisigKeeper
- type NftKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryCheckRequest
- func (*QueryCheckRequest) Descriptor() ([]byte, []int)
- func (m *QueryCheckRequest) GetPubkey() []byte
- func (m *QueryCheckRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCheckRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCheckRequest) ProtoMessage()
- func (m *QueryCheckRequest) Reset()
- func (m *QueryCheckRequest) Size() (n int)
- func (m *QueryCheckRequest) String() string
- func (m *QueryCheckRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCheckRequest) XXX_DiscardUnknown()
- func (m *QueryCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCheckRequest) XXX_Merge(src proto.Message)
- func (m *QueryCheckRequest) XXX_Size() int
- func (m *QueryCheckRequest) XXX_Unmarshal(b []byte) error
- type QueryCheckResponse
- func (*QueryCheckResponse) Descriptor() ([]byte, []int)
- func (m *QueryCheckResponse) GetRecord() Record
- func (m *QueryCheckResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCheckResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCheckResponse) ProtoMessage()
- func (m *QueryCheckResponse) Reset()
- func (m *QueryCheckResponse) Size() (n int)
- func (m *QueryCheckResponse) String() string
- func (m *QueryCheckResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCheckResponse) XXX_DiscardUnknown()
- func (m *QueryCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCheckResponse) XXX_Merge(src proto.Message)
- func (m *QueryCheckResponse) XXX_Size() int
- func (m *QueryCheckResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryRecordRequest
- func (*QueryRecordRequest) Descriptor() ([]byte, []int)
- func (m *QueryRecordRequest) GetLegacyAddress() string
- func (m *QueryRecordRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRecordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRecordRequest) ProtoMessage()
- func (m *QueryRecordRequest) Reset()
- func (m *QueryRecordRequest) Size() (n int)
- func (m *QueryRecordRequest) String() string
- func (m *QueryRecordRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRecordRequest) XXX_DiscardUnknown()
- func (m *QueryRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRecordRequest) XXX_Merge(src proto.Message)
- func (m *QueryRecordRequest) XXX_Size() int
- func (m *QueryRecordRequest) XXX_Unmarshal(b []byte) error
- type QueryRecordResponse
- func (*QueryRecordResponse) Descriptor() ([]byte, []int)
- func (m *QueryRecordResponse) GetRecord() Record
- func (m *QueryRecordResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRecordResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRecordResponse) ProtoMessage()
- func (m *QueryRecordResponse) Reset()
- func (m *QueryRecordResponse) Size() (n int)
- func (m *QueryRecordResponse) String() string
- func (m *QueryRecordResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRecordResponse) XXX_DiscardUnknown()
- func (m *QueryRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRecordResponse) XXX_Merge(src proto.Message)
- func (m *QueryRecordResponse) XXX_Size() int
- func (m *QueryRecordResponse) XXX_Unmarshal(b []byte) error
- type QueryRecordsRequest
- func (*QueryRecordsRequest) Descriptor() ([]byte, []int)
- func (m *QueryRecordsRequest) GetPagination() *query.PageRequest
- func (m *QueryRecordsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRecordsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRecordsRequest) ProtoMessage()
- func (m *QueryRecordsRequest) Reset()
- func (m *QueryRecordsRequest) Size() (n int)
- func (m *QueryRecordsRequest) String() string
- func (m *QueryRecordsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRecordsRequest) XXX_DiscardUnknown()
- func (m *QueryRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRecordsRequest) XXX_Merge(src proto.Message)
- func (m *QueryRecordsRequest) XXX_Size() int
- func (m *QueryRecordsRequest) XXX_Unmarshal(b []byte) error
- type QueryRecordsResponse
- func (*QueryRecordsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRecordsResponse) GetPagination() *query.PageResponse
- func (m *QueryRecordsResponse) GetRecords() []Record
- func (m *QueryRecordsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRecordsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRecordsResponse) ProtoMessage()
- func (m *QueryRecordsResponse) Reset()
- func (m *QueryRecordsResponse) Size() (n int)
- func (m *QueryRecordsResponse) String() string
- func (m *QueryRecordsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRecordsResponse) XXX_DiscardUnknown()
- func (m *QueryRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRecordsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRecordsResponse) XXX_Size() int
- func (m *QueryRecordsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (this *Record) Equal(that interface{}) bool
- func (m *Record) Marshal() (dAtA []byte, err error)
- func (m *Record) MarshalTo(dAtA []byte) (int, error)
- func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) Size() (n int)
- func (m *Record) String() string
- func (m *Record) Unmarshal(dAtA []byte) error
- func (rec *Record) Validate() error
- func (m *Record) XXX_DiscardUnknown()
- func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Record) XXX_Merge(src proto.Message)
- func (m *Record) XXX_Size() int
- func (m *Record) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Check(ctx context.Context, req *QueryCheckRequest) (*QueryCheckResponse, error)
- func (*UnimplementedQueryServer) Record(ctx context.Context, req *QueryRecordRequest) (*QueryRecordResponse, error)
- func (*UnimplementedQueryServer) Records(ctx context.Context, req *QueryRecordsRequest) (*QueryRecordsResponse, error)
- type ValidatorKeeper
Constants ¶
const ( ModuleName = "legacy" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_" + ModuleName // RouterKey defines module's messages routing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const (
TypeMsgReturnLegacy = "return_legacy"
)
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthLegacy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLegacy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLegacy = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = 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 DecimalPrefix = "dx"
var DecimalValidatorPrefix = "dxvaloper"
var LegacyCoinPool = "legacy_coin_pool"
pool for legacy balances
var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
ModuleCdc references the global legacy module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.
The actual codec used for serialization should be provided to modules/legacy and defined at the application level.
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers concrete implementations of specific interfaces.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error }
type EventReturnLegacyCoins ¶
type EventReturnLegacyCoins struct { LegacyOwner string `protobuf:"bytes,1,opt,name=legacy_owner,json=legacyOwner,proto3" json:"legacy_owner,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"` }
EventReturnLegacyCoins defines event emitted when the coins are returned to the actual owner.
func (*EventReturnLegacyCoins) Descriptor ¶
func (*EventReturnLegacyCoins) Descriptor() ([]byte, []int)
func (*EventReturnLegacyCoins) GetCoins ¶
func (m *EventReturnLegacyCoins) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*EventReturnLegacyCoins) GetLegacyOwner ¶
func (m *EventReturnLegacyCoins) GetLegacyOwner() string
func (*EventReturnLegacyCoins) GetOwner ¶
func (m *EventReturnLegacyCoins) GetOwner() string
func (*EventReturnLegacyCoins) Marshal ¶
func (m *EventReturnLegacyCoins) Marshal() (dAtA []byte, err error)
func (*EventReturnLegacyCoins) MarshalTo ¶
func (m *EventReturnLegacyCoins) MarshalTo(dAtA []byte) (int, error)
func (*EventReturnLegacyCoins) MarshalToSizedBuffer ¶
func (m *EventReturnLegacyCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventReturnLegacyCoins) ProtoMessage ¶
func (*EventReturnLegacyCoins) ProtoMessage()
func (*EventReturnLegacyCoins) Reset ¶
func (m *EventReturnLegacyCoins) Reset()
func (*EventReturnLegacyCoins) Size ¶
func (m *EventReturnLegacyCoins) Size() (n int)
func (*EventReturnLegacyCoins) String ¶
func (m *EventReturnLegacyCoins) String() string
func (*EventReturnLegacyCoins) Unmarshal ¶
func (m *EventReturnLegacyCoins) Unmarshal(dAtA []byte) error
func (*EventReturnLegacyCoins) XXX_DiscardUnknown ¶
func (m *EventReturnLegacyCoins) XXX_DiscardUnknown()
func (*EventReturnLegacyCoins) XXX_Marshal ¶
func (m *EventReturnLegacyCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReturnLegacyCoins) XXX_Merge ¶
func (m *EventReturnLegacyCoins) XXX_Merge(src proto.Message)
func (*EventReturnLegacyCoins) XXX_Size ¶
func (m *EventReturnLegacyCoins) XXX_Size() int
func (*EventReturnLegacyCoins) XXX_Unmarshal ¶
func (m *EventReturnLegacyCoins) XXX_Unmarshal(b []byte) error
type EventReturnLegacySubToken ¶
type EventReturnLegacySubToken struct { LegacyOwner string `protobuf:"bytes,1,opt,name=legacy_owner,json=legacyOwner,proto3" json:"legacy_owner,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` ID string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,5,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` }
EventReturnLegacySubToken defines event emitted when the NFT sub-token is returned to the actual owner.
func (*EventReturnLegacySubToken) Descriptor ¶
func (*EventReturnLegacySubToken) Descriptor() ([]byte, []int)
func (*EventReturnLegacySubToken) GetDenom ¶
func (m *EventReturnLegacySubToken) GetDenom() string
func (*EventReturnLegacySubToken) GetID ¶
func (m *EventReturnLegacySubToken) GetID() string
func (*EventReturnLegacySubToken) GetLegacyOwner ¶
func (m *EventReturnLegacySubToken) GetLegacyOwner() string
func (*EventReturnLegacySubToken) GetOwner ¶
func (m *EventReturnLegacySubToken) GetOwner() string
func (*EventReturnLegacySubToken) GetSubTokenIDs ¶
func (m *EventReturnLegacySubToken) GetSubTokenIDs() []uint32
func (*EventReturnLegacySubToken) Marshal ¶
func (m *EventReturnLegacySubToken) Marshal() (dAtA []byte, err error)
func (*EventReturnLegacySubToken) MarshalTo ¶
func (m *EventReturnLegacySubToken) MarshalTo(dAtA []byte) (int, error)
func (*EventReturnLegacySubToken) MarshalToSizedBuffer ¶
func (m *EventReturnLegacySubToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventReturnLegacySubToken) ProtoMessage ¶
func (*EventReturnLegacySubToken) ProtoMessage()
func (*EventReturnLegacySubToken) Reset ¶
func (m *EventReturnLegacySubToken) Reset()
func (*EventReturnLegacySubToken) Size ¶
func (m *EventReturnLegacySubToken) Size() (n int)
func (*EventReturnLegacySubToken) String ¶
func (m *EventReturnLegacySubToken) String() string
func (*EventReturnLegacySubToken) Unmarshal ¶
func (m *EventReturnLegacySubToken) Unmarshal(dAtA []byte) error
func (*EventReturnLegacySubToken) XXX_DiscardUnknown ¶
func (m *EventReturnLegacySubToken) XXX_DiscardUnknown()
func (*EventReturnLegacySubToken) XXX_Marshal ¶
func (m *EventReturnLegacySubToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReturnLegacySubToken) XXX_Merge ¶
func (m *EventReturnLegacySubToken) XXX_Merge(src proto.Message)
func (*EventReturnLegacySubToken) XXX_Size ¶
func (m *EventReturnLegacySubToken) XXX_Size() int
func (*EventReturnLegacySubToken) XXX_Unmarshal ¶
func (m *EventReturnLegacySubToken) XXX_Unmarshal(b []byte) error
type EventReturnMultisigWallet ¶
type EventReturnMultisigWallet struct { LegacyOwner string `protobuf:"bytes,1,opt,name=legacy_owner,json=legacyOwner,proto3" json:"legacy_owner,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Wallet string `protobuf:"bytes,3,opt,name=wallet,proto3" json:"wallet,omitempty"` }
EventReturnMultisigWallet defines event emitted when the multisig wallet is returned to the actual owner.
func (*EventReturnMultisigWallet) Descriptor ¶
func (*EventReturnMultisigWallet) Descriptor() ([]byte, []int)
func (*EventReturnMultisigWallet) GetLegacyOwner ¶
func (m *EventReturnMultisigWallet) GetLegacyOwner() string
func (*EventReturnMultisigWallet) GetOwner ¶
func (m *EventReturnMultisigWallet) GetOwner() string
func (*EventReturnMultisigWallet) GetWallet ¶
func (m *EventReturnMultisigWallet) GetWallet() string
func (*EventReturnMultisigWallet) Marshal ¶
func (m *EventReturnMultisigWallet) Marshal() (dAtA []byte, err error)
func (*EventReturnMultisigWallet) MarshalTo ¶
func (m *EventReturnMultisigWallet) MarshalTo(dAtA []byte) (int, error)
func (*EventReturnMultisigWallet) MarshalToSizedBuffer ¶
func (m *EventReturnMultisigWallet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventReturnMultisigWallet) ProtoMessage ¶
func (*EventReturnMultisigWallet) ProtoMessage()
func (*EventReturnMultisigWallet) Reset ¶
func (m *EventReturnMultisigWallet) Reset()
func (*EventReturnMultisigWallet) Size ¶
func (m *EventReturnMultisigWallet) Size() (n int)
func (*EventReturnMultisigWallet) String ¶
func (m *EventReturnMultisigWallet) String() string
func (*EventReturnMultisigWallet) Unmarshal ¶
func (m *EventReturnMultisigWallet) Unmarshal(dAtA []byte) error
func (*EventReturnMultisigWallet) XXX_DiscardUnknown ¶
func (m *EventReturnMultisigWallet) XXX_DiscardUnknown()
func (*EventReturnMultisigWallet) XXX_Marshal ¶
func (m *EventReturnMultisigWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReturnMultisigWallet) XXX_Merge ¶
func (m *EventReturnMultisigWallet) XXX_Merge(src proto.Message)
func (*EventReturnMultisigWallet) XXX_Size ¶
func (m *EventReturnMultisigWallet) XXX_Size() int
func (*EventReturnMultisigWallet) XXX_Unmarshal ¶
func (m *EventReturnMultisigWallet) XXX_Unmarshal(b []byte) error
type EventReturnValidator ¶ added in v0.1.0
type EventReturnValidator struct { LegacyOwner string `protobuf:"bytes,1,opt,name=legacy_owner,json=legacyOwner,proto3" json:"legacy_owner,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Validator string `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` }
EventReturnValidator defines event emitted when the validator reward address become actual.
func (*EventReturnValidator) Descriptor ¶ added in v0.1.0
func (*EventReturnValidator) Descriptor() ([]byte, []int)
func (*EventReturnValidator) GetLegacyOwner ¶ added in v0.1.0
func (m *EventReturnValidator) GetLegacyOwner() string
func (*EventReturnValidator) GetOwner ¶ added in v0.1.0
func (m *EventReturnValidator) GetOwner() string
func (*EventReturnValidator) GetValidator ¶ added in v0.1.0
func (m *EventReturnValidator) GetValidator() string
func (*EventReturnValidator) Marshal ¶ added in v0.1.0
func (m *EventReturnValidator) Marshal() (dAtA []byte, err error)
func (*EventReturnValidator) MarshalTo ¶ added in v0.1.0
func (m *EventReturnValidator) MarshalTo(dAtA []byte) (int, error)
func (*EventReturnValidator) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *EventReturnValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventReturnValidator) ProtoMessage ¶ added in v0.1.0
func (*EventReturnValidator) ProtoMessage()
func (*EventReturnValidator) Reset ¶ added in v0.1.0
func (m *EventReturnValidator) Reset()
func (*EventReturnValidator) Size ¶ added in v0.1.0
func (m *EventReturnValidator) Size() (n int)
func (*EventReturnValidator) String ¶ added in v0.1.0
func (m *EventReturnValidator) String() string
func (*EventReturnValidator) Unmarshal ¶ added in v0.1.0
func (m *EventReturnValidator) Unmarshal(dAtA []byte) error
func (*EventReturnValidator) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *EventReturnValidator) XXX_DiscardUnknown()
func (*EventReturnValidator) XXX_Marshal ¶ added in v0.1.0
func (m *EventReturnValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReturnValidator) XXX_Merge ¶ added in v0.1.0
func (m *EventReturnValidator) XXX_Merge(src proto.Message)
func (*EventReturnValidator) XXX_Size ¶ added in v0.1.0
func (m *EventReturnValidator) XXX_Size() int
func (*EventReturnValidator) XXX_Unmarshal ¶ added in v0.1.0
func (m *EventReturnValidator) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // records defines compelete list of legacy records to be returned to actual owner. Records []Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records"` // params defines all the module's parameters. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
GenesisState defines the module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRecords ¶
func (m *GenesisState) GetRecords() []Record
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
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 LegacyKeeper ¶
type MsgClient ¶
type MsgClient interface { // ReturnLegacy defines message for return coins, nft, multisig wallets by account public key. ReturnLegacy(ctx context.Context, in *MsgReturnLegacy, opts ...grpc.CallOption) (*MsgReturnLegacyResponse, 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 MsgReturnLegacy ¶
type MsgReturnLegacy struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` }
MsgReturnLegacy defines a SDK message for returning coins, nft, multisig wallets by account public key.
func NewMsgReturnLegacy ¶
func NewMsgReturnLegacy( sender sdk.AccAddress, publicKeyBytes []byte, ) *MsgReturnLegacy
func (*MsgReturnLegacy) Descriptor ¶
func (*MsgReturnLegacy) Descriptor() ([]byte, []int)
func (*MsgReturnLegacy) GetPublicKey ¶
func (m *MsgReturnLegacy) GetPublicKey() []byte
func (*MsgReturnLegacy) GetSender ¶
func (m *MsgReturnLegacy) GetSender() string
func (*MsgReturnLegacy) GetSignBytes ¶
func (msg *MsgReturnLegacy) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (MsgReturnLegacy) GetSigners ¶
func (msg MsgReturnLegacy) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgReturnLegacy) Marshal ¶
func (m *MsgReturnLegacy) Marshal() (dAtA []byte, err error)
func (*MsgReturnLegacy) MarshalToSizedBuffer ¶
func (m *MsgReturnLegacy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgReturnLegacy) ProtoMessage ¶
func (*MsgReturnLegacy) ProtoMessage()
func (*MsgReturnLegacy) Reset ¶
func (m *MsgReturnLegacy) Reset()
func (MsgReturnLegacy) Route ¶
func (msg MsgReturnLegacy) Route() string
Route should return the name of the module.
func (*MsgReturnLegacy) Size ¶
func (m *MsgReturnLegacy) Size() (n int)
func (*MsgReturnLegacy) String ¶
func (m *MsgReturnLegacy) String() string
func (MsgReturnLegacy) Type ¶
func (msg MsgReturnLegacy) Type() string
Type should return the action.
func (*MsgReturnLegacy) Unmarshal ¶
func (m *MsgReturnLegacy) Unmarshal(dAtA []byte) error
func (MsgReturnLegacy) ValidateBasic ¶
func (msg MsgReturnLegacy) ValidateBasic() error
func (*MsgReturnLegacy) XXX_DiscardUnknown ¶
func (m *MsgReturnLegacy) XXX_DiscardUnknown()
func (*MsgReturnLegacy) XXX_Marshal ¶
func (m *MsgReturnLegacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgReturnLegacy) XXX_Merge ¶
func (m *MsgReturnLegacy) XXX_Merge(src proto.Message)
func (*MsgReturnLegacy) XXX_Size ¶
func (m *MsgReturnLegacy) XXX_Size() int
func (*MsgReturnLegacy) XXX_Unmarshal ¶
func (m *MsgReturnLegacy) XXX_Unmarshal(b []byte) error
type MsgReturnLegacyResponse ¶
type MsgReturnLegacyResponse struct { }
MsgReturnLegacyResponse defines the Msg/ReturnLegacy response type.
func (*MsgReturnLegacyResponse) Descriptor ¶
func (*MsgReturnLegacyResponse) Descriptor() ([]byte, []int)
func (*MsgReturnLegacyResponse) Marshal ¶
func (m *MsgReturnLegacyResponse) Marshal() (dAtA []byte, err error)
func (*MsgReturnLegacyResponse) MarshalTo ¶
func (m *MsgReturnLegacyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgReturnLegacyResponse) MarshalToSizedBuffer ¶
func (m *MsgReturnLegacyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgReturnLegacyResponse) ProtoMessage ¶
func (*MsgReturnLegacyResponse) ProtoMessage()
func (*MsgReturnLegacyResponse) Reset ¶
func (m *MsgReturnLegacyResponse) Reset()
func (*MsgReturnLegacyResponse) Size ¶
func (m *MsgReturnLegacyResponse) Size() (n int)
func (*MsgReturnLegacyResponse) String ¶
func (m *MsgReturnLegacyResponse) String() string
func (*MsgReturnLegacyResponse) Unmarshal ¶
func (m *MsgReturnLegacyResponse) Unmarshal(dAtA []byte) error
func (*MsgReturnLegacyResponse) XXX_DiscardUnknown ¶
func (m *MsgReturnLegacyResponse) XXX_DiscardUnknown()
func (*MsgReturnLegacyResponse) XXX_Marshal ¶
func (m *MsgReturnLegacyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgReturnLegacyResponse) XXX_Merge ¶
func (m *MsgReturnLegacyResponse) XXX_Merge(src proto.Message)
func (*MsgReturnLegacyResponse) XXX_Size ¶
func (m *MsgReturnLegacyResponse) XXX_Size() int
func (*MsgReturnLegacyResponse) XXX_Unmarshal ¶
func (m *MsgReturnLegacyResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // ReturnLegacy defines message for return coins, nft, multisig wallets by account public key. ReturnLegacy(context.Context, *MsgReturnLegacy) (*MsgReturnLegacyResponse, error) }
MsgServer is the server API for Msg service.
type MultisigKeeper ¶
type MultisigKeeper interface { GetWallet(ctx sdk.Context, address string) (wallet multisigtypes.Wallet, err error) SetWallet(ctx sdk.Context, wallet multisigtypes.Wallet) }
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryCheckRequest ¶
type QueryCheckRequest struct { // pubkey defines account public key as the proof of legacy address authority. Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` }
QueryCheckRequest is request type for the Query/Check RPC method.
func (*QueryCheckRequest) Descriptor ¶
func (*QueryCheckRequest) Descriptor() ([]byte, []int)
func (*QueryCheckRequest) GetPubkey ¶
func (m *QueryCheckRequest) GetPubkey() []byte
func (*QueryCheckRequest) Marshal ¶
func (m *QueryCheckRequest) Marshal() (dAtA []byte, err error)
func (*QueryCheckRequest) MarshalTo ¶
func (m *QueryCheckRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCheckRequest) MarshalToSizedBuffer ¶
func (m *QueryCheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCheckRequest) ProtoMessage ¶
func (*QueryCheckRequest) ProtoMessage()
func (*QueryCheckRequest) Reset ¶
func (m *QueryCheckRequest) Reset()
func (*QueryCheckRequest) Size ¶
func (m *QueryCheckRequest) Size() (n int)
func (*QueryCheckRequest) String ¶
func (m *QueryCheckRequest) String() string
func (*QueryCheckRequest) Unmarshal ¶
func (m *QueryCheckRequest) Unmarshal(dAtA []byte) error
func (*QueryCheckRequest) XXX_DiscardUnknown ¶
func (m *QueryCheckRequest) XXX_DiscardUnknown()
func (*QueryCheckRequest) XXX_Marshal ¶
func (m *QueryCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCheckRequest) XXX_Merge ¶
func (m *QueryCheckRequest) XXX_Merge(src proto.Message)
func (*QueryCheckRequest) XXX_Size ¶
func (m *QueryCheckRequest) XXX_Size() int
func (*QueryCheckRequest) XXX_Unmarshal ¶
func (m *QueryCheckRequest) XXX_Unmarshal(b []byte) error
type QueryCheckResponse ¶
type QueryCheckResponse struct { // record defines legacy record found by the request. Record Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record"` }
QueryCheckResponse is response type for the Query/Check RPC method.
func (*QueryCheckResponse) Descriptor ¶
func (*QueryCheckResponse) Descriptor() ([]byte, []int)
func (*QueryCheckResponse) GetRecord ¶
func (m *QueryCheckResponse) GetRecord() Record
func (*QueryCheckResponse) Marshal ¶
func (m *QueryCheckResponse) Marshal() (dAtA []byte, err error)
func (*QueryCheckResponse) MarshalTo ¶
func (m *QueryCheckResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCheckResponse) MarshalToSizedBuffer ¶
func (m *QueryCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCheckResponse) ProtoMessage ¶
func (*QueryCheckResponse) ProtoMessage()
func (*QueryCheckResponse) Reset ¶
func (m *QueryCheckResponse) Reset()
func (*QueryCheckResponse) Size ¶
func (m *QueryCheckResponse) Size() (n int)
func (*QueryCheckResponse) String ¶
func (m *QueryCheckResponse) String() string
func (*QueryCheckResponse) Unmarshal ¶
func (m *QueryCheckResponse) Unmarshal(dAtA []byte) error
func (*QueryCheckResponse) XXX_DiscardUnknown ¶
func (m *QueryCheckResponse) XXX_DiscardUnknown()
func (*QueryCheckResponse) XXX_Marshal ¶
func (m *QueryCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCheckResponse) XXX_Merge ¶
func (m *QueryCheckResponse) XXX_Merge(src proto.Message)
func (*QueryCheckResponse) XXX_Size ¶
func (m *QueryCheckResponse) XXX_Size() int
func (*QueryCheckResponse) XXX_Unmarshal ¶
func (m *QueryCheckResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Records queries all legacy records that should be returned to the actual owners. Records(ctx context.Context, in *QueryRecordsRequest, opts ...grpc.CallOption) (*QueryRecordsResponse, error) // Record queries complete set of different values that should be returned to the actual owner. Record(ctx context.Context, in *QueryRecordRequest, opts ...grpc.CallOption) (*QueryRecordResponse, error) // Check queries legacy record by specifiec public key. Check(ctx context.Context, in *QueryCheckRequest, opts ...grpc.CallOption) (*QueryCheckResponse, 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 QueryRecordRequest ¶
type QueryRecordRequest struct { // legacy_address defines legacy account address to found out the legacy record. LegacyAddress string `protobuf:"bytes,1,opt,name=legacy_address,json=legacyAddress,proto3" json:"legacy_address,omitempty"` }
QueryRecordRequest is request type for the Query/Record RPC method.
func (*QueryRecordRequest) Descriptor ¶
func (*QueryRecordRequest) Descriptor() ([]byte, []int)
func (*QueryRecordRequest) GetLegacyAddress ¶
func (m *QueryRecordRequest) GetLegacyAddress() string
func (*QueryRecordRequest) Marshal ¶
func (m *QueryRecordRequest) Marshal() (dAtA []byte, err error)
func (*QueryRecordRequest) MarshalTo ¶
func (m *QueryRecordRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRecordRequest) MarshalToSizedBuffer ¶
func (m *QueryRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRecordRequest) ProtoMessage ¶
func (*QueryRecordRequest) ProtoMessage()
func (*QueryRecordRequest) Reset ¶
func (m *QueryRecordRequest) Reset()
func (*QueryRecordRequest) Size ¶
func (m *QueryRecordRequest) Size() (n int)
func (*QueryRecordRequest) String ¶
func (m *QueryRecordRequest) String() string
func (*QueryRecordRequest) Unmarshal ¶
func (m *QueryRecordRequest) Unmarshal(dAtA []byte) error
func (*QueryRecordRequest) XXX_DiscardUnknown ¶
func (m *QueryRecordRequest) XXX_DiscardUnknown()
func (*QueryRecordRequest) XXX_Marshal ¶
func (m *QueryRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRecordRequest) XXX_Merge ¶
func (m *QueryRecordRequest) XXX_Merge(src proto.Message)
func (*QueryRecordRequest) XXX_Size ¶
func (m *QueryRecordRequest) XXX_Size() int
func (*QueryRecordRequest) XXX_Unmarshal ¶
func (m *QueryRecordRequest) XXX_Unmarshal(b []byte) error
type QueryRecordResponse ¶
type QueryRecordResponse struct { // record defines legacy record found by the request. Record Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record"` }
QueryRecordResponse is response type for the Query/Record RPC method.
func (*QueryRecordResponse) Descriptor ¶
func (*QueryRecordResponse) Descriptor() ([]byte, []int)
func (*QueryRecordResponse) GetRecord ¶
func (m *QueryRecordResponse) GetRecord() Record
func (*QueryRecordResponse) Marshal ¶
func (m *QueryRecordResponse) Marshal() (dAtA []byte, err error)
func (*QueryRecordResponse) MarshalTo ¶
func (m *QueryRecordResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRecordResponse) MarshalToSizedBuffer ¶
func (m *QueryRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRecordResponse) ProtoMessage ¶
func (*QueryRecordResponse) ProtoMessage()
func (*QueryRecordResponse) Reset ¶
func (m *QueryRecordResponse) Reset()
func (*QueryRecordResponse) Size ¶
func (m *QueryRecordResponse) Size() (n int)
func (*QueryRecordResponse) String ¶
func (m *QueryRecordResponse) String() string
func (*QueryRecordResponse) Unmarshal ¶
func (m *QueryRecordResponse) Unmarshal(dAtA []byte) error
func (*QueryRecordResponse) XXX_DiscardUnknown ¶
func (m *QueryRecordResponse) XXX_DiscardUnknown()
func (*QueryRecordResponse) XXX_Marshal ¶
func (m *QueryRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRecordResponse) XXX_Merge ¶
func (m *QueryRecordResponse) XXX_Merge(src proto.Message)
func (*QueryRecordResponse) XXX_Size ¶
func (m *QueryRecordResponse) XXX_Size() int
func (*QueryRecordResponse) XXX_Unmarshal ¶
func (m *QueryRecordResponse) XXX_Unmarshal(b []byte) error
type QueryRecordsRequest ¶
type QueryRecordsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryRecordsRequest is request type for the Query/Records RPC method.
func (*QueryRecordsRequest) Descriptor ¶
func (*QueryRecordsRequest) Descriptor() ([]byte, []int)
func (*QueryRecordsRequest) GetPagination ¶
func (m *QueryRecordsRequest) GetPagination() *query.PageRequest
func (*QueryRecordsRequest) Marshal ¶
func (m *QueryRecordsRequest) Marshal() (dAtA []byte, err error)
func (*QueryRecordsRequest) MarshalTo ¶
func (m *QueryRecordsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRecordsRequest) MarshalToSizedBuffer ¶
func (m *QueryRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRecordsRequest) ProtoMessage ¶
func (*QueryRecordsRequest) ProtoMessage()
func (*QueryRecordsRequest) Reset ¶
func (m *QueryRecordsRequest) Reset()
func (*QueryRecordsRequest) Size ¶
func (m *QueryRecordsRequest) Size() (n int)
func (*QueryRecordsRequest) String ¶
func (m *QueryRecordsRequest) String() string
func (*QueryRecordsRequest) Unmarshal ¶
func (m *QueryRecordsRequest) Unmarshal(dAtA []byte) error
func (*QueryRecordsRequest) XXX_DiscardUnknown ¶
func (m *QueryRecordsRequest) XXX_DiscardUnknown()
func (*QueryRecordsRequest) XXX_Marshal ¶
func (m *QueryRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRecordsRequest) XXX_Merge ¶
func (m *QueryRecordsRequest) XXX_Merge(src proto.Message)
func (*QueryRecordsRequest) XXX_Size ¶
func (m *QueryRecordsRequest) XXX_Size() int
func (*QueryRecordsRequest) XXX_Unmarshal ¶
func (m *QueryRecordsRequest) XXX_Unmarshal(b []byte) error
type QueryRecordsResponse ¶
type QueryRecordsResponse struct { Records []Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRecordsResponse is response type for the Query/Records RPC method.
func (*QueryRecordsResponse) Descriptor ¶
func (*QueryRecordsResponse) Descriptor() ([]byte, []int)
func (*QueryRecordsResponse) GetPagination ¶
func (m *QueryRecordsResponse) GetPagination() *query.PageResponse
func (*QueryRecordsResponse) GetRecords ¶
func (m *QueryRecordsResponse) GetRecords() []Record
func (*QueryRecordsResponse) Marshal ¶
func (m *QueryRecordsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRecordsResponse) MarshalTo ¶
func (m *QueryRecordsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRecordsResponse) MarshalToSizedBuffer ¶
func (m *QueryRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRecordsResponse) ProtoMessage ¶
func (*QueryRecordsResponse) ProtoMessage()
func (*QueryRecordsResponse) Reset ¶
func (m *QueryRecordsResponse) Reset()
func (*QueryRecordsResponse) Size ¶
func (m *QueryRecordsResponse) Size() (n int)
func (*QueryRecordsResponse) String ¶
func (m *QueryRecordsResponse) String() string
func (*QueryRecordsResponse) Unmarshal ¶
func (m *QueryRecordsResponse) Unmarshal(dAtA []byte) error
func (*QueryRecordsResponse) XXX_DiscardUnknown ¶
func (m *QueryRecordsResponse) XXX_DiscardUnknown()
func (*QueryRecordsResponse) XXX_Marshal ¶
func (m *QueryRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRecordsResponse) XXX_Merge ¶
func (m *QueryRecordsResponse) XXX_Merge(src proto.Message)
func (*QueryRecordsResponse) XXX_Size ¶
func (m *QueryRecordsResponse) XXX_Size() int
func (*QueryRecordsResponse) XXX_Unmarshal ¶
func (m *QueryRecordsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Records queries all legacy records that should be returned to the actual owners. Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error) // Record queries complete set of different values that should be returned to the actual owner. Record(context.Context, *QueryRecordRequest) (*QueryRecordResponse, error) // Check queries legacy record by specifiec public key. Check(context.Context, *QueryCheckRequest) (*QueryCheckResponse, error) }
QueryServer is the server API for Query service.
type Record ¶
type Record struct { // legacy_address defines legacy address which is not valid anymore so cannot be used. LegacyAddress string `protobuf:"bytes,1,opt,name=legacy_address,json=legacyAddress,proto3" json:"legacy_address,omitempty"` // coins defines complete list of tokens to be returned. Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` // wallets defines complete list of multisig wallets to be returned. Wallets []string `protobuf:"bytes,3,rep,name=wallets,proto3" json:"wallets,omitempty"` // nfts defines list of token ids to be returned NFTs []string `protobuf:"bytes,4,rep,name=nfts,proto3" json:"nfts,omitempty"` // validators defines complete list of validators with reward address = legacy address. Validators []string `protobuf:"bytes,5,rep,name=validators,proto3" json:"validators,omitempty"` }
Record defines the legacy record containing set of values that should be returned to the actual owner.
func (*Record) Descriptor ¶
func (*Record) MarshalToSizedBuffer ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) XXX_DiscardUnknown ¶
func (m *Record) XXX_DiscardUnknown()
func (*Record) XXX_Marshal ¶
func (*Record) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ReturnLegacy ¶
func (*UnimplementedMsgServer) ReturnLegacy(ctx context.Context, req *MsgReturnLegacy) (*MsgReturnLegacyResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Check ¶
func (*UnimplementedQueryServer) Check(ctx context.Context, req *QueryCheckRequest) (*QueryCheckResponse, error)
func (*UnimplementedQueryServer) Record ¶
func (*UnimplementedQueryServer) Record(ctx context.Context, req *QueryRecordRequest) (*QueryRecordResponse, error)
func (*UnimplementedQueryServer) Records ¶
func (*UnimplementedQueryServer) Records(ctx context.Context, req *QueryRecordsRequest) (*QueryRecordsResponse, error)
type ValidatorKeeper ¶ added in v0.1.0
type ValidatorKeeper interface { GetValidator(ctx sdk.Context, validator sdk.ValAddress) (validatortypes.Validator, bool) SetValidator(ctx sdk.Context, val validatortypes.Validator) }