evm

package
v0.0.0-...-b2d87a2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 24 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContractAccountToEVMAddress

func ContractAccountToEVMAddress(contractAccount string) (crypto.Address, error)

transfer contract account to evm address

func ContractNameToEVMAddress

func ContractNameToEVMAddress(contractName string) (crypto.Address, error)

transfer contract name to evm address

func DetermineContractAccount

func DetermineContractAccount(account string) bool

Deprecating, use IsContractAccount instead

func DetermineContractName

func DetermineContractName(contractName string) error

Deprecating if error of incorrect name is needed, use `contract.ValidContractName` otherwise, use IsContractName

func DetermineContractNameFromEVM

func DetermineContractNameFromEVM(evmAddr crypto.Address) (string, error)

determine whether it is a contract name

func DetermineEVMAddress

func DetermineEVMAddress(evmAddr crypto.Address) (string, string, error)

determine an EVM address

func DetermineXchainAddress

func DetermineXchainAddress(xAddr string) (string, string, error)

determine an xchain address

func EVMAddressToContractAccount

func EVMAddressToContractAccount(evmAddr crypto.Address) (string, error)

transfer evm address to contract account

func EVMAddressToContractAccountWithoutPrefixAndSuffix

func EVMAddressToContractAccountWithoutPrefixAndSuffix(evmAddr crypto.Address) (string, error)

返回的合约账户不包括前缀XC和后缀@xuper(或其他链名)

func EVMAddressToContractName

func EVMAddressToContractName(evmAddr crypto.Address) (string, error)

transfer evm address to contract name

func EVMAddressToXchain

func EVMAddressToXchain(evmAddress crypto.Address) (string, error)

transfer evm address to xchain address

func IsContractAccount

func IsContractAccount(account string) bool

IsContractAccount returns true for a contract account

func IsContractName

func IsContractName(contractName string) bool

IsContractName determine whether it is a contract name

func XchainToEVMAddress

func XchainToEVMAddress(addr string) (crypto.Address, error)

transfer xchain address to evm address

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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