@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.
Files changed (63) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +17 -6
  3. package/dist/cjs/index.d.ts +2 -0
  4. package/dist/cjs/index.js +2885 -2646
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/src/GoldRushClient.d.ts +2 -0
  7. package/dist/cjs/src/services/AllChainsService.d.ts +40 -3
  8. package/dist/cjs/src/services/BalanceService.d.ts +0 -0
  9. package/dist/cjs/src/services/BaseService.d.ts +7 -5
  10. package/dist/cjs/src/services/BitcoinService.d.ts +40 -0
  11. package/dist/cjs/src/services/NftService.d.ts +0 -0
  12. package/dist/cjs/src/services/PricingService.d.ts +0 -0
  13. package/dist/cjs/src/services/SecurityService.d.ts +0 -0
  14. package/dist/cjs/src/services/TransactionService.d.ts +0 -0
  15. package/dist/cjs/src/utils/functions/bigIntParser.d.ts +0 -0
  16. package/dist/cjs/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
  17. package/dist/cjs/src/utils/functions/debugOutput.d.ts +0 -0
  18. package/dist/cjs/src/utils/functions/endpointGenerator.d.ts +0 -0
  19. package/dist/cjs/src/utils/functions/execution.d.ts +0 -0
  20. package/dist/cjs/src/utils/functions/isValidApiKey.d.ts +0 -0
  21. package/dist/cjs/src/utils/functions/paginateEndpoint.d.ts +0 -0
  22. package/dist/cjs/src/utils/functions/prettifyCurrency.d.ts +0 -0
  23. package/dist/cjs/src/utils/functions/timestamp-parser.d.ts +0 -0
  24. package/dist/cjs/src/utils/types/AllChainService.types.d.ts +96 -5
  25. package/dist/cjs/src/utils/types/BalanceService.types.d.ts +5 -5
  26. package/dist/cjs/src/utils/types/BaseService.types.d.ts +3 -19
  27. package/dist/cjs/src/utils/types/BitcoinService.types.d.ts +88 -0
  28. package/dist/cjs/src/utils/types/Generic.types.d.ts +22 -16
  29. package/dist/cjs/src/utils/types/NftService.types.d.ts +0 -0
  30. package/dist/cjs/src/utils/types/PricingService.types.d.ts +0 -0
  31. package/dist/cjs/src/utils/types/SecurityService.types.d.ts +4 -2
  32. package/dist/cjs/src/utils/types/TransactionService.types.d.ts +3 -3
  33. package/dist/esm/index.d.ts +2 -0
  34. package/dist/esm/index.js +2885 -2646
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/src/GoldRushClient.d.ts +2 -0
  37. package/dist/esm/src/services/AllChainsService.d.ts +40 -3
  38. package/dist/esm/src/services/BalanceService.d.ts +0 -0
  39. package/dist/esm/src/services/BaseService.d.ts +7 -5
  40. package/dist/esm/src/services/BitcoinService.d.ts +40 -0
  41. package/dist/esm/src/services/NftService.d.ts +0 -0
  42. package/dist/esm/src/services/PricingService.d.ts +0 -0
  43. package/dist/esm/src/services/SecurityService.d.ts +0 -0
  44. package/dist/esm/src/services/TransactionService.d.ts +0 -0
  45. package/dist/esm/src/utils/functions/bigIntParser.d.ts +0 -0
  46. package/dist/esm/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
  47. package/dist/esm/src/utils/functions/debugOutput.d.ts +0 -0
  48. package/dist/esm/src/utils/functions/endpointGenerator.d.ts +0 -0
  49. package/dist/esm/src/utils/functions/execution.d.ts +0 -0
  50. package/dist/esm/src/utils/functions/isValidApiKey.d.ts +0 -0
  51. package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +0 -0
  52. package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +0 -0
  53. package/dist/esm/src/utils/functions/timestamp-parser.d.ts +0 -0
  54. package/dist/esm/src/utils/types/AllChainService.types.d.ts +96 -5
  55. package/dist/esm/src/utils/types/BalanceService.types.d.ts +5 -5
  56. package/dist/esm/src/utils/types/BaseService.types.d.ts +3 -19
  57. package/dist/esm/src/utils/types/BitcoinService.types.d.ts +88 -0
  58. package/dist/esm/src/utils/types/Generic.types.d.ts +22 -16
  59. package/dist/esm/src/utils/types/NftService.types.d.ts +0 -0
  60. package/dist/esm/src/utils/types/PricingService.types.d.ts +0 -0
  61. package/dist/esm/src/utils/types/SecurityService.types.d.ts +4 -2
  62. package/dist/esm/src/utils/types/TransactionService.types.d.ts +3 -3
  63. package/package.json +1 -1
@@ -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: string;
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: string;
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: string;
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: string;
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`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covalenthq/client-sdk",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",