types

package
v0.2.5-hf.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: AGPL-3.0 Imports: 35 Imported by: 4

Documentation

Overview

Package types is a generated GoMock package.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
const (
	TransferOutChannel = "transferOut"
	TransferInChannel  = "transferIn"

	TransferOutChannelID sdk.ChannelID = 1
	TransferInChannelID  sdk.ChannelID = 2
	SyncParamsChannelID                = types.SyncParamsChannelID
)
View Source
const TypeMsgTransferOut = "transfer_out"

Variables

View Source
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

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultBscTransferOutRelayerFeeParam    = sdkmath.NewInt(780000000000000) // 0.00078
	DefaultBscTransferOutAckRelayerFeeParam = sdkmath.NewInt(0)
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	TransferOutSynPackageType, _ = abi.NewType("tuple", "", []abi.ArgumentMarshaling{
		{Name: "Amount", Type: "uint256"},
		{Name: "Recipient", Type: "address"},
		{Name: "RefundAddress", Type: "address"},
	})

	TransferOutSynPackageArgs = abi.Arguments{
		{Type: TransferOutSynPackageType},
	}
)
View Source
var (
	TransferOutRefundPackageType, _ = abi.NewType("tuple", "", []abi.ArgumentMarshaling{
		{Name: "RefundAmount", Type: "uint256"},
		{Name: "RefundAddress", Type: "address"},
		{Name: "RefundReason", Type: "uint32"},
	})

	TransferOutRefundPackageArgs = abi.Arguments{
		{Type: TransferOutRefundPackageType},
	}
)
View Source
var (
	TransferInSynPackageType, _ = abi.NewType("tuple", "", []abi.ArgumentMarshaling{
		{Name: "Amount", Type: "uint256"},
		{Name: "ReceiverAddress", Type: "address"},
		{Name: "RefundAddress", Type: "address"},
	})

	TransferInSynPackageArgs = abi.Arguments{
		{Type: TransferInSynPackageType},
	}
)
View Source
var (
	TransferInRefundPackageType, _ = abi.NewType("tuple", "", []abi.ArgumentMarshaling{
		{Name: "RefundAmount", Type: "uint256"},
		{Name: "RefundAddress", Type: "address"},
		{Name: "RefundReason", Type: "uint32"},
	})

	TransferInRefundPackageArgs = abi.Arguments{
		{Type: TransferInRefundPackageType},
	}
)
View Source
var ParamsKey = []byte{0x01}
View Source
var RefundReason_name = map[int32]string{
	0: "REFUND_REASON_UNKNOWN",
	1: "REFUND_REASON_INSUFFICIENT_BALANCE",
	2: "REFUND_REASON_FAIL_ACK",
}
View Source
var RefundReason_value = map[string]int32{
	"REFUND_REASON_UNKNOWN":              0,
	"REFUND_REASON_INSUFFICIENT_BALANCE": 1,
	"REFUND_REASON_FAIL_ACK":             2,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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)

func SafeBigInt added in v0.2.3

func SafeBigInt(input *big.Int) *big.Int

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

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 {
	GetDestBscChainID() sdk.ChainID
	CreateRawIBCPackageWithFee(ctx sdk.Context, chainID sdk.ChainID, 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"`
	// Source chain id of the cross chain transfer tx
	SrcChainId uint32 `protobuf:"varint,5,opt,name=src_chain_id,json=srcChainId,proto3" json:"src_chain_id,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) GetSrcChainId added in v0.2.3

func (m *EventCrossTransferIn) GetSrcChainId() uint32

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"`
	// Destination chain id of the cross chain transfer tx
	DestChainId uint32 `protobuf:"varint,6,opt,name=dest_chain_id,json=destChainId,proto3" json:"dest_chain_id,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) GetDestChainId added in v0.2.3

func (m *EventCrossTransferOut) GetDestChainId() uint32

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 RefundReason `` /* 134-byte string literal not displayed */
	// Sequence of the corresponding cross chain package
	Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// Destination chain id of the cross chain transfer tx
	DestChainId uint32 `protobuf:"varint,5,opt,name=dest_chain_id,json=destChainId,proto3" json:"dest_chain_id,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) GetDestChainId added in v0.2.3

func (m *EventCrossTransferOutRefund) GetDestChainId() uint32

func (*EventCrossTransferOutRefund) GetRefundAddress

func (m *EventCrossTransferOutRefund) GetRefundAddress() string

func (*EventCrossTransferOutRefund) GetRefundReason

func (m *EventCrossTransferOutRefund) GetRefundReason() RefundReason

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) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MockAccountKeeper added in v0.2.3

type MockAccountKeeper struct {
	// contains filtered or unexported fields
}

MockAccountKeeper is a mock of AccountKeeper interface.

func NewMockAccountKeeper added in v0.2.3

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance.

func (*MockAccountKeeper) EXPECT added in v0.2.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountKeeper) GetAccount added in v0.2.3

