Documentation ¶
Index ¶
- func ContractAccountToEVMAddress(contractAccount string) (crypto.Address, error)
- func ContractNameToEVMAddress(contractName string) (crypto.Address, error)
- func DetermineContractAccount(account string) bool
- func DetermineContractName(contractName string) error
- func DetermineContractNameFromEVM(evmAddr crypto.Address) (string, error)
- func DetermineEVMAddress(evmAddr crypto.Address) (string, string, error)
- func DetermineXchainAddress(xAddr string) (string, string, error)
- func EVMAddressToContractAccount(evmAddr crypto.Address) (string, error)
- func EVMAddressToContractAccountWithoutPrefixAndSuffix(evmAddr crypto.Address) (string, error)
- func EVMAddressToContractName(evmAddr crypto.Address) (string, error)
- func EVMAddressToXchain(evmAddress crypto.Address) (string, error)
- func IsContractAccount(account string) bool
- func IsContractName(contractName string) bool
- func XchainToEVMAddress(addr string) (crypto.Address, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractAccountToEVMAddress ¶
transfer contract account to evm address
func ContractNameToEVMAddress ¶
transfer contract name to evm address
func DetermineContractAccount ¶
Deprecating, use IsContractAccount instead
func DetermineContractName ¶
Deprecating if error of incorrect name is needed, use `contract.ValidContractName` otherwise, use IsContractName
func DetermineContractNameFromEVM ¶
determine whether it is a contract name
func DetermineEVMAddress ¶
determine an EVM address
func DetermineXchainAddress ¶
determine an xchain address
func EVMAddressToContractAccount ¶
transfer evm address to contract account
func EVMAddressToContractAccountWithoutPrefixAndSuffix ¶
返回的合约账户不包括前缀XC和后缀@xuper(或其他链名)
func EVMAddressToContractName ¶
transfer evm address to contract name
func EVMAddressToXchain ¶
transfer evm address to xchain address
func IsContractAccount ¶
IsContractAccount returns true for a contract account
func IsContractName ¶
IsContractName determine whether it is a contract name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.