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
6020e6b7
Commit
6020e6b7
authored
Jul 27, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: rebase
parent
af78ef3f
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
15 deletions
+18
-15
alphabetvm_more.go
op-bindings/bindings/alphabetvm_more.go
+1
-1
faultdisputegame_more.go
op-bindings/bindings/faultdisputegame_more.go
+1
-1
mips_more.go
op-bindings/bindings/mips_more.go
+1
-1
preimageoracle_more.go
op-bindings/bindings/preimageoracle_more.go
+1
-1
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+3
-0
FaultDisputeGame.t.sol
packages/contracts-bedrock/test/FaultDisputeGame.t.sol
+9
-9
PreimageOracle.t.sol
packages/contracts-bedrock/test/PreimageOracle.t.sol
+2
-2
No files found.
op-bindings/bindings/alphabetvm_more.go
View file @
6020e6b7
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/solc"
"github.com/ethereum-optimism/optimism/op-bindings/solc"
)
)
const
AlphabetVMStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
contracts/
test/FaultDisputeGame.t.sol:AlphabetVM
\"
,
\"
label
\"
:
\"
oracle
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_contract(IPreimageOracle)1001
\"
}],
\"
types
\"
:{
\"
t_contract(IPreimageOracle)1001
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
contract IPreimageOracle
\"
,
\"
numberOfBytes
\"
:
\"
20
\"
}}}"
const
AlphabetVMStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
test/FaultDisputeGame.t.sol:AlphabetVM
\"
,
\"
label
\"
:
\"
oracle
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_contract(IPreimageOracle)1001
\"
}],
\"
types
\"
:{
\"
t_contract(IPreimageOracle)1001
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
contract IPreimageOracle
\"
,
\"
numberOfBytes
\"
:
\"
20
\"
}}}"
var
AlphabetVMStorageLayout
=
new
(
solc
.
StorageLayout
)
var
AlphabetVMStorageLayout
=
new
(
solc
.
StorageLayout
)
...
...
op-bindings/bindings/faultdisputegame_more.go
View file @
6020e6b7
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/solc"
"github.com/ethereum-optimism/optimism/op-bindings/solc"
)
)
const
FaultDisputeGameStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
contracts/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
gameStart
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_userDefinedValueType(Timestamp)1014
\"
},{
\"
astId
\"
:1001,
\"
contract
\"
:
\"
contracts/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
status
\"
,
\"
offset
\"
:8,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_enum(GameStatus)1007
\"
},{
\"
astId
\"
:1002,
\"
contract
\"
:
\"
contracts/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
bondManager
\"
,
\"
offset
\"
:9,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_contract(IBondManager)1006
\"
},{
\"
astId
\"
:1003,
\"
contract
\"
:
\"
contracts/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
l1Head
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
1
\"
,
\"
type
\"
:
\"
t_userDefinedValueType(Hash)1012
\"
},{
\"
astId
\"
:1004,
\"
contract
\"
:
\"
contracts/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
claimData
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
2
\"
,
\"
type
\"
:
\"
t_array(t_struct(ClaimData)1008_storage)dyn_storage
\"
},{
\"
astId
\"
:1005,
\"
contract
\"
:
\"
contracts
/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
claims
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
3
\"
,
\"
type
\"
:
\"
t_mapping(t_userDefinedValueType(ClaimHash)1010,t_bool)
\"
}],
\"
types
\"
:{
\"
t_array(t_struct(ClaimData)1008_storage)dyn_storage
\"
:{
\"
encoding
\"
:
\"
dynamic_array
\"
,
\"
label
\"
:
\"
struct IFaultDisputeGame.ClaimData[]
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
,
\"
base
\"
:
\"
t_struct(ClaimData)1008_storage
\"
},
\"
t_bool
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
bool
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
},
\"
t_contract(IBondManager)1006
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
contract IBondManager
\"
,
\"
numberOfBytes
\"
:
\"
20
\"
},
\"
t_enum(GameStatus)1007
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
enum GameStatus
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
},
\"
t_mapping(t_userDefinedValueType(ClaimHash)1010,t_bool)
\"
:{
\"
encoding
\"
:
\"
mapping
\"
,
\"
label
\"
:
\"
mapping(ClaimHash =
\u003e
bool)
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
,
\"
key
\"
:
\"
t_userDefinedValueType(ClaimHash)1010
\"
,
\"
value
\"
:
\"
t_bool
\"
},
\"
t_struct(ClaimData)1008_storage
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
struct IFaultDisputeGame.ClaimData
\"
,
\"
numberOfBytes
\"
:
\"
96
\"
},
\"
t_uint32
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint32
\"
,
\"
numberOfBytes
\"
:
\"
4
\"
},
\"
t_userDefinedValueType(Claim)1009
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Claim
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(ClaimHash)1010
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
ClaimHash
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(Clock)1011
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Clock
\"
,
\"
numberOfBytes
\"
:
\"
16
\"
},
\"
t_userDefinedValueType(Hash)1012
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Hash
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(Position)1013
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Position
\"
,
\"
numberOfBytes
\"
:
\"
16
\"
},
\"
t_userDefinedValueType(Timestamp)1014
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Timestamp
\"
,
\"
numberOfBytes
\"
:
\"
8
\"
}}}"
const
FaultDisputeGameStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
src/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
gameStart
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_userDefinedValueType(Timestamp)1014
\"
},{
\"
astId
\"
:1001,
\"
contract
\"
:
\"
src/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
status
\"
,
\"
offset
\"
:8,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_enum(GameStatus)1007
\"
},{
\"
astId
\"
:1002,
\"
contract
\"
:
\"
src/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
bondManager
\"
,
\"
offset
\"
:9,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_contract(IBondManager)1006
\"
},{
\"
astId
\"
:1003,
\"
contract
\"
:
\"
src/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
l1Head
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
1
\"
,
\"
type
\"
:
\"
t_userDefinedValueType(Hash)1012
\"
},{
\"
astId
\"
:1004,
\"
contract
\"
:
\"
src/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
claimData
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
2
\"
,
\"
type
\"
:
\"
t_array(t_struct(ClaimData)1008_storage)dyn_storage
\"
},{
\"
astId
\"
:1005,
\"
contract
\"
:
\"
src
/dispute/FaultDisputeGame.sol:FaultDisputeGame
\"
,
\"
label
\"
:
\"
claims
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
3
\"
,
\"
type
\"
:
\"
t_mapping(t_userDefinedValueType(ClaimHash)1010,t_bool)
\"
}],
\"
types
\"
:{
\"
t_array(t_struct(ClaimData)1008_storage)dyn_storage
\"
:{
\"
encoding
\"
:
\"
dynamic_array
\"
,
\"
label
\"
:
\"
struct IFaultDisputeGame.ClaimData[]
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
,
\"
base
\"
:
\"
t_struct(ClaimData)1008_storage
\"
},
\"
t_bool
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
bool
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
},
\"
t_contract(IBondManager)1006
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
contract IBondManager
\"
,
\"
numberOfBytes
\"
:
\"
20
\"
},
\"
t_enum(GameStatus)1007
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
enum GameStatus
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
},
\"
t_mapping(t_userDefinedValueType(ClaimHash)1010,t_bool)
\"
:{
\"
encoding
\"
:
\"
mapping
\"
,
\"
label
\"
:
\"
mapping(ClaimHash =
\u003e
bool)
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
,
\"
key
\"
:
\"
t_userDefinedValueType(ClaimHash)1010
\"
,
\"
value
\"
:
\"
t_bool
\"
},
\"
t_struct(ClaimData)1008_storage
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
struct IFaultDisputeGame.ClaimData
\"
,
\"
numberOfBytes
\"
:
\"
96
\"
},
\"
t_uint32
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint32
\"
,
\"
numberOfBytes
\"
:
\"
4
\"
},
\"
t_userDefinedValueType(Claim)1009
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Claim
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(ClaimHash)1010
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
ClaimHash
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(Clock)1011
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Clock
\"
,
\"
numberOfBytes
\"
:
\"
16
\"
},
\"
t_userDefinedValueType(Hash)1012
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Hash
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(Position)1013
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Position
\"
,
\"
numberOfBytes
\"
:
\"
16
\"
},
\"
t_userDefinedValueType(Timestamp)1014
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Timestamp
\"
,
\"
numberOfBytes
\"
:
\"
8
\"
}}}"
var
FaultDisputeGameStorageLayout
=
new
(
solc
.
StorageLayout
)
var
FaultDisputeGameStorageLayout
=
new
(
solc
.
StorageLayout
)
...
...
op-bindings/bindings/mips_more.go
View file @
6020e6b7
This diff is collapsed.
Click to expand it.
op-bindings/bindings/preimageoracle_more.go
View file @
6020e6b7
...
@@ -15,7 +15,7 @@ var PreimageOracleStorageLayout = new(solc.StorageLayout)
...
@@ -15,7 +15,7 @@ var PreimageOracleStorageLayout = new(solc.StorageLayout)
var
PreimageOracleDeployedBin
=
"0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063e03110e11161005b578063e03110e11461011d578063e159261114610159578063fe4ac08e146101d2578063fef2b4ed146102015761007d565b806361238bde146100825780638542cf50146100b75780639a1f5e7f146100ee575b600080fd5b6100a56004803603604081101561009857600080fd5b508035906020013561021e565b60408051918252519081900360200190f35b6100da600480360360408110156100cd57600080fd5b508035906020013561023b565b604080519115158252519081900360200190f35b6100a56004803603608081101561010457600080fd5b508035906020810135906040810135906060013561025b565b6101406004803603604081101561013357600080fd5b5080359060200135610346565b6040805192835260208301919091528051918290030190f35b6101d06004803603604081101561016f57600080fd5b8135919081019060408101602082013564010000000081111561019157600080fd5b8201836020820111156101a357600080fd5b803590602001918460018302840111640100000000831117156101c557600080fd5b509092509050610419565b005b6101d0600480360360808110156101e857600080fd5b5080359060208101359060408101359060600135610519565b6100a56004803603602081101561021757600080fd5b5035610580565b600160209081526000928352604080842090915290825290205481565b600260209081526000928352604080842090915290825290205460ff1681565b600061026685610592565b9050826008018211806102795750602083115b156102cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806106396021913960400191505060405180910390fd5b6000602081815260c085901b82526008959095528251828252600286526040808320858452875280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915584845287528083209483529386528382205581815293849052922055919050565b6000828152600260209081526040808320848452909152812054819060ff166103d057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f7072652d696d616765206d757374206578697374000000000000000000000000604482015290519081900360640190fd5b506000838152602081815260409091205460088101848301106103f65783816008010391505b506000938452600160209081526040808620948652939052919092205492909150565b6044356000806008830186111561042f57600080fd5b60c083901b6080526088838682378087017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80151908490207effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f02000000000000000000000000000000000000000000000000000000000000001760008181526002602090815260408083208b8452825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915584845282528083209a83529981528982209390935590815290819052959095209190915550505050565b6000838152600260209081526040808320878452825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558684528252808320968352958152858220939093559283529082905291902055565b60006020819052908152604090205481565b7f01000000000000000000000000000000000000000000000000000000000000007effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8216176105df816105e5565b92915050565b600090815233602052604090207effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f0100000000000000000000000000000000000000000000000000000000000000179056fe70617274206f6666736574206d7573742062652077697468696e20626f756e6473a164736f6c6343000706000a"
var
PreimageOracleDeployedBin
=
"0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063e03110e11161005b578063e03110e11461011d578063e159261114610159578063fe4ac08e146101d2578063fef2b4ed146102015761007d565b806361238bde146100825780638542cf50146100b75780639a1f5e7f146100ee575b600080fd5b6100a56004803603604081101561009857600080fd5b508035906020013561021e565b60408051918252519081900360200190f35b6100da600480360360408110156100cd57600080fd5b508035906020013561023b565b604080519115158252519081900360200190f35b6100a56004803603608081101561010457600080fd5b508035906020810135906040810135906060013561025b565b6101406004803603604081101561013357600080fd5b5080359060200135610346565b6040805192835260208301919091528051918290030190f35b6101d06004803603604081101561016f57600080fd5b8135919081019060408101602082013564010000000081111561019157600080fd5b8201836020820111156101a357600080fd5b803590602001918460018302840111640100000000831117156101c557600080fd5b509092509050610419565b005b6101d0600480360360808110156101e857600080fd5b5080359060208101359060408101359060600135610519565b6100a56004803603602081101561021757600080fd5b5035610580565b600160209081526000928352604080842090915290825290205481565b600260209081526000928352604080842090915290825290205460ff1681565b600061026685610592565b9050826008018211806102795750602083115b156102cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806106396021913960400191505060405180910390fd5b6000602081815260c085901b82526008959095528251828252600286526040808320858452875280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915584845287528083209483529386528382205581815293849052922055919050565b6000828152600260209081526040808320848452909152812054819060ff166103d057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f7072652d696d616765206d757374206578697374000000000000000000000000604482015290519081900360640190fd5b506000838152602081815260409091205460088101848301106103f65783816008010391505b506000938452600160209081526040808620948652939052919092205492909150565b6044356000806008830186111561042f57600080fd5b60c083901b6080526088838682378087017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80151908490207effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f02000000000000000000000000000000000000000000000000000000000000001760008181526002602090815260408083208b8452825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915584845282528083209a83529981528982209390935590815290819052959095209190915550505050565b6000838152600260209081526040808320878452825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558684528252808320968352958152858220939093559283529082905291902055565b60006020819052908152604090205481565b7f01000000000000000000000000000000000000000000000000000000000000007effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8216176105df816105e5565b92915050565b600090815233602052604090207effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f0100000000000000000000000000000000000000000000000000000000000000179056fe70617274206f6666736574206d7573742062652077697468696e20626f756e6473a164736f6c6343000706000a"
var
PreimageOracleDeployedSourceMap
=
"198:6042:1
7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;410:68;;;;;;;;;;;;;;;;-1:-1:-1;410:68:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;553:66;;;;;;;;;;;;;;;;-1:-1:-1;553:66:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3319:1166;;;;;;;;;;;;;;;;-1:-1:-1;3319:1166:17;;;;;;;;;;;;;;;;;:::i;890:564::-;;;;;;;;;;;;;;;;-1:-1:-1;890:564:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;4776:1462;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4776:1462:17;;-1:-1:-1;4776:1462:17;-1:-1:-1;4776:1462:17;:::i;:::-;;1801:262;;;;;;;;;;;;;;;;-1:-1:-1;1801:262:17;;;;;;;;;;;;;;;;;:::i;292:50::-;;;;;;;;;;;;;;;;-1:-1:-1;292:50:17;;:::i;410:68::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;553:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3319:1166::-;3465:12;3566:36;3595:6;3566:28;:36::i;:::-;3559:43;;3696:5;3704:1;3696:9;3682:11;:23;:37;;;;3717:2;3709:5;:10;3682:37;3678:111;;;3735:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3678:111;3858:12;3958:4;3951:18;;;4059:3;4055:15;;;4042:29;;4091:4;4084:19;;;;4193:18;;4283:20;;;:14;:20;;;;;;:33;;;;;;;;:40;;;;4319:4;4283:40;;;;;;4333:19;;;;;;;;:32;;;;;;;;;:39;4449:21;;;;;;;;;:29;4298:4;3319:1166;-1:-1:-1;3319:1166:17:o;890:564::-;990:12;1043:20;;;:14;:20;;;;;;;;:29;;;;;;;;;990:12;;1043:29;;1035:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1228:14:17;1245:21;;;1216:2;1245:21;;;;;;;;1305:1;1296:10;;1280:12;;;:26;1276:87;;1345:7;1332:6;1341:1;1332:10;:20;1322:30;;1276:87;-1:-1:-1;1419:19:17;;;;:13;:19;;;;;;;;:28;;;;;;;;;;;;890:564;;-1:-1:-1;890:564:17:o;4776:1462::-;5072:4;5059:18;4877:12;;5201:1;5191:12;;5175:29;;5172:2;;;5233:1;5230;5223:12;5172:2;5492:3;5488:14;;;5392:4;5476:27;5523:11;5497:4;5642:16;5523:11;5624:41;5855:29;;;5859:11;5855:29;5849:36;5907:20;;;;6054:19;6047:27;6076:11;6044:44;6107:19;;;;6085:1;6107:19;;;;;;;;:32;;;;;;;;:39;;;;6142:4;6107:39;;;;;;6156:18;;;;;;;;:31;;;;;;;;;:38;;;;6204:20;;;;;;;;;;;:27;;;;-1:-1:-1;;;;4776:1462:17:o;1801:262::-;1934:19;;;;:14;:19;;;;;;;;:31;;;;;;;;:38;;;;1968:4;1934:38;;;;;;1982:18;;;;;;;;:30;;;;;;;;;:37;;;;2029:20;;;;;;;;;;:27;1801:262::o;292:50::-;;;;;;;;;;;;;;:::o;492:353:16:-;752:11;777:19;765:32;;749:49;824:14;749:49;824:8;:14::i;:::-;817:21;492:353;-1:-1:-1;;492:353:16
:o;1222:430::-;1277:21;1426:15;;;1467:8;1461:4;1454:22;1595:4;1582:18;;1602:19;1578:44;1624:11;1575:61;;1319:327::o"
var
PreimageOracleDeployedSourceMap
=
"198:6042:1
9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;410:68;;;;;;;;;;;;;;;;-1:-1:-1;410:68:19;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;553:66;;;;;;;;;;;;;;;;-1:-1:-1;553:66:19;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3319:1166;;;;;;;;;;;;;;;;-1:-1:-1;3319:1166:19;;;;;;;;;;;;;;;;;:::i;890:564::-;;;;;;;;;;;;;;;;-1:-1:-1;890:564:19;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;4776:1462;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4776:1462:19;;-1:-1:-1;4776:1462:19;-1:-1:-1;4776:1462:19;:::i;:::-;;1801:262;;;;;;;;;;;;;;;;-1:-1:-1;1801:262:19;;;;;;;;;;;;;;;;;:::i;292:50::-;;;;;;;;;;;;;;;;-1:-1:-1;292:50:19;;:::i;410:68::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;553:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3319:1166::-;3465:12;3566:36;3595:6;3566:28;:36::i;:::-;3559:43;;3696:5;3704:1;3696:9;3682:11;:23;:37;;;;3717:2;3709:5;:10;3682:37;3678:111;;;3735:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3678:111;3858:12;3958:4;3951:18;;;4059:3;4055:15;;;4042:29;;4091:4;4084:19;;;;4193:18;;4283:20;;;:14;:20;;;;;;:33;;;;;;;;:40;;;;4319:4;4283:40;;;;;;4333:19;;;;;;;;:32;;;;;;;;;:39;4449:21;;;;;;;;;:29;4298:4;3319:1166;-1:-1:-1;3319:1166:19:o;890:564::-;990:12;1043:20;;;:14;:20;;;;;;;;:29;;;;;;;;;990:12;;1043:29;;1035:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1228:14:19;1245:21;;;1216:2;1245:21;;;;;;;;1305:1;1296:10;;1280:12;;;:26;1276:87;;1345:7;1332:6;1341:1;1332:10;:20;1322:30;;1276:87;-1:-1:-1;1419:19:19;;;;:13;:19;;;;;;;;:28;;;;;;;;;;;;890:564;;-1:-1:-1;890:564:19:o;4776:1462::-;5072:4;5059:18;4877:12;;5201:1;5191:12;;5175:29;;5172:2;;;5233:1;5230;5223:12;5172:2;5492:3;5488:14;;;5392:4;5476:27;5523:11;5497:4;5642:16;5523:11;5624:41;5855:29;;;5859:11;5855:29;5849:36;5907:20;;;;6054:19;6047:27;6076:11;6044:44;6107:19;;;;6085:1;6107:19;;;;;;;;:32;;;;;;;;:39;;;;6142:4;6107:39;;;;;;6156:18;;;;;;;;:31;;;;;;;;;:38;;;;6204:20;;;;;;;;;;;:27;;;;-1:-1:-1;;;;4776:1462:19:o;1801:262::-;1934:19;;;;:14;:19;;;;;;;;:31;;;;;;;;:38;;;;1968:4;1934:38;;;;;;1982:18;;;;;;;;:30;;;;;;;;;:37;;;;2029:20;;;;;;;;;;:27;1801:262::o;292:50::-;;;;;;;;;;;;;;:::o;492:353:18:-;752:11;777:19;765:32;;749:49;824:14;749:49;824:8;:14::i;:::-;817:21;492:353;-1:-1:-1;;492:353:18
:o;1222:430::-;1277:21;1426:15;;;1467:8;1461:4;1454:22;1595:4;1582:18;;1602:19;1578:44;1624:11;1575:61;;1319:327::o"
func
init
()
{
func
init
()
{
if
err
:=
json
.
Unmarshal
([]
byte
(
PreimageOracleStorageLayoutJSON
),
PreimageOracleStorageLayout
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
([]
byte
(
PreimageOracleStorageLayoutJSON
),
PreimageOracleStorageLayout
);
err
!=
nil
{
...
...
packages/contracts-bedrock/.gas-snapshot
View file @
6020e6b7
...
@@ -435,6 +435,8 @@ OptimistTest:test_supportsInterface_returnsCorrectInterfaceForERC721_succeeds()
...
@@ -435,6 +435,8 @@ OptimistTest:test_supportsInterface_returnsCorrectInterfaceForERC721_succeeds()
OptimistTest:test_tokenIdOfAddress_returnsOwnerID_succeeds() (gas: 63730)
OptimistTest:test_tokenIdOfAddress_returnsOwnerID_succeeds() (gas: 63730)
OptimistTest:test_tokenURI_returnsCorrectTokenURI_succeeds() (gas: 195908)
OptimistTest:test_tokenURI_returnsCorrectTokenURI_succeeds() (gas: 195908)
OptimistTest:test_transferFrom_soulbound_reverts() (gas: 75512)
OptimistTest:test_transferFrom_soulbound_reverts() (gas: 75512)
PostSherlockL1:test_script_succeeds() (gas: 3078)
PostSherlockL2:test_script_succeeds() (gas: 3078)
PreimageOracle_Test:test_keccak256PreimageKey_succeeds() (gas: 420)
PreimageOracle_Test:test_keccak256PreimageKey_succeeds() (gas: 420)
PreimageOracle_Test:test_loadKeccak256PreimagePart_outOfBoundsOffset_reverts() (gas: 8864)
PreimageOracle_Test:test_loadKeccak256PreimagePart_outOfBoundsOffset_reverts() (gas: 8864)
PreimageOracle_Test:test_loadKeccak256PreimagePart_succeeds() (gas: 76541)
PreimageOracle_Test:test_loadKeccak256PreimagePart_succeeds() (gas: 76541)
...
@@ -575,3 +577,4 @@ TransactorTest:test_constructor_succeeds() (gas: 9739)
...
@@ -575,3 +577,4 @@ TransactorTest:test_constructor_succeeds() (gas: 9739)
TransactorTest:test_delegateCall_succeeds() (gas: 20909)
TransactorTest:test_delegateCall_succeeds() (gas: 20909)
TransactorTest:test_delegateCall_unauthorized_reverts() (gas: 16550)
TransactorTest:test_delegateCall_unauthorized_reverts() (gas: 16550)
TransferOnionTest:test_constructor_succeeds() (gas: 564855)
TransferOnionTest:test_constructor_succeeds() (gas: 564855)
TransferOnionTest:test_unwrap_succeeds() (gas: 724955)
\ No newline at end of file
packages/contracts-bedrock/test/FaultDisputeGame.t.sol
View file @
6020e6b7
...
@@ -4,15 +4,15 @@ pragma solidity ^0.8.15;
...
@@ -4,15 +4,15 @@ pragma solidity ^0.8.15;
import { Test } from "forge-std/Test.sol";
import { Test } from "forge-std/Test.sol";
import { Vm } from "forge-std/Vm.sol";
import { Vm } from "forge-std/Vm.sol";
import { DisputeGameFactory_Init } from "./DisputeGameFactory.t.sol";
import { DisputeGameFactory_Init } from "./DisputeGameFactory.t.sol";
import { DisputeGameFactory } from "
..
/dispute/DisputeGameFactory.sol";
import { DisputeGameFactory } from "
src
/dispute/DisputeGameFactory.sol";
import { FaultDisputeGame } from "
..
/dispute/FaultDisputeGame.sol";
import { FaultDisputeGame } from "
src
/dispute/FaultDisputeGame.sol";
import { L2OutputOracle } from "
..
/L1/L2OutputOracle.sol";
import { L2OutputOracle } from "
src
/L1/L2OutputOracle.sol";
import "
..
/libraries/DisputeTypes.sol";
import "
src
/libraries/DisputeTypes.sol";
import "
..
/libraries/DisputeErrors.sol";
import "
src
/libraries/DisputeErrors.sol";
import { LibClock } from "
..
/dispute/lib/LibClock.sol";
import { LibClock } from "
src
/dispute/lib/LibClock.sol";
import { LibPosition } from "
..
/dispute/lib/LibPosition.sol";
import { LibPosition } from "
src
/dispute/lib/LibPosition.sol";
import { IBigStepper, IPreimageOracle } from "
..
/dispute/interfaces/IBigStepper.sol";
import { IBigStepper, IPreimageOracle } from "
src
/dispute/interfaces/IBigStepper.sol";
contract FaultDisputeGame_Init is DisputeGameFactory_Init {
contract FaultDisputeGame_Init is DisputeGameFactory_Init {
/// @dev The extra data passed to the game for initialization.
/// @dev The extra data passed to the game for initialization.
...
...
packages/contracts-bedrock/test/PreimageOracle.t.sol
View file @
6020e6b7
...
@@ -4,8 +4,8 @@ pragma abicoder v2;
...
@@ -4,8 +4,8 @@ pragma abicoder v2;
import { Test } from "forge-std/Test.sol";
import { Test } from "forge-std/Test.sol";
import { PreimageOracle } from "
..
/cannon/PreimageOracle.sol";
import { PreimageOracle } from "
src
/cannon/PreimageOracle.sol";
import { PreimageKeyLib } from "
..
/cannon/PreimageKeyLib.sol";
import { PreimageKeyLib } from "
src
/cannon/PreimageKeyLib.sol";
contract PreimageOracle_Test is Test {
contract PreimageOracle_Test is Test {
PreimageOracle oracle;
PreimageOracle oracle;
...
...
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