bridge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyWithdrawn = errors.New("already withdrawn")

Functions

This section is empty.

Types

type Bridger

type Bridger interface {
	// Withdraw the asset in target chain
	Withdraw(
		ctx context.Context,
		transfer core.TransferDetails,
	) error
}

type FeeEstimate

type FeeEstimate struct {
	TransferID      string    `json:"transfer_id"`
	FeeAmount       *big.Int  `json:"fee_amount"`
	FeeToken        string    `json:"fee_token"`
	FeeTokenAddress string    `json:"fee_token_address"`
	GasEstimate     *big.Int  `json:"gas_estimate"`
	GasToken        string    `json:"gas_token"`
	ToChain         string    `json:"to_chain"`
	FromChain       string    `json:"from_chain"`
	CreatedAt       time.Time `json:"created_at"`
	ExpiresAt       time.Time `json:"expired_at"`
}

Jump to

Keyboard shortcuts

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