File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
governance/pyth_staking_sdk/src Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1047,6 +1047,9 @@ export class PythStakingClient {
10471047 public async getAllStakeAccountPositionsAllOwners ( ) : Promise <
10481048 StakeAccountPositions [ ]
10491049 > {
1050+ // eslint-disable-next-line no-console
1051+ console . log ( "Calling RPC" )
1052+
10501053 const res = await fetch ( this . connection . rpcEndpoint , {
10511054 method : "POST" ,
10521055 headers : {
@@ -1075,6 +1078,9 @@ export class PythStakingClient {
10751078 } ) ,
10761079 } ) ;
10771080
1081+ // eslint-disable-next-line no-console
1082+ console . log ( "Received response" )
1083+
10781084 if ( res . ok ) {
10791085 const { body } = res ;
10801086 if ( body ) {
@@ -1095,11 +1101,17 @@ export class PythStakingClient {
10951101 }
10961102 } ;
10971103
1104+ // eslint-disable-next-line no-console
1105+ console . log ( "Running JSON parser" )
1106+
10981107 parse ( ) . catch ( ( error : unknown ) => {
10991108 reject ( error instanceof Error ? error : new Error ( "Unknown Error" ) ) ;
11001109 } ) ;
11011110 } ) ;
11021111
1112+ // eslint-disable-next-line no-console
1113+ console . log ( "Parsed JSON" )
1114+
11031115 return accountSchema
11041116 . parse ( accounts )
11051117 . map ( ( { pubkey, account } ) =>
You can’t perform that action at this time.
0 commit comments