Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func HashKey(root string) []byte
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- 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 AccountKeeper
- type BankKeeper
- type ChangeParamsProposal
- func (*ChangeParamsProposal) Descriptor() ([]byte, []int)
- func (m *ChangeParamsProposal) GetDescription() string
- func (m *ChangeParamsProposal) GetParams() Params
- func (m *ChangeParamsProposal) GetTitle() string
- func (m *ChangeParamsProposal) Marshal() (dAtA []byte, err error)
- func (m *ChangeParamsProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ChangeParamsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *ChangeParamsProposal) ProposalRoute() string
- func (m *ChangeParamsProposal) ProposalType() string
- func (*ChangeParamsProposal) ProtoMessage()
- func (m *ChangeParamsProposal) Reset()
- func (m *ChangeParamsProposal) Size() (n int)
- func (m *ChangeParamsProposal) String() string
- func (m *ChangeParamsProposal) Unmarshal(dAtA []byte) error
- func (m *ChangeParamsProposal) ValidateBasic() error
- func (m *ChangeParamsProposal) XXX_DiscardUnknown()
- func (m *ChangeParamsProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangeParamsProposal) XXX_Merge(src proto.Message)
- func (m *ChangeParamsProposal) XXX_Size() int
- func (m *ChangeParamsProposal) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetHashList() []Hash
- func (m *GenesisState) GetParams() Params
- 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 Hash
- func (*Hash) Descriptor() ([]byte, []int)
- func (m *Hash) GetIndex() string
- func (m *Hash) Marshal() (dAtA []byte, err error)
- func (m *Hash) MarshalTo(dAtA []byte) (int, error)
- func (m *Hash) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Hash) ProtoMessage()
- func (m *Hash) Reset()
- func (m *Hash) Size() (n int)
- func (m *Hash) String() string
- func (m *Hash) Unmarshal(dAtA []byte) error
- func (m *Hash) XXX_DiscardUnknown()
- func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hash) XXX_Merge(src proto.Message)
- func (m *Hash) XXX_Size() int
- func (m *Hash) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDepositNative
- func (*MsgDepositNative) Descriptor() ([]byte, []int)
- func (m *MsgDepositNative) GetAmount() *types.Coin
- func (m *MsgDepositNative) GetBundleData() string
- func (m *MsgDepositNative) GetBundleSalt() string
- func (m *MsgDepositNative) GetCreator() string
- func (m *MsgDepositNative) GetReceiver() string
- func (m *MsgDepositNative) GetSeed() string
- func (msg *MsgDepositNative) GetSignBytes() []byte
- func (msg *MsgDepositNative) GetSigners() []sdk.AccAddress
- func (m *MsgDepositNative) GetTo() types1.OnChainItemIndex
- func (m *MsgDepositNative) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositNative) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositNative) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositNative) ProtoMessage()
- func (m *MsgDepositNative) Reset()
- func (msg *MsgDepositNative) Route() string
- func (m *MsgDepositNative) Size() (n int)
- func (m *MsgDepositNative) String() string
- func (msg *MsgDepositNative) Type() string
- func (m *MsgDepositNative) Unmarshal(dAtA []byte) error
- func (msg *MsgDepositNative) ValidateBasic() error
- func (m *MsgDepositNative) XXX_DiscardUnknown()
- func (m *MsgDepositNative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositNative) XXX_Merge(src proto.Message)
- func (m *MsgDepositNative) XXX_Size() int
- func (m *MsgDepositNative) XXX_Unmarshal(b []byte) error
- type MsgDepositNativeResponse
- func (*MsgDepositNativeResponse) Descriptor() ([]byte, []int)
- func (m *MsgDepositNativeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositNativeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositNativeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositNativeResponse) ProtoMessage()
- func (m *MsgDepositNativeResponse) Reset()
- func (m *MsgDepositNativeResponse) Size() (n int)
- func (m *MsgDepositNativeResponse) String() string
- func (m *MsgDepositNativeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDepositNativeResponse) XXX_DiscardUnknown()
- func (m *MsgDepositNativeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositNativeResponse) XXX_Merge(src proto.Message)
- func (m *MsgDepositNativeResponse) XXX_Size() int
- func (m *MsgDepositNativeResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgWithdrawFee
- func (*MsgWithdrawFee) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawFee) GetCreator() string
- func (m *MsgWithdrawFee) GetOrigin() string
- func (msg *MsgWithdrawFee) GetSignBytes() []byte
- func (msg *MsgWithdrawFee) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawFee) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawFee) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawFee) ProtoMessage()
- func (m *MsgWithdrawFee) Reset()
- func (msg *MsgWithdrawFee) Route() string
- func (m *MsgWithdrawFee) Size() (n int)
- func (m *MsgWithdrawFee) String() string
- func (msg *MsgWithdrawFee) Type() string
- func (m *MsgWithdrawFee) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawFee) ValidateBasic() error
- func (m *MsgWithdrawFee) XXX_DiscardUnknown()
- func (m *MsgWithdrawFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawFee) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawFee) XXX_Size() int
- func (m *MsgWithdrawFee) XXX_Unmarshal(b []byte) error
- type MsgWithdrawFeeResponse
- func (*MsgWithdrawFeeResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawFeeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawFeeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawFeeResponse) ProtoMessage()
- func (m *MsgWithdrawFeeResponse) Reset()
- func (m *MsgWithdrawFeeResponse) Size() (n int)
- func (m *MsgWithdrawFeeResponse) String() string
- func (m *MsgWithdrawFeeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawFeeResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawFeeResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawFeeResponse) XXX_Size() int
- func (m *MsgWithdrawFeeResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawNative
- func (*MsgWithdrawNative) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawNative) GetCreator() string
- func (m *MsgWithdrawNative) GetOrigin() string
- func (msg *MsgWithdrawNative) GetSignBytes() []byte
- func (msg *MsgWithdrawNative) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawNative) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawNative) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawNative) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawNative) ProtoMessage()
- func (m *MsgWithdrawNative) Reset()
- func (msg *MsgWithdrawNative) Route() string
- func (m *MsgWithdrawNative) Size() (n int)
- func (m *MsgWithdrawNative) String() string
- func (msg *MsgWithdrawNative) Type() string
- func (m *MsgWithdrawNative) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawNative) ValidateBasic() error
- func (m *MsgWithdrawNative) XXX_DiscardUnknown()
- func (m *MsgWithdrawNative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawNative) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawNative) XXX_Size() int
- func (m *MsgWithdrawNative) XXX_Unmarshal(b []byte) error
- type MsgWithdrawNativeResponse
- func (*MsgWithdrawNativeResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawNativeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawNativeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawNativeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawNativeResponse) ProtoMessage()
- func (m *MsgWithdrawNativeResponse) Reset()
- func (m *MsgWithdrawNativeResponse) Size() (n int)
- func (m *MsgWithdrawNativeResponse) String() string
- func (m *MsgWithdrawNativeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawNativeResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawNativeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawNativeResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawNativeResponse) XXX_Size() int
- func (m *MsgWithdrawNativeResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetWithdrawDenom() string
- 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 (p Params) Validate() 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 QueryAllHashRequest
- func (*QueryAllHashRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllHashRequest) GetPagination() *query.PageRequest
- func (m *QueryAllHashRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllHashRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllHashRequest) ProtoMessage()
- func (m *QueryAllHashRequest) Reset()
- func (m *QueryAllHashRequest) Size() (n int)
- func (m *QueryAllHashRequest) String() string
- func (m *QueryAllHashRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllHashRequest) XXX_DiscardUnknown()
- func (m *QueryAllHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllHashRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllHashRequest) XXX_Size() int
- func (m *QueryAllHashRequest) XXX_Unmarshal(b []byte) error
- type QueryAllHashResponse
- func (*QueryAllHashResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllHashResponse) GetHash() []Hash
- func (m *QueryAllHashResponse) GetPagination() *query.PageResponse
- func (m *QueryAllHashResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllHashResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllHashResponse) ProtoMessage()
- func (m *QueryAllHashResponse) Reset()
- func (m *QueryAllHashResponse) Size() (n int)
- func (m *QueryAllHashResponse) String() string
- func (m *QueryAllHashResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllHashResponse) XXX_DiscardUnknown()
- func (m *QueryAllHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllHashResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllHashResponse) XXX_Size() int
- func (m *QueryAllHashResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetHashRequest
- func (*QueryGetHashRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetHashRequest) GetIndex() string
- func (m *QueryGetHashRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetHashRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetHashRequest) ProtoMessage()
- func (m *QueryGetHashRequest) Reset()
- func (m *QueryGetHashRequest) Size() (n int)
- func (m *QueryGetHashRequest) String() string
- func (m *QueryGetHashRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetHashRequest) XXX_DiscardUnknown()
- func (m *QueryGetHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetHashRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetHashRequest) XXX_Size() int
- func (m *QueryGetHashRequest) XXX_Unmarshal(b []byte) error
- type QueryGetHashResponse
- func (*QueryGetHashResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetHashResponse) GetHash() Hash
- func (m *QueryGetHashResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetHashResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetHashResponse) ProtoMessage()
- func (m *QueryGetHashResponse) Reset()
- func (m *QueryGetHashResponse) Size() (n int)
- func (m *QueryGetHashResponse) String() string
- func (m *QueryGetHashResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetHashResponse) XXX_DiscardUnknown()
- func (m *QueryGetHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetHashResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetHashResponse) XXX_Size() int
- func (m *QueryGetHashResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RarimocoreKeeper
- type TokenmanagerKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) DepositNative(ctx context.Context, req *MsgDepositNative) (*MsgDepositNativeResponse, error)
- func (*UnimplementedMsgServer) WithdrawFee(ctx context.Context, req *MsgWithdrawFee) (*MsgWithdrawFeeResponse, error)
- func (*UnimplementedMsgServer) WithdrawNative(ctx context.Context, req *MsgWithdrawNative) (*MsgWithdrawNativeResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Hash(ctx context.Context, req *QueryGetHashRequest) (*QueryGetHashResponse, error)
- func (*UnimplementedQueryServer) HashAll(ctx context.Context, req *QueryAllHashRequest) (*QueryAllHashResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "bridge" // 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 // MemStoreKey defines the in-memory store key MemStoreKey = "mem_bridge" // ParamsKey defines the store key for module params entry ParamsKey = "params" NetworkName = "Rarimo" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const (
// HashKeyPrefix is the prefix to retrieve all Hashes
HashKeyPrefix = "HashKey/value/"
)
const (
ProposalTypeChangeParams = "bridge/ChangeParams"
)
const (
TypeMsgDepositNative = "deposit_native"
)
const (
TypeMsgWithdrawFee = "withdraw_fee"
)
const (
TypeMsgWithdrawNative = "withdraw_native"
)
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
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 ( ErrInvalidLengthHash = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHash = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupHash = 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 ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = 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 ErrEmptyWithdrawDenom = fmt.Errorf("withdraw denom cannot be empty")
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { MintTokens(ctx sdk.Context, address sdk.AccAddress, amounts sdk.Coins) error BurnTokens(ctx sdk.Context, address sdk.AccAddress, amounts sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type ChangeParamsProposal ¶
type ChangeParamsProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` }
func (*ChangeParamsProposal) Descriptor ¶
func (*ChangeParamsProposal) Descriptor() ([]byte, []int)
func (*ChangeParamsProposal) GetDescription ¶
func (m *ChangeParamsProposal) GetDescription() string
func (*ChangeParamsProposal) GetParams ¶
func (m *ChangeParamsProposal) GetParams() Params
func (*ChangeParamsProposal) GetTitle ¶
func (m *ChangeParamsProposal) GetTitle() string
func (*ChangeParamsProposal) Marshal ¶
func (m *ChangeParamsProposal) Marshal() (dAtA []byte, err error)
func (*ChangeParamsProposal) MarshalTo ¶
func (m *ChangeParamsProposal) MarshalTo(dAtA []byte) (int, error)
func (*ChangeParamsProposal) MarshalToSizedBuffer ¶
func (m *ChangeParamsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChangeParamsProposal) ProposalRoute ¶
func (m *ChangeParamsProposal) ProposalRoute() string
func (*ChangeParamsProposal) ProposalType ¶
func (m *ChangeParamsProposal) ProposalType() string
func (*ChangeParamsProposal) ProtoMessage ¶
func (*ChangeParamsProposal) ProtoMessage()
func (*ChangeParamsProposal) Reset ¶
func (m *ChangeParamsProposal) Reset()
func (*ChangeParamsProposal) Size ¶
func (m *ChangeParamsProposal) Size() (n int)
func (*ChangeParamsProposal) String ¶
func (m *ChangeParamsProposal) String() string
func (*ChangeParamsProposal) Unmarshal ¶
func (m *ChangeParamsProposal) Unmarshal(dAtA []byte) error
func (*ChangeParamsProposal) ValidateBasic ¶
func (m *ChangeParamsProposal) ValidateBasic() error
func (*ChangeParamsProposal) XXX_DiscardUnknown ¶
func (m *ChangeParamsProposal) XXX_DiscardUnknown()
func (*ChangeParamsProposal) XXX_Marshal ¶
func (m *ChangeParamsProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChangeParamsProposal) XXX_Merge ¶
func (m *ChangeParamsProposal) XXX_Merge(src proto.Message)
func (*ChangeParamsProposal) XXX_Size ¶
func (m *ChangeParamsProposal) XXX_Size() int
func (*ChangeParamsProposal) XXX_Unmarshal ¶
func (m *ChangeParamsProposal) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` HashList []Hash `protobuf:"bytes,2,rep,name=hashList,proto3" json:"hashList"` }
GenesisState defines the bridge 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) GetHashList ¶
func (m *GenesisState) GetHashList() []Hash
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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 Hash ¶
type Hash struct { // hex-encoded Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` }
func (*Hash) Descriptor ¶
func (*Hash) ProtoMessage ¶
func (*Hash) ProtoMessage()
func (*Hash) XXX_DiscardUnknown ¶
func (m *Hash) XXX_DiscardUnknown()
func (*Hash) XXX_Unmarshal ¶
type MsgClient ¶
type MsgClient interface { DepositNative(ctx context.Context, in *MsgDepositNative, opts ...grpc.CallOption) (*MsgDepositNativeResponse, error) WithdrawNative(ctx context.Context, in *MsgWithdrawNative, opts ...grpc.CallOption) (*MsgWithdrawNativeResponse, error) WithdrawFee(ctx context.Context, in *MsgWithdrawFee, opts ...grpc.CallOption) (*MsgWithdrawFeeResponse, 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 MsgDepositNative ¶
type MsgDepositNative struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Random 32 bytes slice encoded to the hex string Seed string `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` // Information about deposit Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount *types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` BundleData string `protobuf:"bytes,5,opt,name=bundleData,proto3" json:"bundleData,omitempty"` BundleSalt string `protobuf:"bytes,6,opt,name=bundleSalt,proto3" json:"bundleSalt,omitempty"` // Information about target chain To types1.OnChainItemIndex `protobuf:"bytes,7,opt,name=to,proto3" json:"to"` }
func NewMsgDepositNative ¶
func NewMsgDepositNative( creator string, seed string, receiver string, amount *sdk.Coin, bundleData string, bundleSalt string, to types.OnChainItemIndex, ) *MsgDepositNative
func (*MsgDepositNative) Descriptor ¶
func (*MsgDepositNative) Descriptor() ([]byte, []int)
func (*MsgDepositNative) GetAmount ¶
func (m *MsgDepositNative) GetAmount() *types.Coin
func (*MsgDepositNative) GetBundleData ¶
func (m *MsgDepositNative) GetBundleData() string
func (*MsgDepositNative) GetBundleSalt ¶
func (m *MsgDepositNative) GetBundleSalt() string
func (*MsgDepositNative) GetCreator ¶
func (m *MsgDepositNative) GetCreator() string
func (*MsgDepositNative) GetReceiver ¶
func (m *MsgDepositNative) GetReceiver() string
func (*MsgDepositNative) GetSeed ¶
func (m *MsgDepositNative) GetSeed() string
func (*MsgDepositNative) GetSignBytes ¶
func (msg *MsgDepositNative) GetSignBytes() []byte
func (*MsgDepositNative) GetSigners ¶
func (msg *MsgDepositNative) GetSigners() []sdk.AccAddress
func (*MsgDepositNative) GetTo ¶
func (m *MsgDepositNative) GetTo() types1.OnChainItemIndex
func (*MsgDepositNative) Marshal ¶
func (m *MsgDepositNative) Marshal() (dAtA []byte, err error)
func (*MsgDepositNative) MarshalToSizedBuffer ¶
func (m *MsgDepositNative) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositNative) ProtoMessage ¶
func (*MsgDepositNative) ProtoMessage()
func (*MsgDepositNative) Reset ¶
func (m *MsgDepositNative) Reset()
func (*MsgDepositNative) Route ¶
func (msg *MsgDepositNative) Route() string
func (*MsgDepositNative) Size ¶
func (m *MsgDepositNative) Size() (n int)
func (*MsgDepositNative) String ¶
func (m *MsgDepositNative) String() string
func (*MsgDepositNative) Type ¶
func (msg *MsgDepositNative) Type() string
func (*MsgDepositNative) Unmarshal ¶
func (m *MsgDepositNative) Unmarshal(dAtA []byte) error
func (*MsgDepositNative) ValidateBasic ¶
func (msg *MsgDepositNative) ValidateBasic() error
func (*MsgDepositNative) XXX_DiscardUnknown ¶
func (m *MsgDepositNative) XXX_DiscardUnknown()
func (*MsgDepositNative) XXX_Marshal ¶
func (m *MsgDepositNative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositNative) XXX_Merge ¶
func (m *MsgDepositNative) XXX_Merge(src proto.Message)
func (*MsgDepositNative) XXX_Size ¶
func (m *MsgDepositNative) XXX_Size() int
func (*MsgDepositNative) XXX_Unmarshal ¶
func (m *MsgDepositNative) XXX_Unmarshal(b []byte) error
type MsgDepositNativeResponse ¶
type MsgDepositNativeResponse struct { }
func (*MsgDepositNativeResponse) Descriptor ¶
func (*MsgDepositNativeResponse) Descriptor() ([]byte, []int)
func (*MsgDepositNativeResponse) Marshal ¶
func (m *MsgDepositNativeResponse) Marshal() (dAtA []byte, err error)
func (*MsgDepositNativeResponse) MarshalTo ¶
func (m *MsgDepositNativeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositNativeResponse) MarshalToSizedBuffer ¶
func (m *MsgDepositNativeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositNativeResponse) ProtoMessage ¶
func (*MsgDepositNativeResponse) ProtoMessage()
func (*MsgDepositNativeResponse) Reset ¶
func (m *MsgDepositNativeResponse) Reset()
func (*MsgDepositNativeResponse) Size ¶
func (m *MsgDepositNativeResponse) Size() (n int)
func (*MsgDepositNativeResponse) String ¶
func (m *MsgDepositNativeResponse) String() string
func (*MsgDepositNativeResponse) Unmarshal ¶
func (m *MsgDepositNativeResponse) Unmarshal(dAtA []byte) error
func (*MsgDepositNativeResponse) XXX_DiscardUnknown ¶
func (m *MsgDepositNativeResponse) XXX_DiscardUnknown()
func (*MsgDepositNativeResponse) XXX_Marshal ¶
func (m *MsgDepositNativeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositNativeResponse) XXX_Merge ¶
func (m *MsgDepositNativeResponse) XXX_Merge(src proto.Message)
func (*MsgDepositNativeResponse) XXX_Size ¶
func (m *MsgDepositNativeResponse) XXX_Size() int
func (*MsgDepositNativeResponse) XXX_Unmarshal ¶
func (m *MsgDepositNativeResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { DepositNative(context.Context, *MsgDepositNative) (*MsgDepositNativeResponse, error) WithdrawNative(context.Context, *MsgWithdrawNative) (*MsgWithdrawNativeResponse, error) WithdrawFee(context.Context, *MsgWithdrawFee) (*MsgWithdrawFeeResponse, error) }
MsgServer is the server API for Msg service.
type MsgWithdrawFee ¶
type MsgWithdrawFee struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Evidence information Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` }
func NewMsgWithdrawFee ¶
func NewMsgWithdrawFee( creator string, origin string, ) *MsgWithdrawFee
func (*MsgWithdrawFee) Descriptor ¶
func (*MsgWithdrawFee) Descriptor() ([]byte, []int)
func (*MsgWithdrawFee) GetCreator ¶
func (m *MsgWithdrawFee) GetCreator() string
func (*MsgWithdrawFee) GetOrigin ¶
func (m *MsgWithdrawFee) GetOrigin() string
func (*MsgWithdrawFee) GetSignBytes ¶
func (msg *MsgWithdrawFee) GetSignBytes() []byte
func (*MsgWithdrawFee) GetSigners ¶
func (msg *MsgWithdrawFee) GetSigners() []sdk.AccAddress
func (*MsgWithdrawFee) Marshal ¶
func (m *MsgWithdrawFee) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawFee) MarshalToSizedBuffer ¶
func (m *MsgWithdrawFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawFee) ProtoMessage ¶
func (*MsgWithdrawFee) ProtoMessage()
func (*MsgWithdrawFee) Reset ¶
func (m *MsgWithdrawFee) Reset()
func (*MsgWithdrawFee) Route ¶
func (msg *MsgWithdrawFee) Route() string
func (*MsgWithdrawFee) Size ¶
func (m *MsgWithdrawFee) Size() (n int)
func (*MsgWithdrawFee) String ¶
func (m *MsgWithdrawFee) String() string
func (*MsgWithdrawFee) Type ¶
func (msg *MsgWithdrawFee) Type() string
func (*MsgWithdrawFee) Unmarshal ¶
func (m *MsgWithdrawFee) Unmarshal(dAtA []byte) error
func (*MsgWithdrawFee) ValidateBasic ¶
func (msg *MsgWithdrawFee) ValidateBasic() error
func (*MsgWithdrawFee) XXX_DiscardUnknown ¶
func (m *MsgWithdrawFee) XXX_DiscardUnknown()
func (*MsgWithdrawFee) XXX_Marshal ¶
func (m *MsgWithdrawFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawFee) XXX_Merge ¶
func (m *MsgWithdrawFee) XXX_Merge(src proto.Message)
func (*MsgWithdrawFee) XXX_Size ¶
func (m *MsgWithdrawFee) XXX_Size() int
func (*MsgWithdrawFee) XXX_Unmarshal ¶
func (m *MsgWithdrawFee) XXX_Unmarshal(b []byte) error
type MsgWithdrawFeeResponse ¶
type MsgWithdrawFeeResponse struct { }
func (*MsgWithdrawFeeResponse) Descriptor ¶
func (*MsgWithdrawFeeResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawFeeResponse) Marshal ¶
func (m *MsgWithdrawFeeResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawFeeResponse) MarshalTo ¶
func (m *MsgWithdrawFeeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawFeeResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawFeeResponse) ProtoMessage ¶
func (*MsgWithdrawFeeResponse) ProtoMessage()
func (*MsgWithdrawFeeResponse) Reset ¶
func (m *MsgWithdrawFeeResponse) Reset()
func (*MsgWithdrawFeeResponse) Size ¶
func (m *MsgWithdrawFeeResponse) Size() (n int)
func (*MsgWithdrawFeeResponse) String ¶
func (m *MsgWithdrawFeeResponse) String() string
func (*MsgWithdrawFeeResponse) Unmarshal ¶
func (m *MsgWithdrawFeeResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawFeeResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawFeeResponse) XXX_DiscardUnknown()
func (*MsgWithdrawFeeResponse) XXX_Marshal ¶
func (m *MsgWithdrawFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawFeeResponse) XXX_Merge ¶
func (m *MsgWithdrawFeeResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawFeeResponse) XXX_Size ¶
func (m *MsgWithdrawFeeResponse) XXX_Size() int
func (*MsgWithdrawFeeResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawFeeResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawNative ¶
type MsgWithdrawNative struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Evidence information Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` }
func NewMsgWithdrawNative ¶
func NewMsgWithdrawNative( creator string, origin string, ) *MsgWithdrawNative
func (*MsgWithdrawNative) Descriptor ¶
func (*MsgWithdrawNative) Descriptor() ([]byte, []int)
func (*MsgWithdrawNative) GetCreator ¶
func (m *MsgWithdrawNative) GetCreator() string
func (*MsgWithdrawNative) GetOrigin ¶
func (m *MsgWithdrawNative) GetOrigin() string
func (*MsgWithdrawNative) GetSignBytes ¶
func (msg *MsgWithdrawNative) GetSignBytes() []byte
func (*MsgWithdrawNative) GetSigners ¶
func (msg *MsgWithdrawNative) GetSigners() []sdk.AccAddress
func (*MsgWithdrawNative) Marshal ¶
func (m *MsgWithdrawNative) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawNative) MarshalTo ¶
func (m *MsgWithdrawNative) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawNative) MarshalToSizedBuffer ¶
func (m *MsgWithdrawNative) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawNative) ProtoMessage ¶
func (*MsgWithdrawNative) ProtoMessage()
func (*MsgWithdrawNative) Reset ¶
func (m *MsgWithdrawNative) Reset()
func (*MsgWithdrawNative) Route ¶
func (msg *MsgWithdrawNative) Route() string
func (*MsgWithdrawNative) Size ¶
func (m *MsgWithdrawNative) Size() (n int)
func (*MsgWithdrawNative) String ¶
func (m *MsgWithdrawNative) String() string
func (*MsgWithdrawNative) Type ¶
func (msg *MsgWithdrawNative) Type() string
func (*MsgWithdrawNative) Unmarshal ¶
func (m *MsgWithdrawNative) Unmarshal(dAtA []byte) error
func (*MsgWithdrawNative) ValidateBasic ¶
func (msg *MsgWithdrawNative) ValidateBasic() error
func (*MsgWithdrawNative) XXX_DiscardUnknown ¶
func (m *MsgWithdrawNative) XXX_DiscardUnknown()
func (*MsgWithdrawNative) XXX_Marshal ¶
func (m *MsgWithdrawNative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawNative) XXX_Merge ¶
func (m *MsgWithdrawNative) XXX_Merge(src proto.Message)
func (*MsgWithdrawNative) XXX_Size ¶
func (m *MsgWithdrawNative) XXX_Size() int
func (*MsgWithdrawNative) XXX_Unmarshal ¶
func (m *MsgWithdrawNative) XXX_Unmarshal(b []byte) error
type MsgWithdrawNativeResponse ¶
type MsgWithdrawNativeResponse struct { }
func (*MsgWithdrawNativeResponse) Descriptor ¶
func (*MsgWithdrawNativeResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawNativeResponse) Marshal ¶
func (m *MsgWithdrawNativeResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawNativeResponse) MarshalTo ¶
func (m *MsgWithdrawNativeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawNativeResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawNativeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawNativeResponse) ProtoMessage ¶
func (*MsgWithdrawNativeResponse) ProtoMessage()
func (*MsgWithdrawNativeResponse) Reset ¶
func (m *MsgWithdrawNativeResponse) Reset()
func (*MsgWithdrawNativeResponse) Size ¶
func (m *MsgWithdrawNativeResponse) Size() (n int)
func (*MsgWithdrawNativeResponse) String ¶
func (m *MsgWithdrawNativeResponse) String() string
func (*MsgWithdrawNativeResponse) Unmarshal ¶
func (m *MsgWithdrawNativeResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawNativeResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawNativeResponse) XXX_DiscardUnknown()
func (*MsgWithdrawNativeResponse) XXX_Marshal ¶
func (m *MsgWithdrawNativeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawNativeResponse) XXX_Merge ¶
func (m *MsgWithdrawNativeResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawNativeResponse) XXX_Size ¶
func (m *MsgWithdrawNativeResponse) XXX_Size() int
func (*MsgWithdrawNativeResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawNativeResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
WithdrawDenom string `protobuf:"bytes,1,opt,name=withdrawDenom,proto3" json:"withdrawDenom,omitempty"`
}
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetWithdrawDenom ¶
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 QueryAllHashRequest ¶
type QueryAllHashRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryHashAllRequest is request type for the Query/Hashes RPC method.
func (*QueryAllHashRequest) Descriptor ¶
func (*QueryAllHashRequest) Descriptor() ([]byte, []int)
func (*QueryAllHashRequest) GetPagination ¶
func (m *QueryAllHashRequest) GetPagination() *query.PageRequest
func (*QueryAllHashRequest) Marshal ¶
func (m *QueryAllHashRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllHashRequest) MarshalTo ¶
func (m *QueryAllHashRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllHashRequest) MarshalToSizedBuffer ¶
func (m *QueryAllHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllHashRequest) ProtoMessage ¶
func (*QueryAllHashRequest) ProtoMessage()
func (*QueryAllHashRequest) Reset ¶
func (m *QueryAllHashRequest) Reset()
func (*QueryAllHashRequest) Size ¶
func (m *QueryAllHashRequest) Size() (n int)
func (*QueryAllHashRequest) String ¶
func (m *QueryAllHashRequest) String() string
func (*QueryAllHashRequest) Unmarshal ¶
func (m *QueryAllHashRequest) Unmarshal(dAtA []byte) error
func (*QueryAllHashRequest) XXX_DiscardUnknown ¶
func (m *QueryAllHashRequest) XXX_DiscardUnknown()
func (*QueryAllHashRequest) XXX_Marshal ¶
func (m *QueryAllHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllHashRequest) XXX_Merge ¶
func (m *QueryAllHashRequest) XXX_Merge(src proto.Message)
func (*QueryAllHashRequest) XXX_Size ¶
func (m *QueryAllHashRequest) XXX_Size() int
func (*QueryAllHashRequest) XXX_Unmarshal ¶
func (m *QueryAllHashRequest) XXX_Unmarshal(b []byte) error
type QueryAllHashResponse ¶
type QueryAllHashResponse struct { // params holds all the parameters of this module. Hash []Hash `protobuf:"bytes,1,rep,name=hash,proto3" json:"hash"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryAllHashResponse) Descriptor ¶
func (*QueryAllHashResponse) Descriptor() ([]byte, []int)
func (*QueryAllHashResponse) GetHash ¶
func (m *QueryAllHashResponse) GetHash() []Hash
func (*QueryAllHashResponse) GetPagination ¶
func (m *QueryAllHashResponse) GetPagination() *query.PageResponse
func (*QueryAllHashResponse) Marshal ¶
func (m *QueryAllHashResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllHashResponse) MarshalTo ¶
func (m *QueryAllHashResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllHashResponse) MarshalToSizedBuffer ¶
func (m *QueryAllHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllHashResponse) ProtoMessage ¶
func (*QueryAllHashResponse) ProtoMessage()
func (*QueryAllHashResponse) Reset ¶
func (m *QueryAllHashResponse) Reset()
func (*QueryAllHashResponse) Size ¶
func (m *QueryAllHashResponse) Size() (n int)
func (*QueryAllHashResponse) String ¶
func (m *QueryAllHashResponse) String() string
func (*QueryAllHashResponse) Unmarshal ¶
func (m *QueryAllHashResponse) Unmarshal(dAtA []byte) error
func (*QueryAllHashResponse) XXX_DiscardUnknown ¶
func (m *QueryAllHashResponse) XXX_DiscardUnknown()
func (*QueryAllHashResponse) XXX_Marshal ¶
func (m *QueryAllHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllHashResponse) XXX_Merge ¶
func (m *QueryAllHashResponse) XXX_Merge(src proto.Message)
func (*QueryAllHashResponse) XXX_Size ¶
func (m *QueryAllHashResponse) XXX_Size() int
func (*QueryAllHashResponse) XXX_Unmarshal ¶
func (m *QueryAllHashResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) HashAll(ctx context.Context, in *QueryAllHashRequest, opts ...grpc.CallOption) (*QueryAllHashResponse, error) Hash(ctx context.Context, in *QueryGetHashRequest, opts ...grpc.CallOption) (*QueryGetHashResponse, 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 QueryGetHashRequest ¶
type QueryGetHashRequest struct {
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetHashRequest) Descriptor ¶
func (*QueryGetHashRequest) Descriptor() ([]byte, []int)
func (*QueryGetHashRequest) GetIndex ¶
func (m *QueryGetHashRequest) GetIndex() string
func (*QueryGetHashRequest) Marshal ¶
func (m *QueryGetHashRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetHashRequest) MarshalTo ¶
func (m *QueryGetHashRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetHashRequest) MarshalToSizedBuffer ¶
func (m *QueryGetHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetHashRequest) ProtoMessage ¶
func (*QueryGetHashRequest) ProtoMessage()
func (*QueryGetHashRequest) Reset ¶
func (m *QueryGetHashRequest) Reset()
func (*QueryGetHashRequest) Size ¶
func (m *QueryGetHashRequest) Size() (n int)
func (*QueryGetHashRequest) String ¶
func (m *QueryGetHashRequest) String() string
func (*QueryGetHashRequest) Unmarshal ¶
func (m *QueryGetHashRequest) Unmarshal(dAtA []byte) error
func (*QueryGetHashRequest) XXX_DiscardUnknown ¶
func (m *QueryGetHashRequest) XXX_DiscardUnknown()
func (*QueryGetHashRequest) XXX_Marshal ¶
func (m *QueryGetHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetHashRequest) XXX_Merge ¶
func (m *QueryGetHashRequest) XXX_Merge(src proto.Message)
func (*QueryGetHashRequest) XXX_Size ¶
func (m *QueryGetHashRequest) XXX_Size() int
func (*QueryGetHashRequest) XXX_Unmarshal ¶
func (m *QueryGetHashRequest) XXX_Unmarshal(b []byte) error
type QueryGetHashResponse ¶
type QueryGetHashResponse struct {
Hash Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash"`
}
func (*QueryGetHashResponse) Descriptor ¶
func (*QueryGetHashResponse) Descriptor() ([]byte, []int)
func (*QueryGetHashResponse) GetHash ¶
func (m *QueryGetHashResponse) GetHash() Hash
func (*QueryGetHashResponse) Marshal ¶
func (m *QueryGetHashResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetHashResponse) MarshalTo ¶
func (m *QueryGetHashResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetHashResponse) MarshalToSizedBuffer ¶
func (m *QueryGetHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetHashResponse) ProtoMessage ¶
func (*QueryGetHashResponse) ProtoMessage()
func (*QueryGetHashResponse) Reset ¶
func (m *QueryGetHashResponse) Reset()
func (*QueryGetHashResponse) Size ¶
func (m *QueryGetHashResponse) Size() (n int)
func (*QueryGetHashResponse) String ¶
func (m *QueryGetHashResponse) String() string
func (*QueryGetHashResponse) Unmarshal ¶
func (m *QueryGetHashResponse) Unmarshal(dAtA []byte) error
func (*QueryGetHashResponse) XXX_DiscardUnknown ¶
func (m *QueryGetHashResponse) XXX_DiscardUnknown()
func (*QueryGetHashResponse) XXX_Marshal ¶
func (m *QueryGetHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetHashResponse) XXX_Merge ¶
func (m *QueryGetHashResponse) XXX_Merge(src proto.Message)
func (*QueryGetHashResponse) XXX_Size ¶
func (m *QueryGetHashResponse) XXX_Size() int
func (*QueryGetHashResponse) XXX_Unmarshal ¶
func (m *QueryGetHashResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) HashAll(context.Context, *QueryAllHashRequest) (*QueryAllHashResponse, error) Hash(context.Context, *QueryGetHashRequest) (*QueryGetHashResponse, error) }
QueryServer is the server API for Query service.
type RarimocoreKeeper ¶
type TokenmanagerKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) DepositNative ¶
func (*UnimplementedMsgServer) DepositNative(ctx context.Context, req *MsgDepositNative) (*MsgDepositNativeResponse, error)
func (*UnimplementedMsgServer) WithdrawFee ¶
func (*UnimplementedMsgServer) WithdrawFee(ctx context.Context, req *MsgWithdrawFee) (*MsgWithdrawFeeResponse, error)
func (*UnimplementedMsgServer) WithdrawNative ¶
func (*UnimplementedMsgServer) WithdrawNative(ctx context.Context, req *MsgWithdrawNative) (*MsgWithdrawNativeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Hash ¶
func (*UnimplementedQueryServer) Hash(ctx context.Context, req *QueryGetHashRequest) (*QueryGetHashResponse, error)
func (*UnimplementedQueryServer) HashAll ¶
func (*UnimplementedQueryServer) HashAll(ctx context.Context, req *QueryAllHashRequest) (*QueryAllHashResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)