@covalenthq/client-sdk 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/services/TransactionService.d.ts +0 -3
- package/dist/cjs/src/utils/types/Generic.types.d.ts +9 -4
- package/dist/cjs/src/utils/types/TransactionService.types.d.ts +0 -6
- package/dist/esm/index.js +2 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/services/TransactionService.d.ts +0 -3
- package/dist/esm/src/utils/types/Generic.types.d.ts +9 -4
- package/dist/esm/src/utils/types/TransactionService.types.d.ts +0 -6
- package/package.json +1 -1
|
@@ -17,9 +17,6 @@ export declare class TransactionService {
|
|
|
17
17
|
* @param {GetTransactionQueryParamOpts} queryParamOpts
|
|
18
18
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
19
19
|
* - `noLogs`: Omit log events.
|
|
20
|
-
* - `withDex`: Decoded DEX details including protocol (e.g. Uniswap), event (e.g 'add_liquidity') and tokens involved with historical prices. Additional 0.05 credits charged if data available.
|
|
21
|
-
* - `withNftSales`: Decoded NFT sales details including marketplace (e.g. Opensea) and cached media links. Additional 0.05 credits charged if data available.
|
|
22
|
-
* - `withLending`: Decoded lending details including protocol (e.g. Aave), event (e.g. 'deposit') and tokens involved with prices. Additional 0.05 credits charged if data available.
|
|
23
20
|
* - `withSafe`: Include safe details.
|
|
24
21
|
*
|
|
25
22
|
*/
|
|
@@ -455,12 +455,17 @@ export interface LogoUrls {
|
|
|
455
455
|
/** * The chain logo URL. */
|
|
456
456
|
chain_logo_url: string;
|
|
457
457
|
}
|
|
458
|
-
export type GoldRushResponse<T> =
|
|
458
|
+
export type GoldRushResponse<T> = {
|
|
459
459
|
data: T;
|
|
460
|
-
error:
|
|
461
|
-
error_code:
|
|
460
|
+
error: false | null;
|
|
461
|
+
error_code: null;
|
|
462
|
+
error_message: null;
|
|
463
|
+
} | {
|
|
464
|
+
data: null;
|
|
465
|
+
error: true;
|
|
466
|
+
error_code: number;
|
|
462
467
|
error_message: string;
|
|
463
|
-
}
|
|
468
|
+
};
|
|
464
469
|
export interface GoldRushClientSettings {
|
|
465
470
|
/** * Toggle to analyze the execution of each api request. */
|
|
466
471
|
debug?: boolean;
|
|
@@ -405,12 +405,6 @@ export type GetTransactionQueryParamOpts = Nullable<{
|
|
|
405
405
|
quoteCurrency?: Quote;
|
|
406
406
|
/** * Omit log events. */
|
|
407
407
|
noLogs?: boolean;
|
|
408
|
-
/** * Decoded DEX details including protocol (e.g. Uniswap), event (e.g 'add_liquidity') and tokens involved with historical prices. Additional 0.05 credits charged if data available. */
|
|
409
|
-
withDex?: boolean;
|
|
410
|
-
/** * Decoded NFT sales details including marketplace (e.g. Opensea) and cached media links. Additional 0.05 credits charged if data available. */
|
|
411
|
-
withNftSales?: boolean;
|
|
412
|
-
/** * Decoded lending details including protocol (e.g. Aave), event (e.g. 'deposit') and tokens involved with prices. Additional 0.05 credits charged if data available. */
|
|
413
|
-
withLending?: boolean;
|
|
414
408
|
/** * Include safe details. */
|
|
415
409
|
withSafe?: boolean;
|
|
416
410
|
}>;
|