@@ -15,11 +15,11 @@ type TestNetCreateRequest = {
1515} ;
1616
1717type TestNetResponse < T > = {
18- testnet_id : string ;
18+ testnetId : string ;
1919 command : string ;
20- was_canceled : boolean ;
20+ wasCanceled : boolean ;
2121 body : T | null ;
22- last_state_observed : string | null ;
22+ lastStateObserved : string | null ;
2323 messages : string [ ] | null ;
2424 errors : string [ ] | null ;
2525} ;
@@ -43,14 +43,14 @@ type FetchOptions = {
4343/**
4444 * Snapshot returned from {@link ShivaClient.inspectEpoch} and {@link ShivaClient.waitForEpochChange}.
4545 */
46- type EpochSnapshot = {
47- epoch : number | undefined ;
48- nodeEpochs : Array < { url : string ; epoch : number | undefined } > ;
49- threshold : number | undefined ;
50- connectedCount : number | undefined ;
51- latestBlockhash : string | undefined ;
52- rawContext : any ;
53- } ;
46+ // type EpochSnapshot = {
47+ // epoch: number | undefined;
48+ // nodeEpochs: Array<{ url: string; epoch: number | undefined }>;
49+ // threshold: number | undefined;
50+ // connectedCount: number | undefined;
51+ // latestBlockhash: string | undefined;
52+ // rawContext: any;
53+ // };
5454
5555/**
5656 * Options for {@link ShivaClient.waitForEpochChange}.
@@ -86,8 +86,8 @@ export type ShivaClient = {
8686 deleteTestnet : ( ) => Promise < boolean > ;
8787} ;
8888
89- const DEFAULT_POLL_INTERVAL = 2000 ;
90- const DEFAULT_TIMEOUT = 60_000 ;
89+ // const DEFAULT_POLL_INTERVAL = 2000;
90+ // const DEFAULT_TIMEOUT = 60_000;
9191
9292const normaliseBaseUrl = ( baseUrl : string ) => {
9393 return baseUrl . endsWith ( '/' ) ? baseUrl . slice ( 0 , - 1 ) : baseUrl ;
@@ -176,14 +176,14 @@ const getOrCreateTestnetId = async (
176176 body : createRequest ,
177177 } ) ;
178178
179- if ( ! response . testnet_id ) {
179+ if ( ! response . testnetId ) {
180180 throw new Error (
181- 'Shiva create testnet response did not include testnet_id . Received: ' +
181+ 'Shiva create testnet response did not include testnetId . Received: ' +
182182 JSON . stringify ( response )
183183 ) ;
184184 }
185185
186- return response . testnet_id ;
186+ return response . testnetId ;
187187} ;
188188
189189// const buildEpochSnapshot = (ctx: any): EpochSnapshot => {
0 commit comments