Versions in this module Expand all Collapse all v1 v1.4.2 Jun 11, 2025 v1.4.1 Jun 11, 2025 v1.4.0 Jun 2, 2025 Changes in this version + const ETHAddressLen + var DeadAddress = eth.HexToAddress("0xdEAD000000000000000042069420694206942069") + var ErrIntOverflowChains = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthChains = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupChains = fmt.Errorf("proto: unexpected end of group") + var NetWorkType_name = map[int32]string + var NetWorkType_value = map[string]int32 + var NetWork_name = map[int32]string + var NetWork_value = map[string]int32 + var ReceiveStatus_name = map[int32]string + var ReceiveStatus_value = map[string]int32 + var VMType_name = map[int32]string + var VMType_value = map[string]int32 + func ChainIDInChainList(chainID int64, chainList []*Chain) bool + func ConvertRecoverToError(r interface{}) error + func CosmosToEthChainID(chainID string) (int64, error) + func DecodeAddressFromChainID(chainID int64, addr string) ([]byte, error) + func FilterExternalChains(c *Chain) bool + func HashToString(chainID int64, blockHash []byte) (string, error) + func IsEVMChain(chainID int64) bool + func IsEthereumChain(chainID int64) bool + func IsHeaderSupportedEvmChain(chainID int64) bool + func IsPellChain(chainID int64) bool + func ParseAddressAndData(message string) (ethcommon.Address, []byte, error) + func PayToWitnessTaprootScript(rawKey []byte) ([]byte, error) + func StringToHash(chainID int64, hash string) ([]byte, error) + type Address string + var NoAddress Address + func NewAddress(address string) Address + func (addr Address) Equals(addr2 Address) bool + func (addr Address) IsEmpty() bool + func (addr Address) String() string + type AddressSegWit struct + func (a *AddressSegWit) IsForNet(net *chaincfg.Params) bool + func (a *AddressSegWit) ScriptAddress() []byte + func (a *AddressSegWit) String() string + func (a AddressSegWit) EncodeAddress() string + type AddressTaproot struct + func DecodeTaprootAddress(addr string) (*AddressTaproot, error) + func NewAddressTaproot(witnessProg []byte, net *chaincfg.Params) (*AddressTaproot, error) + type Chain struct + Id int64 + Network NetWork + NetworkType NetWorkType + VmType VMType + func BscMainnetChain() Chain + func BscTestnetChain() Chain + func ChainsList() []Chain + func CombineFilterChains(chainLists ...[]Chain) []Chain + func CoreTestNetChain() Chain + func EthChain() Chain + func ExternalChainList() []Chain + func FilterChains(chainList []*Chain, filters ...ChainFilter) []*Chain + func FindChain(filter func(Chain) bool) (Chain, bool) + func FindChains(filter func(Chain) bool) []Chain + func GetChainByChainId(id int64) (Chain, bool) + func GoerliChain() Chain + func GoerliLocalnetChain() Chain + func MumbaiChain() Chain + func PellChainFromChainID(chainID string) (Chain, error) + func PellChainMainnet() Chain + func PellPrivnetChain() Chain + func PellTestnetChain() Chain + func PrivnetChainList() []Chain + func SepoliaChain() Chain + func (*Chain) Descriptor() ([]byte, []int) + func (*Chain) ProtoMessage() + func (c Chain) ChainName() string + func (chain Chain) DecodeAddress(addr string) ([]byte, error) + func (chain Chain) EncodeAddress(b []byte) (string, error) + func (chain Chain) InChainList(chainList []*Chain) bool + func (chain Chain) IsEmpty() bool + func (chain Chain) IsEqual(c Chain) bool + func (chain Chain) IsExternalChain() bool + func (chain Chain) IsPellChain() bool + func (chain Chain) SupportMerkleProof() bool + func (m *Chain) GetId() int64 + func (m *Chain) GetNetwork() NetWork + func (m *Chain) GetNetworkType() NetWorkType + func (m *Chain) GetVmType() VMType + func (m *Chain) Marshal() (dAtA []byte, err error) + func (m *Chain) MarshalTo(dAtA []byte) (int, error) + func (m *Chain) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Chain) Reset() + func (m *Chain) Size() (n int) + func (m *Chain) String() string + func (m *Chain) Unmarshal(dAtA []byte) error + func (m *Chain) XXX_DiscardUnknown() + func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Chain) XXX_Merge(src proto.Message) + func (m *Chain) XXX_Size() int + func (m *Chain) XXX_Unmarshal(b []byte) error + type ChainFilter func(c *Chain) bool + type Chains []Chain + func (chains Chains) Distinct() Chains + func (chains Chains) Has(c Chain) bool + func (chains Chains) Strings() []string + type NetWork int32 + const NetWork_AMOY + const NetWork_ARBITRUM + const NetWork_BAOBAB + const NetWork_BASE + const NetWork_BITLAYER + const NetWork_BSC + const NetWork_BTC + const NetWork_CORE + const NetWork_ETH + const NetWork_GANACHE + const NetWork_GOERLI + const NetWork_MANTLE + const NetWork_MUMBAI + const NetWork_OPTIMISM + const NetWork_PELL + const NetWork_POLYGON + const NetWork_SEPOLIA + func (NetWork) EnumDescriptor() ([]byte, []int) + func (x NetWork) String() string + type NetWorkType int32 + const NetWorkType_DEVNET + const NetWorkType_MAINNET + const NetWorkType_PRIVNET + const NetWorkType_TESTNET + func (NetWorkType) EnumDescriptor() ([]byte, []int) + func (x NetWorkType) String() string + type ReceiveStatus int32 + const ReceiveStatus_CREATED + const ReceiveStatus_FAILED + const ReceiveStatus_SUCCESS + func ReceiveStatusFromString(str string) (ReceiveStatus, error) + func (ReceiveStatus) EnumDescriptor() ([]byte, []int) + func (x ReceiveStatus) String() string + type SigninAlgo string + type VMType int32 + const VMType_EVM + const VMType_NO_VM + const VMType_SVM + func (VMType) EnumDescriptor() ([]byte, []int) + func (x VMType) String() string