@@ -39,7 +39,7 @@ export const migrate = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo
39
39
const force = cliArgs . force
40
40
const contractName = cliArgs . contract
41
41
42
- logger . info ( ` Migrating contracts... `)
42
+ logger . log ( `>>> Migrating contracts <<<\n `)
43
43
44
44
const graphConfig = readConfig ( graphConfigPath )
45
45
@@ -54,13 +54,13 @@ export const migrate = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo
54
54
const deployContracts = contractName ? [ contractName ] : allContracts
55
55
const pendingContractCalls = [ ]
56
56
57
- logger . log ( `== Contracts deployment\n` )
57
+ logger . log ( `>>> Contracts deployment\n` )
58
58
for ( const name of deployContracts ) {
59
59
// Get address book info
60
60
const addressEntry = cli . addressBook . getEntry ( name )
61
61
const savedAddress = addressEntry && addressEntry . address
62
62
63
- logger . info ( `Deploying ${ name } ... ` )
63
+ logger . info ( `[ Deploying ${ name } ] ` )
64
64
65
65
// Check if contract already deployed
66
66
const isDeployed = await isContractDeployed (
@@ -70,7 +70,7 @@ export const migrate = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo
70
70
cli . wallet . provider ,
71
71
)
72
72
if ( ! force && isDeployed ) {
73
- logger . info ( `${ name } is up to date, no action required` )
73
+ logger . log ( `${ name } is up to date, no action required` )
74
74
logger . log ( `Address: ${ savedAddress } \n` )
75
75
continue
76
76
}
@@ -98,12 +98,12 @@ export const migrate = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo
98
98
// Run contracts calls
99
99
100
100
logger . log ( '' )
101
- logger . log ( `== Contracts calls\n` )
101
+ logger . log ( `>>> Contracts calls\n` )
102
102
if ( pendingContractCalls . length > 0 ) {
103
103
for ( const entry of pendingContractCalls ) {
104
104
if ( entry . calls . length == 0 ) continue
105
105
106
- logger . info ( `Configuring ${ entry . name } ... ` )
106
+ logger . info ( `[ Configuring ${ entry . name } ] ` )
107
107
for ( const call of entry . calls ) {
108
108
await sendTransaction ( cli . wallet , entry . contract , call . fn , ...call . params )
109
109
}
@@ -116,7 +116,7 @@ export const migrate = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo
116
116
////////////////////////////////////////
117
117
// Print summary
118
118
logger . log ( '' )
119
- logger . log ( `== Summary\n` )
119
+ logger . log ( `>>> Summary\n` )
120
120
logger . success ( 'All done!' )
121
121
const spent = formatEther ( cli . balance . sub ( await cli . wallet . getBalance ( ) ) )
122
122
const nTx = ( await cli . wallet . getTransactionCount ( ) ) - cli . nonce
0 commit comments