Skip to content

Commit

Permalink
refactor: types and codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificYield committed Nov 25, 2024
1 parent 93b84dc commit da2f9fa
Show file tree
Hide file tree
Showing 22 changed files with 3,089 additions and 235 deletions.
2 changes: 0 additions & 2 deletions contracts/codegen/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import operatorsPrices from './operatorsPrices.json';
import { generateFHEPayment } from './payments';
import * as t from './templates';
import * as testgen from './testgen';
import { addTFHEExecutorEvents } from './tfheexecutor';

function generateAllFiles() {
const numSplits = 12;
Expand All @@ -18,7 +17,6 @@ function generateAllFiles() {
writeFileSync('contracts/FHEPayment.sol', generateFHEPayment(operatorsPrices));
writeFileSync('contracts/InputVerifier.native.sol', generateInputVerifiers(false));
writeFileSync('contracts/InputVerifier.coprocessor.sol', generateInputVerifiers(true));
writeFileSync('contracts/TFHEExecutor.events.sol', addTFHEExecutorEvents('contracts/TFHEExecutor.sol'));
writeFileSync('payment/Payment.sol', t.paymentSol());
mkdirSync('contracts/tests', { recursive: true });
ovShards.forEach((os) => {
Expand Down
179 changes: 0 additions & 179 deletions contracts/codegen/tfheexecutor.ts

This file was deleted.

1 change: 1 addition & 0 deletions contracts/examples/TFHEExecutorUpgradedExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

pragma solidity ^0.8.24;

import "@openzeppelin/contracts/utils/Strings.sol";
import "../contracts/TFHEExecutor.sol";

/// @title TFHEExecutorUpgradedExample
Expand Down
Loading

0 comments on commit da2f9fa

Please sign in to comment.