@covalenthq/client-sdk 1.0.2 → 2.0.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/LICENSE +201 -0
- package/README.md +223 -282
- package/dist/cjs/index.d.ts +17 -20
- package/dist/cjs/index.js +2331 -7659
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/GoldRushClient.d.ts +20 -0
- package/dist/cjs/src/services/BalanceService.d.ts +125 -0
- package/dist/cjs/src/services/BaseService.d.ts +161 -0
- package/dist/cjs/src/services/NftService.d.ts +157 -0
- package/dist/cjs/src/services/PricingService.d.ts +25 -0
- package/dist/cjs/src/services/SecurityService.d.ts +28 -0
- package/dist/cjs/src/services/TransactionService.d.ts +128 -0
- package/dist/cjs/src/utils/functions/bigIntParser.d.ts +1 -0
- package/dist/cjs/{util/CalculatePrettyBalance.d.ts → src/utils/functions/calculatePrettyBalance.d.ts} +0 -0
- package/dist/cjs/src/utils/functions/debugOutput.d.ts +2 -0
- package/dist/cjs/src/utils/functions/endpointGenerator.d.ts +4 -0
- package/dist/cjs/src/utils/functions/execution.d.ts +11 -0
- package/dist/cjs/src/utils/functions/isValidApiKey.d.ts +1 -0
- package/dist/cjs/src/utils/functions/paginateEndpoint.d.ts +7 -0
- package/dist/cjs/src/utils/functions/prettifyCurrency.d.ts +2 -0
- package/dist/{esm/util/types/BalanceServiceTypes.d.ts → cjs/src/utils/types/BalanceService.types.d.ts} +91 -27
- package/dist/{es/util/types/BaseServiceTypes.d.ts → cjs/src/utils/types/BaseService.types.d.ts} +68 -18
- package/dist/cjs/src/utils/types/Generic.types.d.ts +477 -0
- package/dist/{esm/util/types/NftServiceTypes.d.ts → cjs/src/utils/types/NftService.types.d.ts} +53 -83
- package/dist/cjs/{util/types/PricingServiceTypes.d.ts → src/utils/types/PricingService.types.d.ts} +9 -3
- package/dist/{esm/util/types/SecurityServiceTypes.d.ts → cjs/src/utils/types/SecurityService.types.d.ts} +8 -7
- package/dist/{esm/util/types/TransactionServiceTypes.d.ts → cjs/src/utils/types/TransactionService.types.d.ts} +110 -24
- package/dist/es/index.d.ts +17 -20
- package/dist/es/index.js +2327 -7649
- package/dist/es/index.js.map +1 -1
- package/dist/es/src/GoldRushClient.d.ts +20 -0
- package/dist/es/src/services/BalanceService.d.ts +125 -0
- package/dist/es/src/services/BaseService.d.ts +161 -0
- package/dist/es/src/services/NftService.d.ts +157 -0
- package/dist/es/src/services/PricingService.d.ts +25 -0
- package/dist/es/src/services/SecurityService.d.ts +28 -0
- package/dist/es/src/services/TransactionService.d.ts +128 -0
- package/dist/es/src/utils/functions/bigIntParser.d.ts +1 -0
- package/dist/es/{util/CalculatePrettyBalance.d.ts → src/utils/functions/calculatePrettyBalance.d.ts} +0 -0
- package/dist/es/src/utils/functions/debugOutput.d.ts +2 -0
- package/dist/es/src/utils/functions/endpointGenerator.d.ts +4 -0
- package/dist/es/src/utils/functions/execution.d.ts +11 -0
- package/dist/es/src/utils/functions/isValidApiKey.d.ts +1 -0
- package/dist/es/src/utils/functions/paginateEndpoint.d.ts +7 -0
- package/dist/es/src/utils/functions/prettifyCurrency.d.ts +2 -0
- package/dist/{cjs/util/types/BalanceServiceTypes.d.ts → es/src/utils/types/BalanceService.types.d.ts} +91 -27
- package/dist/{esm/util/types/BaseServiceTypes.d.ts → es/src/utils/types/BaseService.types.d.ts} +68 -18
- package/dist/es/src/utils/types/Generic.types.d.ts +477 -0
- package/dist/{cjs/util/types/NftServiceTypes.d.ts → es/src/utils/types/NftService.types.d.ts} +53 -83
- package/dist/es/{util/types/PricingServiceTypes.d.ts → src/utils/types/PricingService.types.d.ts} +9 -3
- package/dist/{util/types/SecurityServiceTypes.d.ts → es/src/utils/types/SecurityService.types.d.ts} +8 -7
- package/dist/{cjs/util/types/TransactionServiceTypes.d.ts → es/src/utils/types/TransactionService.types.d.ts} +110 -24
- package/dist/esm/index.d.ts +17 -20
- package/dist/esm/index.js +2327 -7649
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/GoldRushClient.d.ts +20 -0
- package/dist/esm/src/services/BalanceService.d.ts +125 -0
- package/dist/esm/src/services/BaseService.d.ts +161 -0
- package/dist/esm/src/services/NftService.d.ts +157 -0
- package/dist/esm/src/services/PricingService.d.ts +25 -0
- package/dist/esm/src/services/SecurityService.d.ts +28 -0
- package/dist/esm/src/services/TransactionService.d.ts +128 -0
- package/dist/esm/src/utils/functions/bigIntParser.d.ts +1 -0
- package/dist/esm/{util/CalculatePrettyBalance.d.ts → src/utils/functions/calculatePrettyBalance.d.ts} +0 -0
- package/dist/esm/src/utils/functions/debugOutput.d.ts +2 -0
- package/dist/esm/src/utils/functions/endpointGenerator.d.ts +4 -0
- package/dist/esm/src/utils/functions/execution.d.ts +11 -0
- package/dist/esm/src/utils/functions/isValidApiKey.d.ts +1 -0
- package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +7 -0
- package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +2 -0
- package/dist/{util/types/BalanceServiceTypes.d.ts → esm/src/utils/types/BalanceService.types.d.ts} +91 -27
- package/dist/{cjs/util/types/BaseServiceTypes.d.ts → esm/src/utils/types/BaseService.types.d.ts} +68 -18
- package/dist/esm/src/utils/types/Generic.types.d.ts +477 -0
- package/dist/{util/types/NftServiceTypes.d.ts → esm/src/utils/types/NftService.types.d.ts} +53 -83
- package/dist/esm/{util/types/PricingServiceTypes.d.ts → src/utils/types/PricingService.types.d.ts} +9 -3
- package/dist/{es/util/types/SecurityServiceTypes.d.ts → esm/src/utils/types/SecurityService.types.d.ts} +8 -7
- package/dist/{util/types/TransactionServiceTypes.d.ts → esm/src/utils/types/TransactionService.types.d.ts} +110 -24
- package/package.json +25 -12
- package/dist/cjs/services/BalanceService.d.ts +0 -638
- package/dist/cjs/services/BaseService.d.ts +0 -571
- package/dist/cjs/services/CovalentClient.d.ts +0 -57
- package/dist/cjs/services/NftService.d.ts +0 -686
- package/dist/cjs/services/PricingService.d.ts +0 -103
- package/dist/cjs/services/SecurityService.d.ts +0 -162
- package/dist/cjs/services/TransactionService.d.ts +0 -711
- package/dist/cjs/services/XykService.d.ts +0 -1018
- package/dist/cjs/util/ApiHelpers.d.ts +0 -6
- package/dist/cjs/util/ApiKeyValidator.d.ts +0 -8
- package/dist/cjs/util/Chains.d.ts +0 -223
- package/dist/cjs/util/backoff.d.ts +0 -12
- package/dist/cjs/util/prettifyCurrency.d.ts +0 -2
- package/dist/cjs/util/types/GenericTypes.d.ts +0 -116
- package/dist/cjs/util/types/SecurityServiceTypes.d.ts +0 -121
- package/dist/cjs/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/es/services/BalanceService.d.ts +0 -638
- package/dist/es/services/BaseService.d.ts +0 -571
- package/dist/es/services/CovalentClient.d.ts +0 -57
- package/dist/es/services/NftService.d.ts +0 -686
- package/dist/es/services/PricingService.d.ts +0 -103
- package/dist/es/services/SecurityService.d.ts +0 -162
- package/dist/es/services/TransactionService.d.ts +0 -711
- package/dist/es/services/XykService.d.ts +0 -1018
- package/dist/es/util/ApiHelpers.d.ts +0 -6
- package/dist/es/util/ApiKeyValidator.d.ts +0 -8
- package/dist/es/util/Chains.d.ts +0 -223
- package/dist/es/util/backoff.d.ts +0 -12
- package/dist/es/util/prettifyCurrency.d.ts +0 -2
- package/dist/es/util/types/BalanceServiceTypes.d.ts +0 -378
- package/dist/es/util/types/GenericTypes.d.ts +0 -116
- package/dist/es/util/types/NftServiceTypes.d.ts +0 -303
- package/dist/es/util/types/TransactionServiceTypes.d.ts +0 -388
- package/dist/es/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/esm/services/BalanceService.d.ts +0 -638
- package/dist/esm/services/BaseService.d.ts +0 -571
- package/dist/esm/services/CovalentClient.d.ts +0 -57
- package/dist/esm/services/NftService.d.ts +0 -686
- package/dist/esm/services/PricingService.d.ts +0 -103
- package/dist/esm/services/SecurityService.d.ts +0 -162
- package/dist/esm/services/TransactionService.d.ts +0 -711
- package/dist/esm/services/XykService.d.ts +0 -1018
- package/dist/esm/util/ApiHelpers.d.ts +0 -6
- package/dist/esm/util/ApiKeyValidator.d.ts +0 -8
- package/dist/esm/util/Chains.d.ts +0 -223
- package/dist/esm/util/backoff.d.ts +0 -12
- package/dist/esm/util/prettifyCurrency.d.ts +0 -2
- package/dist/esm/util/types/GenericTypes.d.ts +0 -116
- package/dist/esm/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- package/dist/services/BalanceService.d.ts +0 -638
- package/dist/services/BalanceService.js +0 -959
- package/dist/services/BalanceService.js.map +0 -1
- package/dist/services/BaseService.d.ts +0 -571
- package/dist/services/BaseService.js +0 -1202
- package/dist/services/BaseService.js.map +0 -1
- package/dist/services/CovalentClient.d.ts +0 -57
- package/dist/services/CovalentClient.js +0 -49
- package/dist/services/CovalentClient.js.map +0 -1
- package/dist/services/NftService.d.ts +0 -686
- package/dist/services/NftService.js +0 -1490
- package/dist/services/NftService.js.map +0 -1
- package/dist/services/PricingService.d.ts +0 -103
- package/dist/services/PricingService.js +0 -155
- package/dist/services/PricingService.js.map +0 -1
- package/dist/services/SecurityService.d.ts +0 -162
- package/dist/services/SecurityService.js +0 -249
- package/dist/services/SecurityService.js.map +0 -1
- package/dist/services/TransactionService.d.ts +0 -711
- package/dist/services/TransactionService.js +0 -1687
- package/dist/services/TransactionService.js.map +0 -1
- package/dist/services/XykService.d.ts +0 -1018
- package/dist/services/XykService.js +0 -1827
- package/dist/services/XykService.js.map +0 -1
- package/dist/util/ApiHelpers.d.ts +0 -6
- package/dist/util/ApiHelpers.js +0 -87
- package/dist/util/ApiHelpers.js.map +0 -1
- package/dist/util/ApiKeyValidator.d.ts +0 -8
- package/dist/util/ApiKeyValidator.js +0 -13
- package/dist/util/ApiKeyValidator.js.map +0 -1
- package/dist/util/CalculatePrettyBalance.d.ts +0 -1
- package/dist/util/CalculatePrettyBalance.js +0 -32
- package/dist/util/CalculatePrettyBalance.js.map +0 -1
- package/dist/util/Chains.d.ts +0 -223
- package/dist/util/Chains.js +0 -225
- package/dist/util/Chains.js.map +0 -1
- package/dist/util/backoff.d.ts +0 -12
- package/dist/util/backoff.js +0 -47
- package/dist/util/backoff.js.map +0 -1
- package/dist/util/prettifyCurrency.d.ts +0 -2
- package/dist/util/prettifyCurrency.js +0 -69
- package/dist/util/prettifyCurrency.js.map +0 -1
- package/dist/util/types/BalanceServiceTypes.js +0 -2
- package/dist/util/types/BalanceServiceTypes.js.map +0 -1
- package/dist/util/types/BaseServiceTypes.d.ts +0 -276
- package/dist/util/types/BaseServiceTypes.js +0 -2
- package/dist/util/types/BaseServiceTypes.js.map +0 -1
- package/dist/util/types/GenericTypes.d.ts +0 -116
- package/dist/util/types/GenericTypes.js +0 -2
- package/dist/util/types/GenericTypes.js.map +0 -1
- package/dist/util/types/NftServiceTypes.js +0 -2
- package/dist/util/types/NftServiceTypes.js.map +0 -1
- package/dist/util/types/PricingServiceTypes.d.ts +0 -33
- package/dist/util/types/PricingServiceTypes.js +0 -2
- package/dist/util/types/PricingServiceTypes.js.map +0 -1
- package/dist/util/types/SecurityServiceTypes.js +0 -2
- package/dist/util/types/SecurityServiceTypes.js.map +0 -1
- package/dist/util/types/TransactionServiceTypes.js +0 -2
- package/dist/util/types/TransactionServiceTypes.js.map +0 -1
- package/dist/util/types/XykServiceTypes.d.ts +0 -687
- package/dist/util/types/XykServiceTypes.js +0 -2
- package/dist/util/types/XykServiceTypes.js.map +0 -1
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
export declare enum ChainName {
|
|
2
|
+
ETH_MAINNET = "eth-mainnet",
|
|
3
|
+
ETH_GOERLI = "eth-goerli",
|
|
4
|
+
ETH_SEPOLIA = "eth-sepolia",
|
|
5
|
+
ETH_HOLESKY = "eth-holesky",
|
|
6
|
+
MATIC_MAINNET = "matic-mainnet",
|
|
7
|
+
MATIC_MUMBAI = "matic-mumbai",
|
|
8
|
+
AVALANCHE_MAINNET = "avalanche-mainnet",
|
|
9
|
+
AVALANCHE_TESTNET = "avalanche-testnet",
|
|
10
|
+
BSC_MAINNET = "bsc-mainnet",
|
|
11
|
+
BSC_TESTNET = "bsc-testnet",
|
|
12
|
+
MOONBEAM_MAINNET = "moonbeam-mainnet",
|
|
13
|
+
MOONBEAM_MOONBASE_ALPHA = "moonbeam-moonbase-alpha",
|
|
14
|
+
MOONBEAM_MOONRIVER = "moonbeam-moonriver",
|
|
15
|
+
RSK_MAINNET = "rsk-mainnet",
|
|
16
|
+
RSK_TESTNET = "rsk-testnet",
|
|
17
|
+
ARBITRUM_MAINNET = "arbitrum-mainnet",
|
|
18
|
+
ARBITRUM_NOVA_MAINNET = "arbitrum-nova-mainnet",
|
|
19
|
+
ARBITRUM_SEPOLIA = "arbitrum-sepolia",
|
|
20
|
+
FANTOM_MAINNET = "fantom-mainnet",
|
|
21
|
+
FANTOM_TESTNET = "fantom-testnet",
|
|
22
|
+
PALM_MAINNET = "palm-mainnet",
|
|
23
|
+
PALM_TESTNET = "palm-testnet",
|
|
24
|
+
BTC_MAINNET = "btc-mainnet",
|
|
25
|
+
SOLANA_MAINNET = "solana-mainnet",
|
|
26
|
+
AXIE_MAINNET = "axie-mainnet",
|
|
27
|
+
OPTIMISM_MAINNET = "optimism-mainnet",
|
|
28
|
+
OPTIMISM_SEPOLIA = "optimism-sepolia",
|
|
29
|
+
EVMOS_MAINNET = "evmos-mainnet",
|
|
30
|
+
EVMOS_TESTNET = "evmos-testnet",
|
|
31
|
+
HARMONY_MAINNET = "harmony-mainnet",
|
|
32
|
+
HARMONY_TESTNET = "harmony-testnet",
|
|
33
|
+
CRONOS_MAINNET = "cronos-mainnet",
|
|
34
|
+
CRONOS_TESTNET = "cronos-testnet",
|
|
35
|
+
CRONOS_ZKEVM_TESTNET = "cronos-zkevm-testnet",
|
|
36
|
+
AURORA_MAINNET = "aurora-mainnet",
|
|
37
|
+
AURORA_TESTNET = "aurora-testnet",
|
|
38
|
+
EMERALD_PARATIME_MAINNET = "emerald-paratime-mainnet",
|
|
39
|
+
DEFI_KINGDOMS_MAINNET = "defi-kingdoms-mainnet",
|
|
40
|
+
DEFI_KINGDOMS_TESTNET = "defi-kingdoms-testnet",
|
|
41
|
+
BOBA_MAINNET = "boba-mainnet",
|
|
42
|
+
BOBA_BNB_MAINNET = "boba-bnb-mainnet",
|
|
43
|
+
BOBA_BNB_TESTNET = "boba-bnb-testnet",
|
|
44
|
+
SCROLL_SEPOLIA_TESTNET = "scroll-sepolia-testnet",
|
|
45
|
+
METIS_MAINNET = "metis-mainnet",
|
|
46
|
+
METIS_STARDUST = "metis-stardust",
|
|
47
|
+
AVALANCHE_DEXALOT_MAINNET = "avalanche-dexalot-mainnet",
|
|
48
|
+
AVALANCHE_DEXALOT_TESTNET = "avalanche-dexalot-testnet",
|
|
49
|
+
AVALANCHE_SHRAPNEL_MAINNET = "avalanche-shrapnel-mainnet",
|
|
50
|
+
AVALANCHE_NUMBERS = "avalanche-numbers",
|
|
51
|
+
AVALANCHE_DOS = "avalanche-dos",
|
|
52
|
+
AVALANCHE_XPLUS = "avalanche-xplus",
|
|
53
|
+
AVALANCHE_XANACHAIN = "avalanche-xanachain",
|
|
54
|
+
AVALANCHE_STEP_NETWORK = "avalanche-step-network",
|
|
55
|
+
AVALANCHE_SHRAPNEL_TESTNET = "avalanche-shrapnel-testnet",
|
|
56
|
+
AVALANCHE_BEAM_TESTNET = "avalanche-beam-testnet",
|
|
57
|
+
AVALANCHE_BLITZ_TESTNET = "avalanche-blitz-testnet",
|
|
58
|
+
AVALANCHE_MINTARA_TESTNET = "avalanche-mintara-testnet",
|
|
59
|
+
AVALANCHE_GREEN_DOT_TESTNET = "avalanche-green-dot-testnet",
|
|
60
|
+
AVALANCHE_PULSAR_TESTNET = "avalanche-pulsar-testnet",
|
|
61
|
+
AVALANCHE_UPTN = "avalanche-uptn",
|
|
62
|
+
AVALANCHE_AVACLOUD_TESTNET = "avalanche-avacloud-testnet",
|
|
63
|
+
AVALANCHE_BEAM_MAINNET = "avalanche-beam-mainnet",
|
|
64
|
+
AVALANCHE_BULLETIN_TESTNET = "avalanche-bulletin-testnet",
|
|
65
|
+
AVALANCHE_CONDUIT_TESTNET = "avalanche-conduit-testnet",
|
|
66
|
+
AVALANCHE_HERO_TESTNET = "avalanche-hero-testnet",
|
|
67
|
+
AVALANCHE_HUBBLE_EXCHANGE_TESTNET = "avalanche-hubble-exchange-testnet",
|
|
68
|
+
AVALANCHE_KIWI_TESTNET = "avalanche-kiwi-testnet",
|
|
69
|
+
AVALANCHE_MIHO_TESTNET = "avalanche-miho-testnet",
|
|
70
|
+
AVALANCHE_MONDRIAN_TESTNET = "avalanche-mondrian-testnet",
|
|
71
|
+
AVALANCHE_NMAC_TESTNET = "avalanche-nmac-testnet",
|
|
72
|
+
AVALANCHE_ORDERLY_TESTNET = "avalanche-orderly-testnet",
|
|
73
|
+
AVALANCHE_THIRDWEB_TESTNET = "avalanche-thirdweb-testnet",
|
|
74
|
+
AVALANCHE_WAGMI_TESTNET = "avalanche-wagmi-testnet",
|
|
75
|
+
AVALANCHE_PLAYA3ULL_TESTNET = "avalanche-playa3ull-testnet",
|
|
76
|
+
AVALANCHE_MIRAI_TESTNET = "avalanche-mirai-testnet",
|
|
77
|
+
AVALANCHE_AMPLIFY_TESTNET = "avalanche-amplify-testnet",
|
|
78
|
+
AVALANCHE_LT0_TESTNET = "avalanche-lt0-testnet",
|
|
79
|
+
AVALANCHE_LT5_TESTNET = "avalanche-lt5-testnet",
|
|
80
|
+
AVALANCHE_HUBBLE_EXCHANGE_MAINNET = "avalanche-hubble-exchange-mainnet",
|
|
81
|
+
METER_MAINNET = "meter-mainnet",
|
|
82
|
+
METER_TESTNET = "meter-testnet",
|
|
83
|
+
MILKOMEDA_A1_MAINNET = "milkomeda-a1-mainnet",
|
|
84
|
+
MILKOMEDA_C1_MAINNET = "milkomeda-c1-mainnet",
|
|
85
|
+
MILKOMEDA_C1_DEVNET = "milkomeda-c1-devnet",
|
|
86
|
+
CANTO_MAINNET = "canto-mainnet",
|
|
87
|
+
FLARENETWORKS_FLARE_MAINNET = "flarenetworks-flare-mainnet",
|
|
88
|
+
FLARENETWORKS_FLARE_TESTNET = "flarenetworks-flare-testnet",
|
|
89
|
+
FLARENETWORKS_CANARY_MAINNET = "flarenetworks-canary-mainnet",
|
|
90
|
+
FLARENETWORKS_CANARY_TESTNET = "flarenetworks-canary-testnet",
|
|
91
|
+
KCC_MAINNET = "kcc-mainnet",
|
|
92
|
+
KCC_TESTNET = "kcc-testnet",
|
|
93
|
+
LINEA_MAINNET = "linea-mainnet",
|
|
94
|
+
POLYGON_ZKEVM_MAINNET = "polygon-zkevm-mainnet",
|
|
95
|
+
LINEA_SEPOLIA_TESTNET = "linea-sepolia-testnet",
|
|
96
|
+
LINEA_GOERLI_TESTNET = "linea-goerli-testnet",
|
|
97
|
+
POLYGON_ZKEVM_TESTNET = "polygon-zkevm-testnet",
|
|
98
|
+
POLYGON_AMOY_TESTNET = "polygon-amoy-testnet",
|
|
99
|
+
MANTLE_MAINNET = "mantle-mainnet",
|
|
100
|
+
MANTLE_SEPOLIA_TESTNET = "mantle-sepolia-testnet",
|
|
101
|
+
POLYGON_ZKEVM_CARDONA_TESTNET = "polygon-zkevm-cardona-testnet",
|
|
102
|
+
BASE_MAINNET = "base-mainnet",
|
|
103
|
+
BASE_TESTNET = "base-testnet",
|
|
104
|
+
BASE_SEPOLIA_TESTNET = "base-sepolia-testnet",
|
|
105
|
+
OASYS_MAINNET = "oasys-mainnet",
|
|
106
|
+
OASYS_TESTNET = "oasys-testnet",
|
|
107
|
+
SX_MAINNET = "sx-mainnet",
|
|
108
|
+
LUMOZ_PUBLIC_ZKSYNC_V2 = "lumoz-public-zksync-v2",
|
|
109
|
+
LUMOZ_STARK_SPORT = "lumoz-stark-sport",
|
|
110
|
+
OASIS_SAPPHIRE_MAINNET = "oasis-sapphire-mainnet",
|
|
111
|
+
OASIS_SAPPHIRE_TESTNET = "oasis-sapphire-testnet",
|
|
112
|
+
SYNDR_TESTNET = "syndr-testnet",
|
|
113
|
+
XAI_MAINNET = "xai-mainnet",
|
|
114
|
+
CELO_MAINNET = "celo-mainnet",
|
|
115
|
+
X1_MAINNET = "x1-mainnet",
|
|
116
|
+
CROSSFI_EVM_TESTNET = "crossfi-evm-testnet",
|
|
117
|
+
HORIZEN_EON_MAINNET = "horizen-eon-mainnet",
|
|
118
|
+
HORIZEN_GOBI_TESTNET = "horizen-gobi-testnet",
|
|
119
|
+
FRAXTAL_MAINNET = "fraxtal-mainnet",
|
|
120
|
+
APECHAIN_TESTNET = "apechain-testnet",
|
|
121
|
+
LISK_MAINNET = "lisk-mainnet",
|
|
122
|
+
REDSTONE_MAINNET = "redstone-mainnet",
|
|
123
|
+
SEI_MAINNET = "sei-mainnet",
|
|
124
|
+
AVALANCHE_MELD_TESTNET = "avalanche-meld-testnet",
|
|
125
|
+
AVALANCHE_MELD_MAINNET = "avalanche-meld-mainnet",
|
|
126
|
+
GUNZILLA_TESTNET = "gunzilla-testnet",
|
|
127
|
+
ULTRON_MAINNET = "ultron-mainnet",
|
|
128
|
+
ULTRON_TESTNET = "ultron-testnet",
|
|
129
|
+
ZORA_MAINNET = "zora-mainnet",
|
|
130
|
+
ZORA_SEPOLIA_TESTNET = "zora-sepolia-testnet",
|
|
131
|
+
LISK_SEPOLIA_TESTNET = "lisk-sepolia-testnet",
|
|
132
|
+
OPSIDE_READON_CONTENT_TESTNET = "opside-readon-content-testnet",
|
|
133
|
+
ZKSYNC_MAINNET = "zksync-mainnet",
|
|
134
|
+
ZKSYNC_SEPOLIA_TESTNET = "zksync-sepolia-testnet",
|
|
135
|
+
BNB_ANTIMATTER_TESTNET = "bnb-antimatter-testnet",
|
|
136
|
+
BNB_META_APES_MAINNET = "bnb-meta-apes-mainnet",
|
|
137
|
+
BNB_FNCY_MAINNET = "bnb-fncy-mainnet",
|
|
138
|
+
BNB_OPBNB_TESTNET = "bnb-opbnb-testnet",
|
|
139
|
+
BNB_FNCY_TESTNET = "bnb-fncy-testnet",
|
|
140
|
+
BNB_OPBNB_MAINNET = "bnb-opbnb-mainnet",
|
|
141
|
+
ZETACHAIN_TESTNET = "zetachain-testnet",
|
|
142
|
+
ZETACHAIN_MAINNET = "zetachain-mainnet",
|
|
143
|
+
MODE_TESTNET = "mode-testnet",
|
|
144
|
+
MODE_MAINNET = "mode-mainnet",
|
|
145
|
+
KINTO_TESTNET = "kinto-testnet",
|
|
146
|
+
LOOT_MAINNET = "loot-mainnet",
|
|
147
|
+
PGN_MAINNET = "pgn-mainnet",
|
|
148
|
+
PGN_TESTNET = "pgn-testnet",
|
|
149
|
+
MANTA_SEPOLIA_TESTNET = "manta-sepolia-testnet",
|
|
150
|
+
ROLLUX_MAINNET = "rollux-mainnet",
|
|
151
|
+
ROLLUX_TESTNET = "rollux-testnet",
|
|
152
|
+
GNOSIS_MAINNET = "gnosis-mainnet",
|
|
153
|
+
GNOSIS_TESTNET = "gnosis-testnet",
|
|
154
|
+
TELOS_MAINNET = "telos-mainnet",
|
|
155
|
+
TELOS_TESTNET = "telos-testnet",
|
|
156
|
+
TOMOCHAIN_MAINNET = "tomochain-mainnet",
|
|
157
|
+
TOMOCHAIN_TESTNET = "tomochain-testnet",
|
|
158
|
+
TAIKO_MAINNET = "taiko-mainnet",
|
|
159
|
+
TAIKO_HEKLA_TESTNET = "taiko-hekla-testnet",
|
|
160
|
+
MERLIN_MAINNET = "merlin-mainnet",
|
|
161
|
+
MERLIN_TESTNET = "merlin-testnet",
|
|
162
|
+
BLAST_MAINNET = "blast-mainnet",
|
|
163
|
+
MOVEMENT_MEVM_TESTNET = "movement-mevm-testnet",
|
|
164
|
+
SCROLL_MAINNET = "scroll-mainnet",
|
|
165
|
+
COVALENT_INTERNAL_NETWORK_V1 = "covalent-internal-network-v1"
|
|
166
|
+
}
|
|
167
|
+
export declare enum ChainID {
|
|
168
|
+
ETH_MAINNET = 1,
|
|
169
|
+
ETH_GOERLI = 5,
|
|
170
|
+
ETH_SEPOLIA = 11155111,
|
|
171
|
+
ETH_HOLESKY = 17000,
|
|
172
|
+
MATIC_MAINNET = 137,
|
|
173
|
+
MATIC_MUMBAI = 80001,
|
|
174
|
+
AVALANCHE_MAINNET = 43114,
|
|
175
|
+
AVALANCHE_TESTNET = 43113,
|
|
176
|
+
BSC_MAINNET = 56,
|
|
177
|
+
BSC_TESTNET = 97,
|
|
178
|
+
MOONBEAM_MAINNET = 1284,
|
|
179
|
+
MOONBEAM_MOONBASE_ALPHA = 1287,
|
|
180
|
+
MOONBEAM_MOONRIVER = 1285,
|
|
181
|
+
RSK_MAINNET = 30,
|
|
182
|
+
RSK_TESTNET = 31,
|
|
183
|
+
ARBITRUM_MAINNET = 42161,
|
|
184
|
+
ARBITRUM_NOVA_MAINNET = 42170,
|
|
185
|
+
ARBITRUM_SEPOLIA = 421614,
|
|
186
|
+
FANTOM_MAINNET = 250,
|
|
187
|
+
FANTOM_TESTNET = 4002,
|
|
188
|
+
PALM_MAINNET = 11297108109,
|
|
189
|
+
PALM_TESTNET = 11297108099,
|
|
190
|
+
BTC_MAINNET = 20090103,
|
|
191
|
+
SOLANA_MAINNET = 1399811149,
|
|
192
|
+
AXIE_MAINNET = 2020,
|
|
193
|
+
OPTIMISM_MAINNET = 10,
|
|
194
|
+
OPTIMISM_SEPOLIA = 11155420,
|
|
195
|
+
EVMOS_MAINNET = 9001,
|
|
196
|
+
EVMOS_TESTNET = 9000,
|
|
197
|
+
HARMONY_MAINNET = 1666600000,
|
|
198
|
+
HARMONY_TESTNET = 1666700000,
|
|
199
|
+
CRONOS_MAINNET = 25,
|
|
200
|
+
CRONOS_TESTNET = 338,
|
|
201
|
+
CRONOS_ZKEVM_TESTNET = 282,
|
|
202
|
+
AURORA_MAINNET = 1313161554,
|
|
203
|
+
AURORA_TESTNET = 1313161555,
|
|
204
|
+
EMERALD_PARATIME_MAINNET = 42262,
|
|
205
|
+
DEFI_KINGDOMS_MAINNET = 53935,
|
|
206
|
+
DEFI_KINGDOMS_TESTNET = 335,
|
|
207
|
+
BOBA_MAINNET = 288,
|
|
208
|
+
BOBA_BNB_MAINNET = 56288,
|
|
209
|
+
BOBA_BNB_TESTNET = 9728,
|
|
210
|
+
SCROLL_SEPOLIA_TESTNET = 534351,
|
|
211
|
+
METIS_MAINNET = 1088,
|
|
212
|
+
METIS_STARDUST = 588,
|
|
213
|
+
AVALANCHE_DEXALOT_MAINNET = 432204,
|
|
214
|
+
AVALANCHE_DEXALOT_TESTNET = 432201,
|
|
215
|
+
AVALANCHE_SHRAPNEL_MAINNET = 2044,
|
|
216
|
+
AVALANCHE_NUMBERS = 10507,
|
|
217
|
+
AVALANCHE_DOS = 7979,
|
|
218
|
+
AVALANCHE_XPLUS = 1228,
|
|
219
|
+
AVALANCHE_XANACHAIN = 8888,
|
|
220
|
+
AVALANCHE_STEP_NETWORK = 1234,
|
|
221
|
+
AVALANCHE_SHRAPNEL_TESTNET = 2038,
|
|
222
|
+
AVALANCHE_BEAM_TESTNET = 13337,
|
|
223
|
+
AVALANCHE_BLITZ_TESTNET = 1343,
|
|
224
|
+
AVALANCHE_MINTARA_TESTNET = 1079,
|
|
225
|
+
AVALANCHE_GREEN_DOT_TESTNET = 6765897100,
|
|
226
|
+
AVALANCHE_PULSAR_TESTNET = 431234,
|
|
227
|
+
AVALANCHE_UPTN = 6119,
|
|
228
|
+
AVALANCHE_AVACLOUD_TESTNET = 152703,
|
|
229
|
+
AVALANCHE_BEAM_MAINNET = 4337,
|
|
230
|
+
AVALANCHE_BULLETIN_TESTNET = 78431,
|
|
231
|
+
AVALANCHE_CONDUIT_TESTNET = 78432,
|
|
232
|
+
AVALANCHE_HERO_TESTNET = 17772,
|
|
233
|
+
AVALANCHE_HUBBLE_EXCHANGE_TESTNET = 321123,
|
|
234
|
+
AVALANCHE_KIWI_TESTNET = 2037,
|
|
235
|
+
AVALANCHE_MIHO_TESTNET = 360163,
|
|
236
|
+
AVALANCHE_MONDRIAN_TESTNET = 179188,
|
|
237
|
+
AVALANCHE_NMAC_TESTNET = 7777,
|
|
238
|
+
AVALANCHE_ORDERLY_TESTNET = 986532,
|
|
239
|
+
AVALANCHE_THIRDWEB_TESTNET = 894538,
|
|
240
|
+
AVALANCHE_WAGMI_TESTNET = 11111,
|
|
241
|
+
AVALANCHE_PLAYA3ULL_TESTNET = 3012,
|
|
242
|
+
AVALANCHE_MIRAI_TESTNET = 2195,
|
|
243
|
+
AVALANCHE_AMPLIFY_TESTNET = 78430,
|
|
244
|
+
AVALANCHE_LT0_TESTNET = 31330,
|
|
245
|
+
AVALANCHE_LT5_TESTNET = 31335,
|
|
246
|
+
AVALANCHE_HUBBLE_EXCHANGE_MAINNET = 1992,
|
|
247
|
+
METER_MAINNET = 82,
|
|
248
|
+
METER_TESTNET = 83,
|
|
249
|
+
MILKOMEDA_A1_MAINNET = 2002,
|
|
250
|
+
MILKOMEDA_C1_MAINNET = 2001,
|
|
251
|
+
MILKOMEDA_C1_DEVNET = 200101,
|
|
252
|
+
CANTO_MAINNET = 7700,
|
|
253
|
+
FLARENETWORKS_FLARE_MAINNET = 14,
|
|
254
|
+
FLARENETWORKS_FLARE_TESTNET = 114,
|
|
255
|
+
FLARENETWORKS_CANARY_MAINNET = 19,
|
|
256
|
+
FLARENETWORKS_CANARY_TESTNET = 16,
|
|
257
|
+
KCC_MAINNET = 321,
|
|
258
|
+
KCC_TESTNET = 322,
|
|
259
|
+
LINEA_MAINNET = 59144,
|
|
260
|
+
POLYGON_ZKEVM_MAINNET = 1101,
|
|
261
|
+
LINEA_SEPOLIA_TESTNET = 59141,
|
|
262
|
+
LINEA_GOERLI_TESTNET = 59140,
|
|
263
|
+
POLYGON_ZKEVM_TESTNET = 1422,
|
|
264
|
+
POLYGON_AMOY_TESTNET = 80002,
|
|
265
|
+
MANTLE_MAINNET = 5000,
|
|
266
|
+
MANTLE_SEPOLIA_TESTNET = 5003,
|
|
267
|
+
POLYGON_ZKEVM_CARDONA_TESTNET = 2442,
|
|
268
|
+
BASE_MAINNET = 8453,
|
|
269
|
+
BASE_TESTNET = 84531,
|
|
270
|
+
BASE_SEPOLIA_TESTNET = 84532,
|
|
271
|
+
OASYS_MAINNET = 248,
|
|
272
|
+
OASYS_TESTNET = 9372,
|
|
273
|
+
SX_MAINNET = 416,
|
|
274
|
+
LUMOZ_PUBLIC_ZKSYNC_V2 = 12027,
|
|
275
|
+
LUMOZ_STARK_SPORT = 12029,
|
|
276
|
+
OASIS_SAPPHIRE_MAINNET = 23294,
|
|
277
|
+
OASIS_SAPPHIRE_TESTNET = 23295,
|
|
278
|
+
SYNDR_TESTNET = 412346,
|
|
279
|
+
XAI_MAINNET = 660279,
|
|
280
|
+
CELO_MAINNET = 42220,
|
|
281
|
+
X1_MAINNET = 196,
|
|
282
|
+
CROSSFI_EVM_TESTNET = 8545,
|
|
283
|
+
HORIZEN_EON_MAINNET = 7332,
|
|
284
|
+
HORIZEN_GOBI_TESTNET = 1663,
|
|
285
|
+
FRAXTAL_MAINNET = 252,
|
|
286
|
+
APECHAIN_TESTNET = 1798,
|
|
287
|
+
LISK_MAINNET = 1135,
|
|
288
|
+
REDSTONE_MAINNET = 690,
|
|
289
|
+
SEI_MAINNET = 1329,
|
|
290
|
+
AVALANCHE_MELD_TESTNET = 222000222,
|
|
291
|
+
AVALANCHE_MELD_MAINNET = 333000333,
|
|
292
|
+
GUNZILLA_TESTNET = 49321,
|
|
293
|
+
ULTRON_MAINNET = 1231,
|
|
294
|
+
ULTRON_TESTNET = 1230,
|
|
295
|
+
ZORA_MAINNET = 7777777,
|
|
296
|
+
ZORA_SEPOLIA_TESTNET = 999999999,
|
|
297
|
+
LISK_SEPOLIA_TESTNET = 4202,
|
|
298
|
+
OPSIDE_READON_CONTENT_TESTNET = 12015,
|
|
299
|
+
ZKSYNC_MAINNET = 324,
|
|
300
|
+
ZKSYNC_SEPOLIA_TESTNET = 300,
|
|
301
|
+
BNB_ANTIMATTER_TESTNET = 20221,
|
|
302
|
+
BNB_META_APES_MAINNET = 16350,
|
|
303
|
+
BNB_FNCY_MAINNET = 73,
|
|
304
|
+
BNB_OPBNB_TESTNET = 5611,
|
|
305
|
+
BNB_FNCY_TESTNET = 923018,
|
|
306
|
+
BNB_OPBNB_MAINNET = 204,
|
|
307
|
+
ZETACHAIN_TESTNET = 7001,
|
|
308
|
+
ZETACHAIN_MAINNET = 7000,
|
|
309
|
+
MODE_TESTNET = 919,
|
|
310
|
+
MODE_MAINNET = 34443,
|
|
311
|
+
KINTO_TESTNET = 42888,
|
|
312
|
+
LOOT_MAINNET = 5151706,
|
|
313
|
+
PGN_MAINNET = 424,
|
|
314
|
+
PGN_TESTNET = 58008,
|
|
315
|
+
MANTA_SEPOLIA_TESTNET = 3441006,
|
|
316
|
+
ROLLUX_MAINNET = 570,
|
|
317
|
+
ROLLUX_TESTNET = 57000,
|
|
318
|
+
GNOSIS_MAINNET = 100,
|
|
319
|
+
GNOSIS_TESTNET = 10200,
|
|
320
|
+
TELOS_MAINNET = 40,
|
|
321
|
+
TELOS_TESTNET = 41,
|
|
322
|
+
TOMOCHAIN_MAINNET = 88,
|
|
323
|
+
TOMOCHAIN_TESTNET = 89,
|
|
324
|
+
TAIKO_MAINNET = 167000,
|
|
325
|
+
TAIKO_HEKLA_TESTNET = 167009,
|
|
326
|
+
MERLIN_MAINNET = 4200,
|
|
327
|
+
MERLIN_TESTNET = 686868,
|
|
328
|
+
BLAST_MAINNET = 81457,
|
|
329
|
+
MOVEMENT_MEVM_TESTNET = 336,
|
|
330
|
+
SCROLL_MAINNET = 534352,
|
|
331
|
+
COVALENT_INTERNAL_NETWORK_V1 = 1131378225
|
|
332
|
+
}
|
|
333
|
+
export type Chain = ChainID | ChainName;
|
|
334
|
+
export type Source = "Ponder" | "GoldRush" | "Viem";
|
|
335
|
+
export type Quote = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
|
|
336
|
+
export interface Pagination {
|
|
337
|
+
/** * True is there is another page. */
|
|
338
|
+
has_more: boolean;
|
|
339
|
+
/** * The requested page number. */
|
|
340
|
+
page_number: number;
|
|
341
|
+
/** * The requested number of items on the current page. */
|
|
342
|
+
page_size: number;
|
|
343
|
+
/** * The total number of items across all pages for this request. */
|
|
344
|
+
total_count: number;
|
|
345
|
+
}
|
|
346
|
+
export interface PaginationLinks {
|
|
347
|
+
/** * URL link to the next page. */
|
|
348
|
+
prev: string;
|
|
349
|
+
/** * URL link to the previous page. */
|
|
350
|
+
next: string;
|
|
351
|
+
}
|
|
352
|
+
export interface NftCollectionAttribute {
|
|
353
|
+
trait_type: string;
|
|
354
|
+
value: string;
|
|
355
|
+
}
|
|
356
|
+
export interface NftData {
|
|
357
|
+
/** * The token's id. */
|
|
358
|
+
token_id: bigint;
|
|
359
|
+
token_url: string;
|
|
360
|
+
/** * The original minter. */
|
|
361
|
+
original_owner: string;
|
|
362
|
+
/** * The current holder of this NFT. */
|
|
363
|
+
current_owner: string;
|
|
364
|
+
external_data: NftExternalData;
|
|
365
|
+
/** * If `true`, the asset data is available from the Covalent CDN. */
|
|
366
|
+
asset_cached: boolean;
|
|
367
|
+
/** * If `true`, the image data is available from the Covalent CDN. */
|
|
368
|
+
image_cached: boolean;
|
|
369
|
+
}
|
|
370
|
+
export interface NftExternalData {
|
|
371
|
+
name: string;
|
|
372
|
+
description: string;
|
|
373
|
+
asset_url: string;
|
|
374
|
+
asset_file_extension: string;
|
|
375
|
+
asset_mime_type: string;
|
|
376
|
+
asset_size_bytes: string;
|
|
377
|
+
image: string;
|
|
378
|
+
image_256: string;
|
|
379
|
+
image_512: string;
|
|
380
|
+
image_1024: string;
|
|
381
|
+
animation_url: string;
|
|
382
|
+
external_url: string;
|
|
383
|
+
attributes: NftCollectionAttribute[];
|
|
384
|
+
}
|
|
385
|
+
export interface DecodedItem {
|
|
386
|
+
name: string;
|
|
387
|
+
signature: string;
|
|
388
|
+
params: Param[];
|
|
389
|
+
}
|
|
390
|
+
export interface Param {
|
|
391
|
+
name: string;
|
|
392
|
+
type: string;
|
|
393
|
+
indexed: boolean;
|
|
394
|
+
decoded: boolean;
|
|
395
|
+
value: string;
|
|
396
|
+
}
|
|
397
|
+
export interface LogEvent {
|
|
398
|
+
/** * The block signed timestamp in UTC. */
|
|
399
|
+
block_signed_at: Date;
|
|
400
|
+
/** * The height of the block. */
|
|
401
|
+
block_height: number;
|
|
402
|
+
/** * The offset is the position of the tx in the block. */
|
|
403
|
+
tx_offset: number;
|
|
404
|
+
/** * The offset is the position of the log entry within an event log. */
|
|
405
|
+
log_offset: number;
|
|
406
|
+
/** * The requested transaction hash. */
|
|
407
|
+
tx_hash: string;
|
|
408
|
+
/** * The log topics in raw data. */
|
|
409
|
+
raw_log_topics: string[];
|
|
410
|
+
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
411
|
+
sender_contract_decimals: number;
|
|
412
|
+
/** * The name of the sender. */
|
|
413
|
+
sender_name: string;
|
|
414
|
+
sender_contract_ticker_symbol: string;
|
|
415
|
+
/** * The address of the sender. */
|
|
416
|
+
sender_address: string;
|
|
417
|
+
/** * The label of the sender address. */
|
|
418
|
+
sender_address_label: string;
|
|
419
|
+
/** * The contract logo URL. */
|
|
420
|
+
sender_logo_url: string;
|
|
421
|
+
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
422
|
+
supports_erc: string[];
|
|
423
|
+
/** * The address of the deployed UniswapV2 like factory contract for this DEX. */
|
|
424
|
+
sender_factory_address: string;
|
|
425
|
+
/** * The log events in raw. */
|
|
426
|
+
raw_log_data: string;
|
|
427
|
+
/** * The decoded item. */
|
|
428
|
+
decoded: DecodedItem;
|
|
429
|
+
}
|
|
430
|
+
export interface ContractMetadata {
|
|
431
|
+
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
432
|
+
contract_decimals: number;
|
|
433
|
+
/** * The string returned by the `name()` method. */
|
|
434
|
+
contract_name: string;
|
|
435
|
+
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
436
|
+
contract_ticker_symbol: string;
|
|
437
|
+
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
438
|
+
contract_address: string;
|
|
439
|
+
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
440
|
+
supports_erc: string[];
|
|
441
|
+
/** * The contract logo URL. */
|
|
442
|
+
logo_url: string;
|
|
443
|
+
}
|
|
444
|
+
export interface Explorer {
|
|
445
|
+
/** * The name of the explorer. */
|
|
446
|
+
label: string;
|
|
447
|
+
/** * The URL of the explorer. */
|
|
448
|
+
url: string;
|
|
449
|
+
}
|
|
450
|
+
export interface LogoUrls {
|
|
451
|
+
/** * The token logo URL. */
|
|
452
|
+
token_logo_url: string;
|
|
453
|
+
/** * The protocol logo URL. */
|
|
454
|
+
protocol_logo_url: string;
|
|
455
|
+
/** * The chain logo URL. */
|
|
456
|
+
chain_logo_url: string;
|
|
457
|
+
}
|
|
458
|
+
export declare class GoldRushResponse<T> {
|
|
459
|
+
data: T;
|
|
460
|
+
error: boolean;
|
|
461
|
+
error_code: number | string;
|
|
462
|
+
error_message: string;
|
|
463
|
+
}
|
|
464
|
+
export interface GoldRushClientSettings {
|
|
465
|
+
/** * Toggle to analyze the execution of each api request. */
|
|
466
|
+
debug?: boolean;
|
|
467
|
+
/** * The number of concurrent requests allowed. */
|
|
468
|
+
threadCount?: number;
|
|
469
|
+
/** Toggle to turn on and off retry logic */
|
|
470
|
+
enableRetry?: boolean;
|
|
471
|
+
/** Set the retry logic count */
|
|
472
|
+
maxRetries?: number;
|
|
473
|
+
/** Set the retry delay in ms */
|
|
474
|
+
retryDelay?: number;
|
|
475
|
+
/** Set the source of the usage */
|
|
476
|
+
source?: Source | string;
|
|
477
|
+
}
|
package/dist/{cjs/util/types/NftServiceTypes.d.ts → es/src/utils/types/NftService.types.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { LogEvent, NftData, Pagination } from "./
|
|
1
|
+
import { type ChainID, type ChainName, type LogEvent, type NftData, type Pagination } from "./Generic.types";
|
|
2
2
|
export interface ChainCollectionResponse {
|
|
3
3
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
4
4
|
updated_at: Date;
|
|
5
5
|
/** * The requested chain ID eg: `1`. */
|
|
6
|
-
chain_id:
|
|
6
|
+
chain_id: ChainID;
|
|
7
7
|
/** * The requested chain name eg: `eth-mainnet`. */
|
|
8
|
-
chain_name:
|
|
8
|
+
chain_name: ChainName;
|
|
9
9
|
/** * List of response items. */
|
|
10
10
|
items: ChainCollectionItem[];
|
|
11
11
|
/** * Pagination metadata. */
|
|
@@ -44,8 +44,8 @@ export interface NftTokenContractBalanceItem {
|
|
|
44
44
|
is_spam: boolean;
|
|
45
45
|
last_transfered_at: Date;
|
|
46
46
|
/** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
|
|
47
|
-
balance: bigint
|
|
48
|
-
balance_24h:
|
|
47
|
+
balance: bigint;
|
|
48
|
+
balance_24h: bigint;
|
|
49
49
|
type: string;
|
|
50
50
|
/** * The current floor price converted to fiat in `quote-currency`. The floor price is determined by the last minimum sale price within the last 30 days across all the supported markets where the collection is sold on. */
|
|
51
51
|
floor_price_quote: number;
|
|
@@ -79,9 +79,9 @@ export interface NftTransactionsResponse {
|
|
|
79
79
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
80
80
|
updated_at: Date;
|
|
81
81
|
/** * The requested chain ID eg: `1`. */
|
|
82
|
-
chain_id:
|
|
82
|
+
chain_id: ChainID;
|
|
83
83
|
/** * The requested chain name eg: `eth-mainnet`. */
|
|
84
|
-
chain_name:
|
|
84
|
+
chain_name: ChainName;
|
|
85
85
|
/** * List of response items. */
|
|
86
86
|
items: NftTransaction[];
|
|
87
87
|
}
|
|
@@ -122,7 +122,7 @@ export interface NftTransactionItem {
|
|
|
122
122
|
/** * The label of `to` address. */
|
|
123
123
|
to_address_label: string;
|
|
124
124
|
/** * The value attached to this tx. */
|
|
125
|
-
value: bigint
|
|
125
|
+
value: bigint;
|
|
126
126
|
/** * The value attached in `quote-currency` to this tx. */
|
|
127
127
|
value_quote: number;
|
|
128
128
|
/** * A prettier version of the quote for rendering purposes. */
|
|
@@ -133,7 +133,7 @@ export interface NftTransactionItem {
|
|
|
133
133
|
/** * The gas price at the time of this tx. */
|
|
134
134
|
gas_price: number;
|
|
135
135
|
/** * The total transaction fees (gas_price * gas_spent) paid for this tx, denoted in wei. */
|
|
136
|
-
fees_paid: bigint
|
|
136
|
+
fees_paid: bigint;
|
|
137
137
|
/** * The gas spent in `quote-currency` denomination. */
|
|
138
138
|
gas_quote: number;
|
|
139
139
|
/** * A prettier version of the quote for rendering purposes. */
|
|
@@ -166,7 +166,7 @@ export interface NftAttribute {
|
|
|
166
166
|
value: string;
|
|
167
167
|
count: number;
|
|
168
168
|
}
|
|
169
|
-
export interface
|
|
169
|
+
export interface NftCollectionTraitsSummaryResponse {
|
|
170
170
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
171
171
|
updated_at: Date;
|
|
172
172
|
/** * List of response items. */
|
|
@@ -215,89 +215,59 @@ export interface NftOwnershipForCollectionItem {
|
|
|
215
215
|
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
216
216
|
contract_address: string;
|
|
217
217
|
/** * The token's id. */
|
|
218
|
-
token_id: bigint
|
|
218
|
+
token_id: bigint;
|
|
219
219
|
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
220
220
|
supports_erc: string[];
|
|
221
221
|
last_transfered_at: Date;
|
|
222
222
|
/** * Nft balance. */
|
|
223
|
-
balance: bigint
|
|
224
|
-
balance_24h:
|
|
223
|
+
balance: bigint;
|
|
224
|
+
balance_24h: bigint;
|
|
225
225
|
type: string;
|
|
226
226
|
nft_data: NftData;
|
|
227
227
|
}
|
|
228
|
-
export interface
|
|
229
|
-
/** *
|
|
230
|
-
|
|
231
|
-
/** *
|
|
232
|
-
|
|
233
|
-
/** *
|
|
234
|
-
|
|
235
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
236
|
-
chain_name: string;
|
|
237
|
-
/** * The requested chain ID eg: `1`. */
|
|
238
|
-
chain_id: number;
|
|
239
|
-
/** * List of response items. */
|
|
240
|
-
items: MarketSaleCountItem[];
|
|
228
|
+
export interface GetChainCollectionsQueryParamOpts {
|
|
229
|
+
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
230
|
+
pageSize?: number;
|
|
231
|
+
/** * 0-indexed page number to begin pagination. */
|
|
232
|
+
pageNumber?: number;
|
|
233
|
+
/** * If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
234
|
+
noSpam?: boolean;
|
|
241
235
|
}
|
|
242
|
-
export interface
|
|
243
|
-
/** *
|
|
244
|
-
|
|
245
|
-
/** *
|
|
246
|
-
|
|
236
|
+
export interface GetNftsForAddressQueryParamOpts {
|
|
237
|
+
/** * If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
238
|
+
noSpam?: boolean;
|
|
239
|
+
/** * If `true`, the response shape is limited to a list of collections and token ids, omitting metadata and asset information. Helpful for faster response times and wallets holding a large number of NFTs. */
|
|
240
|
+
noNftAssetMetadata?: boolean;
|
|
241
|
+
/** * By default, this endpoint only works on chains where we've cached the assets and the metadata. When set to `true`, the API will fetch metadata from upstream servers even if it's not cached - the downside being that the upstream server can block or rate limit the call and therefore resulting in time outs or slow response times on the Covalent side. */
|
|
242
|
+
withUncached?: boolean;
|
|
247
243
|
}
|
|
248
|
-
export interface
|
|
249
|
-
/** *
|
|
250
|
-
|
|
251
|
-
/** *
|
|
252
|
-
|
|
253
|
-
/** *
|
|
254
|
-
|
|
255
|
-
/** *
|
|
256
|
-
|
|
257
|
-
/** *
|
|
258
|
-
|
|
259
|
-
/** *
|
|
260
|
-
|
|
244
|
+
export interface GetTokenIdsForContractWithMetadataQueryParamOpts {
|
|
245
|
+
/** * Omit metadata. */
|
|
246
|
+
noMetadata?: boolean;
|
|
247
|
+
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
248
|
+
pageSize?: number;
|
|
249
|
+
/** * 0-indexed page number to begin pagination. */
|
|
250
|
+
pageNumber?: number;
|
|
251
|
+
/** * Filters NFTs based on a specific trait. If this filter is used, the API will return all NFTs with the specified trait. Accepts comma-separated values, is case-sensitive, and requires proper URL encoding. */
|
|
252
|
+
traitsFilter?: string;
|
|
253
|
+
/** * Filters NFTs based on a specific trait value. If this filter is used, the API will return all NFTs with the specified trait value. If used with "traits-filter", only NFTs matching both filters will be returned. Accepts comma-separated values, is case-sensitive, and requires proper URL encoding. */
|
|
254
|
+
valuesFilter?: string;
|
|
255
|
+
/** * By default, this endpoint only works on chains where we've cached the assets and the metadata. When set to `true`, the API will fetch metadata from upstream servers even if it's not cached - the downside being that the upstream server can block or rate limit the call and therefore resulting in time outs or slow response times on the Covalent side. */
|
|
256
|
+
withUncached?: boolean;
|
|
261
257
|
}
|
|
262
|
-
export interface
|
|
263
|
-
/** *
|
|
264
|
-
|
|
265
|
-
/** *
|
|
266
|
-
|
|
267
|
-
/** * The contract name of the native currency. */
|
|
268
|
-
native_name: string;
|
|
269
|
-
/** * The current volume converted to fiat in `quote-currency`. */
|
|
270
|
-
volume_quote: number;
|
|
271
|
-
/** * The current volume in native currency. */
|
|
272
|
-
volume_native_quote: number;
|
|
273
|
-
/** * A prettier version of the volume quote for rendering purposes. */
|
|
274
|
-
pretty_volume_quote: string;
|
|
258
|
+
export interface GetNftMetadataForGivenTokenIdForContractQueryParamOpts {
|
|
259
|
+
/** * Omit metadata. */
|
|
260
|
+
noMetadata?: boolean;
|
|
261
|
+
/** * By default, this endpoint only works on chains where we've cached the assets and the metadata. When set to `true`, the API will fetch metadata from upstream servers even if it's not cached - the downside being that the upstream server can block or rate limit the call and therefore resulting in time outs or slow response times on the Covalent side. */
|
|
262
|
+
withUncached?: boolean;
|
|
275
263
|
}
|
|
276
|
-
export interface
|
|
277
|
-
/** *
|
|
278
|
-
|
|
279
|
-
/** * The requested address. */
|
|
280
|
-
address: string;
|
|
281
|
-
/** * The requested quote currency eg: `USD`. */
|
|
282
|
-
quote_currency: string;
|
|
283
|
-
/** * The requested chain name eg: `eth-mainnet`. */
|
|
284
|
-
chain_name: string;
|
|
285
|
-
/** * The requested chain ID eg: `1`. */
|
|
286
|
-
chain_id: number;
|
|
287
|
-
/** * List of response items. */
|
|
288
|
-
items: MarketFloorPriceItem[];
|
|
264
|
+
export interface GetNftTransactionsForContractTokenIdQueryParamOpts {
|
|
265
|
+
/** * If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
266
|
+
noSpam?: boolean;
|
|
289
267
|
}
|
|
290
|
-
export interface
|
|
291
|
-
/** *
|
|
292
|
-
|
|
293
|
-
/** *
|
|
294
|
-
|
|
295
|
-
/** * The contract name of the native currency. */
|
|
296
|
-
native_name: string;
|
|
297
|
-
/** * The current floor price in native currency. */
|
|
298
|
-
floor_price_native_quote: number;
|
|
299
|
-
/** * The current floor price converted to fiat in `quote-currency`. */
|
|
300
|
-
floor_price_quote: number;
|
|
301
|
-
/** * A prettier version of the floor price quote for rendering purposes. */
|
|
302
|
-
pretty_floor_price_quote: string;
|
|
268
|
+
export interface CheckOwnershipInNftQueryParamOpts {
|
|
269
|
+
/** * Filters NFTs based on a specific trait. If this filter is used, the API will return all NFTs with the specified trait. Must be used with "values-filter", is case-sensitive, and requires proper URL encoding. */
|
|
270
|
+
traitsFilter?: string;
|
|
271
|
+
/** * Filters NFTs based on a specific trait value. If this filter is used, the API will return all NFTs with the specified trait value. Must be used with "traits-filter", is case-sensitive, and requires proper URL encoding. */
|
|
272
|
+
valuesFilter?: string;
|
|
303
273
|
}
|