-
Notifications
You must be signed in to change notification settings - Fork 174
feat(CHAIN-3336): add Rust bindings and reorganize bindings directory #200
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
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ea588ff
feat(CHAIN-3293) Migrate Multiproof Contracts to base/contracts (#196)
jjtny1 a176098
setImplementation calls in dev deploy scripts to pass required args p…
leopoldjoy 0ed5c6e
feat(CHAIN-3446): add signer enumeration to SystemConfigGlobal (#204)
leopoldjoy 0e6419b
Simplify and modularize aggregate verifier + verifiers (#201)
roger-bai-coinbase 88ac6bd
Rename SystemConfigGlobal to TEEProverRegistry (#205)
leopoldjoy b6c4689
Add custom NitroEnclaveVerifier contract and update multiproof contra…
roger-bai-coinbase ad8e096
feat: add FlashblockIndex contract
xenoliss ca8553c
refactor: make FlashblockIndex upgradeable and emit FlashblockIndexUp…
xenoliss a0a7b8c
feat: setup rust bindings crate
xenoliss 9d223e5
refactor: move bindings into bindings/go and bindings/rust
xenoliss 364e9ce
chore: strip binding artifacts and add justfile recipes for bindings
xenoliss de2e8ee
chore: update semver-lock snapshot
xenoliss 6097477
fix: use robust PascalCase to snake_case conversion in bindings-add
xenoliss 5ee149c
chore: remove Cargo.lock from library crate
xenoliss cc50730
chore: add CI step to verify Rust bindings compile
xenoliss a460315
chore: minor change + cleaning
xenoliss 6dcf6aa
chore: remove FlashblockIndex contract
xenoliss 7f575f7
chore: regenerate snapshots
xenoliss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| module github.com/base/contracts/bindings | ||
| module github.com/base/contracts/bindings/go | ||
|
|
||
| go 1.23.0 | ||
|
|
||
|
|
||
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| [package] | ||
| name = "base-contracts-bindings" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [dependencies] | ||
| alloy-contract = "1.5.0" | ||
jackchuma marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| alloy-sol-types = { version = "1.5.0", features = ["json"] } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"TEEProverRegistry":"0x8897f8E1379C7548caE146e0ee26f6b1108A8570","TEEVerifier":"0xB319EA8fAac05BB01ABcce3671BC66c5A1f9A077","DisputeGameFactory":"0xF2e2f5F97e1aE0899924bE4Dd1D1795052Ea7551","AnchorStateRegistry":"0x59C17E560057A1cF2327E6Be35b070E46e4EC8b4","DelayedWETH":"0xD455276eF429eE495d91567BF3e78066bdfAc2b8","AggregateVerifier":"0x3EE78cfac34D7Cbe49D35B901B354272d2084951"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity 0.8.15; | ||
|
|
||
| interface IVerifier { | ||
| /// @notice Verifies a proof. | ||
| /// @param proofBytes The proof. | ||
| /// @param imageId The image ID. | ||
| /// @param journal The journal. | ||
| /// @return valid Whether the proof is valid. | ||
| function verify(bytes calldata proofBytes, bytes32 imageId, bytes32 journal) external view returns (bool); | ||
|
|
||
| /// @notice Nullifies the prover to prevent further proof verification. | ||
| /// @dev Should only occur if a soundness issue is found. | ||
| /// @dev Should only be callable by a proper dispute game. | ||
| function nullify() external; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.