-
Notifications
You must be signed in to change notification settings - Fork 14
feat: implement dataset compatibility check with a deal in IexecPoco1Facet
#266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Le-Caignec
merged 22 commits into
main
from
feature/add-isDatasetCompatibleWithDeal-function
Sep 30, 2025
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
543cb21
feat: implement dataset compatibility check in IexecPoco1Facet
Le-Caignec d3686d5
refactor: clean up IexecPoco1Facet and add tests for dataset compatib…
Le-Caignec 27c6dbd
feat: deploy and update IexecPocoAccessorsFacet and IexecPoco1Facet
Le-Caignec 1276187
test: enhance dataset compatibility tests in IexecPoco1
Le-Caignec 69fef65
Update contracts/facets/IexecPoco1Facet.sol
Le-Caignec fd73a64
Update contracts/interfaces/IexecPoco1.v8.sol
Le-Caignec 84d2490
feat: add dataset order compatibility check in IexecPoco1Facet
Le-Caignec 0d9ff9b
refactor: remove deployment address logs for IexecPocoAccessorsFacet …
Le-Caignec 15cc344
refactor: streamline deployment of IexecPocoAccessorsFacet in upgrade…
Le-Caignec 481d526
refactor: remove deployment address logs and update logging for new f…
Le-Caignec e49ee33
Update test/byContract/IexecPoco/IexecPoco1.test.ts
Le-Caignec 0ce1268
Update test/byContract/IexecPoco/IexecPoco1.test.ts
Le-Caignec 263a7d8
feat: add isDatasetCompatibleWithDeal function to IexecPoco1 interfac…
Le-Caignec f95d6bc
test: add test for isDatasetCompatibleWithDeal function in IexecPoco1
Le-Caignec e34696c
Update contracts/facets/IexecPoco1Facet.sol
Le-Caignec 99b7a7b
docs: enhance documentation for isDatasetCompatibleWithDeal function …
Le-Caignec b9353bb
refactor: simplify isDatasetCompatibleWithDeal function logic in Iexe…
Le-Caignec 4964b3c
Update contracts/facets/IexecPoco1Facet.sol
Le-Caignec df9fb9e
Update scripts/upgrades/deploy-and-update-some-facet.ts
Le-Caignec b92e68d
refactor: move Matching struct from IexecPoco1 interface to IexecPoco…
Le-Caignec 566d791
Update test/byContract/IexecPoco/IexecPoco1.test.ts
Le-Caignec b98a455
refactor: replace ethers.keccak256 with ethers.id for message hash ge…
Le-Caignec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,20 +4,21 @@ | |||||
| import { ZeroAddress } from 'ethers'; | ||||||
| import { ethers } from 'hardhat'; | ||||||
| import { FacetCutAction } from 'hardhat-deploy/dist/types'; | ||||||
| import type { IDiamond } from '../../../typechain'; | ||||||
| import type { IDiamond } from '../../typechain'; | ||||||
| import { | ||||||
| DiamondCutFacet__factory, | ||||||
| DiamondLoupeFacet__factory, | ||||||
| IexecPoco1Facet__factory, | ||||||
| IexecPocoAccessorsFacet__factory, | ||||||
| } from '../../../typechain'; | ||||||
| import { Ownable__factory } from '../../../typechain/factories/rlc-faucet-contract/contracts'; | ||||||
| import { FactoryDeployer } from '../../../utils/FactoryDeployer'; | ||||||
| import config from '../../../utils/config'; | ||||||
| import { linkContractToProxy } from '../../../utils/proxy-tools'; | ||||||
| import { printFunctions } from '../upgrade-helper'; | ||||||
| } from '../../typechain'; | ||||||
| import { Ownable__factory } from '../../typechain/factories/rlc-faucet-contract/contracts'; | ||||||
| import { FactoryDeployer } from '../../utils/FactoryDeployer'; | ||||||
| import config from '../../utils/config'; | ||||||
| import { linkContractToProxy } from '../../utils/proxy-tools'; | ||||||
| import { printFunctions } from './upgrade-helper'; | ||||||
|
|
||||||
| (async () => { | ||||||
| console.log('Deploying and updating IexecPocoAccessorsFacet...'); | ||||||
| console.log('Deploying and updating IexecPocoAccessorsFacet & IexecPoco1Facet...'); | ||||||
|
|
||||||
| const [account] = await ethers.getSigners(); | ||||||
| const chainId = (await ethers.provider.getNetwork()).chainId; | ||||||
|
|
@@ -47,18 +48,25 @@ import { printFunctions } from '../upgrade-helper'; | |||||
| proxyOwnerSigner, | ||||||
| ); | ||||||
|
|
||||||
| console.log('\n=== Step 1: Deploying new IexecPocoAccessorsFacet ==='); | ||||||
| console.log('\n=== Step 1: Deploying all new facets ==='); | ||||||
| const factoryDeployer = new FactoryDeployer(account, chainId); | ||||||
| const iexecLibOrders = { | ||||||
| ['contracts/libs/IexecLibOrders_v5.sol:IexecLibOrders_v5']: | ||||||
| deploymentOptions.IexecLibOrders_v5, | ||||||
| }; | ||||||
|
|
||||||
| const newFacetFactory = new IexecPocoAccessorsFacet__factory(iexecLibOrders); | ||||||
| const newFacetAddress = await factoryDeployer.deployContract(newFacetFactory); | ||||||
| console.log('Deploying new IexecPocoAccessorsFacet...'); | ||||||
| const iexecPocoAccessorsFacetFactory = new IexecPocoAccessorsFacet__factory(iexecLibOrders); | ||||||
| const iexecPocoAccessorsFacet = await factoryDeployer.deployContract( | ||||||
| new IexecPocoAccessorsFacet__factory(iexecLibOrders), | ||||||
|
||||||
| new IexecPocoAccessorsFacet__factory(iexecLibOrders), | |
| iexecPocoAccessorsFacetFactory, |
Le-Caignec marked this conversation as resolved.
Show resolved
Hide resolved
Le-Caignec marked this conversation as resolved.
Show resolved
Hide resolved
Le-Caignec marked this conversation as resolved.
Show resolved
Hide resolved
Le-Caignec marked this conversation as resolved.
Show resolved
Hide resolved
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The contract declaration formatting was changed from multi-line to single-line. While this works, the multi-line format is more readable for contracts with multiple inheritance, especially when the line becomes long.