Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
9a18b8bc
Commit
9a18b8bc
authored
Dec 08, 2021
by
George Hotz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep readme current
parent
bed3eba6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
README.md
README.md
+11
-7
No files found.
README.md
View file @
9a18b8bc
...
@@ -32,36 +32,40 @@ minigeth/go-ethereum 13284469
...
@@ -32,36 +32,40 @@ minigeth/go-ethereum 13284469
# generate MIPS checkpoints for 13284469 -> 13284470
# generate MIPS checkpoints for 13284469 -> 13284470
mipsevm/mipsevm 13284469
mipsevm/mipsevm 13284469
# write out the golden start state and deploy the contracts
mipsevm/mipsevm
npx hardhat run scripts/deploy.js
```
```
## Full Challenge / Response
## Full Challenge / Response
```
```
# testing on hardhat (forked mainnet)
npx hardhat node --fork https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161
npx hardhat node --fork https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161
# testing on hardhat (forked mainnet)
# challenger is pretending the block 10 transition is the transition for 1171895
# challenger is pretending the block 10 transition is the transition for 1171895
# this will conflict at the first step
# this will conflict at the first step
rm -rf /tmp/cannon/*
rm -rf /tmp/cannon/*
mipsevm/mipsevm
mipsevm/mipsevm
npx hardhat run scripts/deploy.js
npx hardhat run scripts/deploy.js
--network hosthat
minigeth/go-ethereum 1171895 && mipsevm/mipsevm 1171895
minigeth/go-ethereum 1171895 && mipsevm/mipsevm 1171895
minigeth/go-ethereum 10 && mipsevm/mipsevm 10
minigeth/go-ethereum 10 && mipsevm/mipsevm 10
BLOCK=1171895 npx hardhat run scripts/challenge.js
BLOCK=1171895 npx hardhat run scripts/challenge.js
--network hosthat
# do binary search
# do binary search
for i in {1..23}
for i in {1..23}
do
do
ID=0 BLOCK=10 CHALLENGER=1 npx hardhat run scripts/respond.js
ID=0 BLOCK=10 CHALLENGER=1 npx hardhat run scripts/respond.js
--network hosthat
ID=0 BLOCK=1171895 npx hardhat run scripts/respond.js
ID=0 BLOCK=1171895 npx hardhat run scripts/respond.js
--network hosthat
done
done
# assert as challenger (fails)
# assert as challenger (fails)
ID=0 BLOCK=10 CHALLENGER=1 npx hardhat run scripts/assert.js
ID=0 BLOCK=10 CHALLENGER=1 npx hardhat run scripts/assert.js
--network hosthat
# assert as defender (passes)
# assert as defender (passes)
ID=0 BLOCK=1171895 npx hardhat run scripts/assert.js
ID=0 BLOCK=1171895 npx hardhat run scripts/assert.js
--network hosthat
```
```
## State Oracle API
## State Oracle API
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment