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
38d5af99
Commit
38d5af99
authored
Oct 11, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bindings + lint
parent
c096f785
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
IBigStepper.sol
.../contracts-bedrock/src/dispute/interfaces/IBigStepper.sol
+7
-1
PreimageOracle.t.sol
packages/contracts-bedrock/test/PreimageOracle.t.sol
+1
-4
No files found.
packages/contracts-bedrock/src/dispute/interfaces/IBigStepper.sol
View file @
38d5af99
...
@@ -32,7 +32,13 @@ interface IBigStepper {
...
@@ -32,7 +32,13 @@ interface IBigStepper {
/// @param _localContext The local key context for the preimage oracle. Optional, can be set as a constant
/// @param _localContext The local key context for the preimage oracle. Optional, can be set as a constant
/// if the caller only requires one set of local keys.
/// if the caller only requires one set of local keys.
/// @return postState_ The poststate hash after the instruction step.
/// @return postState_ The poststate hash after the instruction step.
function step(bytes calldata _stateData, bytes calldata _proof, uint256 _localContext) external returns (bytes32 postState_);
function step(
bytes calldata _stateData,
bytes calldata _proof,
uint256 _localContext
)
external
returns (bytes32 postState_);
/// @notice Returns the preimage oracle used by the stepper.
/// @notice Returns the preimage oracle used by the stepper.
function oracle() external view returns (IPreimageOracle oracle_);
function oracle() external view returns (IPreimageOracle oracle_);
...
...
packages/contracts-bedrock/test/PreimageOracle.t.sol
View file @
38d5af99
...
@@ -55,10 +55,7 @@ contract PreimageOracle_Test is Test {
...
@@ -55,10 +55,7 @@ contract PreimageOracle_Test is Test {
uint8 partOffset = 0;
uint8 partOffset = 0;
// Form the words we'll be storing
// Form the words we'll be storing
bytes32[2] memory words = [
bytes32[2] memory words = [bytes32(uint256(0xdeadbeef) << 224), bytes32(uint256(0xbeefbabe) << 224)];
bytes32(uint256(0xdeadbeef) << 224),
bytes32(uint256(0xbeefbabe) << 224)
];
for (uint256 i; i < words.length; i++) {
for (uint256 i; i < words.length; i++) {
// Load the local data into the preimage oracle under the test contract's context
// Load the local data into the preimage oracle under the test contract's context
...
...
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