Remove contract postCompile and align versions (#51)

* remove contract postCompile and align versions
* install Go for SMC tests
This commit is contained in:
The Dark Jester
2024-09-20 05:26:30 -07:00
committed by GitHub
parent 70d16abaf1
commit f1744c2f46
7 changed files with 11 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
go-version: 1.23.x
- name: checkout code
uses: actions/checkout@v3
with:
@@ -53,7 +53,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.22.x]
go-version: [1.23.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: Prover testing

View File

@@ -16,6 +16,11 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
- name: Setup nodejs environment
uses: ./.github/actions/setup-nodejs

View File

@@ -2,11 +2,9 @@
compile:
pnpm run build
npx hardhat run scripts/hardhat/postCompile.ts
force-compile:
npx hardhat compile --force
npx hardhat run scripts/hardhat/postCompile.ts
clean:
rm -rf coverage/

View File

@@ -3,8 +3,9 @@ pragma solidity 0.8.24;
import { IPlonkVerifier } from "../interfaces/l1/IPlonkVerifier.sol";
/// @dev Test verifier contract that returns true.
contract IntegrationTestTrueVerifier is IPlonkVerifier {
/// @dev Always returns true for quick turnaround testing.
function Verify(bytes calldata, uint256[] calldata) external pure returns (bool) {
return true;
}

View File

@@ -10,7 +10,7 @@ const MAX_UNCHANGED_PART_LEN = 100;
const EXPOSED_CONTRACTS = ["L2MessageService", "LineaRollup", "TimeLock"];
const CONTRACT_OUPUT_ABIS: { [contractName: string]: string } = {
L2MessageService: "L2MessageService.abi",
LineaRollup: "LineaRollupAlphaV4.abi",
LineaRollup: "LineaRollupV6.0.abi", // next version
TimeLock: "TimeLock.abi",
};

View File

@@ -16,7 +16,7 @@ dependencies {
web3jContractWrappers {
def contractAbi = layout.buildDirectory.dir("${rootProject.projectDir}/contracts/abi").get()
.file("LineaRollupV5.abi").asFile.absolutePath
.file("LineaRollupV5.0.abi").asFile.absolutePath
contractsPackage = "net.consensys.linea.contract"
contracts = ["$contractAbi": "LineaRollup"]