Documentation ¶
Index ¶
- Constants
- func GetArtelaAddressFromBech32(address string) (sdk.AccAddress, error)
- func IsCustomizedVerification(tx *ethereum.Transaction) bool
- func IsDevnet(chainID string) bool
- func IsLocal(chainID string) bool
- func IsMainnet(chainID string) bool
- func IsSupportedKey(pubkey cryptotypes.PubKey) bool
- func IsTestnet(chainID string) bool
Constants ¶
View Source
const ( // MainnetChainID defines the Artela EIP155 chain ID for mainnet MainnetChainID = "artela_11821" // TestnetChainID defines the Artela EIP155 chain ID for testnet TestnetChainID = "artela_11822" DevnetChainID = "artela_11823" LocalChainID = "artela_11820" // BaseDenom defines the Artela mainnet denomination BaseDenom = "uart" )
Variables ¶
This section is empty.
Functions ¶
func GetArtelaAddressFromBech32 ¶
func GetArtelaAddressFromBech32(address string) (sdk.AccAddress, error)
GetArtelaAddressFromBech32 returns the sdk.Account address of given address, while also changing bech32 human readable prefix (HRP) to the value set on the global sdk.Config (eg: `artela`). The function fails if the provided bech32 address is invalid.
func IsCustomizedVerification ¶
func IsCustomizedVerification(tx *ethereum.Transaction) bool
func IsSupportedKey ¶
func IsSupportedKey(pubkey cryptotypes.PubKey) bool
IsSupportedKey returns true if the pubkey type is supported by the chain (i.e eth_secp256k1, amino multisig, ed25519). NOTE: Nested multisigs are not supported.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.