22 * Contract watcher
33 *
44 * Watches app status until it reaches Running state using UserAPI.
5- *
5+ *
66 * Supports two modes:
77 * 1. CLI mode: Pass privateKey + rpcUrl
88 * 2. WithSigner mode: Pass signMessage callback + address
@@ -45,7 +45,7 @@ const APP_STATUS_FAILED = "Failed";
4545
4646/**
4747 * Watch app until it reaches Running status with IP address
48- *
48+ *
4949 * Supports two modes:
5050 * - CLI mode: Pass { privateKey, rpcUrl, ... }
5151 * - WithSigner mode: Pass { signMessage, address, rpcUrl, ... }
@@ -58,17 +58,21 @@ export async function watchUntilRunning(
5858
5959 // Create UserAPI client based on mode
6060 let userApiClient : UserApiClient | UserApiClientWithSigner ;
61- if ( ' signMessage' in options && options . signMessage ) {
61+ if ( " signMessage" in options && options . signMessage ) {
6262 // WithSigner mode
6363 userApiClient = new UserApiClientWithSigner (
6464 environmentConfig ,
6565 options . signMessage ,
6666 options . address ,
67- rpcUrl
67+ rpcUrl ,
6868 ) ;
6969 } else {
7070 // CLI mode
71- userApiClient = new UserApiClient ( environmentConfig , ( options as WatchCLIModeOptions ) . privateKey , rpcUrl ) ;
71+ userApiClient = new UserApiClient (
72+ environmentConfig ,
73+ ( options as WatchCLIModeOptions ) . privateKey ,
74+ rpcUrl ,
75+ ) ;
7276 }
7377
7478 // Track initial status and whether we've seen a change
@@ -148,7 +152,7 @@ const APP_STATUS_STOPPED = "Stopped";
148152 * Watch app until upgrade completes
149153 * For upgrades, we watch until the app reaches Stopped status (upgrade complete)
150154 * or Running status (if it was running before upgrade)
151- *
155+ *
152156 * Supports two modes:
153157 * - CLI mode: Pass { privateKey, rpcUrl, ... }
154158 * - WithSigner mode: Pass { signMessage, address, rpcUrl, ... }
@@ -161,17 +165,21 @@ export async function watchUntilUpgradeComplete(
161165
162166 // Create UserAPI client based on mode
163167 let userApiClient : UserApiClient | UserApiClientWithSigner ;
164- if ( ' signMessage' in options && options . signMessage ) {
168+ if ( " signMessage" in options && options . signMessage ) {
165169 // WithSigner mode
166170 userApiClient = new UserApiClientWithSigner (
167171 environmentConfig ,
168172 options . signMessage ,
169173 options . address ,
170- rpcUrl
174+ rpcUrl ,
171175 ) ;
172176 } else {
173177 // CLI mode
174- userApiClient = new UserApiClient ( environmentConfig , ( options as WatchCLIModeOptions ) . privateKey , rpcUrl ) ;
178+ userApiClient = new UserApiClient (
179+ environmentConfig ,
180+ ( options as WatchCLIModeOptions ) . privateKey ,
181+ rpcUrl ,
182+ ) ;
175183 }
176184
177185 // Track initial status and whether we've seen a change
0 commit comments