Documentation
¶
Overview ¶
Copyright Tharsis Labs Ltd.(Evmos) SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
Index ¶
Constants ¶
const RootCodespace = "uptick"
RootCodespace is the codespace for all errors defined in this package
Variables ¶
var (
ErrKeyTypeNotSupported = sdkerrors.Register(RootCodespace, codeKeyTypeNotSupported, "key type 'secp256k1' not supported")
)
errors
Functions ¶
func ConvertAddressCosmos2Evm ¶ added in v0.2.16
func ConvertAddressEvm2Cosmos ¶ added in v0.2.16
func GetUptickAddressFromBech32 ¶
func GetUptickAddressFromBech32(address string) (sdk.AccAddress, error)
GetUptickAddressFromBech32 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: `uptick`). The function fails if the provided bech32 address is invalid.
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 ¶
type GenesisState ¶ added in v0.3.0
type GenesisState map[string]json.RawMessage
GenesisState of the blockchain is represented here as a map of raw json messages key'd by a identifier string. The identifier is used to determine which module genesis information belongs to so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.