func (m *MockAccountKeeper) GetAccount(ctx types.Context, addr types.AccAddress) types0.AccountI

GetAccount mocks base method.

type MockAccountKeeperMockRecorder added in v0.2.3

type MockAccountKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

func (*MockAccountKeeperMockRecorder) GetAccount added in v0.2.3

func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

type MockBankKeeper added in v0.2.0

type MockBankKeeper struct {
	// contains filtered or unexported fields
}

MockBankKeeper is a mock of BankKeeper interface.

func NewMockBankKeeper added in v0.2.0

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance.

func (*MockBankKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBankKeeper) SendCoinsFromAccountToModule added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx types.Context, senderModule, recipientModule string, amt types.Coins) error

SendCoinsFromModuleToModule mocks base method.

func (*MockBankKeeper) SpendableCoins added in v0.2.0

func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins

SpendableCoins mocks base method.

type MockBankKeeperMockRecorder added in v0.2.0

type MockBankKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call

SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.

func (*MockBankKeeperMockRecorder) SpendableCoins added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call

SpendableCoins indicates an expected call of SpendableCoins.

type MockCrossChainKeeper added in v0.2.0

type MockCrossChainKeeper struct {
	// contains filtered or unexported fields
}

MockCrossChainKeeper is a mock of CrossChainKeeper interface.

func NewMockCrossChainKeeper added in v0.2.0

func NewMockCrossChainKeeper(ctrl *gomock.Controller) *MockCrossChainKeeper

NewMockCrossChainKeeper creates a new mock instance.

func (*MockCrossChainKeeper) CreateRawIBCPackageWithFee added in v0.2.0

func (m *MockCrossChainKeeper) CreateRawIBCPackageWithFee(ctx types.Context, chainID types.ChainID, channelID types.ChannelID, packageType types.CrossChainPackageType, packageLoad []byte, relayerFee, ackRelayerFee *big.Int) (uint64, error)

CreateRawIBCPackageWithFee mocks base method.

func (*MockCrossChainKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCrossChainKeeper) GetDestBscChainID added in v0.2.3

func (m *MockCrossChainKeeper) GetDestBscChainID() types.ChainID

GetDestBscChainID mocks base method.

func (*MockCrossChainKeeper) RegisterChannel added in v0.2.0

func (m *MockCrossChainKeeper) RegisterChannel(name string, id types.ChannelID, app types.CrossChainApplication) error

RegisterChannel mocks base method.

type MockCrossChainKeeperMockRecorder added in v0.2.0

type MockCrossChainKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockCrossChainKeeperMockRecorder is the mock recorder for MockCrossChainKeeper.

func (*MockCrossChainKeeperMockRecorder) CreateRawIBCPackageWithFee added in v0.2.0

func (mr *MockCrossChainKeeperMockRecorder) CreateRawIBCPackageWithFee(ctx, chainID, channelID, packageType, packageLoad, relayerFee, ackRelayerFee interface{}) *gomock.Call

CreateRawIBCPackageWithFee indicates an expected call of CreateRawIBCPackageWithFee.

func (*MockCrossChainKeeperMockRecorder) GetDestBscChainID added in v0.2.3

func (mr *MockCrossChainKeeperMockRecorder) GetDestBscChainID() *gomock.Call

GetDestBscChainID indicates an expected call of GetDestBscChainID.

func (*MockCrossChainKeeperMockRecorder) RegisterChannel added in v0.2.0

func (mr *MockCrossChainKeeperMockRecorder) RegisterChannel(name, id, app interface{}) *gomock.Call

RegisterChannel indicates an expected call of RegisterChannel.

type MockStakingKeeper added in v0.2.0

type MockStakingKeeper struct {
	// contains filtered or unexported fields
}

MockStakingKeeper is a mock of StakingKeeper interface.

func NewMockStakingKeeper added in v0.2.0

func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper

NewMockStakingKeeper creates a new mock instance.

func (*MockStakingKeeper) BondDenom added in v0.2.0

func (m *MockStakingKeeper) BondDenom(ctx types.Context) string

BondDenom mocks base method.

func (*MockStakingKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use.

type MockStakingKeeperMockRecorder added in v0.2.0

type MockStakingKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockStakingKeeperMockRecorder) BondDenom added in v0.2.0

func (mr *MockStakingKeeperMockRecorder) BondDenom(ctx interface{}) *gomock.Call

BondDenom indicates an expected call of BondDenom.

type MsgClient

type MsgClient interface {
	TransferOut(ctx context.Context, in *MsgTransferOut, opts ...grpc.CallOption) (*MsgTransferOutResponse, error)
	// UpdateParams defines a governance operation for updating the x/bridge module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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)
	// UpdateParams defines a governance operation for updating the x/bridge module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferOut

type MsgTransferOut struct {
	// from address
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// to address
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// transfer token amount
	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) MarshalTo

func (m *MsgTransferOut) MarshalTo(dAtA []byte) (int, 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 MsgUpdateParams added in v0.2.0

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/crosschain parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor added in v0.2.0

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

func (*MsgUpdateParams) GetAuthority added in v0.2.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.2.0

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes added in v0.2.0

func (m MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners added in v0.2.0

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

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal added in v0.2.0

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

func (*MsgUpdateParams) MarshalTo added in v0.2.0

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgUpdateParams) ProtoMessage added in v0.2.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.2.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.2.0

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

func (*MsgUpdateParams) String added in v0.2.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.2.0

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

func (*MsgUpdateParams) ValidateBasic added in v0.2.0

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.2.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.2.0

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

func (*MsgUpdateParams) XXX_Merge added in v0.2.0

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

func (*MsgUpdateParams) XXX_Size added in v0.2.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.2.0

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

type MsgUpdateParamsResponse added in v0.2.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor added in v0.2.0

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

func (*MsgUpdateParamsResponse) Marshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) MarshalTo added in v0.2.0

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.2.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.2.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.2.0

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

func (*MsgUpdateParamsResponse) String added in v0.2.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.2.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.2.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.2.0

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

type Params

type Params struct {
	// Relayer fee for the cross chain transfer out tx to bsc
	BscTransferOutRelayerFee github_com_cosmos_cosmos_sdk_types.Int `` /* 179-byte string literal not displayed */
	// Relayer fee for the ACK or FAIL_ACK package of the cross chain transfer out tx to bsc
	BscTransferOutAckRelayerFee github_com_cosmos_cosmos_sdk_types.Int `` /* 190-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) 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)
}

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 int32
const (
	REFUND_REASON_UNKNOWN              RefundReason = 0
	REFUND_REASON_INSUFFICIENT_BALANCE RefundReason = 1
	REFUND_REASON_FAIL_ACK             RefundReason = 2
)

func (RefundReason) EnumDescriptor added in v0.0.10

func (RefundReason) EnumDescriptor() ([]byte, []int)

func (RefundReason) String added in v0.0.10

func (x RefundReason) String() string

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) (res string)
}

StakingKeeper defines the expected interface needed to get staking related data

type TransferInRefundPackage

type TransferInRefundPackage struct {
	RefundAmount  *big.Int
	RefundAddress sdk.AccAddress
	RefundReason  uint32
}

func (*TransferInRefundPackage) Serialize added in v0.2.3

func (pkg *TransferInRefundPackage) Serialize() ([]byte, error)

type TransferInRefundPackageStruct added in v0.2.3

type TransferInRefundPackageStruct struct {
	RefundAmount  *big.Int
	RefundAddress common.Address
	RefundReason  uint32
}

type TransferInSynPackage

type TransferInSynPackage struct {
	Amount          *big.Int
	ReceiverAddress sdk.AccAddress
	RefundAddress   sdk.AccAddress
}

func DeserializeTransferInSynPackage

func DeserializeTransferInSynPackage(serializedPackage []byte) (*TransferInSynPackage, error)

func (*TransferInSynPackage) Serialize added in v0.2.3

func (pkg *TransferInSynPackage) Serialize() ([]byte, error)

type TransferInSynPackageStruct added in v0.2.3

type TransferInSynPackageStruct struct {
	Amount          *big.Int
	ReceiverAddress common.Address
	RefundAddress   common.Address
}

type TransferOutRefundPackage

type TransferOutRefundPackage struct {
	RefundAmount  *big.Int
	RefundAddress sdk.AccAddress
	RefundReason  uint32
}

func DeserializeTransferOutRefundPackage

func DeserializeTransferOutRefundPackage(serializedPackage []byte) (*TransferOutRefundPackage, error)

func (*TransferOutRefundPackage) Serialize added in v0.2.3

func (pkg *TransferOutRefundPackage) Serialize() ([]byte, error)

type TransferOutRefundPackageStruct added in v0.2.3

type TransferOutRefundPackageStruct struct {
	RefundAmount  *big.Int
	RefundAddress common.Address
	RefundReason  uint32
}

type TransferOutSynPackage

type TransferOutSynPackage struct {
	Amount        *big.Int
	Recipient     sdk.AccAddress
	RefundAddress sdk.AccAddress
}

func DeserializeTransferOutSynPackage

func DeserializeTransferOutSynPackage(serializedPackage []byte) (*TransferOutSynPackage, error)

func (*TransferOutSynPackage) Serialize added in v0.2.3

func (pkg *TransferOutSynPackage) Serialize() ([]byte, error)

type TransferOutSynPackageStruct added in v0.2.3

type TransferOutSynPackageStruct struct {
	Amount        *big.Int
	Recipient     common.Address
	RefundAddress common.Address
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) TransferOut

func (*UnimplementedMsgServer) UpdateParams added in v0.2.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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