-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeboost mode for nitro-testnode #95
base: master
Are you sure you want to change the base?
Conversation
This adds a command for deploying the ExpressLaneAuction contract: docker compose run scripts deploy-express-lane-auction Since the contracts branch with ExpressLaneAuction is not published to NPM this commit adds a way for it to be included from the local workspace into the scripts docker image with the --dev-contracts flag. The bash and docker logic here needs to be cleaned up so that it will use the NPM version when not using the --dev-contracts flag. The commit includes WIP code for initializing the contract.
Open ports and set up auth endpoint correctly on sequencer. Deploy auction contract with l2owner instead of auctioneer accounts (admin account on proxy contract cannot make calls on the proxied-to contract).
The default value in nitro should work.
Changed the recommended nitro branch to |
Even if using an nitro image that doesn't have timeboost enabled yet, nitro will still start after logging an error message. Unavailable modules in HTTP API list unavailable=[timeboost] available="[admin debug web3 eth txpool personal net arb arbdebug arbtrace]"
ReserveSubmissionSeconds represents a period BEFORE the auction closes that the reserve price may be updated for the next round. The previous setting of 45 seconds means that the reserve price could not be updated at all after the round started, coupled with the auction closing period of 15 seconds (round duration is 60 seconds).
Instructions updated for latest nitro |
@@ -6,7 +6,7 @@ NITRO_NODE_VERSION=offchainlabs/nitro-node:v3.2.1-d81324d-dev | |||
BLOCKSCOUT_VERSION=offchainlabs/blockscout:v1.1.0-0e716c8 | |||
|
|||
# This commit matches v2.1.0 release of nitro-contracts, with additional support to set arb owner through upgrade executor | |||
DEFAULT_NITRO_CONTRACTS_VERSION="99c07a7db2fcce75b751c5a2bd4936e898cda065" | |||
DEFAULT_NITRO_CONTRACTS_VERSION="bec7d629c5f4a9dc4ec786e9d6e99734a11d109b" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use this release with timeboost contracts now
DEFAULT_NITRO_CONTRACTS_VERSION="bec7d629c5f4a9dc4ec786e9d6e99734a11d109b" | |
DEFAULT_NITRO_CONTRACTS_VERSION="v2.1.1" |
@@ -6,6 +6,7 @@ | |||
"author": "Offchain Labs, Inc.", | |||
"license": "Apache-2.0", | |||
"dependencies": { | |||
"@arbitrum/nitro-contracts": "^2.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version would have the timeboost contracts and you don't need to do the dev-contract hack
"@arbitrum/nitro-contracts": "^2.1.0", | |
"@arbitrum/nitro-contracts": "^2.1.1", |
This PR adds support for timeboost mode on nitro-testnode. It starts the bid-validator, autonomous auctioneer, deploys the ExpressLaneAuction contract, and starts the sequencer in Timeboost mode.
Since Timeboost is not yet merged into the main nitro or contracts branches, currently you will need to follow the following steps to run nitro-testnode in Timeboost mode. (This will improve once things are merged in.)
yarn build:all
inside this directoryDEFAULT_NITRO_CONTRACTS_VERSION=bec7d629c5f4a9dc4ec786e9d6e99734a11d109b ./test-node.bash --init-force --dev --dev-contracts --l2-timeboost
When starting up, look for the line printing the token and contract address:
You can also find the auction contract and auctioneer address with the following command.
Users alice and bob have been pre-funded with some of the bidding token on L2 and can be used right away.
Commands for sending express lane transactions will be provided in future, see implementation and spec .