diff --git a/solend-sdk/src/rpc/cached.ts b/solend-sdk/src/rpc/cached.ts index 98436b8e..8e0991e4 100644 --- a/solend-sdk/src/rpc/cached.ts +++ b/solend-sdk/src/rpc/cached.ts @@ -163,7 +163,7 @@ export class CachedConnection implements SolendRPCConnection { async getProgramAccounts( programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment - ): Promise> { + ): Promise { const key = `getProgramAccounts_${programId.toBase58()}_${JSON.stringify( configOrCommitment )}`; diff --git a/solend-sdk/src/rpc/instrumented.ts b/solend-sdk/src/rpc/instrumented.ts index 912746f8..89e54336 100644 --- a/solend-sdk/src/rpc/instrumented.ts +++ b/solend-sdk/src/rpc/instrumented.ts @@ -97,7 +97,7 @@ export class InstrumentedConnection implements SolendRPCConnection { getProgramAccounts( programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment - ): Promise> { + ): Promise { return this.withStats( this.connection.getProgramAccounts(programId, configOrCommitment), "getProgramAccounts" diff --git a/solend-sdk/src/rpc/interface.ts b/solend-sdk/src/rpc/interface.ts index 75da66ac..f83c7262 100644 --- a/solend-sdk/src/rpc/interface.ts +++ b/solend-sdk/src/rpc/interface.ts @@ -54,7 +54,7 @@ export interface SolendRPCConnection { getProgramAccounts( programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment - ): Promise>; + ): Promise; getRecentBlockhash(commitment?: Commitment): Promise<{ blockhash: Blockhash; feeCalculator: FeeCalculator; diff --git a/solend-sdk/src/rpc/multi.ts b/solend-sdk/src/rpc/multi.ts index 5accd3cf..d96e6e12 100644 --- a/solend-sdk/src/rpc/multi.ts +++ b/solend-sdk/src/rpc/multi.ts @@ -106,7 +106,7 @@ export class MultiConnection implements SolendRPCConnection { getProgramAccounts( programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment - ): Promise> { + ): Promise { return Promise.race( this.connections.map((c, index) => delayed( diff --git a/solend-sdk/src/rpc/retry.ts b/solend-sdk/src/rpc/retry.ts index 15f064f4..577bae50 100644 --- a/solend-sdk/src/rpc/retry.ts +++ b/solend-sdk/src/rpc/retry.ts @@ -85,7 +85,7 @@ export class RetryConnection implements SolendRPCConnection { getProgramAccounts( programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment - ): Promise> { + ): Promise { return this.withRetries( this.connection.getProgramAccounts(programId, configOrCommitment) );