Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- 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 CrossChainKeeper
- type EventCrossTransferIn
- func (*EventCrossTransferIn) Descriptor() ([]byte, []int)
- func (m *EventCrossTransferIn) GetAmount() *types.Coin
- func (m *EventCrossTransferIn) GetReceiverAddress() string
- func (m *EventCrossTransferIn) GetRefundAddress() string
- func (m *EventCrossTransferIn) GetSequence() uint64
- func (m *EventCrossTransferIn) Marshal() (dAtA []byte, err error)
- func (m *EventCrossTransferIn) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCrossTransferIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCrossTransferIn) ProtoMessage()
- func (m *EventCrossTransferIn) Reset()
- func (m *EventCrossTransferIn) Size() (n int)
- func (m *EventCrossTransferIn) String() string
- func (m *EventCrossTransferIn) Unmarshal(dAtA []byte) error
- func (m *EventCrossTransferIn) XXX_DiscardUnknown()
- func (m *EventCrossTransferIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCrossTransferIn) XXX_Merge(src proto.Message)
- func (m *EventCrossTransferIn) XXX_Size() int
- func (m *EventCrossTransferIn) XXX_Unmarshal(b []byte) error
- type EventCrossTransferOut
- func (*EventCrossTransferOut) Descriptor() ([]byte, []int)
- func (m *EventCrossTransferOut) GetAmount() *types.Coin
- func (m *EventCrossTransferOut) GetFrom() string
- func (m *EventCrossTransferOut) GetRelayerFee() *types.Coin
- func (m *EventCrossTransferOut) GetSequence() uint64
- func (m *EventCrossTransferOut) GetTo() string
- func (m *EventCrossTransferOut) Marshal() (dAtA []byte, err error)
- func (m *EventCrossTransferOut) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCrossTransferOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCrossTransferOut) ProtoMessage()
- func (m *EventCrossTransferOut) Reset()
- func (m *EventCrossTransferOut) Size() (n int)
- func (m *EventCrossTransferOut) String() string
- func (m *EventCrossTransferOut) Unmarshal(dAtA []byte) error
- func (m *EventCrossTransferOut) XXX_DiscardUnknown()
- func (m *EventCrossTransferOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCrossTransferOut) XXX_Merge(src proto.Message)
- func (m *EventCrossTransferOut) XXX_Size() int
- func (m *EventCrossTransferOut) XXX_Unmarshal(b []byte) error
- type EventCrossTransferOutRefund
- func (*EventCrossTransferOutRefund) Descriptor() ([]byte, []int)
- func (m *EventCrossTransferOutRefund) GetAmount() *types.Coin
- func (m *EventCrossTransferOutRefund) GetRefundAddress() string
- func (m *EventCrossTransferOutRefund) GetRefundReason() uint32
- func (m *EventCrossTransferOutRefund) GetSequence() uint64
- func (m *EventCrossTransferOutRefund) Marshal() (dAtA []byte, err error)
- func (m *EventCrossTransferOutRefund) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCrossTransferOutRefund) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCrossTransferOutRefund) ProtoMessage()
- func (m *EventCrossTransferOutRefund) Reset()
- func (m *EventCrossTransferOutRefund) Size() (n int)
- func (m *EventCrossTransferOutRefund) String() string
- func (m *EventCrossTransferOutRefund) Unmarshal(dAtA []byte) error
- func (m *EventCrossTransferOutRefund) XXX_DiscardUnknown()
- func (m *EventCrossTransferOutRefund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCrossTransferOutRefund) XXX_Merge(src proto.Message)
- func (m *EventCrossTransferOutRefund) XXX_Size() int
- func (m *EventCrossTransferOutRefund) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 MsgClient
- type MsgServer
- type MsgTransferOut
- func (*MsgTransferOut) Descriptor() ([]byte, []int)
- func (m *MsgTransferOut) GetAmount() *types.Coin
- func (m *MsgTransferOut) GetFrom() string
- func (msg *MsgTransferOut) GetSignBytes() []byte
- func (msg *MsgTransferOut) GetSigners() []sdk.AccAddress
- func (m *MsgTransferOut) GetTo() string
- func (m *MsgTransferOut) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOut) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOut) ProtoMessage()
- func (m *MsgTransferOut) Reset()
- func (msg *MsgTransferOut) Route() string
- func (m *MsgTransferOut) Size() (n int)
- func (m *MsgTransferOut) String() string
- func (msg *MsgTransferOut) Type() string
- func (m *MsgTransferOut) Unmarshal(dAtA []byte) error
- func (msg *MsgTransferOut) ValidateBasic() error
- func (m *MsgTransferOut) XXX_DiscardUnknown()
- func (m *MsgTransferOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOut) XXX_Merge(src proto.Message)
- func (m *MsgTransferOut) XXX_Size() int
- func (m *MsgTransferOut) XXX_Unmarshal(b []byte) error
- type MsgTransferOutResponse
- func (*MsgTransferOutResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferOutResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOutResponse) ProtoMessage()
- func (m *MsgTransferOutResponse) Reset()
- func (m *MsgTransferOutResponse) Size() (n int)
- func (m *MsgTransferOutResponse) String() string
- func (m *MsgTransferOutResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferOutResponse) XXX_DiscardUnknown()
- func (m *MsgTransferOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOutResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferOutResponse) XXX_Size() int
- func (m *MsgTransferOutResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetTransferOutAckRelayerFee() string
- func (m *Params) GetTransferOutRelayerFee() 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- 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 QueryClient
- 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 RefundReason
- type StakingKeeper
- type TransferInRefundPackage
- type TransferInSynPackage
- type TransferOutRefundPackage
- type TransferOutSynPackage
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "bridge" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_bridge" )
const ( DefaultTransferOutRelayerFeeParam string = "1000000000000000" // 0.001 DefaultTransferOutAckRelayerFeeParam string = "0" )
const ( TransferOutChannel = "transferOut" TransferInChannel = "transferIn" TransferOutChannelID sdk.ChannelID = 1 TransferInChannelID sdk.ChannelID = 2 SyncParamsChannelID = paramsproposal.SyncParamsChannelID )
const TypeMsgTransferOut = "transfer_out"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
var ( ErrInvalidExpireTime = errors.Register(ModuleName, 1, "expire time is invalid") ErrUnsupportedDenom = errors.Register(ModuleName, 2, "denom is not unsupported") ErrInvalidAddress = errors.Register(ModuleName, 3, "address is invalid") ErrInvalidPackage = errors.Register(ModuleName, 4, "package is invalid") ErrInvalidAmount = errors.Register(ModuleName, 5, "amount is invalid") ErrInvalidLength = errors.Register(ModuleName, 6, "length is invalid") ErrPackageExpired = errors.Register(ModuleName, 7, "package is expired") )
x/bridge module sentinel errors
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = 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 ( KeyParamTransferOutRelayerFee = []byte("TransferOutRelayerFee") KeyParamTransferOutAckRelayerFee = []byte("TransferOutAckRelayerFee") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
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 { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type CrossChainKeeper ¶
type CrossChainKeeper interface { CreateRawIBCPackageWithFee(ctx sdk.Context, channelID sdk.ChannelID, packageType sdk.CrossChainPackageType, packageLoad []byte, relayerFee *big.Int, ackRelayerFee *big.Int, ) (uint64, error) RegisterChannel(name string, id sdk.ChannelID, app sdk.CrossChainApplication) error }
type EventCrossTransferIn ¶
type EventCrossTransferIn struct { // Amount of the cross chain transfer tx Amount *types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // Receiver of the cross chain transfer tx ReceiverAddress string `protobuf:"bytes,2,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"` // Refund of the cross chain transfer tx in BSC RefundAddress string `protobuf:"bytes,3,opt,name=refund_address,json=refundAddress,proto3" json:"refund_address,omitempty"` // Sequence of the corresponding cross chain package Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` }
EventCrossTransferIn is emitted when a cross chain transfer in tx happened
func (*EventCrossTransferIn) Descriptor ¶
func (*EventCrossTransferIn) Descriptor() ([]byte, []int)
func (*EventCrossTransferIn) GetAmount ¶
func (m *EventCrossTransferIn) GetAmount() *types.Coin
func (*EventCrossTransferIn) GetReceiverAddress ¶
func (m *EventCrossTransferIn) GetReceiverAddress() string
func (*EventCrossTransferIn) GetRefundAddress ¶
func (m *EventCrossTransferIn) GetRefundAddress() string
func (*EventCrossTransferIn) GetSequence ¶
func (m *EventCrossTransferIn) GetSequence() uint64
func (*EventCrossTransferIn) Marshal ¶
func (m *EventCrossTransferIn) Marshal() (dAtA []byte, err error)
func (*EventCrossTransferIn) MarshalTo ¶
func (m *EventCrossTransferIn) MarshalTo(dAtA []byte) (int, error)
func (*EventCrossTransferIn) MarshalToSizedBuffer ¶
func (m *EventCrossTransferIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCrossTransferIn) ProtoMessage ¶
func (*EventCrossTransferIn) ProtoMessage()
func (*EventCrossTransferIn) Reset ¶
func (m *EventCrossTransferIn) Reset()
func (*EventCrossTransferIn) Size ¶
func (m *EventCrossTransferIn) Size() (n int)
func (*EventCrossTransferIn) String ¶
func (m *EventCrossTransferIn) String() string
func (*EventCrossTransferIn) Unmarshal ¶
func (m *EventCrossTransferIn) Unmarshal(dAtA []byte) error
func (*EventCrossTransferIn) XXX_DiscardUnknown ¶
func (m *EventCrossTransferIn) XXX_DiscardUnknown()
func (*EventCrossTransferIn) XXX_Marshal ¶
func (m *EventCrossTransferIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCrossTransferIn) XXX_Merge ¶
func (m *EventCrossTransferIn) XXX_Merge(src proto.Message)
func (*EventCrossTransferIn) XXX_Size ¶
func (m *EventCrossTransferIn) XXX_Size() int
func (*EventCrossTransferIn) XXX_Unmarshal ¶
func (m *EventCrossTransferIn) XXX_Unmarshal(b []byte) error
type EventCrossTransferOut ¶
type EventCrossTransferOut struct { // From addres of the cross chain transfer tx From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // To addres of the cross chain transfer tx To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // Amount of the cross chain transfer tx Amount *types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // Relayer fee of the cross chain transfer tx RelayerFee *types.Coin `protobuf:"bytes,4,opt,name=relayer_fee,json=relayerFee,proto3" json:"relayer_fee,omitempty"` // Sequence of the corresponding cross chain package Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` }
EventCrossTransferOut is emitted when a cross chain transfer out tx created
func (*EventCrossTransferOut) Descriptor ¶
func (*EventCrossTransferOut) Descriptor() ([]byte, []int)
func (*EventCrossTransferOut) GetAmount ¶
func (m *EventCrossTransferOut) GetAmount() *types.Coin
func (*EventCrossTransferOut) GetFrom ¶
func (m *EventCrossTransferOut) GetFrom() string
func (*EventCrossTransferOut) GetRelayerFee ¶
func (m *EventCrossTransferOut) GetRelayerFee() *types.Coin
func (*EventCrossTransferOut) GetSequence ¶
func (m *EventCrossTransferOut) GetSequence() uint64
func (*EventCrossTransferOut) GetTo ¶
func (m *EventCrossTransferOut) GetTo() string
func (*EventCrossTransferOut) Marshal ¶
func (m *EventCrossTransferOut) Marshal() (dAtA []byte, err error)
func (*EventCrossTransferOut) MarshalTo ¶
func (m *EventCrossTransferOut) MarshalTo(dAtA []byte) (int, error)
func (*EventCrossTransferOut) MarshalToSizedBuffer ¶
func (m *EventCrossTransferOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCrossTransferOut) ProtoMessage ¶
func (*EventCrossTransferOut) ProtoMessage()
func (*EventCrossTransferOut) Reset ¶
func (m *EventCrossTransferOut) Reset()
func (*EventCrossTransferOut) Size ¶
func (m *EventCrossTransferOut) Size() (n int)
func (*EventCrossTransferOut) String ¶
func (m *EventCrossTransferOut) String() string
func (*EventCrossTransferOut) Unmarshal ¶
func (m *EventCrossTransferOut) Unmarshal(dAtA []byte) error
func (*EventCrossTransferOut) XXX_DiscardUnknown ¶
func (m *EventCrossTransferOut) XXX_DiscardUnknown()
func (*EventCrossTransferOut) XXX_Marshal ¶
func (m *EventCrossTransferOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCrossTransferOut) XXX_Merge ¶
func (m *EventCrossTransferOut) XXX_Merge(src proto.Message)
func (*EventCrossTransferOut) XXX_Size ¶
func (m *EventCrossTransferOut) XXX_Size() int
func (*EventCrossTransferOut) XXX_Unmarshal ¶
func (m *EventCrossTransferOut) XXX_Unmarshal(b []byte) error
type EventCrossTransferOutRefund ¶
type EventCrossTransferOutRefund struct { // Refund address of the failed cross chain transfer tx RefundAddress string `protobuf:"bytes,1,opt,name=refund_address,json=refundAddress,proto3" json:"refund_address,omitempty"` // Amount of the failed cross chain transfer tx Amount *types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // Refund reason of the failed cross chain transfer tx RefundReason uint32 `protobuf:"varint,3,opt,name=refund_reason,json=refundReason,proto3" json:"refund_reason,omitempty"` // Sequence of the corresponding cross chain package Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` }
EventCrossTransferOutRefund is emitted when a cross chain transfer out tx failed
func (*EventCrossTransferOutRefund) Descriptor ¶
func (*EventCrossTransferOutRefund) Descriptor() ([]byte, []int)
func (*EventCrossTransferOutRefund) GetAmount ¶
func (m *EventCrossTransferOutRefund) GetAmount() *types.Coin
func (*EventCrossTransferOutRefund) GetRefundAddress ¶
func (m *EventCrossTransferOutRefund) GetRefundAddress() string
func (*EventCrossTransferOutRefund) GetRefundReason ¶
func (m *EventCrossTransferOutRefund) GetRefundReason() uint32
func (*EventCrossTransferOutRefund) GetSequence ¶
func (m *EventCrossTransferOutRefund) GetSequence() uint64
func (*EventCrossTransferOutRefund) Marshal ¶
func (m *EventCrossTransferOutRefund) Marshal() (dAtA []byte, err error)
func (*EventCrossTransferOutRefund) MarshalTo ¶
func (m *EventCrossTransferOutRefund) MarshalTo(dAtA []byte) (int, error)
func (*EventCrossTransferOutRefund) MarshalToSizedBuffer ¶
func (m *EventCrossTransferOutRefund) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCrossTransferOutRefund) ProtoMessage ¶
func (*EventCrossTransferOutRefund) ProtoMessage()
func (*EventCrossTransferOutRefund) Reset ¶
func (m *EventCrossTransferOutRefund) Reset()
func (*EventCrossTransferOutRefund) Size ¶
func (m *EventCrossTransferOutRefund) Size() (n int)
func (*EventCrossTransferOutRefund) String ¶
func (m *EventCrossTransferOutRefund) String() string
func (*EventCrossTransferOutRefund) Unmarshal ¶
func (m *EventCrossTransferOutRefund) Unmarshal(dAtA []byte) error
func (*EventCrossTransferOutRefund) XXX_DiscardUnknown ¶
func (m *EventCrossTransferOutRefund) XXX_DiscardUnknown()
func (*EventCrossTransferOutRefund) XXX_Marshal ¶
func (m *EventCrossTransferOutRefund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCrossTransferOutRefund) XXX_Merge ¶
func (m *EventCrossTransferOutRefund) XXX_Merge(src proto.Message)
func (*EventCrossTransferOutRefund) XXX_Size ¶
func (m *EventCrossTransferOutRefund) XXX_Size() int
func (*EventCrossTransferOutRefund) XXX_Unmarshal ¶
func (m *EventCrossTransferOutRefund) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // Params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
GenesisState defines the bridge module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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 MsgClient ¶
type MsgClient interface {
TransferOut(ctx context.Context, in *MsgTransferOut, opts ...grpc.CallOption) (*MsgTransferOutResponse, 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 MsgServer ¶
type MsgServer interface {
TransferOut(context.Context, *MsgTransferOut) (*MsgTransferOutResponse, error)
}
MsgServer is the server API for Msg service.
type MsgTransferOut ¶
type MsgTransferOut struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Amount *types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` }
MsgTransferOut is the Msg/TransferOut request type.
func NewMsgTransferOut ¶
func NewMsgTransferOut(from string, to string, amount *sdk.Coin) *MsgTransferOut
func (*MsgTransferOut) Descriptor ¶
func (*MsgTransferOut) Descriptor() ([]byte, []int)
func (*MsgTransferOut) GetAmount ¶
func (m *MsgTransferOut) GetAmount() *types.Coin
func (*MsgTransferOut) GetFrom ¶
func (m *MsgTransferOut) GetFrom() string
func (*MsgTransferOut) GetSignBytes ¶
func (msg *MsgTransferOut) GetSignBytes() []byte
func (*MsgTransferOut) GetSigners ¶
func (msg *MsgTransferOut) GetSigners() []sdk.AccAddress
func (*MsgTransferOut) GetTo ¶
func (m *MsgTransferOut) GetTo() string
func (*MsgTransferOut) Marshal ¶
func (m *MsgTransferOut) Marshal() (dAtA []byte, err error)
func (*MsgTransferOut) MarshalToSizedBuffer ¶
func (m *MsgTransferOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOut) ProtoMessage ¶
func (*MsgTransferOut) ProtoMessage()
func (*MsgTransferOut) Reset ¶
func (m *MsgTransferOut) Reset()
func (*MsgTransferOut) Route ¶
func (msg *MsgTransferOut) Route() string
func (*MsgTransferOut) Size ¶
func (m *MsgTransferOut) Size() (n int)
func (*MsgTransferOut) String ¶
func (m *MsgTransferOut) String() string
func (*MsgTransferOut) Type ¶
func (msg *MsgTransferOut) Type() string
func (*MsgTransferOut) Unmarshal ¶
func (m *MsgTransferOut) Unmarshal(dAtA []byte) error
func (*MsgTransferOut) ValidateBasic ¶
func (msg *MsgTransferOut) ValidateBasic() error
func (*MsgTransferOut) XXX_DiscardUnknown ¶
func (m *MsgTransferOut) XXX_DiscardUnknown()
func (*MsgTransferOut) XXX_Marshal ¶
func (m *MsgTransferOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOut) XXX_Merge ¶
func (m *MsgTransferOut) XXX_Merge(src proto.Message)
func (*MsgTransferOut) XXX_Size ¶
func (m *MsgTransferOut) XXX_Size() int
func (*MsgTransferOut) XXX_Unmarshal ¶
func (m *MsgTransferOut) XXX_Unmarshal(b []byte) error
type MsgTransferOutResponse ¶
type MsgTransferOutResponse struct { }
MsgTransferOutResponse is the Msg/TransferOut response type.
func (*MsgTransferOutResponse) Descriptor ¶
func (*MsgTransferOutResponse) Descriptor() ([]byte, []int)
func (*MsgTransferOutResponse) Marshal ¶
func (m *MsgTransferOutResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferOutResponse) MarshalTo ¶
func (m *MsgTransferOutResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOutResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOutResponse) ProtoMessage ¶
func (*MsgTransferOutResponse) ProtoMessage()
func (*MsgTransferOutResponse) Reset ¶
func (m *MsgTransferOutResponse) Reset()
func (*MsgTransferOutResponse) Size ¶
func (m *MsgTransferOutResponse) Size() (n int)
func (*MsgTransferOutResponse) String ¶
func (m *MsgTransferOutResponse) String() string
func (*MsgTransferOutResponse) Unmarshal ¶
func (m *MsgTransferOutResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferOutResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferOutResponse) XXX_DiscardUnknown()
func (*MsgTransferOutResponse) XXX_Marshal ¶
func (m *MsgTransferOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOutResponse) XXX_Merge ¶
func (m *MsgTransferOutResponse) XXX_Merge(src proto.Message)
func (*MsgTransferOutResponse) XXX_Size ¶
func (m *MsgTransferOutResponse) XXX_Size() int
func (*MsgTransferOutResponse) XXX_Unmarshal ¶
func (m *MsgTransferOutResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // Relayer fee for the cross chain transfer out tx TransferOutRelayerFee string `` /* 128-byte string literal not displayed */ // Relayer fee for the ACK or FAIL_ACK package of the cross chain transfer out tx TransferOutAckRelayerFee string `` /* 139-byte string literal not displayed */ }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetTransferOutAckRelayerFee ¶
func (*Params) GetTransferOutRelayerFee ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 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) }
QueryServer is the server API for Query service.
type RefundReason ¶
type RefundReason uint32
const ( RefundReasonInsufficientBalance RefundReason = 1 RefundReasonFailAck RefundReason = 2 Unknown RefundReason = 3 )
type StakingKeeper ¶
StakingKeeper defines the expected interface needed to get staking related data
type TransferInRefundPackage ¶
type TransferInRefundPackage struct { RefundAmount *big.Int RefundAddress sdk.AccAddress RefundReason RefundReason }
type TransferInSynPackage ¶
type TransferInSynPackage struct { Amount *big.Int ReceiverAddress sdk.AccAddress RefundAddress sdk.AccAddress }
func DeserializeTransferInSynPackage ¶
func DeserializeTransferInSynPackage(serializedPackage []byte) (*TransferInSynPackage, error)
type TransferOutRefundPackage ¶
type TransferOutRefundPackage struct { RefundAmount *big.Int RefundAddr sdk.AccAddress RefundReason RefundReason }
func DeserializeTransferOutRefundPackage ¶
func DeserializeTransferOutRefundPackage(serializedPackage []byte) (*TransferOutRefundPackage, error)
type TransferOutSynPackage ¶
type TransferOutSynPackage struct { Amount *big.Int Recipient sdk.AccAddress RefundAddress sdk.AccAddress }
func DeserializeTransferOutSynPackage ¶
func DeserializeTransferOutSynPackage(serializedPackage []byte) (*TransferOutSynPackage, error)
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) TransferOut ¶
func (*UnimplementedMsgServer) TransferOut(ctx context.Context, req *MsgTransferOut) (*MsgTransferOutResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)