evm

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAssetContract

func InitAssetContract(asset string, evmClient *evm.Client) (*wtoken.Wtoken, error)

func NativeToWrappedAsset

func NativeToWrappedAsset(assetsService service.Assets, sourceChain, targetChain uint64, nativeAsset string) (string, error)

func RouterAndEVMTokenClientsFromEVMUtils

func RouterAndEVMTokenClientsFromEVMUtils(evmUtils map[uint64]Utils) (
	routerClients map[uint64]client.DiamondRouter,
	evmFungibleTokenClients map[uint64]map[string]client.EvmFungibleToken,
	evmNftClients map[uint64]map[string]client.EvmNft,
)

Types

type Utils

type Utils struct {
	EVMClient               *evm.Client
	EVMFungibleTokenClients map[string]client.EvmFungibleToken
	EVMNftClients           map[string]client.EvmNft
	RouterContract          *router.Router
	KeyTransactor           *bind.TransactOpts
	Signer                  *evm_signer.Signer
	Receiver                common.Address
	RouterAddress           common.Address
	WTokenContractAddress   string
}

Jump to

Keyboard shortcuts

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