@covalenthq/client-sdk 2.2.0 → 2.2.2
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/LICENSE +0 -0
- package/README.md +17 -6
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +2885 -2646
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/GoldRushClient.d.ts +2 -0
- package/dist/cjs/src/services/AllChainsService.d.ts +40 -3
- package/dist/cjs/src/services/BalanceService.d.ts +0 -0
- package/dist/cjs/src/services/BaseService.d.ts +7 -5
- package/dist/cjs/src/services/BitcoinService.d.ts +40 -0
- package/dist/cjs/src/services/NftService.d.ts +0 -0
- package/dist/cjs/src/services/PricingService.d.ts +0 -0
- package/dist/cjs/src/services/SecurityService.d.ts +0 -0
- package/dist/cjs/src/services/TransactionService.d.ts +0 -0
- package/dist/cjs/src/utils/functions/bigIntParser.d.ts +0 -0
- package/dist/cjs/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
- package/dist/cjs/src/utils/functions/debugOutput.d.ts +0 -0
- package/dist/cjs/src/utils/functions/endpointGenerator.d.ts +0 -0
- package/dist/cjs/src/utils/functions/execution.d.ts +0 -0
- package/dist/cjs/src/utils/functions/isValidApiKey.d.ts +0 -0
- package/dist/cjs/src/utils/functions/paginateEndpoint.d.ts +0 -0
- package/dist/cjs/src/utils/functions/prettifyCurrency.d.ts +0 -0
- package/dist/cjs/src/utils/functions/timestamp-parser.d.ts +0 -0
- package/dist/cjs/src/utils/types/AllChainService.types.d.ts +96 -5
- package/dist/cjs/src/utils/types/BalanceService.types.d.ts +5 -5
- package/dist/cjs/src/utils/types/BaseService.types.d.ts +3 -19
- package/dist/cjs/src/utils/types/BitcoinService.types.d.ts +88 -0
- package/dist/cjs/src/utils/types/Generic.types.d.ts +22 -16
- package/dist/cjs/src/utils/types/NftService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/PricingService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/SecurityService.types.d.ts +4 -2
- package/dist/cjs/src/utils/types/TransactionService.types.d.ts +3 -3
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2885 -2646
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/GoldRushClient.d.ts +2 -0
- package/dist/esm/src/services/AllChainsService.d.ts +40 -3
- package/dist/esm/src/services/BalanceService.d.ts +0 -0
- package/dist/esm/src/services/BaseService.d.ts +7 -5
- package/dist/esm/src/services/BitcoinService.d.ts +40 -0
- package/dist/esm/src/services/NftService.d.ts +0 -0
- package/dist/esm/src/services/PricingService.d.ts +0 -0
- package/dist/esm/src/services/SecurityService.d.ts +0 -0
- package/dist/esm/src/services/TransactionService.d.ts +0 -0
- package/dist/esm/src/utils/functions/bigIntParser.d.ts +0 -0
- package/dist/esm/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
- package/dist/esm/src/utils/functions/debugOutput.d.ts +0 -0
- package/dist/esm/src/utils/functions/endpointGenerator.d.ts +0 -0
- package/dist/esm/src/utils/functions/execution.d.ts +0 -0
- package/dist/esm/src/utils/functions/isValidApiKey.d.ts +0 -0
- package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +0 -0
- package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +0 -0
- package/dist/esm/src/utils/functions/timestamp-parser.d.ts +0 -0
- package/dist/esm/src/utils/types/AllChainService.types.d.ts +96 -5
- package/dist/esm/src/utils/types/BalanceService.types.d.ts +5 -5
- package/dist/esm/src/utils/types/BaseService.types.d.ts +3 -19
- package/dist/esm/src/utils/types/BitcoinService.types.d.ts +88 -0
- package/dist/esm/src/utils/types/Generic.types.d.ts +22 -16
- package/dist/esm/src/utils/types/NftService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/PricingService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/SecurityService.types.d.ts +4 -2
- package/dist/esm/src/utils/types/TransactionService.types.d.ts +3 -3
- package/package.json +1 -1
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type ChainID, type ChainName, type Nullable } from "./Generic.types";
|
|
1
|
+
import { type ChainID, type ChainName, type Nullable, type Quote } from "./Generic.types";
|
|
2
2
|
export type ApprovalsResponse = Nullable<{
|
|
3
3
|
/** * The requested address. */
|
|
4
4
|
address: string;
|
|
5
5
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
6
6
|
updated_at: Date;
|
|
7
7
|
/** * The requested quote currency eg: `USD`. */
|
|
8
|
-
quote_currency:
|
|
8
|
+
quote_currency: Quote;
|
|
9
9
|
/** * The requested chain ID eg: `1`. */
|
|
10
10
|
chain_id: ChainID;
|
|
11
11
|
/** * The requested chain name eg: `eth-mainnet`. */
|
|
@@ -89,6 +89,8 @@ export type NftApprovalsItem = Nullable<{
|
|
|
89
89
|
contract_address_label: string;
|
|
90
90
|
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
91
91
|
contract_ticker_symbol: string;
|
|
92
|
+
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
93
|
+
supports_erc: string[];
|
|
92
94
|
/** * List of asset balances held by the user. */
|
|
93
95
|
token_balances: NftApprovalBalance[];
|
|
94
96
|
/** * Contracts with non-zero approvals for this token. */
|
|
@@ -268,7 +268,7 @@ export type RecentTransactionsResponse = Nullable<{
|
|
|
268
268
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
269
269
|
updated_at: Date;
|
|
270
270
|
/** * The requested quote currency eg: `USD`. */
|
|
271
|
-
quote_currency:
|
|
271
|
+
quote_currency: Quote;
|
|
272
272
|
/** * The requested chain ID eg: `1`. */
|
|
273
273
|
chain_id: ChainID;
|
|
274
274
|
/** * The requested chain name eg: `eth-mainnet`. */
|
|
@@ -290,7 +290,7 @@ export type TransactionsTimeBucketResponse = Nullable<{
|
|
|
290
290
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
291
291
|
updated_at: Date;
|
|
292
292
|
/** * The requested quote currency eg: `USD`. */
|
|
293
|
-
quote_currency:
|
|
293
|
+
quote_currency: Quote;
|
|
294
294
|
/** * The requested chain ID eg: `1`. */
|
|
295
295
|
chain_id: ChainID;
|
|
296
296
|
/** * The requested chain name eg: `eth-mainnet`. */
|
|
@@ -353,7 +353,7 @@ export type TransactionsResponse = Nullable<{
|
|
|
353
353
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
354
354
|
updated_at: Date;
|
|
355
355
|
/** * The requested quote currency eg: `USD`. */
|
|
356
|
-
quote_currency:
|
|
356
|
+
quote_currency: Quote;
|
|
357
357
|
/** * The requested chain ID eg: `1`. */
|
|
358
358
|
chain_id: ChainID;
|
|
359
359
|
/** * The requested chain name eg: `eth-mainnet`. */
|