Skip to content

Commit

Permalink
feat: Update Foundry project to use sphinx-contracts dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
storojs72 committed Jun 19, 2024
1 parent 4b4a00f commit 0822881
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 129 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
url = https://github.com/foundry-rs/forge-std
# https://stackoverflow.com/questions/5126765/how-to-get-rid-of-git-submodules-untracked-status
ignore = dirty
[submodule "aptos/solidity/contracts/lib/sphinx-contracts"]
path = aptos/solidity/contracts/lib/sphinx-contracts
url = https://github.com/lurk-lab/sphinx-contracts
16 changes: 0 additions & 16 deletions aptos/solidity/contracts-generator/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions aptos/solidity/contracts-generator/rust-toolchain

This file was deleted.

107 changes: 0 additions & 107 deletions aptos/solidity/contracts-generator/src/bin/main.rs

This file was deleted.

1 change: 1 addition & 0 deletions aptos/solidity/contracts/lib/sphinx-contracts
Submodule sphinx-contracts added at 96b9dc
2 changes: 2 additions & 0 deletions aptos/solidity/contracts/remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
forge-std/=lib/forge-std/src/
sphinx-contracts/=lib/sphinx-contracts/contracts/src/
2 changes: 1 addition & 1 deletion aptos/solidity/contracts/src/EpochChange.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.8.25;

import {SP1Verifier as SP1PlonkVerifier} from "../src/plonk/SP1Verifier.sol";
import {SP1Verifier as SP1PlonkVerifier} from "sphinx-contracts/SP1Verifier.sol";

contract EpochChange is SP1PlonkVerifier {
bytes32 public epochChangeProgramVkey;
Expand Down
3 changes: 2 additions & 1 deletion aptos/solidity/contracts/src/Inclusion.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pragma solidity ^0.8.25;

import {SP1Verifier as SP1PlonkVerifier} from "../src/plonk/SP1Verifier.sol";
import {SP1Verifier as SP1PlonkVerifier} from "sphinx-contracts/SP1Verifier.sol";


contract Inclusion is SP1PlonkVerifier {
bytes32 public inclusionProgramVkey;
Expand Down

0 comments on commit 0822881

Please sign in to comment.