@@ -5,8 +5,8 @@ import { time } from '@nomicfoundation/hardhat-network-helpers';
55import { BytesLike , ZeroHash } from 'ethers' ;
66import { deployments , ethers } from 'hardhat' ;
77import {
8- IexecPocoBoostAccessors__factory ,
9- IexecPocoBoost__factory ,
8+ IexecPocoBoostAccessorsFacet__factory ,
9+ IexecPocoBoostFacet__factory ,
1010 TimelockController__factory ,
1111} from '../../typechain' ;
1212import { Ownable__factory } from '../../typechain/factories/rlc-faucet-contract/contracts' ;
@@ -24,19 +24,28 @@ import {
2424 if ( ! deploymentOptions . DiamondProxy ) {
2525 throw new Error ( 'DiamondProxy is required' ) ;
2626 }
27+ if ( ! deploymentOptions . IexecLibOrders_v5 ) {
28+ throw new Error ( 'IexecLibOrders_v5 is required' ) ;
29+ }
2730 const diamondProxyAddress = deploymentOptions . DiamondProxy ;
2831 const iexecPocoBoostFacetAddress = ( await deployments . get ( 'IexecPocoBoostFacet' ) ) . address ; // Bellecour: 0x8425229f979AB3b0dDDe00D475D762cA4d6a5eFc
2932 const iexecPocoBoostAccessorsFacetAddress = (
3033 await deployments . get ( 'IexecPocoBoostAccessorsFacet' )
3134 ) . address ; // Bellecour: 0x56185a2b0dc8b556BBfBAFB702BC971Ed75e868C
3235 const [ account ] = await ethers . getSigners ( ) ;
3336 const timelockAddress = await Ownable__factory . connect ( diamondProxyAddress , account ) . owner ( ) ; // Bellecour: 0x4611B943AA1d656Fc669623b5DA08756A7e288E9
37+
38+ const iexecLibOrders = {
39+ [ 'contracts/libs/IexecLibOrders_v5.sol:IexecLibOrders_v5' ] :
40+ deploymentOptions . IexecLibOrders_v5 ,
41+ } ;
42+
3443 const iexecPocoBoostProxyUpdate = encodeModuleProxyUpdate (
35- IexecPocoBoost__factory . createInterface ( ) ,
44+ new IexecPocoBoostFacet__factory ( iexecLibOrders ) ,
3645 iexecPocoBoostFacetAddress ,
3746 ) ;
3847 const iexecPocoBoostAccessorsProxyUpdate = encodeModuleProxyUpdate (
39- IexecPocoBoostAccessors__factory . createInterface ( ) ,
48+ new IexecPocoBoostAccessorsFacet__factory ( ) ,
4049 iexecPocoBoostAccessorsFacetAddress ,
4150 ) ;
4251 // Salt but must be the same for schedule & execute
0 commit comments