-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: v4 * wip: add * v4 changes * fix: proof bytes * wip * fix * add * add * feat: update * add * add * feat: update * add * fix * add * add * add --------- Co-authored-by: jtguibas <[email protected]>
- Loading branch information
1 parent
047a72b
commit e396ecb
Showing
18 changed files
with
1,932 additions
and
1,780 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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,29 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.26; | ||
|
||
import {stdJson} from "forge-std/StdJson.sol"; | ||
import {SP1Vector} from "../src/SP1Vector.sol"; | ||
import {BaseScript} from "./Base.s.sol"; | ||
|
||
// Required environment variables: | ||
// - CHAINS (comma separated list of chain names) | ||
// - CONTRACT_ADDRESS_{CHAIN_ID} | ||
|
||
contract UpdateVkeyScript is BaseScript { | ||
using stdJson for string; | ||
|
||
function setUp() public {} | ||
|
||
string internal constant KEY = "UpdateVkey"; | ||
|
||
/// Reads CONTRACT_ADDRESS_<CHAIN_ID> from the environment variables and updates the SP1 Verifier and program vkey. | ||
function run() external multichain(KEY) broadcaster { | ||
string memory contractAddressKey = string.concat("CONTRACT_ADDRESS_", vm.toString(block.chainid)); | ||
address existingProxyAddress = vm.envAddress(contractAddressKey); | ||
|
||
SP1Vector sp1Vector = SP1Vector(address(existingProxyAddress)); | ||
|
||
// v4 program vkey | ||
sp1Vector.updateVectorXProgramVkey(0x0085e1f9e1bcc361ba6edc00209f453addcbcaf71c1e63d174472f8df5e56875); | ||
} | ||
} |
This file contains 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
Binary file not shown.
Binary file not shown.
This file contains 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 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 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 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 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
Oops, something went wrong.