cctp

package
v0.0.0-...-5821519 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainDomainEthereum = 0
	ChainDomainArbitrum = 3
)

Variables

This section is empty.

Functions

func CreateCctpCommand

func CreateCctpCommand() *cobra.Command

func ParseMintRecipientFrom20BytesTo32Bytes

func ParseMintRecipientFrom20BytesTo32Bytes(recipient common.Address) ([32]byte, error)

CCTP uses 32 bytes addresses, while EVEM uses 20 bytes addresses const mintRecipient = utils.hexlify(utils.zeroPad(recipient, 32)) as Address

func SendTransaction

func SendTransaction(client *ethclient.Client, key *keystore.Key, calldata []byte, to string, value *big.Int) (*types.Transaction, error)

Function to send a transaction

Types

type ChainDomain

type ChainDomain uint32

func (ChainDomain) String

func (o ChainDomain) String() string

String returns the string representation of the ChainDomain

Jump to

Keyboard shortcuts

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