Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

feat: Implement changes for handling new types #456

Merged
merged 22 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c34c085
fix: merge conflict
PacificYield Apr 4, 2025
5226e01
refactor: types, euint256 support, and code generation (#414)
PacificYield Apr 1, 2025
6af57c2
fix: fix missing test
PacificYield Apr 4, 2025
2fbe30e
feat: add chainId to handles (#445)
PacificYield Apr 3, 2025
f74039e
chore: return value for allow/allowThis/allowTransient (#454)
PacificYield Apr 3, 2025
5aabe77
refactor: updates types.ts (#461)
PacificYield Apr 7, 2025
8cc772c
chore: prelease 0.7.0-5 (#466)
PacificYield Apr 7, 2025
5cb0178
ci: updates publish scripts (#467)
PacificYield Apr 7, 2025
b01240d
ci: fix public (#468)
PacificYield Apr 7, 2025
fa4c2c6
ci: fix (#470)
PacificYield Apr 7, 2025
1771290
fix: package.json (#471)
PacificYield Apr 7, 2025
76369f9
chore: fhevm-listener, handle is bytes32 + fheType enum
rudy-6-4 Mar 17, 2025
b8388ef
fix: sqlx offline mode
rudy-6-4 Apr 4, 2025
f0d3c70
fix: pass handle_bytes32 to L2 calls
goshawk-3 Apr 1, 2025
d107d3f
fix: coprocessor dockerbuild need up to data ACL.json and TFHEExecuto…
rudy-6-4 Apr 7, 2025
b6f0a7d
fix(coprocessor): fix query for work to prevent cycles in the query r…
antoniupop Apr 8, 2025
04f04be
feat: add chain ID to handles
dartdart26 Apr 8, 2025
76771b6
refactor: getter functions KMSVerifier InputVerifier (#481)
PacificYield Apr 9, 2025
a35fa2e
chore: updates getter function DecryptionOracleCaller (#485)
PacificYield Apr 10, 2025
42f47a8
chore: updates to httpz (#487)
PacificYield Apr 10, 2025
6a64a70
fix: remove the chainid param from ABI calls
goshawk-3 Apr 11, 2025
109e8ae
feat: rename TFHEExecutor to HTTPZExecutor (#492)
jatZama Apr 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/cargo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ jobs:
run: make init_db
working-directory: fhevm-engine/coprocessor

- name: Use Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x

- run: cp ./contracts/.env.example ./contracts/.env
- run: npm --prefix ./contracts ci --include=optional
- run: "cd contracts && npm install && npx hardhat compile"

- name: Run tests
run: |
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/coprocessor cargo test --release -- --test-threads=1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/fhevm-core-contracts-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
node-version: 20.x

- name: Prepare environment file
run: cp .env.example.deployment .env
run: cp .env.example .env

- name: Install dependencies
run: npm ci --include=optional
Expand All @@ -47,6 +47,7 @@ jobs:
tag: prerelease
token: ${{ secrets.NPM_TOKEN }}
provenance: true
access: public

- name: Publish release to npm
if: ${{ inputs.release == 'true' }}
Expand All @@ -55,3 +56,4 @@ jobs:
package: ./contracts/package.json
token: ${{ secrets.NPM_TOKEN }}
provenance: true
access: public
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Pull request tests (contracts)
on:
pull_request:
branches:
- main
- "*"
paths:
- contracts/**

jobs:
build:
Expand Down
5 changes: 1 addition & 4 deletions contracts/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
!/artifacts/contracts/FHEGasLimit.sol/FHEGasLimit.json
!/artifacts/contracts/InputVerifier.sol/InputVerifier.json
!/artifacts/contracts/KMSVerifier.sol/KMSVerifier.json
!/artifacts/contracts/TFHEExecutor.sol/TFHEExecutor.json
!/artifacts/contracts/TFHEExecutorWithEvents.sol/TFHEExecutorWithEvents.json
!/artifacts/decryptionOracle/DecryptionOracle.sol/DecryptionOracle.json
!/artifacts/contracts/HTTPZExecutor.sol/HTTPZExecutor.json
!contracts/**
!decryptionOracle/**
!package.json
!LICENSE
!README.md
2 changes: 1 addition & 1 deletion contracts/CustomProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CustomProvider extends ProviderWrapper {
this.lastBlockSnapshot = parseInt(blockNumberHex);
this.lastBlockSnapshotForDecrypt = parseInt(blockNumberHex);
const parsedEnvCoprocessor = dotenv.parse(fs.readFileSync('addresses/.env.exec'));
const coprocAdd = parsedEnvCoprocessor.TFHE_EXECUTOR_CONTRACT_ADDRESS;
const coprocAdd = parsedEnvCoprocessor.HTTPZ_EXECUTOR_CONTRACT_ADDRESS;
this.lastCounterRand = await this._wrappedProvider.request({
method: 'eth_getStorageAt',
params: [coprocAdd, '0xa436a06f0efce5ea38c956a21e24202a59b3b746d48a23fb52b4a5bc33fe3e00', 'latest'],
Expand Down
2 changes: 1 addition & 1 deletion contracts/addresses/.env.exec
Original file line number Diff line number Diff line change
@@ -1 +1 @@
TFHE_EXECUTOR_CONTRACT_ADDRESS=0xCD3ab3bd6bcc0c0bf3E27912a92043e817B1cf69
HTTPZ_EXECUTOR_CONTRACT_ADDRESS=0xCD3ab3bd6bcc0c0bf3E27912a92043e817B1cf69
5 changes: 5 additions & 0 deletions contracts/addresses/HTTPZExecutorAddress.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause-Clear

pragma solidity ^0.8.24;

address constant httpzExecutorAdd = 0xCD3ab3bd6bcc0c0bf3E27912a92043e817B1cf69;
5 changes: 0 additions & 5 deletions contracts/addresses/TFHEExecutorAddress.sol

This file was deleted.

Loading
Loading