@@ -32,13 +32,17 @@ export const beforeSetup = async (tokenAmount: number) => {
3232 ( x , y ) => ( { ...x , [ y . address ] : y } ) ,
3333 { }
3434 ) ;
35+
36+ console . log ( "Reading framework config..." ) ;
3537 const readFromDir = __dirname . split ( "test" ) [ 0 ] + "config/hardhat.json" ;
3638 const rawData = fs . readFileSync ( readFromDir ) ;
3739 const frameworkAddresses = JSON . parse ( rawData . toString ( ) ) ;
3840
3941 const users = signers . map ( ( x ) => x . address ) ;
4042 let totalSupply = 0 ;
4143 const chainId = ( await Deployer . provider ! . getNetwork ( ) ) . chainId ;
44+
45+ console . log ( `Creating Superfluid Framework (chainId: ${ chainId } )...` ) ;
4246 const sf = await Framework . create ( {
4347 chainId,
4448 protocolReleaseVersion : "test" ,
@@ -49,6 +53,7 @@ export const beforeSetup = async (tokenAmount: number) => {
4953 const resolver = sf . contracts . resolver . connect ( Deployer ) ;
5054
5155 console . log ( "\n" ) ;
56+ console . log ( "Loading Super Token fDAIx..." ) ;
5257 const fDAIx = await sf . loadWrapperSuperToken ( "fDAIx" ) ;
5358
5459 // types not properly handling this case
@@ -63,6 +68,7 @@ export const beforeSetup = async (tokenAmount: number) => {
6368 const amount = tokenAmount . toFixed ( 0 ) ;
6469
6570 for ( let i = 0 ; i < signers . length ; i ++ ) {
71+ console . log ( `Processing user ${ i + 1 } /${ signers . length } : ${ signers [ i ] . address } ` ) ;
6672 const stringBigIntAmount = ethers . utils . parseUnits ( amount ) . toString ( ) ;
6773 await fDAI
6874 . connect ( signers [ 0 ] )
@@ -80,8 +86,11 @@ export const beforeSetup = async (tokenAmount: number) => {
8086
8187 // NOTE: although we already set this in initialization, we need to reset it here to ensure
8288 // we wait for the indexer to catch up before the tests start
89+ console . log ( "Setting resolver key..." ) ;
8390 const txn = await resolver . set ( "supertokens.test.fDAIx" , fDAIx . address ) ;
8491 const receipt = await txn . wait ( ) ;
92+
93+ console . log ( `Waiting for block ${ receipt . blockNumber } to be indexed...` ) ;
8594 await waitUntilBlockIndexed ( receipt . blockNumber ) ;
8695 const resolverFDAIxAddress = await resolver . get ( "supertokens.test.fDAIx" ) ;
8796
0 commit comments