types

package
v0.0.0-...-81c3603 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeKeyL1DepositTxType   = "l1_deposit_tx_type"
	AttributeKeyBridgedTokenType  = "bridged_token_type"
	AttributeKeyFromEvmAddress    = "from_evm_address"
	AttributeKeyToEvmAddress      = "to_evm_address"
	AttributeKeyFromCosmosAddress = "from_cosmos_address"
	AttributeKeyToCosmosAddress   = "to_cosmos_address"
	AttributeKeyAmount            = "amount"

	L1SystemDepositTxType = "l1_system_deposit"
	L1UserDepositTxType   = "l1_user_deposit"

	EventTypeMintETH = "mint_eth"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "rollup"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_rollup"
)
View Source
const (
	// wrapped Ethers; cannonically bridged from Ethereum
	ETH        = "ETH"
	MintModule = "mint"
	// KeyL1BlockInfo is the key for the L1BlockInfo
	KeyL1BlockInfo = "L1BlockInfo"
)

Variables

View Source
var (
	ErrInvalidL1Txs = registerErr("invalid L1 txs")
	ErrMintETH      = registerErr("failed to mint ETH")
	ErrL1BlockInfo  = registerErr("L1 block info")
)
View Source
var WrapError = sdkerrors.Wrapf

WrapError wraps an Cosmos-SDK error with extra message while keeping the stack trace at where this func is called.

Functions

func AdaptCosmosTxsToEthTxs

func AdaptCosmosTxsToEthTxs(cosmosTxs bfttypes.Txs) (ethtypes.Transactions, error)

func AdaptPayloadTxsToCosmosTxs

func AdaptPayloadTxsToCosmosTxs(ethTxs []hexutil.Bytes) (bfttypes.Txs, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL