@fileverse-dev/formulajs 4.4.11-mod-83 → 4.4.11-mod-83-patch-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/lib/browser/formula.js +1836 -1837
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +992 -999
- package/lib/esm/crypto-constants.mjs +655 -859
- package/lib/esm/index.mjs +992 -999
- package/package.json +2 -2
- package/types/cjs/index.d.cts +4 -4
- package/types/esm/index.d.mts +4 -4
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
// src/utils/constants.js
|
|
2
|
-
var CHAIN_ID_MAP = {
|
|
3
|
-
ethereum: 1,
|
|
4
|
-
gnosis: 100,
|
|
5
|
-
base: 8453
|
|
6
|
-
};
|
|
7
|
-
var BLOCKSCOUT_CHAINS_MAP = {
|
|
8
|
-
ethereum: "https://eth.blockscout.com",
|
|
9
|
-
gnosis: "https://gnosis.blockscout.com",
|
|
10
|
-
arbitrum: "https://arbitrum.blockscout.com",
|
|
11
|
-
optimism: "https://optimism.blockscout.com",
|
|
12
|
-
soneium: "https://soneium.blockscout.com",
|
|
13
|
-
unichain: "https://unichain.blockscout.com"
|
|
14
|
-
};
|
|
15
|
-
var SAFE_CHAIN_MAP = {
|
|
16
|
-
ethereum: "eth",
|
|
17
|
-
gnosis: "gno"
|
|
18
|
-
};
|
|
19
|
-
var ERROR_MESSAGES_FLAG = {
|
|
20
|
-
INVALID_API_KEY: "INVALID_API_KEY",
|
|
21
|
-
RATE_LIMIT: "RATE_LIMIT",
|
|
22
|
-
DEFAULT: "DEFAULT",
|
|
23
|
-
MISSING_KEY: "MISSING_KEY",
|
|
24
|
-
INVALID_PARAM: "INVALID_PARAM",
|
|
25
|
-
NETWORK_ERROR: "NETWORK_ERROR",
|
|
26
|
-
ENS: "ENS"
|
|
27
|
-
};
|
|
28
|
-
var UTILITY = {
|
|
29
|
-
ALCHEMY_API_KEY: "ALCHEMY_API_KEY"
|
|
30
|
-
};
|
|
31
|
-
var MAX_PAGE_LIMIT = 250;
|
|
32
|
-
|
|
33
|
-
// src/crypto-constants.js
|
|
34
2
|
var SERVICES_API_KEY = {
|
|
35
3
|
Etherscan: "Etherscan",
|
|
36
4
|
Coingecko: "Coingecko",
|
|
@@ -42,829 +10,664 @@ var SERVICES_API_KEY = {
|
|
|
42
10
|
Neynar: "Neynar",
|
|
43
11
|
Defillama: "Defillama"
|
|
44
12
|
};
|
|
45
|
-
var FUNCTION_LOCALE = [
|
|
46
|
-
{
|
|
47
|
-
API_KEY: SERVICES_API_KEY.Etherscan,
|
|
48
|
-
LOGO: "https://raw.githubusercontent.com/ethereum/ethereum-org/master/dist/favicon.ico",
|
|
49
|
-
BRAND_COLOR: "#F6F7F8",
|
|
50
|
-
BRAND_SECONDARY_COLOR: "#21325B",
|
|
51
|
-
n: "EOA",
|
|
52
|
-
t: 20,
|
|
53
|
-
d: "Fetches address data like transactions, balances, or portfolio info from multiple supported chains.",
|
|
54
|
-
a: "Dynamically queries blockchain data such as transactions and balances by resolving time ranges to block ranges and supporting pagination.",
|
|
55
|
-
p: [
|
|
56
|
-
{
|
|
57
|
-
name: "addresses",
|
|
58
|
-
detail: "One or more addresses (comma-separated) to query.",
|
|
59
|
-
example: `"vitalik.eth"`,
|
|
60
|
-
require: "m",
|
|
61
|
-
type: "string"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: "categories",
|
|
65
|
-
detail: `Type of data to fetch. Supported values: "txns", "balance".`,
|
|
66
|
-
example: `"txns"`,
|
|
67
|
-
require: "m",
|
|
68
|
-
type: "string"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: "chain",
|
|
72
|
-
detail: `Blockchain network(s) to query. Supported values: "ethereum", "gnosis", "base". Accepts comma-separated values.`,
|
|
73
|
-
example: `"ethereum"`,
|
|
74
|
-
require: "m",
|
|
75
|
-
type: "string"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "startTime",
|
|
79
|
-
detail: "Used to calculate starting block for transaction queries.",
|
|
80
|
-
example: `"01/01/2024"`,
|
|
81
|
-
require: "m",
|
|
82
|
-
type: "string"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "endTime",
|
|
86
|
-
detail: "Used to calculate ending block for transaction queries.",
|
|
87
|
-
example: `"01/06/2024"`,
|
|
88
|
-
require: "m",
|
|
89
|
-
type: "string"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "page",
|
|
93
|
-
detail: "The page number for paginated transaction results. Only used when category is 'txns'. Default is 1",
|
|
94
|
-
example: "1",
|
|
95
|
-
require: "o",
|
|
96
|
-
type: "number"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: "offset",
|
|
100
|
-
detail: "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
|
|
101
|
-
example: "10",
|
|
102
|
-
require: "o",
|
|
103
|
-
type: "number"
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
LOGO: "https://app.uniswap.org/favicon.png",
|
|
109
|
-
BRAND_COLOR: "#fef5fc",
|
|
110
|
-
BRAND_SECONDARY_COLOR: "#f50db4",
|
|
111
|
-
n: "UNISWAP",
|
|
112
|
-
t: 20,
|
|
113
|
-
d: "Returns Uniswap pools and tokens data",
|
|
114
|
-
a: "Retrieves Uniswap data for a given chain and address from Uniswap",
|
|
115
|
-
p: [
|
|
116
|
-
{
|
|
117
|
-
name: "graphType",
|
|
118
|
-
detail: "Graph type to Query. Can be 'v3', 'v3-raw'",
|
|
119
|
-
example: `"v3"`,
|
|
120
|
-
require: "m",
|
|
121
|
-
type: "string"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: "category",
|
|
125
|
-
detail: "Query type for the data. Can be 'tokens', 'markets'",
|
|
126
|
-
example: `"tokens"`,
|
|
127
|
-
require: "m",
|
|
128
|
-
type: "string"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: "param1",
|
|
132
|
-
detail: "Token Contract Address for market or Token symbol ",
|
|
133
|
-
example: `"eth"`,
|
|
134
|
-
require: "m",
|
|
135
|
-
type: "string"
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
LOGO: "https://files.readme.io/06394e687778e238a6cd43de6e1d7d339043aa50054703f64606369352ef1864-VariantCG-Symbol-Color.png",
|
|
141
|
-
BRAND_COLOR: "#f8fdf8",
|
|
142
|
-
BRAND_SECONDARY_COLOR: "#4bc63d",
|
|
143
|
-
n: "COINGECKO",
|
|
144
|
-
t: 20,
|
|
145
|
-
API_KEY: SERVICES_API_KEY.Coingecko,
|
|
146
|
-
d: "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko.",
|
|
147
|
-
a: 'Supports querying: "price" for specific tokens "market" for ecosystem categories (ETH, BASE, SOL, GNOSIS, HYPERLIQUID, BITCOIN, PUMP)\n- "stablecoins" for stablecoin categories like "crypto-backed-stablecoin"\n- "derivatives" globally or per exchange.\nPagination is supported for all except single-exchange derivatives.',
|
|
148
|
-
p: [
|
|
149
|
-
{
|
|
150
|
-
name: "category",
|
|
151
|
-
detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
|
|
152
|
-
example: `"stablecoins"`,
|
|
153
|
-
require: "m"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "param1",
|
|
157
|
-
detail: `If "price" then - eg. "BTC", "ETH", OR any token on coingecko
|
|
158
13
|
|
|
159
|
-
|
|
14
|
+
// src/crypto/eoa/metadata.js
|
|
15
|
+
var EOA_metadata = {
|
|
16
|
+
API_KEY: SERVICES_API_KEY.Etherscan,
|
|
17
|
+
LOGO: "https://raw.githubusercontent.com/ethereum/ethereum-org/master/dist/favicon.ico",
|
|
18
|
+
BRAND_COLOR: "#F6F7F8",
|
|
19
|
+
BRAND_SECONDARY_COLOR: "#21325B",
|
|
20
|
+
n: "EOA",
|
|
21
|
+
t: 20,
|
|
22
|
+
d: "Fetches address data like transactions, balances, or portfolio info from multiple supported chains.",
|
|
23
|
+
a: "Dynamically queries blockchain data such as transactions and balances by resolving time ranges to block ranges and supporting pagination.",
|
|
24
|
+
p: [
|
|
25
|
+
{
|
|
26
|
+
name: "addresses",
|
|
27
|
+
detail: "One or more addresses (comma-separated) to query.",
|
|
28
|
+
example: `"vitalik.eth"`,
|
|
29
|
+
require: "m",
|
|
30
|
+
type: "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "categories",
|
|
34
|
+
detail: `Type of data to fetch. Supported values: "txns", "balance".`,
|
|
35
|
+
example: `"txns"`,
|
|
36
|
+
require: "m",
|
|
37
|
+
type: "string"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "chain",
|
|
41
|
+
detail: `Blockchain network(s) to query. Supported values: "ethereum", "gnosis", "base". Accepts comma-separated values.`,
|
|
42
|
+
example: `"ethereum"`,
|
|
43
|
+
require: "m",
|
|
44
|
+
type: "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "startTime",
|
|
48
|
+
detail: "Used to calculate starting block for transaction queries.",
|
|
49
|
+
example: `"01/01/2024"`,
|
|
50
|
+
require: "m",
|
|
51
|
+
type: "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "endTime",
|
|
55
|
+
detail: "Used to calculate ending block for transaction queries.",
|
|
56
|
+
example: `"01/06/2024"`,
|
|
57
|
+
require: "m",
|
|
58
|
+
type: "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "page",
|
|
62
|
+
detail: "The page number for paginated transaction results. Only used when category is 'txns'. Default is 1",
|
|
63
|
+
example: "1",
|
|
64
|
+
require: "o",
|
|
65
|
+
type: "number"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "offset",
|
|
69
|
+
detail: "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
|
|
70
|
+
example: "10",
|
|
71
|
+
require: "o",
|
|
72
|
+
type: "number"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
};
|
|
160
76
|
|
|
161
|
-
|
|
77
|
+
// src/crypto/uniswap/metadata.js
|
|
78
|
+
var UNISWAP_metadata = {
|
|
79
|
+
LOGO: "https://app.uniswap.org/favicon.png",
|
|
80
|
+
BRAND_COLOR: "#fef5fc",
|
|
81
|
+
BRAND_SECONDARY_COLOR: "#f50db4",
|
|
82
|
+
n: "UNISWAP",
|
|
83
|
+
t: 20,
|
|
84
|
+
d: "Returns Uniswap pools and tokens data",
|
|
85
|
+
a: "Retrieves Uniswap data for a given chain and address from Uniswap",
|
|
86
|
+
p: [
|
|
87
|
+
{
|
|
88
|
+
name: "graphType",
|
|
89
|
+
detail: "Graph type to Query. Can be 'v3', 'v3-raw'",
|
|
90
|
+
example: `"v3"`,
|
|
91
|
+
require: "m",
|
|
92
|
+
type: "string"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "category",
|
|
96
|
+
detail: "Query type for the data. Can be 'tokens', 'markets'",
|
|
97
|
+
example: `"tokens"`,
|
|
98
|
+
require: "m",
|
|
99
|
+
type: "string"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "param1",
|
|
103
|
+
detail: "Token Contract Address for market or Token symbol ",
|
|
104
|
+
example: `"eth"`,
|
|
105
|
+
require: "m",
|
|
106
|
+
type: "string"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
};
|
|
162
110
|
|
|
111
|
+
// src/crypto/coingecko/metadata.js
|
|
112
|
+
var COINGECKO_metadata = {
|
|
113
|
+
LOGO: "https://files.readme.io/06394e687778e238a6cd43de6e1d7d339043aa50054703f64606369352ef1864-VariantCG-Symbol-Color.png",
|
|
114
|
+
BRAND_COLOR: "#f8fdf8",
|
|
115
|
+
BRAND_SECONDARY_COLOR: "#4bc63d",
|
|
116
|
+
n: "COINGECKO",
|
|
117
|
+
t: 20,
|
|
118
|
+
API_KEY: SERVICES_API_KEY.Coingecko,
|
|
119
|
+
d: "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko.",
|
|
120
|
+
a: 'Supports querying: "price" for specific tokens "market" for ecosystem categories (ETH, BASE, SOL, GNOSIS, HYPERLIQUID, BITCOIN, PUMP)\n- "stablecoins" for stablecoin categories like "crypto-backed-stablecoin"\n- "derivatives" globally or per exchange.\nPagination is supported for all except single-exchange derivatives.',
|
|
121
|
+
p: [
|
|
122
|
+
{
|
|
123
|
+
name: "category",
|
|
124
|
+
detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
|
|
125
|
+
example: `"stablecoins"`,
|
|
126
|
+
require: "m"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "param1",
|
|
130
|
+
detail: `If "price" then - eg. "BTC", "ETH", OR any token on coingecko
|
|
131
|
+
If "market": one of "all", "base", "meme", "aiagents", "bitcoin", "ethereum", "hyperliquid", "pump", "solana".
|
|
132
|
+
If "stablecoins": one of "all", "yield-bearing-stablecoins", "crypto-backed-stablecoin".
|
|
163
133
|
If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-futures", "bybit" ).`,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
// require: "m",
|
|
702
|
-
// type: "string"
|
|
703
|
-
// },
|
|
704
|
-
// {
|
|
705
|
-
// name: "address",
|
|
706
|
-
// detail: "Wallet address to query",
|
|
707
|
-
// example: `"0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC"`,
|
|
708
|
-
// require: "o",
|
|
709
|
-
// type: "string"
|
|
710
|
-
// },
|
|
711
|
-
// {
|
|
712
|
-
// name: "startDate",
|
|
713
|
-
// detail: "Used to filter block range.",
|
|
714
|
-
// example: `"01/01/2024"`,
|
|
715
|
-
// require: "o",
|
|
716
|
-
// type: "string"
|
|
717
|
-
// },
|
|
718
|
-
// {
|
|
719
|
-
// name: "endDate",
|
|
720
|
-
// detail: "Used to filter block range.",
|
|
721
|
-
// example: `"01/07/2025"`,
|
|
722
|
-
// require: "o",
|
|
723
|
-
// type: "string"
|
|
724
|
-
// }
|
|
725
|
-
// ]
|
|
726
|
-
// },
|
|
727
|
-
// {
|
|
728
|
-
// API_KEY: SERVICES_API_KEY.Etherscan,
|
|
729
|
-
// LOGO: "https://cdn.prod.website-files.com/6760e87b474d412dfa9a7a68/6760e8ebe8faad5fb985c89a_Frame%201321316795.png",
|
|
730
|
-
// BRAND_COLOR: "#f6f4ff",
|
|
731
|
-
// BRAND_SECONDARY_COLOR: "#684ff8",
|
|
732
|
-
// n: "ARTEMIS",
|
|
733
|
-
// t: 20,
|
|
734
|
-
// d: "Returns blockchain transaction history for the given address",
|
|
735
|
-
// a: "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
|
|
736
|
-
// p: [
|
|
737
|
-
// {
|
|
738
|
-
// name: "type",
|
|
739
|
-
// detail: "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
740
|
-
// example: `"all-txns"`,
|
|
741
|
-
// require: "m",
|
|
742
|
-
// type: "string"
|
|
743
|
-
// },
|
|
744
|
-
// {
|
|
745
|
-
// name: "chain",
|
|
746
|
-
// detail: "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
|
|
747
|
-
// example: `"ethereum"`,
|
|
748
|
-
// require: "m",
|
|
749
|
-
// type: "string"
|
|
750
|
-
// },
|
|
751
|
-
// {
|
|
752
|
-
// name: "address",
|
|
753
|
-
// detail: "Wallet address to query",
|
|
754
|
-
// example: `"0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC"`,
|
|
755
|
-
// require: "o",
|
|
756
|
-
// type: "string"
|
|
757
|
-
// },
|
|
758
|
-
// {
|
|
759
|
-
// name: "startDate",
|
|
760
|
-
// detail: "Used to filter block range.",
|
|
761
|
-
// example: `"01/01/2024"`,
|
|
762
|
-
// require: "o",
|
|
763
|
-
// type: "string"
|
|
764
|
-
// },
|
|
765
|
-
// {
|
|
766
|
-
// name: "endDate",
|
|
767
|
-
// detail: "Used to filter block range.",
|
|
768
|
-
// example: `"01/07/2025"`,
|
|
769
|
-
// require: "o",
|
|
770
|
-
// type: "string"
|
|
771
|
-
// }
|
|
772
|
-
// ]
|
|
773
|
-
// },
|
|
774
|
-
// {
|
|
775
|
-
// API_KEY: SERVICES_API_KEY.GnosisPay,
|
|
776
|
-
// LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
777
|
-
// BRAND_COLOR: "#f6f7f6",
|
|
778
|
-
// BRAND_SECONDARY_COLOR: "#133629",
|
|
779
|
-
// n: "GNOSISPAY",
|
|
780
|
-
// t: 20,
|
|
781
|
-
// d: "Fetches Gnosis Pay card transaction history, including merchant, amount, and currency info.",
|
|
782
|
-
// a: "Retrieves card transactions from Gnosis Pay’s API for a specific card ID, filtered by date range and paginated via limit/offset.",
|
|
783
|
-
// p: [
|
|
784
|
-
// {
|
|
785
|
-
// name: "cardId",
|
|
786
|
-
// detail: "The Gnosis Pay card ID to fetch transactions for.",
|
|
787
|
-
// example: `"card_9f8f8b3a56"`,
|
|
788
|
-
// require: "m",
|
|
789
|
-
// type: "string"
|
|
790
|
-
// },
|
|
791
|
-
// {
|
|
792
|
-
// name: "startDate",
|
|
793
|
-
// detail: "Filters transactions created after this date.",
|
|
794
|
-
// example: `"01/01/2024"`,
|
|
795
|
-
// require: "o",
|
|
796
|
-
// type: "string"
|
|
797
|
-
// },
|
|
798
|
-
// {
|
|
799
|
-
// name: "endDate",
|
|
800
|
-
// detail: "Filters transactions created before this date.",
|
|
801
|
-
// example: `"01/07/2025"`,
|
|
802
|
-
// require: "o",
|
|
803
|
-
// type: "string"
|
|
804
|
-
// },
|
|
805
|
-
// {
|
|
806
|
-
// name: "limit",
|
|
807
|
-
// detail: "Number of transactions to return per page.",
|
|
808
|
-
// example: `"20"`,
|
|
809
|
-
// require: "o",
|
|
810
|
-
// type: "number"
|
|
811
|
-
// },
|
|
812
|
-
// {
|
|
813
|
-
// name: "offset",
|
|
814
|
-
// detail: "Offset for pagination (i.e., how many records to skip).",
|
|
815
|
-
// example: `"0"`,
|
|
816
|
-
// require: "o",
|
|
817
|
-
// type: "number"
|
|
818
|
-
// }
|
|
819
|
-
// ]
|
|
820
|
-
// },
|
|
821
|
-
// {
|
|
822
|
-
// API_KEY: SERVICES_API_KEY.Etherscan,
|
|
823
|
-
// LOGO: "https://www.tally.xyz/favicon.ico",
|
|
824
|
-
// BRAND_COLOR: "#f9f8ff",
|
|
825
|
-
// BRAND_SECONDARY_COLOR: "#725bff",
|
|
826
|
-
// n: "TALLY",
|
|
827
|
-
// t: 20,
|
|
828
|
-
// d: "Returns blockchain transaction history for the given address",
|
|
829
|
-
// a: "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
|
|
830
|
-
// p: [
|
|
831
|
-
// {
|
|
832
|
-
// name: "type",
|
|
833
|
-
// detail: "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
834
|
-
// example: `"all-txns"`,
|
|
835
|
-
// require: "m",
|
|
836
|
-
// type: "string"
|
|
837
|
-
// },
|
|
838
|
-
// {
|
|
839
|
-
// name: "chain",
|
|
840
|
-
// detail: "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
|
|
841
|
-
// example: `"ethereum"`,
|
|
842
|
-
// require: "m",
|
|
843
|
-
// type: "string"
|
|
844
|
-
// },
|
|
845
|
-
// {
|
|
846
|
-
// name: "address",
|
|
847
|
-
// detail: "Wallet address to query",
|
|
848
|
-
// example: `"0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC"`,
|
|
849
|
-
// require: "o",
|
|
850
|
-
// type: "string"
|
|
851
|
-
// },
|
|
852
|
-
// {
|
|
853
|
-
// name: "startDate",
|
|
854
|
-
// detail: "Used to filter block range.",
|
|
855
|
-
// example: `"01/01/2024"`,
|
|
856
|
-
// require: "o",
|
|
857
|
-
// type: "string"
|
|
858
|
-
// },
|
|
859
|
-
// {
|
|
860
|
-
// name: "endDate",
|
|
861
|
-
// detail: "Used to filter block range.",
|
|
862
|
-
// example: `"01/07/2025"`,
|
|
863
|
-
// require: "o",
|
|
864
|
-
// type: "string"
|
|
865
|
-
// }
|
|
866
|
-
// ]
|
|
867
|
-
// },
|
|
134
|
+
example: `"yield-bearing-stablecoins"`,
|
|
135
|
+
require: "m"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "param2",
|
|
139
|
+
detail: `If "market" and "stablecoins" then eg. "1h", "24h", "7d".`,
|
|
140
|
+
example: `"1h,24h,7d"`,
|
|
141
|
+
require: "o"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// src/crypto/defillama/metadata.js
|
|
147
|
+
var DEFILLAMA_metadata = {
|
|
148
|
+
API_KEY: SERVICES_API_KEY.Defillama,
|
|
149
|
+
LOGO: "https://defillama.com/favicon-32x32.png",
|
|
150
|
+
BRAND_COLOR: "#f8f5fc",
|
|
151
|
+
BRAND_SECONDARY_COLOR: "#855dcd",
|
|
152
|
+
n: "DEFILLAMA",
|
|
153
|
+
t: 20,
|
|
154
|
+
d: "Fetches content from Defillama.",
|
|
155
|
+
a: "Retrieves data from Defillama.",
|
|
156
|
+
p: [
|
|
157
|
+
{
|
|
158
|
+
name: "category",
|
|
159
|
+
detail: "Type of content to fetch. Supports 'protocols', 'yields', 'dex', or 'fees'.",
|
|
160
|
+
example: `"protocols"`,
|
|
161
|
+
require: "m",
|
|
162
|
+
type: "string"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
// src/crypto/base/metadata.js
|
|
168
|
+
var BASE_metadata = {
|
|
169
|
+
API_KEY: SERVICES_API_KEY.Basescan,
|
|
170
|
+
LOGO: "https://2064089921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevP3L0cUvP9xmRefuzCm%2Fuploads%2F2K1pvFsE7JAfcI3LAxYl%2Fbase-logo-in-blue.webp?alt=media&token=32c80439-dbdc-432a-b199-220e012efc3c",
|
|
171
|
+
BRAND_COLOR: "#f1f5ff",
|
|
172
|
+
BRAND_SECONDARY_COLOR: "#2752ff",
|
|
173
|
+
n: "BASE",
|
|
174
|
+
t: 20,
|
|
175
|
+
d: "Fetches Base network data via Basescan: native txns, ERC-20 transfers, ERC-721 transfers, and gas metrics.",
|
|
176
|
+
a: "Pulls on-chain activity for Base (chainid 8453) using Basescan\u2019s API \u2014 supports full tx history, token/NFT transfers, gas prices, and pagination.",
|
|
177
|
+
p: [
|
|
178
|
+
{
|
|
179
|
+
name: "type",
|
|
180
|
+
detail: "Data category: 'all-txns' | 'token-txns' | 'nft-txns' | 'gas'.",
|
|
181
|
+
example: `"token-txns"`,
|
|
182
|
+
require: "m",
|
|
183
|
+
type: "string"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "address",
|
|
187
|
+
detail: "Target wallet address (only required for txns, token, and nft queries). Not needed for 'gas'.",
|
|
188
|
+
example: `"0x7FD624f3f97A7dd36195E8379F28dB6147C270ff"`,
|
|
189
|
+
require: "o",
|
|
190
|
+
type: "string"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "startDate",
|
|
194
|
+
detail: "Start date (used to resolve block range). Optional, only applies to txns.",
|
|
195
|
+
example: `"01/01/2024"`,
|
|
196
|
+
require: "o",
|
|
197
|
+
type: "string"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "endDate",
|
|
201
|
+
detail: "End date (used to resolve block range). Optional, only applies to txns.",
|
|
202
|
+
example: `"07/07/2024"`,
|
|
203
|
+
require: "o",
|
|
204
|
+
type: "string"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "page",
|
|
208
|
+
detail: "Page number for paginated results. Only applies to txns/token/nft queries.",
|
|
209
|
+
example: `1`,
|
|
210
|
+
require: "o",
|
|
211
|
+
type: "number"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: "offset",
|
|
215
|
+
detail: "Number of items per page (limit). Only applies to txns/token/nft queries.",
|
|
216
|
+
example: `2`,
|
|
217
|
+
require: "o",
|
|
218
|
+
type: "number"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// src/crypto/gnosis/metadata.js
|
|
224
|
+
var GNOSIS_metadata = {
|
|
225
|
+
API_KEY: SERVICES_API_KEY.Gnosisscan,
|
|
226
|
+
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
227
|
+
BRAND_COLOR: "#f6f7f6",
|
|
228
|
+
BRAND_SECONDARY_COLOR: "#133629",
|
|
229
|
+
n: "GNOSIS",
|
|
230
|
+
t: 20,
|
|
231
|
+
d: "Fetches Gnosis Chain data via Gnosisscan: native transactions, ERC-20 token transfers, ERC-721 NFT transfers, and gas metrics.",
|
|
232
|
+
a: "Queries Gnosis Chain (chainid 100) through Gnosisscan\u2019s API to return transaction history, token/NFT transfers, or gas price information. Supports pagination and time-based filtering for transaction types.",
|
|
233
|
+
p: [
|
|
234
|
+
{
|
|
235
|
+
name: "type",
|
|
236
|
+
detail: "Data category to fetch. Options: 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
237
|
+
example: `"nft-txns"`,
|
|
238
|
+
require: "m",
|
|
239
|
+
type: "string"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: "address",
|
|
243
|
+
detail: "Wallet address to query. Required for all types except 'gas'.",
|
|
244
|
+
example: `"0x90830Ed558f12D826370DC52E9D87947A7F18De9"`,
|
|
245
|
+
require: "o",
|
|
246
|
+
type: "string"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: "startDate",
|
|
250
|
+
detail: "Used to resolve starting block for txns.",
|
|
251
|
+
example: `"01/01/2024"`,
|
|
252
|
+
require: "o",
|
|
253
|
+
type: "string"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "endDate",
|
|
257
|
+
detail: "Used to resolve ending block for txns.",
|
|
258
|
+
example: `"14/06/2025"`,
|
|
259
|
+
require: "o",
|
|
260
|
+
type: "string"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: "page",
|
|
264
|
+
detail: "Page number for paginated transaction results. Applies only to 'txns', 'token-txns', and 'nft-txns'.",
|
|
265
|
+
example: `1`,
|
|
266
|
+
require: "o",
|
|
267
|
+
type: "number"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: "offset",
|
|
271
|
+
detail: "Number of results per page (limit). Applies only to 'txns', 'token-txns', and 'nft-txns'.",
|
|
272
|
+
example: `50`,
|
|
273
|
+
require: "o",
|
|
274
|
+
type: "number"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
// src/crypto/etherscan/metadata.js
|
|
280
|
+
var ETHERSCAN_metadata = {
|
|
281
|
+
API_KEY: SERVICES_API_KEY.Etherscan,
|
|
282
|
+
LOGO: "https://etherscan.io/images/favicon3.ico",
|
|
283
|
+
BRAND_COLOR: "#F6F7F8",
|
|
284
|
+
BRAND_SECONDARY_COLOR: "#21325B",
|
|
285
|
+
n: "ETHERSCAN",
|
|
286
|
+
t: 20,
|
|
287
|
+
d: "Returns blockchain transaction history for the given address",
|
|
288
|
+
a: "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
|
|
289
|
+
p: [
|
|
290
|
+
{
|
|
291
|
+
name: "type",
|
|
292
|
+
detail: "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
293
|
+
example: `"all-txns"`,
|
|
294
|
+
require: "m",
|
|
295
|
+
type: "string"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "chain",
|
|
299
|
+
detail: "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
|
|
300
|
+
example: `"ethereum"`,
|
|
301
|
+
require: "m",
|
|
302
|
+
type: "string"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: "address",
|
|
306
|
+
detail: "Wallet address / Ens name to query",
|
|
307
|
+
example: `"vitalik.eth"`,
|
|
308
|
+
require: "m",
|
|
309
|
+
type: "string"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: "startDate",
|
|
313
|
+
detail: "Used to filter block range.",
|
|
314
|
+
example: `"01/01/2024"`,
|
|
315
|
+
require: "o",
|
|
316
|
+
type: "string"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: "endDate",
|
|
320
|
+
detail: "Used to filter block range.",
|
|
321
|
+
example: `"01/07/2025"`,
|
|
322
|
+
require: "o",
|
|
323
|
+
type: "string"
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
// src/crypto/pnl/metadata.js
|
|
329
|
+
var PNL_metadata = {
|
|
330
|
+
n: "PNL",
|
|
331
|
+
t: 20,
|
|
332
|
+
d: "Subtract each element from A column from B column and return the total sum.",
|
|
333
|
+
a: "Returns the total of A - B element-wise subtraction across two ranges.",
|
|
334
|
+
p: [
|
|
335
|
+
{
|
|
336
|
+
name: "A",
|
|
337
|
+
detail: "The column or array of values to subtract from B (e.g. cost).",
|
|
338
|
+
example: "A1:A10",
|
|
339
|
+
require: "m",
|
|
340
|
+
repeat: "n",
|
|
341
|
+
type: "range"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "B",
|
|
345
|
+
detail: "The column or array of values to subtract A from (e.g. revenue).",
|
|
346
|
+
example: "B1:B10",
|
|
347
|
+
require: "m",
|
|
348
|
+
repeat: "n",
|
|
349
|
+
type: "range"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
// src/crypto/safe/metadata.js
|
|
355
|
+
var SAFE_metadata = {
|
|
356
|
+
API_KEY: SERVICES_API_KEY.Safe,
|
|
357
|
+
LOGO: "https://safe-transaction-mainnet.safe.global/static/safe/favicon.png",
|
|
358
|
+
BRAND_COLOR: "#ebf9f3",
|
|
359
|
+
BRAND_SECONDARY_COLOR: "#00B460",
|
|
360
|
+
n: "SAFE",
|
|
361
|
+
t: 20,
|
|
362
|
+
d: "Query the list of transactions performed by a Safe address, with optional pagination.",
|
|
363
|
+
a: "Query the list of transactions performed by a Safe address, with optional pagination.",
|
|
364
|
+
p: [
|
|
365
|
+
{
|
|
366
|
+
name: "address",
|
|
367
|
+
detail: "The address to query, in hexadecimal format.",
|
|
368
|
+
example: `"0xe9A6378d8FD4983C2999DB0735f258397E8C2253"`,
|
|
369
|
+
require: "m"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: "utility",
|
|
373
|
+
detail: "The utility to query, supported values: 'txns'.",
|
|
374
|
+
example: `"txns"`,
|
|
375
|
+
require: "m"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: "chain",
|
|
379
|
+
detail: "The chain to query, supported values: 'ethereum', 'gnosis'.",
|
|
380
|
+
example: `"gnosis"`,
|
|
381
|
+
require: "m"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: "limit",
|
|
385
|
+
detail: "The number of transactions to return, default is 100.",
|
|
386
|
+
example: `10`,
|
|
387
|
+
require: "o",
|
|
388
|
+
repeat: "n"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: "offset",
|
|
392
|
+
detail: "The number of transactions to skip, default is 0.",
|
|
393
|
+
example: `0`,
|
|
394
|
+
require: "o",
|
|
395
|
+
repeat: "n"
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
// src/crypto/blockscout/metadata.js
|
|
401
|
+
var BLOCKSCOUT_metadata = {
|
|
402
|
+
LOGO: "https://cdn.prod.website-files.com/65f94dfd53db8b337c808067/68485baa72714ae58f350ce2_bs-logo.png",
|
|
403
|
+
BRAND_COLOR: "#f8f8fd",
|
|
404
|
+
BRAND_SECONDARY_COLOR: "#5353D3",
|
|
405
|
+
n: "BLOCKSCOUT",
|
|
406
|
+
t: 20,
|
|
407
|
+
d: "Returns the onchain information about an address on a provided blockchain. By default on Ethereum mainnet.",
|
|
408
|
+
a: "Returns the onchain information about an address on a provided blockchain. By default on Ethereum mainnet.",
|
|
409
|
+
p: [
|
|
410
|
+
{
|
|
411
|
+
name: "address",
|
|
412
|
+
detail: "The address string representing the addresses to check for balance",
|
|
413
|
+
example: `"vitalik.eth"`,
|
|
414
|
+
require: "m",
|
|
415
|
+
type: "string"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "type",
|
|
419
|
+
detail: "The type of data to query.",
|
|
420
|
+
example: `"txns"`,
|
|
421
|
+
require: "m",
|
|
422
|
+
type: "string"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: "chain",
|
|
426
|
+
detail: "The blockchain to query. By default on Ethereum mainnet. Can be gnosis, arbitrum, optimism, soneium, unichain ",
|
|
427
|
+
example: `"ethereum"`,
|
|
428
|
+
require: "o",
|
|
429
|
+
type: "string"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
name: "startTimestamp",
|
|
433
|
+
detail: 'Start date marking the start of the transaction search range. Work with type === "txns"',
|
|
434
|
+
example: `"01/01/2023"`,
|
|
435
|
+
require: "o",
|
|
436
|
+
type: "string"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: "endTimestamp",
|
|
440
|
+
detail: 'End date marking the end of the transaction search range. Work with type === "txns"',
|
|
441
|
+
example: `"01/05/2024"`,
|
|
442
|
+
require: "o",
|
|
443
|
+
type: "string"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: "page",
|
|
447
|
+
detail: 'The page number to return. Work with type === "txns"',
|
|
448
|
+
example: "1",
|
|
449
|
+
require: "o",
|
|
450
|
+
repeat: "n",
|
|
451
|
+
type: "rangenumber"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
name: "offset",
|
|
455
|
+
detail: 'The number of transactions to return per page. Work with type === "txns"',
|
|
456
|
+
example: "2",
|
|
457
|
+
require: "o",
|
|
458
|
+
repeat: "n",
|
|
459
|
+
type: "rangenumber"
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
// src/crypto/aave/metadata.js
|
|
465
|
+
var AAVE_metadata = {
|
|
466
|
+
LOGO: "https://avatars.githubusercontent.com/u/47617460?s=200&v=4",
|
|
467
|
+
BRAND_COLOR: "#f7f7ff",
|
|
468
|
+
BRAND_SECONDARY_COLOR: "#9896ff",
|
|
469
|
+
n: "AAVE",
|
|
470
|
+
t: 20,
|
|
471
|
+
d: "Returns Aave pools and tokens data",
|
|
472
|
+
a: "Retrieves Aave data for a given chain and address from Aave",
|
|
473
|
+
p: [
|
|
474
|
+
{
|
|
475
|
+
name: "graphType",
|
|
476
|
+
detail: "Graph type to Query. Can be 'v2', 'v2-raw'",
|
|
477
|
+
example: `"v2"`,
|
|
478
|
+
require: "m",
|
|
479
|
+
type: "string"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
name: "category",
|
|
483
|
+
detail: "Query type for the data. Can be 'tokens', 'markets'",
|
|
484
|
+
example: `"tokens"`,
|
|
485
|
+
require: "m",
|
|
486
|
+
type: "string"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
name: "param1",
|
|
490
|
+
detail: "Token Contract Address for market category or Token symbol",
|
|
491
|
+
example: `"USDT"`,
|
|
492
|
+
require: "m",
|
|
493
|
+
type: "string"
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
// src/crypto/lens/metadata.js
|
|
499
|
+
var LENS_metadata = {
|
|
500
|
+
API_KEY: SERVICES_API_KEY.Firefly,
|
|
501
|
+
LOGO: "https://tse3.mm.bing.net/th?id=OIP.1TANdvYNcEadCk6CO1bCcgAAAA&r=0&w=440&h=440&c=7",
|
|
502
|
+
SECONDARY_LOGO: "https://firefly.social/android-chrome-192x192.png",
|
|
503
|
+
BRAND_COLOR: "#f8f5fc",
|
|
504
|
+
BRAND_SECONDARY_COLOR: "#855dcd",
|
|
505
|
+
n: "LENS",
|
|
506
|
+
t: 20,
|
|
507
|
+
d: "Fetches content from Lens.",
|
|
508
|
+
a: "Retrieves posts or replies from Lens by usernames, IDs, or hashes.",
|
|
509
|
+
p: [
|
|
510
|
+
{
|
|
511
|
+
name: "contentType",
|
|
512
|
+
detail: "Type of content to fetch. Supports 'posts' or 'replies'.",
|
|
513
|
+
example: `"posts"`,
|
|
514
|
+
require: "m",
|
|
515
|
+
type: "string"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
name: "identifier",
|
|
519
|
+
detail: "Comma-separated usernames, IDs, or post hashes depending on platform and contentType.",
|
|
520
|
+
example: `"toka,miroyato"`,
|
|
521
|
+
require: "m",
|
|
522
|
+
type: "string"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
name: "start",
|
|
526
|
+
detail: "Pagination start index (default is 0).",
|
|
527
|
+
example: `0`,
|
|
528
|
+
require: "o",
|
|
529
|
+
type: "number"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "end",
|
|
533
|
+
detail: "Pagination end index (default is 10).",
|
|
534
|
+
example: `10`,
|
|
535
|
+
require: "o",
|
|
536
|
+
type: "number"
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
// src/crypto/farcaster/metadata.js
|
|
542
|
+
var FARCASTER_metadata = {
|
|
543
|
+
API_KEY: SERVICES_API_KEY.Firefly,
|
|
544
|
+
LOGO: "https://farcaster.xyz/favicon.ico",
|
|
545
|
+
SECONDARY_LOGO: "https://firefly.social/android-chrome-192x192.png",
|
|
546
|
+
BRAND_COLOR: "#f8f5fc",
|
|
547
|
+
BRAND_SECONDARY_COLOR: "#855dcd",
|
|
548
|
+
n: "FARCASTER",
|
|
549
|
+
t: 20,
|
|
550
|
+
d: "Fetches content from Farcaster.",
|
|
551
|
+
a: "Retrieves posts, replies, or channels from Farcaster by usernames, IDs, or hashes.",
|
|
552
|
+
p: [
|
|
553
|
+
{
|
|
554
|
+
name: "contentType",
|
|
555
|
+
detail: "Type of content to fetch. Supports 'posts', 'replies', and 'channels'.",
|
|
556
|
+
example: `"posts"`,
|
|
557
|
+
require: "m",
|
|
558
|
+
type: "string"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
name: "identifier",
|
|
562
|
+
detail: "Comma-separated usernames, IDs, or post hashes depending on contentType.",
|
|
563
|
+
example: `"miroyato"`,
|
|
564
|
+
require: "m",
|
|
565
|
+
type: "string"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
name: "start",
|
|
569
|
+
detail: "Pagination start index (default is 0).",
|
|
570
|
+
example: `0`,
|
|
571
|
+
require: "o",
|
|
572
|
+
type: "number"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: "end",
|
|
576
|
+
detail: "Pagination end index (default is 10).",
|
|
577
|
+
example: `10`,
|
|
578
|
+
require: "o",
|
|
579
|
+
type: "number"
|
|
580
|
+
}
|
|
581
|
+
]
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
// src/crypto/firefly/metadata.js
|
|
585
|
+
var FIREFLY_metadata = {
|
|
586
|
+
API_KEY: SERVICES_API_KEY.Firefly,
|
|
587
|
+
LOGO: "https://firefly.social/android-chrome-192x192.png",
|
|
588
|
+
BRAND_COLOR: "#f8f5fc",
|
|
589
|
+
BRAND_SECONDARY_COLOR: "#855dcd",
|
|
590
|
+
n: "FIREFLY",
|
|
591
|
+
t: 20,
|
|
592
|
+
d: "Fetches content from Farcaster or Lens.",
|
|
593
|
+
a: "Retrieves posts, replies, or channels from Farcaster and Lens by usernames, IDs, or hashes.",
|
|
594
|
+
p: [
|
|
595
|
+
{
|
|
596
|
+
name: "platform",
|
|
597
|
+
detail: "The social platform to query. Supports 'farcaster' or 'lens'.",
|
|
598
|
+
example: `"farcaster"`,
|
|
599
|
+
require: "m",
|
|
600
|
+
type: "string"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "contentType",
|
|
604
|
+
detail: "Type of content to fetch. Supports 'posts', 'replies', and 'channels' (channels only for 'farcaster').",
|
|
605
|
+
example: `"posts"`,
|
|
606
|
+
require: "m",
|
|
607
|
+
type: "string"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
name: "identifier",
|
|
611
|
+
detail: "Comma-separated usernames, IDs, or post hashes depending on platform and contentType.",
|
|
612
|
+
example: `"toka,miroyato"`,
|
|
613
|
+
require: "m",
|
|
614
|
+
type: "string"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
name: "start",
|
|
618
|
+
detail: "Pagination start index (default is 0).",
|
|
619
|
+
example: `0`,
|
|
620
|
+
require: "o",
|
|
621
|
+
type: "number"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
name: "end",
|
|
625
|
+
detail: "Pagination end index (default is 10).",
|
|
626
|
+
example: `10`,
|
|
627
|
+
require: "o",
|
|
628
|
+
type: "number"
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
// src/crypto/neynar/metadata.js
|
|
634
|
+
var Neynar_metadata = {
|
|
635
|
+
API_KEY: SERVICES_API_KEY.Neynar,
|
|
636
|
+
LOGO: "https://framerusercontent.com/images/OS5YeZ2Y7DmszAxL6Zf06pXtKzc.svg",
|
|
637
|
+
BRAND_COLOR: "#e8e6ff",
|
|
638
|
+
BRAND_SECONDARY_COLOR: "#28204A",
|
|
639
|
+
n: "NEYNAR",
|
|
640
|
+
t: 20,
|
|
641
|
+
d: "Fetches followers for a given Farcaster username using Neynar's API.",
|
|
642
|
+
a: "Retrieves followers of a Farcaster user, with support for sorting, pagination, and optional viewer context.",
|
|
643
|
+
p: [
|
|
644
|
+
{
|
|
645
|
+
name: "username",
|
|
646
|
+
detail: "The Farcaster username whose followers should be fetched.",
|
|
647
|
+
example: `"miroyato"`,
|
|
648
|
+
require: "m",
|
|
649
|
+
type: "number"
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
// src/crypto-constants.js
|
|
655
|
+
var FUNCTION_LOCALE = [
|
|
656
|
+
EOA_metadata,
|
|
657
|
+
UNISWAP_metadata,
|
|
658
|
+
COINGECKO_metadata,
|
|
659
|
+
DEFILLAMA_metadata,
|
|
660
|
+
BASE_metadata,
|
|
661
|
+
GNOSIS_metadata,
|
|
662
|
+
ETHERSCAN_metadata,
|
|
663
|
+
PNL_metadata,
|
|
664
|
+
SAFE_metadata,
|
|
665
|
+
BLOCKSCOUT_metadata,
|
|
666
|
+
AAVE_metadata,
|
|
667
|
+
LENS_metadata,
|
|
668
|
+
FARCASTER_metadata,
|
|
669
|
+
FIREFLY_metadata,
|
|
670
|
+
Neynar_metadata,
|
|
868
671
|
{
|
|
869
672
|
LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/ploymarket.png",
|
|
870
673
|
n: "POLYMARKET",
|
|
@@ -923,12 +726,5 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
923
726
|
}
|
|
924
727
|
];
|
|
925
728
|
export {
|
|
926
|
-
|
|
927
|
-
CHAIN_ID_MAP,
|
|
928
|
-
ERROR_MESSAGES_FLAG,
|
|
929
|
-
FUNCTION_LOCALE,
|
|
930
|
-
MAX_PAGE_LIMIT,
|
|
931
|
-
SAFE_CHAIN_MAP,
|
|
932
|
-
SERVICES_API_KEY,
|
|
933
|
-
UTILITY
|
|
729
|
+
FUNCTION_LOCALE
|
|
934
730
|
};
|