Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
c4f3454
Add `dealId` to `TaskClaimedWithVoucher` event
james-toussaint Sep 20, 2024
ee8f6a6
Index args in events
james-toussaint Sep 20, 2024
a39e172
Initialize fresh vNEXT section in changelog
james-toussaint Oct 7, 2024
e79a869
Back merge 1.0.0 (#48)
james-toussaint Oct 7, 2024
ed33fb9
migrate blockscout v6 dns
gfournierPro Nov 14, 2024
b818b16
remove blockscout v5 refs
gfournierPro Nov 21, 2024
a9c7301
update changelog
gfournierPro Nov 21, 2024
9d332af
Remove blockscout v5 refs (#49)
gfournierPro Nov 21, 2024
363b65b
fix token decimal & add comment for Halborn audit
Le-Caignec Dec 23, 2024
61bf8de
add one line into changelog
Le-Caignec Dec 23, 2024
9a54e87
Verify VoucherProxy contracts
zguesmi Dec 24, 2024
145178d
Verify VoucherProxy contracts (#52)
zguesmi Dec 24, 2024
53abb08
add new script
Le-Caignec Dec 27, 2024
18c2224
add one new test for the `decimals` function
Le-Caignec Dec 30, 2024
e2a0baa
Merge remote-tracking branch 'origin/develop' into feature/patch-toke…
Le-Caignec Dec 30, 2024
f8c6408
Update CHANGELOG.md
Le-Caignec Jan 3, 2025
c04dadd
Update contracts/VoucherHub.sol
Le-Caignec Jan 3, 2025
eb67939
Update test/VoucherHub.test.ts
Le-Caignec Jan 3, 2025
ce51662
move test into `NonTransferableERC20Upgradeable` describe section
Le-Caignec Jan 3, 2025
699149a
Refactor decimals function documentation for clarity and consistency
Le-Caignec Jan 3, 2025
f5d02f9
Refactor environment variable handling to use a centralized env module
Le-Caignec Jan 3, 2025
e3dff53
Update package dependencies: add dotenv and zod to devDependencies
Le-Caignec Jan 3, 2025
80d599d
Refactor deployment script to use environment variable for local fork…
Le-Caignec Jan 3, 2025
8675176
Update CHANGELOG.md to include reference of the PR
Le-Caignec Jan 3, 2025
52180cb
Clarify documentation for updateVoucherTypeDescription to indicate in…
Le-Caignec Jan 3, 2025
06e7115
reorder functions into the NonTransferableERC20Upgradeable contract t…
Le-Caignec Jan 3, 2025
c9ee780
Improve the documentation of updateVoucherTypeDescription function
Le-Caignec Jan 3, 2025
224fe6c
Feature/patch token decimals into voucher hub (#50)
Le-Caignec Jan 3, 2025
8d3de1e
Update .env.template
Le-Caignec Jan 3, 2025
eb74a71
Update .env.template
Le-Caignec Jan 3, 2025
1400f07
Update .env.template to reorder variable for better clarity
Le-Caignec Jan 3, 2025
da33cba
Remove optional validation for IEXEC_VOUCHER_HUB_ADDRESS in env schema
Le-Caignec Jan 3, 2025
8eba298
Refactor environment variable validation to store regex patterns into…
Le-Caignec Jan 3, 2025
a5c36df
Refactor environment variable validation to simplify boolean checks
Le-Caignec Jan 3, 2025
414deaa
fix issue
Le-Caignec Jan 3, 2025
5fc0fb5
move env.ts file into config folder
Le-Caignec Jan 6, 2025
8838d4e
Update .env.template
Le-Caignec Jan 6, 2025
b485bf1
Update .env.template to uncomment configuration variables
Le-Caignec Jan 6, 2025
8d7e136
Rename FACTORY environment variable to USE_FACTORY for clarity and up…
Le-Caignec Jan 6, 2025
30568aa
Refactor environment variable handling to transform string indices to…
Le-Caignec Jan 6, 2025
40fc9b2
Update CHANGELOG.md
Le-Caignec Jan 6, 2025
d116865
Merge remote-tracking branch 'origin/develop' into feature/better-han…
Le-Caignec Jan 6, 2025
dad18ca
feature/better handling env variables (#55)
Le-Caignec Jan 6, 2025
bb6450a
change decimals function position
gfournierPro Jan 7, 2025
e7948c6
update changelog
gfournierPro Jan 7, 2025
6d7fb25
update voucher hub for decimals on token
gfournierPro Jan 7, 2025
f144f13
Relocate `decimals()` function in VoucherHub smart contract (#56)
gfournierPro Jan 7, 2025
0fc8130
Disable type checking for IexecLibOrders_v5 typechain generation
Le-Caignec Jan 7, 2025
d0c99ca
Update environment template and ignore files for better configuration…
Le-Caignec Jan 10, 2025
fcbde2b
Refactor CI workflow and remove Jenkinsfile
Le-Caignec Jan 10, 2025
51a4471
Enhance upgrade of voucherHub
Le-Caignec Jan 10, 2025
4f56bf7
Update scripts/utils/mineBlockIfOnLocalFork.ts
Le-Caignec Jan 10, 2025
7ad4d66
Add SPDX license identifiers to upgradeHub script
Le-Caignec Jan 10, 2025
67d82e2
Merge branch 'feature/implement-upgrade-for-voucherHub' of https://gi…
Le-Caignec Jan 10, 2025
dbf13ba
Update scripts/upgradeHub.ts
Le-Caignec Jan 10, 2025
f9b7328
add an entry into the changelog
Le-Caignec Jan 10, 2025
0833d59
refacto upgradeProxy call
Le-Caignec Jan 10, 2025
157bb40
Update .github/workflows/main.yml
Le-Caignec Jan 10, 2025
53f6da9
Feature/implement upgrade for `voucherHub` (#57)
Le-Caignec Jan 10, 2025
d725a37
Merge remote-tracking branch 'origin/develop' into feature/add-types-…
Le-Caignec Jan 10, 2025
ff2301b
Update tsconfig.json to include hardhat.config.ts in the project files
Le-Caignec Jan 10, 2025
6793584
Add an entry into the CHANGELOG.md
Le-Caignec Jan 10, 2025
215aabc
Run partial upgrade tests on fork
james-toussaint Jan 10, 2025
c6c038b
fix typescript issues
Le-Caignec Jan 13, 2025
215ab4b
Add entry for type-checking script in CHANGELOG.md
Le-Caignec Jan 13, 2025
b47c58a
Harmonize with named accounts
james-toussaint Jan 13, 2025
7a1eabf
Add test note in changelog
james-toussaint Jan 13, 2025
be95f14
Update copyright year
james-toussaint Jan 13, 2025
77ddc5d
Apply get config suggestion
james-toussaint Jan 13, 2025
d21cc4a
Get default hardhat accounts
james-toussaint Jan 13, 2025
6df14b5
Add todo to remove some tests after upgrade
james-toussaint Jan 13, 2025
89a9e8c
Merge remote-tracking branch 'origin/develop' into feature/add-dealid…
james-toussaint Jan 13, 2025
cc14ee3
Merge remote-tracking branch 'origin/feature/run-partial-upgrade-test…
james-toussaint Jan 13, 2025
ada49da
Upgrade beacon with upgrade script
james-toussaint Jan 13, 2025
c53352d
Run partial upgrade tests on fork (#58)
james-toussaint Jan 14, 2025
76b502d
Merge remote-tracking branch 'origin/develop' into feature/add-dealid…
james-toussaint Jan 14, 2025
83489a7
Should create and predict consistent voucher addresses
james-toussaint Jan 14, 2025
413fad0
Rename upgrade files
james-toussaint Jan 14, 2025
a9e85f8
Rename upgrade function
james-toussaint Jan 14, 2025
f67166f
Update changelog
james-toussaint Jan 14, 2025
f1aab19
Add a voucher creation before upgrade
james-toussaint Jan 14, 2025
05f6247
yeah i agree
Le-Caignec Jan 15, 2025
3353d22
Update copyright year in common.ts file
Le-Caignec Jan 15, 2025
3dd577c
rollback check-types need build
Le-Caignec Jan 15, 2025
ed7037e
Merge remote-tracking branch 'origin/develop' into feature/add-types-…
Le-Caignec Jan 15, 2025
89da050
feature/add types checking (#53)
Le-Caignec Jan 15, 2025
d9ead0f
Update copyright year in SPDX headers to 2024-2025
Le-Caignec Jan 15, 2025
3442104
Merge branch 'develop' into feature/add-dealid-to-taskclaim-event
james-toussaint Jan 15, 2025
bac5f3c
Update copyright year in SPDX headers to 2024-2025 (#62)
Le-Caignec Jan 15, 2025
3cf2d46
Add upgrade workflow
james-toussaint Jan 15, 2025
9281102
bugfix/slither-regression (#60)
Le-Caignec Jan 15, 2025
d64f1b1
Merge remote-tracking branch 'origin/develop' into feature/add-dealid…
james-toussaint Jan 16, 2025
6109966
Merge remote-tracking branch 'origin/develop' into feature/upgrade-wo…
james-toussaint Jan 16, 2025
0471462
Temporarily add `pull_request` to appear on Actions tab
james-toussaint Jan 16, 2025
0adf5cb
Install dependencies
james-toussaint Jan 16, 2025
2a240c6
Add `dealId` to `TaskClaimedWithVoucher` event (#61)
james-toussaint Jan 17, 2025
2d4da0e
Merge branch 'develop' into feature/upgrade-workflow
james-toussaint Jan 17, 2025
543cb80
Remove pull_request trigger
james-toussaint Jan 17, 2025
042f325
add solhint
Le-Caignec Jan 28, 2025
ff36e32
add solhintignore
Le-Caignec Jan 28, 2025
bc23ded
add it into github action
Le-Caignec Jan 28, 2025
36c4820
remove .sol files from lint-staged configuration
Le-Caignec Jan 28, 2025
c1cf26c
Update package.json
Le-Caignec Jan 30, 2025
57fa9b5
Fix linting commands in package.json to remove --ignore-path it's alr…
Le-Caignec Jan 30, 2025
1f15473
fix package-lock.json
Le-Caignec Jan 30, 2025
f59a931
Update package.json
Le-Caignec Jan 31, 2025
38ad8ff
Feature/add solhint (#65)
Le-Caignec Jan 31, 2025
ec95ae4
Update Solidity version to ^0.8.24 and clean up .solhint.json configu…
Le-Caignec Feb 4, 2025
b0181dc
Update Solidity version to ^0.8.20 and add compiler version rule in .…
Le-Caignec Feb 4, 2025
0f29c36
Refactor IVoucher interface by removing unnecessary whitespace and im…
Le-Caignec Feb 4, 2025
0b1aab9
Refactor IVoucherHub interface by removing unnecessary whitespace for…
Le-Caignec Feb 4, 2025
e77f946
Refactor .solcover.js to use ES module syntax and add ESLint configur…
Le-Caignec Feb 4, 2025
6d4b0c3
Refactor .solcover.js to use CommonJS syntax and update ESLint config…
Le-Caignec Feb 4, 2025
280213c
Update linting scripts to use TypeScript and adjust formatting checks
Le-Caignec Feb 6, 2025
f4e951f
Update eslint.config.mjs
Le-Caignec Feb 6, 2025
525c09b
Update format script to be consistent with check-format
Le-Caignec Feb 6, 2025
30ff665
fix scripts
Le-Caignec Feb 6, 2025
47086f3
fix import
Le-Caignec Feb 6, 2025
00f98f2
Feature/add ts linter (#67)
Le-Caignec Feb 6, 2025
2937c87
fix lint:ts script
Le-Caignec Feb 7, 2025
44602f7
fix scripts
Le-Caignec Feb 10, 2025
baa673b
refactor linting scripts and workflow for improved clarity and consis…
Le-Caignec Feb 11, 2025
2a404a5
fix lint:ts script (#68)
Le-Caignec Feb 11, 2025
dc6381b
Add Halborn "Poco v5.5 & Voucher v1.0" audit report to changelog
Le-Caignec Feb 21, 2025
acad16c
add PR number
Le-Caignec Feb 21, 2025
001d05a
add section for contract audit files in README
Le-Caignec Feb 21, 2025
543948e
Add Halborn "Poco v5.5 & Voucher v1.0" audit report (#70)
Le-Caignec Feb 21, 2025
8e50816
Add env and save changed files (#71)
james-toussaint Feb 21, 2025
52484e8
Remove test deployment file
james-toussaint Feb 21, 2025
44dac94
Save files changed during upgrade
james-toussaint Feb 21, 2025
d115bdb
Remove test file creation during deployment
james-toussaint Feb 21, 2025
205652a
Merge branch 'develop' into feature/upgrade-workflow
james-toussaint Feb 21, 2025
be6ae4a
Swap env and run and add name
james-toussaint Feb 24, 2025
0c9718e
Rename step to Node.js
james-toussaint Feb 24, 2025
b3fa2c3
Add limited to deployments on specific branches comment
james-toussaint Feb 25, 2025
0899fb5
Add upgrade workflow (#64)
james-toussaint Feb 25, 2025
d8962ee
Index first parameter of match an claim events in Voucher contract
james-toussaint Feb 28, 2025
0f472c6
Update copyright year
james-toussaint Feb 28, 2025
f8389fb
Update test proxy hash value
james-toussaint Feb 28, 2025
f747df4
Index first parameter of match and claim events in Voucher contract (…
james-toussaint Feb 28, 2025
6841dbe
bump to v1.1.0
Le-Caignec Mar 7, 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
26 changes: 26 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# The mnemonic phrase used to derive the wallet's private keys
MNEMONIC=

# Index of the account generated from the mnemonic to be used as the Voucher Manager
IEXEC_VOUCHER_MANAGER_ACCOUNT_INDEX=

# Index of the account generated from the mnemonic to be used as the Voucher Minter
IEXEC_VOUCHER_MINTER_ACCOUNT_INDEX=

# The private key for accessing the production account
PROD_PRIVATE_KEY=

# Flag to indicate whether to use a local blockchain fork (set to 'true' for local fork development)
IS_LOCAL_FORK=

# Override the default iExec PoCo (Proof-of-Contribution) contract address
IEXEC_POCO_ADDRESS=

# Override the default iExec Voucher Hub contract address
IEXEC_VOUCHER_HUB_ADDRESS=

# Indicates whether the deployment involves a factory contract
USE_FACTORY=

# enable to display hardhat report on gas usage
REPORT_GAS=
44 changes: 37 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,68 @@
name: Voucher Smart Contract CI

on:
push:
branches:
- feature/*
- bugfix/*
- develop
- release/*
- hotfix/*
- develop
- main

concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Init
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run coverage
run: npm run coverage
- name: Check Format
run: npm run check-format
- name: Check Lint
run: npm run check-lint
- name: Build
run: npm run build
- name: Check Types
run: npm run check-types
- name: Generate UML
run: npm run uml
- name: Run partial upgrade tests on fork
env:
IS_LOCAL_FORK: true
run: npm run test test/NextVersionUpgrade.test.ts
- name: Simulate upgrade on fork
env:
USE_FACTORY: false
IS_LOCAL_FORK: true
run: npm run upgrade
- name: Run Tests
run: npm run test -- --bail
- name: Run Coverage
run: npm run coverage #coverage only works on a non-fork hardhat node
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: iExecBlockchainComputing/iexec-voucher-contracts
- name: Run static analysis with slither
uses: crytic/slither-action@v0.4.0
id: slither
with:
target: "contracts/"
slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
node-version: "20"
fail-on: none # TODO set this to high or other
sarif: results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
sarif_file: results.sarif
39 changes: 39 additions & 0 deletions .github/workflows/upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Upgrade
on:
workflow_dispatch:
inputs:
network:
description: 'Network'
required: true
type: choice
options:
- hardhat
- bellecour
jobs:
upgrade:
runs-on: ubuntu-latest
permissions:
contents: write # required by git-auto-commit-action
environment: ${{ inputs.network }} # Secrets for an environment are already limited to deployments on specific branches
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Upgrade
env:
NETWORK: ${{ inputs.network }}
IS_LOCAL_FORK: ${{ inputs.network == 'hardhat'}}
PROD_PRIVATE_KEY: ${{ inputs.network == 'bellecour' && secrets.PROD_PRIVATE_KEY || '' }}
run: |
echo "Network: $NETWORK"
echo "Local fork: $IS_LOCAL_FORK"
npm run upgrade -- --network $NETWORK
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Save files changed during upgrade
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ node_modules
/coverage
/coverage.json

# deployments files
/deployments/hardhat
/deployments/external-hardhat
/deployments/localhost
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.yml
*json
*.md
14 changes: 5 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@
"prettier-plugin-organize-imports",
"prettier-plugin-solidity"
],
"pluginsComments": {
"prettier-plugin-organize-import": "Supports .ts files (not .sol)",
"prettier-plugin-solidity": "Does not support imports sorting yet. See prettier-solidity/prettier-plugin-solidity#918"
},
"overrides": [
{
"files": "*.sol",
"options": {
"singleQuote": false
}
"files": "*.sol",
"options": {
"singleQuote": false
}
}
]
]
}
22 changes: 22 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": [
"solhint:recommended"
],
"plugins": [],
"rules": {
"compiler-version": [
"error",
"^0.8.20"
],
"func-visibility": [
"warn",
{
"ignoreConstructors": true
}
],
"quotes": [
"error",
"double"
]
}
}
1 change: 1 addition & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hardhat-dependency-compiler
34 changes: 27 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
# Changelog

## vNEXT

## v1.1.0

- Index first parameter of match an claim events in `Voucher` contract. (#61, #72)
- Add upgrade workflow. (#64)
- Add Halborn "Poco v5.5 & Voucher v1.0" audit report ( #70)
- Add type-checking script (#53)
- Run partial upgrade tests on fork.
- Should maintain consistent voucher addresses (#61)
- Should upgrade decimals (#58)
- Implement `VoucherHub` upgrade and test it on GitHub Action CI using a local fork. (#57)
- Relocate `decimals()` function in VoucherHub smart contract. (#56)
- Better handling for env variables. (#55)
- Remove references to blockscout v5. (#49)
- Override the decimals function of ERC-20 to set the token's decimal precision to 9, aligning with RLC standards. (#50)
- Verify VoucherProxy contracts. (#51)

## v1.0.0

### What's new?

- Allow users to access resources of the iExec network via a sponsorship voucher.

### More details

- Upgrade Solidity Compiler to `v0.8.27`. (#45)
- Bump dependencies: (#44)
- `@openzeppelin/hardhat-upgrades`, `hardhat`, `ethers`, `prettier`, and others [minor version bump]
- `prettier-plugin-organize-imports@4`
- `@openzeppelin/hardhat-upgrades`, `hardhat`, `ethers`, `prettier`, and others [minor version bump]
- `prettier-plugin-organize-imports@4`
- Add `getVoucherProxyCodeHash(..)` & `isRefundedTask(..)` view functions. (#43)
- Add `predictVoucher(..)` & `isVoucher(..)` functions. (#42)
- Generate UML class diagram for contracts. (#41)
Expand Down Expand Up @@ -40,12 +60,12 @@
- Match orders through voucher. (#12)
- Add external-hardhat network configuration. (#11)
- Add voucher credit and SRLC manipulation. (#10)
- SRLC and iExec poco is mocked.
- set voucher credit as VoucherHub is ERC20.
- SRLC and iExec poco is mocked.
- set voucher credit as VoucherHub is ERC20.
- Upgrade configuration: (#9)
- Upgrade dependencies: hardhat, husky, iExec Poco.
- Ignore mocks in coverage.
- Add solidity optimizer and use Bellecour network config.
- Upgrade dependencies: hardhat, husky, iExec Poco.
- Ignore mocks in coverage.
- Add solidity optimizer and use Bellecour network config.
- Add role-based access control to VoucherHub. (#8)
- Create voucher from VoucherHub with : type, expiration, authorize list. (#6)
- Create vouchers with create2. (#5)
Expand Down
18 changes: 0 additions & 18 deletions Jenkinsfile

This file was deleted.

28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,49 @@ Deployment configuration can also be provided/overridden using env variables:
* `IEXEC_VOUCHER_MINTER_ACCOUNT_INDEX`

Run:

```
npx hardhat deploy --network <name>
```

#### Local Bellecour fork

Complete the `.env` file with the following variables:

```
LOCAL_FORK=true MNEMONIC=<mnemonic> npx hardhat deploy --network hardhat
IS_LOCAL_FORK=true
MNEMONIC=<mnemonic>
```

If a `MNEMONIC` is not provided, the default Hardhat one will be used.

```
npx hardhat node
```

#### Bellecour

With appropriate deployer key:

```
npx hardhat deploy --network bellecour
```

### Verify contracts

- Blockscout v5

```
BLOCKSCOUT_VERSION=v5 npx hardhat run ./scripts/verify.ts --network bellecour
npx hardhat run ./scripts/verify.ts --network bellecour
```

- Blockscout v6
Once a Voucher (proxy) is deployed, it can be verified with:

```
npx hardhat run ./scripts/verify.ts --network bellecour
npx hardhat verify <voucherProxyAddress> --network bellecour <beaconAddress>
```

Note: no need to verify all VoucherProxy contracts because Blockscout automatically
matches all similar contracts with the submitted source code.

## Audits

All contract audit files can be found in [audit/](./audit/) folder.
Binary file not shown.
6 changes: 4 additions & 2 deletions config/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"31337": {
"factory": true,
"salt": "0x0000000000000000000000000000000000000000000000000000000000000000",
"pocoAddress": "0x123456789a123456789b123456789b123456789d"
"pocoAddress": "0x123456789a123456789b123456789b123456789d",
"voucherHubAddress": "0x63264C515d0121B0C167098aF1661d8ADE7BCD3d"
},
"65535": {
"factory": true,
Expand All @@ -12,6 +13,7 @@
"134": {
"factory": true,
"salt": "0x0000000000000000000000000000000000000000000000000000000000000000",
"pocoAddress": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f"
"pocoAddress": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
"voucherHubAddress": "0x3137B6DF4f36D338b82260eDBB2E7bab034AFEda"
}
}
6 changes: 4 additions & 2 deletions config/deployment.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// SPDX-FileCopyrightText: 2024 IEXEC BLOCKCHAIN TECH <contact@iex.ec>
// SPDX-License-Identifier: Apache-2.0

const deploymentConfig = require('./deployment.json') as DeploymentConfig;
export default deploymentConfig;
import deploymentConfigRaw from './deployment.json';

export type DeploymentConfig = {
[chainId: string]: {
factory: boolean;
salt: string;
pocoAddress: string;
voucherHubAddress?: string; //some chains used doesn't have the voucher deployed
};
};

export default deploymentConfigRaw as DeploymentConfig;
Loading
Loading