Documentation ¶
Index ¶
- func AdaptCosmosTxsToEthTxs(cosmosTxs bfttypes.Txs) (ethtypes.Transactions, error)
- func AdaptNonDepositCosmosTxToEthTx(cosmosTx bfttypes.Tx) *ethtypes.Transaction
- func AdaptPayloadTxsToCosmosTxs(ethTxs []hexutil.Bytes) (bfttypes.Txs, error)
- func GetDepositTxs(txsBytes [][]byte) (ethtypes.Transactions, error)
- func NewChainConfig(chainID *big.Int) *params.ChainConfig
- func ValidForkchoiceUpdateResult(headBlockHash *common.Hash, id *engine.PayloadID) *opeth.ForkchoiceUpdatedResult
- type Application
- type Block
- type ChainID
- type CosmosETHAddress
- type Header
- type PayloadAttributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptCosmosTxsToEthTxs ¶
func AdaptCosmosTxsToEthTxs(cosmosTxs bfttypes.Txs) (ethtypes.Transactions, error)
func AdaptNonDepositCosmosTxToEthTx ¶
func AdaptNonDepositCosmosTxToEthTx(cosmosTx bfttypes.Tx) *ethtypes.Transaction
func AdaptPayloadTxsToCosmosTxs ¶
AdaptPayloadTxsToCosmosTxs assumes the deposit transactions come first.
func GetDepositTxs ¶
func GetDepositTxs(txsBytes [][]byte) (ethtypes.Transactions, error)
func NewChainConfig ¶
func NewChainConfig(chainID *big.Int) *params.ChainConfig
func ValidForkchoiceUpdateResult ¶
func ValidForkchoiceUpdateResult(headBlockHash *common.Hash, id *engine.PayloadID) *opeth.ForkchoiceUpdatedResult
ValidForkchoiceUpdateResult returns a valid ForkchoiceUpdateResult with given head block hash.
Types ¶
type Application ¶
type Application interface { Info(context.Context, *abcitypes.RequestInfo) (*abcitypes.ResponseInfo, error) Query(context.Context, *abcitypes.RequestQuery) (*abcitypes.ResponseQuery, error) CheckTx(context.Context, *abcitypes.RequestCheckTx) (*abcitypes.ResponseCheckTx, error) InitChain(context.Context, *abcitypes.RequestInitChain) (*abcitypes.ResponseInitChain, error) FinalizeBlock(context.Context, *abcitypes.RequestFinalizeBlock) (*abcitypes.ResponseFinalizeBlock, error) Commit(context.Context, *abcitypes.RequestCommit) (*abcitypes.ResponseCommit, error) RollbackToHeight(context.Context, uint64) error }
type Block ¶
func MakeBlock ¶
MakeBlock creates a block and calculates the extrinsic properties on the header (like the block hash).
func NewBlock ¶
NewBlock creates a new block. The header and txs must be non-nil. It performs no other validation.
func SetHeader ¶
SetHeader calculates the extrinsic properties on the header (like the block hash) and resets them. It assumes the block has been created with NewBlock.
func (*Block) ToCometLikeBlock ¶
type CosmosETHAddress ¶ added in v0.1.2
CosmosETHAddress is a Cosmos address packed into an Ethereum address. Only addresses derived from secp256k1 keys can be packed into an Ethereum address. See [ADR-28] for more details.
func PubkeyToCosmosETHAddress ¶ added in v0.1.2
func PubkeyToCosmosETHAddress(pubKey *ecdsa.PublicKey) CosmosETHAddress
PubkeyToCosmosETHAddress converts a secp256k1 public key to a CosmosETHAddress. Passing in a non-secp256k1 key results in undefined behavior.
type Header ¶
type PayloadAttributes ¶
type PayloadAttributes struct { Timestamp uint64 PrevRandao [32]byte SuggestedFeeRecipient common.Address Withdrawals *ethtypes.Withdrawals NoTxPool bool GasLimit uint64 ParentBeaconBlockRoot *common.Hash ParentHash common.Hash Height int64 CosmosTxs bfttypes.Txs // contains filtered or unexported fields }
func (*PayloadAttributes) ID ¶
func (p *PayloadAttributes) ID() *engine.PayloadID
ID returns a PaylodID (a hash) from a PayloadAttributes when it's applied to a head block. Hashing does not conform to go-ethereum/miner/payload_building.go PayloadID is only calculated once, and cached for future calls.
Directories ¶
Path | Synopsis |
---|---|
app
|
|
cmd
|
|
monogen
Module
|
|
gen
|
|
Package opdevnet contains helpers to build and run an OP devnet, including the L1 but excluding the OP execution engine.
|
Package opdevnet contains helpers to build and run an OP devnet, including the L1 but excluding the OP execution engine. |
x
|
|
rollup/testutil
Package testutil is a generated GoMock package.
|
Package testutil is a generated GoMock package. |