types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Transfer   = uint8(0)
	RemoteCall = uint8(1)
)
View Source
const (
	// ModuleName defines the XIBC multicall name
	ModuleName = "multicall"
)

Variables

View Source
var (
	ErrScChainEqualToDestChain = sdkerrors.Register(ModuleName, 2, "source chain equals to destination chain")
	ErrInvalidMultiCallEvent   = sdkerrors.Register(ModuleName, 3, "invalid multicall event")
)
View Source
var (
	TupleTransferData abi.Type
	TupleRCCData      abi.Type
)

Functions

This section is empty.

Types

type AggregateKeeper

type AggregateKeeper interface {
	QueryERC20Trace(ctx sdk.Context, contract common.Address, originChain string) (string, *big.Int, bool, error)
}

AggregateKeeper defines the expected Aggregate keeper

type Amount

type Amount struct {
	Value *big.Int
}

type ClientKeeper

type ClientKeeper interface {
	GetChainName(ctx sdk.Context) string
}

ClientKeeper defines the expected client keeper

type Fee

type Fee struct {
	TokenAddress common.Address
	Amount       *big.Int
}

type MultiCallData

type MultiCallData struct {
	DestChain  string   `json:"destChain"`
	RelayChain string   `json:"relayChain"`
	Functions  []uint8  `json:"functions"`
	Data       [][]byte `json:"data"`
}

type PacketKeeper

type PacketKeeper interface {
	GetNextSequenceSend(ctx sdk.Context, sourceChain, destChain string) uint64
	SendPacket(ctx sdk.Context, packet exported.PacketI) error
}

PacketKeeper defines the expected packet keeper

type RCCData

type RCCData struct {
	ContractAddress string `json:"contract_address"`
	Data            []byte `json:"data"`
}

type TransferData

type TransferData struct {
	TokenAddress common.Address `json:"token_address"`
	Receiver     string         `json:"receiver"`
	Amount       *big.Int       `json:"amount"`
}

Jump to

Keyboard shortcuts

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