Skip to content

Commit

Permalink
Merge pull request #291 from iExecBlockchainComputing/feature/poco-5.5.0
Browse files Browse the repository at this point in the history
upgrade poco to 5.5.0
  • Loading branch information
PierreJeanjacquot authored Oct 3, 2024
2 parents 6845ca3 + 7eacc1c commit 24a33cf
Show file tree
Hide file tree
Showing 21 changed files with 115 additions and 97 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## Next

### Changed

- Upgrade PoCo to v5.5.0

## [8.10.1] 2024-08-26

### Changed
Expand Down
63 changes: 36 additions & 27 deletions generateEsModulesFromJson.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,79 +3,88 @@ const { writeFile, stat, mkdir } = require('fs/promises');

const minifiers = {
package: ({ name, version, description }) => ({ name, version, description }),
contract: ({ abi, networks }) => ({ abi, networks }),
abi: ({ abi }) => ({ abi }),
abiNetworks: ({ abi, networks }) => ({
abi,
networks: Object.fromEntries(
Object.entries(networks).map(([chainId, { address }]) => [
chainId,
{ address },
]),
),
}),
};

const sources = [
['./package.json', { dir: 'sdk', minifier: minifiers.package }],
[
'rlc-faucet-contract/build/contracts/RLC.json',
{ dir: '@iexec/rlc', minifier: minifiers.contract },
{ dir: '@iexec/rlc', minifier: minifiers.abiNetworks },
],
[
'@iexec/erlc/build/contracts-min/ERLCTokenSwap.json',
{ dir: '@iexec/erlc', minifier: minifiers.contract },
{ dir: '@iexec/erlc', minifier: minifiers.abiNetworks },
],
[
'@iexec/poco/package.json',
{ dir: '@iexec/poco', minifier: minifiers.package },
],
[
'@iexec/poco/build/contracts-min/RegistryEntry.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/registries/RegistryEntry.sol/RegistryEntry.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
// warn /build/
'@iexec/poco/build/contracts-min/ERC1538Proxy.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
{ dir: '@iexec/poco', minifier: minifiers.abiNetworks },
],
[
'@iexec/poco/build/contracts-min/IexecInterfaceToken.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/IexecInterfaceToken.sol/IexecInterfaceToken.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
'@iexec/poco/build/contracts-min/IexecInterfaceNative.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/IexecInterfaceNative.sol/IexecInterfaceNative.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],

[
'@iexec/poco/build/contracts-min/AppRegistry.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/registries/apps/AppRegistry.sol/AppRegistry.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
'@iexec/poco/build/contracts-min/WorkerpoolRegistry.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/registries/workerpools/WorkerpoolRegistry.sol/WorkerpoolRegistry.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
'@iexec/poco/build/contracts-min/DatasetRegistry.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/registries/datasets/DatasetRegistry.sol/DatasetRegistry.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
'@iexec/poco/build/contracts-min/App.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/registries/apps/App.sol/App.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
'@iexec/poco/build/contracts-min/Workerpool.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/registries/workerpools/Workerpool.sol/Workerpool.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
'@iexec/poco/build/contracts-min/Dataset.json',
{ dir: '@iexec/poco', minifier: minifiers.contract },
'@iexec/poco/artifacts/contracts/registries/datasets/Dataset.sol/Dataset.json',
{ dir: '@iexec/poco', minifier: minifiers.abi },
],
[
'@ensdomains/ens-contracts/artifacts/contracts/registry/ENSRegistry.sol/ENSRegistry.json',
{ dir: '@ensdomains/registry', minifier: minifiers.contract },
{ dir: '@ensdomains/registry', minifier: minifiers.abi },
],
[
'@ensdomains/ens-contracts/artifacts/contracts/registry/FIFSRegistrar.sol/FIFSRegistrar.json',
{ dir: '@ensdomains/registry', minifier: minifiers.contract },
{ dir: '@ensdomains/registry', minifier: minifiers.abi },
],
[
'@ensdomains/ens-contracts/artifacts/contracts/reverseRegistrar/ReverseRegistrar.sol/ReverseRegistrar.json',
{ dir: '@ensdomains/registry', minifier: minifiers.contract },
{ dir: '@ensdomains/registry', minifier: minifiers.abi },
],
[
'@ensdomains/ens-contracts/artifacts/contracts/resolvers/PublicResolver.sol/PublicResolver.json',
{ dir: '@ensdomains/resolvers', minifier: minifiers.contract },
{ dir: '@ensdomains/resolvers', minifier: minifiers.abi },
],
];

Expand Down
76 changes: 46 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"dependencies": {
"@ensdomains/ens-contracts": "^0.0.22",
"@iexec/erlc": "^1.0.0",
"@iexec/poco": "^5.3.0",
"@iexec/poco": "^5.5.0",
"@multiformats/multiaddr": "^12.1.8",
"bn.js": "^5.2.1",
"buffer": "^6.0.3",
Expand Down
3 changes: 1 addition & 2 deletions src/common/generated/@ensdomains/registry/ENSRegistry.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/common/generated/@ensdomains/registry/FIFSRegistrar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 24a33cf

Please sign in to comment.