mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-03 18:43:46 +00:00
* init * more * more * add L1BlockContainerAddress * finish * add more comments * rename `UsingSVM` to `UsingScroll` * update logic * refactor(rollup): add UsingScroll into ChainConfig * update * update comments * fee=l2fee+l1fee (#221) add l1fee into calc * improve * format note content. * feat(l1Fee): Add l1Fee in trace. (#223) * Add l1fee in trace. * Delete comment. --------- Co-authored-by: maskpp <maskpp266@gmail.com>
27 lines
924 B
Go
27 lines
924 B
Go
package rcfg
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/scroll-tech/go-ethereum/common"
|
|
)
|
|
|
|
// TODO:
|
|
// verify in consensus layer when decentralizing sequencer
|
|
|
|
var (
|
|
// L2MessageQueueAddress is the address of the L2MessageQueue
|
|
// predeploy
|
|
// see contracts/src/L2/predeploys/L2MessageQueue.sol
|
|
L2MessageQueueAddress = common.HexToAddress("0x5300000000000000000000000000000000000000")
|
|
WithdrawTrieRootSlot = common.BigToHash(big.NewInt(0))
|
|
|
|
// L1GasPriceOracleAddress is the address of the L1GasPriceOracle
|
|
// predeploy
|
|
// see scroll-tech/scroll/contracts/src/L2/predeploys/L1GasPriceOracle.sol
|
|
L1GasPriceOracleAddress = common.HexToAddress("0x5300000000000000000000000000000000000002")
|
|
Precision = new(big.Int).SetUint64(1e9)
|
|
L1BaseFeeSlot = common.BigToHash(big.NewInt(1))
|
|
OverheadSlot = common.BigToHash(big.NewInt(2))
|
|
ScalarSlot = common.BigToHash(big.NewInt(3))
|
|
)
|