@@ -70,12 +70,12 @@ export default async function deploy() {
7070 . catch ( ( ) => {
7171 throw new Error ( 'Failed to prepare transferOwnership data' ) ;
7272 } ) ;
73- const erc1538ProxyAddress = await deployDiamondProxyWithDefaultFacets (
73+ const diamondProxyAddress = await deployDiamondProxyWithDefaultFacets (
7474 owner ,
7575 // transferOwnershipCall, //TODO
7676 ) ;
77- const erc1538 = DiamondCutFacet__factory . connect ( erc1538ProxyAddress , owner ) ;
78- console . log ( `IexecInstance found at address: ${ await erc1538 . getAddress ( ) } ` ) ;
77+ const diamond = DiamondCutFacet__factory . connect ( diamondProxyAddress , owner ) ;
78+ console . log ( `IexecInstance found at address: ${ await diamond . getAddress ( ) } ` ) ;
7979 // Deploy library & modules
8080 const iexecLibOrdersAddress = await factoryDeployer . deployContract (
8181 new IexecLibOrders_v5__factory ( ) ,
@@ -103,21 +103,21 @@ export default async function deploy() {
103103 ] ;
104104 for ( const module of modules ) {
105105 const address = await factoryDeployer . deployContract ( module ) ;
106- await linkContractToProxy ( erc1538 , address , module ) ;
106+ await linkContractToProxy ( diamond , address , module ) ;
107107 }
108- // Verify linking on ERC1538Proxy
109- const erc1538QueryInstance : DiamondLoupeFacet = DiamondLoupeFacet__factory . connect (
110- erc1538ProxyAddress ,
108+ // Verify linking on Diamond Proxy
109+ const diamondLoupeFacetInstance : DiamondLoupeFacet = DiamondLoupeFacet__factory . connect (
110+ diamondProxyAddress ,
111111 owner ,
112112 ) ;
113- const facets = await erc1538QueryInstance . facets ( ) ;
113+ const facets = await diamondLoupeFacetInstance . facets ( ) ;
114114 const functionCount = facets
115115 . map ( ( facet ) => facet . functionSelectors . length )
116116 . reduce ( ( acc , curr ) => acc + curr , 0 ) ;
117- console . log ( `The deployed ERC1538Proxy now supports ${ functionCount } functions:` ) ;
117+ console . log ( `The deployed Diamond Proxy now supports ${ functionCount } functions:` ) ;
118118 // TODO
119119 // for (let i = 0; i < Number(functionCount); i++) {
120- // const [method, , contract] = await erc1538QueryInstance .functionByIndex(i);
120+ // const [method, , contract] = await diamondLoupeFacetInstance .functionByIndex(i);
121121 // console.log(`[${i}] ${contract} ${method}`);
122122 // }
123123 /**
@@ -174,11 +174,11 @@ export default async function deploy() {
174174 }
175175
176176 // Set main configuration
177- const iexecAccessorsInstance = IexecAccessors__factory . connect ( erc1538ProxyAddress , owner ) ;
177+ const iexecAccessorsInstance = IexecAccessors__factory . connect ( diamondProxyAddress , owner ) ;
178178 const iexecInitialized = ( await iexecAccessorsInstance . eip712domain_separator ( ) ) != ZeroHash ;
179179 if ( ! iexecInitialized ) {
180180 // TODO replace this with DiamondInit.init().
181- await IexecMaintenanceDelegate__factory . connect ( erc1538ProxyAddress , owner )
181+ await IexecMaintenanceDelegate__factory . connect ( diamondProxyAddress , owner )
182182 . configure (
183183 rlcInstanceAddress ,
184184 'Staked RLC' ,
@@ -195,7 +195,7 @@ export default async function deploy() {
195195 const catCountBefore = await iexecAccessorsInstance . countCategory ( ) ;
196196 for ( let i = Number ( catCountBefore ) ; i < config . categories . length ; i ++ ) {
197197 const category = config . categories [ i ] ;
198- await IexecCategoryManager__factory . connect ( erc1538ProxyAddress , owner )
198+ await IexecCategoryManager__factory . connect ( diamondProxyAddress , owner )
199199 . createCategory (
200200 category . name ,
201201 JSON . stringify ( category . description ) ,
0 commit comments