Documentation ¶
Index ¶
- Constants
- 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 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 StrToByte32(s string) ([32]byte, error)
- func ValidateEthereumAddress(address string) error
- func ValidateMetadata(md banktypes.Metadata) error
- type Contract
- type FxTarget
- type Router
- type TransactionHook
Constants ¶
View Source
const ( Name = "fxcore" AddressPrefix = "fx" DefaultDenom = "FX" DenomUnit = 18 )
View Source
const ( EmptyEvmAddress = "0x0000000000000000000000000000000000000000" FIP20LogicAddress = "0x0000000000000000000000000000000000001001" WFXLogicAddress = "0x0000000000000000000000000000000000001002" )
View Source
const ( // EthereumContractAddressLen is the length of contract address strings EthereumContractAddressLen = 42 // EthereumAddressPrefix is the address prefix address EthereumAddressPrefix = "0x" )
View Source
const ( // BypassMinFeeMsgTypesKey defines the configuration key for the // BypassMinFeeMsgTypes value. // nolint: gosec BypassMinFeeMsgTypesKey = "bypass-min-fee.msg-types" BypassMinFeeMsgMaxGasUsageKey = "bypass-min-fee.msg-max-gas-usage" )
View Source
const ( LegacyERC20Target = "module/evm" ERC20Target = "erc20" GravityTarget = "gravity" EthTarget = "eth" LegacyChainPrefix = "chain/" IBCPrefix = "ibc/" )
View Source
const (
MainnetChainId = "fxcore"
)
mainnet
View Source
const (
TestnetChainId = "dhobyghaut"
)
testnet
Variables ¶
This section is empty.
Functions ¶
func Byte32ToString ¶
func ChainIdWithEIP155 ¶
func ChainIdWithEIP155() string
func EIP155ChainID ¶
func GetCrossChainMetadata ¶
func GetDefaultNodeHome ¶
func GetDefaultNodeHome() string
func GetFXMetaData ¶
func GetIbcDenomTrace ¶
func GetIbcDenomTrace(denom string, channelIBC string) (ibctransfertypes.DenomTrace, error)
func IsEmptyHash ¶
IsEmptyHash returns true if the hash corresponds to an empty ethereum hex hash.
func IsZeroEthereumAddress ¶
IsZeroEthereumAddress returns true if the address corresponds to an empty ethereum hex address.
func MustABIJson ¶
func MustDecodeHex ¶
func MustStrToByte32 ¶
func SetChainId ¶
func SetChainId(id string)
func StrToByte32 ¶
func ValidateEthereumAddress ¶
ValidateEthereumAddress validates the ethereum address strings
func ValidateMetadata ¶
Types ¶
type Contract ¶
func GetERC1967Proxy ¶
func GetERC1967Proxy() Contract
type FxTarget ¶
type FxTarget struct { Prefix string SourcePort string SourceChannel string // contains filtered or unexported fields }
func ParseFxTarget ¶
func (FxTarget) IBCValidate ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.