Versions in this module Expand all Collapse all v5 v5.0.0 Aug 18, 2023 Changes in this version + const AddressPrefix + const CrossChainAddress + const DefaultDenom + const DenomUnit + const ERC20Target + const EmptyEvmAddress + const EnvPrefix + const EthTarget + const EthereumAddressPrefix + const EthereumContractAddressLen + const FIP20LogicAddress + const GravityTarget + const IBCPrefix + const LegacyChainPrefix + const LegacyERC20Target + const MainnetBlockHeightV2 + const MainnetBlockHeightV3 + const MainnetBlockHeightV4 + const MainnetBlockHeightV5 + const MainnetChainId + const MainnetGenesisHash + const Name + const StakingAddress + const TestnetBlockHeightV2 + const TestnetBlockHeightV3 + const TestnetBlockHeightV4 + const TestnetBlockHeightV41 + const TestnetBlockHeightV42 + const TestnetBlockHeightV5 + const TestnetChainId + const TestnetGenesisHash + const WFXLogicAddress + func Byte32ToString(bytes [32]byte) string + func ChainId() string + func ChainIdWithEIP155() string + func EIP155ChainID() *big.Int + func GetCrossChainMetadata(name, symbol string, decimals uint32, aliases ...string) banktypes.Metadata + func GetDefGasPrice() sdk.Coin + func GetDefaultNodeHome() string + func GetFXMetaData(denom string) banktypes.Metadata + func GetIbcDenomTrace(denom string, channelIBC string) (ibctransfertypes.DenomTrace, error) + func IsEmptyHash(hash string) bool + func IsZeroEthereumAddress(address string) bool + func MustABIJson(str string) abi.ABI + func MustDecodeHex(str string) []byte + func MustStrToByte32(str string) [32]byte + func SetChainId(id string) + func SetConfig(isCosmosCoinType bool) + func Sha256Hex(b []byte) string + func StrToByte32(s string) ([32]byte, error) + func ValidateEthereumAddress(address string) error + func ValidateMetadata(md banktypes.Metadata) error + type Contract struct + ABI abi.ABI + Address common.Address + Bin []byte + Code []byte + func GetERC1967Proxy() Contract + func GetFIP20() Contract + func GetWFX() Contract + func (c Contract) CodeHash() common.Hash + type FxTarget struct + Prefix string + SourceChannel string + SourcePort string + func ParseFxTarget(targetStr string) FxTarget + func (i FxTarget) GetTarget() string + func (i FxTarget) IBCValidate() bool + func (i FxTarget) IsIBC() bool + type Router struct + func NewRouter() *Router + func (rtr *Router) AddRoute(module string, hook TransactionHook) *Router + func (rtr *Router) GetRoute(module string) (TransactionHook, bool) + func (rtr *Router) Seal() + func (rtr *Router) Sealed() bool + type TransactionHook interface + PrecompileCancelSendToExternal func(ctx sdk.Context, txID uint64, sender sdk.AccAddress) (sdk.Coin, error) + PrecompileIncreaseBridgeFee func(ctx sdk.Context, txID uint64, sender sdk.AccAddress, addBridgeFee sdk.Coin) error + TransferAfter func(ctx sdk.Context, sender sdk.AccAddress, receive string, coins, fee sdk.Coin, ...) error v5.0.0-rc0 Aug 8, 2023 Other modules containing this package github.com/functionx/fx-core github.com/functionx/fx-core/v2 github.com/functionx/fx-core/v3 github.com/functionx/fx-core/v4 github.com/functionx/fx-core/v6 github.com/functionx/fx-core/v7