-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dndll
committed
Feb 14, 2024
1 parent
5342629
commit 3a7eb48
Showing
24 changed files
with
384 additions
and
223 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pub mod sync; | ||
pub mod verify; | ||
|
||
// TODO: CIRCUIT SERIALISATION TESTS!!! | ||
pub use sync::SyncCircuit; | ||
pub use verify::VerifyCircuit; |
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
File renamed without changes.
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,7 @@ | ||
[profile.default] | ||
fs_permissions = [ { access = "read", path = "./broadcast" } ] | ||
libs = [ "lib" ] | ||
out = "out" | ||
remappings = [ "@openzeppelin/contracts=lib/openzeppelin-contracts/contracts", "@openzeppelin/contracts-upgradeable=lib/openzeppelin-contracts-upgradeable/contracts" ] | ||
src = "src" | ||
# See more config options https://github.com/foundry-rs/foundry/tree/master/config |
Submodule foundry-devops
added at
5415fa
Submodule openzeppelin-contracts
added at
01ef44
1 change: 1 addition & 0 deletions
1
circuits/plonky2x/verifier/lib/openzeppelin-contracts-upgradeable
Submodule openzeppelin-contracts-upgradeable
added at
fbdb82
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,28 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
import {NearX} from "../src/NearX.sol"; | ||
import {Script} from "forge-std/Script.sol"; | ||
|
||
contract Deploy is Script { | ||
function setUp() public {} | ||
|
||
function run() external returns (address) { | ||
address proxy = deployNearX(); | ||
return proxy; | ||
} | ||
|
||
function deployNearX() public returns (address) { | ||
vm.startBroadcast(); | ||
|
||
NearX lightClient = new NearX(); | ||
|
||
ERC1967Proxy proxy = new ERC1967Proxy(address(lightClient), ""); | ||
|
||
lightClient.initialize(); | ||
|
||
vm.stopBroadcast(); | ||
return address(proxy); | ||
} | ||
} |
Oops, something went wrong.