@fileverse-dev/formulajs 4.4.11-mod-28 → 4.4.11-mod-31
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 +253 -896
- package/lib/browser/formula.min.js +2 -10
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +74 -782
- package/lib/esm/crypto-constants.mjs +25 -21
- package/lib/esm/index.mjs +74 -782
- package/package.json +1 -1
|
@@ -26,6 +26,9 @@ var ERROR_MESSAGES_FLAG = {
|
|
|
26
26
|
INVALID_ADDRESS: "_INVALID_ADDRESS",
|
|
27
27
|
INVALID_PARAM: "_INVALID_PARAM"
|
|
28
28
|
};
|
|
29
|
+
var UTILITY = {
|
|
30
|
+
ALCHEMY_API_KEY: "ALCHEMY_API_KEY"
|
|
31
|
+
};
|
|
29
32
|
|
|
30
33
|
// src/crypto-constants.js
|
|
31
34
|
var SERVICE_API_KEY = {
|
|
@@ -65,7 +68,7 @@ var FUNCTION_LOCALE = [
|
|
|
65
68
|
{
|
|
66
69
|
name: "identifier",
|
|
67
70
|
detail: "Comma-separated usernames, IDs, or post hashes depending on platform and contentType.",
|
|
68
|
-
example: `"toka,
|
|
71
|
+
example: `"toka,miroyato"`,
|
|
69
72
|
require: "m",
|
|
70
73
|
type: "string"
|
|
71
74
|
},
|
|
@@ -166,28 +169,28 @@ var FUNCTION_LOCALE = [
|
|
|
166
169
|
{
|
|
167
170
|
name: "startDate",
|
|
168
171
|
detail: "Start date (used to resolve block range). Optional, only applies to txns.",
|
|
169
|
-
example: `"
|
|
172
|
+
example: `"01/01/2024"`,
|
|
170
173
|
require: "o",
|
|
171
174
|
type: "rangenumber"
|
|
172
175
|
},
|
|
173
176
|
{
|
|
174
177
|
name: "endDate",
|
|
175
178
|
detail: "End date (used to resolve block range). Optional, only applies to txns.",
|
|
176
|
-
example: `"
|
|
179
|
+
example: `"07/07/2024"`,
|
|
177
180
|
require: "o",
|
|
178
181
|
type: "rangenumber"
|
|
179
182
|
},
|
|
180
183
|
{
|
|
181
184
|
name: "page",
|
|
182
185
|
detail: "Page number for paginated results. Only applies to txns/token/nft queries.",
|
|
183
|
-
example: `
|
|
186
|
+
example: `1`,
|
|
184
187
|
require: "o",
|
|
185
188
|
type: "number"
|
|
186
189
|
},
|
|
187
190
|
{
|
|
188
191
|
name: "offset",
|
|
189
192
|
detail: "Number of items per page (limit). Only applies to txns/token/nft queries.",
|
|
190
|
-
example: `
|
|
193
|
+
example: `2`,
|
|
191
194
|
require: "o",
|
|
192
195
|
type: "number"
|
|
193
196
|
}
|
|
@@ -266,7 +269,7 @@ var FUNCTION_LOCALE = [
|
|
|
266
269
|
{
|
|
267
270
|
name: "address",
|
|
268
271
|
detail: "The address string representing the addresses to check for balance",
|
|
269
|
-
example: `"
|
|
272
|
+
example: `"vitalik.eth"`,
|
|
270
273
|
require: "m",
|
|
271
274
|
type: "string"
|
|
272
275
|
},
|
|
@@ -287,16 +290,16 @@ var FUNCTION_LOCALE = [
|
|
|
287
290
|
{
|
|
288
291
|
name: "startTimestamp",
|
|
289
292
|
detail: 'Start date marking the start of the transaction search range. Work with type === "txns"',
|
|
290
|
-
example: "01/01/
|
|
293
|
+
example: `"01/01/2023"`,
|
|
291
294
|
require: "o",
|
|
292
|
-
type: "
|
|
295
|
+
type: "string"
|
|
293
296
|
},
|
|
294
297
|
{
|
|
295
298
|
name: "endTimestamp",
|
|
296
299
|
detail: 'End date marking the end of the transaction search range. Work with type === "txns"',
|
|
297
|
-
example: "
|
|
300
|
+
example: `"01/05/2024"`,
|
|
298
301
|
require: "o",
|
|
299
|
-
type: "
|
|
302
|
+
type: "string"
|
|
300
303
|
},
|
|
301
304
|
{
|
|
302
305
|
name: "page",
|
|
@@ -376,7 +379,7 @@ var FUNCTION_LOCALE = [
|
|
|
376
379
|
{
|
|
377
380
|
name: "addresses",
|
|
378
381
|
detail: "One or more addresses (comma-separated) to query.",
|
|
379
|
-
example: `"
|
|
382
|
+
example: `"vitalik.eth"`,
|
|
380
383
|
require: "m",
|
|
381
384
|
type: "string"
|
|
382
385
|
},
|
|
@@ -390,7 +393,7 @@ var FUNCTION_LOCALE = [
|
|
|
390
393
|
{
|
|
391
394
|
name: "chain",
|
|
392
395
|
detail: `Blockchain network(s) to query. Supported values: "ethereum", "gnosis", "base". Accepts comma-separated values.`,
|
|
393
|
-
example: `"ethereum
|
|
396
|
+
example: `"ethereum"`,
|
|
394
397
|
require: "m",
|
|
395
398
|
type: "string"
|
|
396
399
|
},
|
|
@@ -404,21 +407,21 @@ var FUNCTION_LOCALE = [
|
|
|
404
407
|
{
|
|
405
408
|
name: "endTime",
|
|
406
409
|
detail: "Used to calculate ending block for transaction queries.",
|
|
407
|
-
example: "01/
|
|
410
|
+
example: "01/06/2024",
|
|
408
411
|
require: "m",
|
|
409
412
|
type: "rangenumber"
|
|
410
413
|
},
|
|
411
414
|
{
|
|
412
415
|
name: "page",
|
|
413
|
-
detail: "The page number for paginated transaction results. Only used when category is 'txns'.",
|
|
416
|
+
detail: "The page number for paginated transaction results. Only used when category is 'txns'. Default is 1",
|
|
414
417
|
example: "1",
|
|
415
418
|
require: "o",
|
|
416
419
|
type: "number"
|
|
417
420
|
},
|
|
418
421
|
{
|
|
419
422
|
name: "offset",
|
|
420
|
-
detail: "The number of results to return per page (limit). Only used when category is 'txns'.",
|
|
421
|
-
example: "
|
|
423
|
+
detail: "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
|
|
424
|
+
example: "10",
|
|
422
425
|
require: "o",
|
|
423
426
|
type: "number"
|
|
424
427
|
}
|
|
@@ -437,23 +440,23 @@ var FUNCTION_LOCALE = [
|
|
|
437
440
|
{
|
|
438
441
|
name: "category",
|
|
439
442
|
detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
|
|
440
|
-
example: `"
|
|
443
|
+
example: `"stablecoins"`,
|
|
441
444
|
require: "m"
|
|
442
445
|
},
|
|
443
446
|
{
|
|
444
447
|
name: "param1",
|
|
445
448
|
detail: `For "price": coin ID(s).
|
|
446
|
-
For "market": one of ["eth", "base", "sol", "gnosis", "hyperliquid", "bitcoin", "pump"].
|
|
449
|
+
For "market": one of ["eth", "base", "sol", "gnosis", "hyperliquid", "bitcoin", "pump", "aiagents", "meme"].
|
|
447
450
|
For "stablecoins": one of ["all", "crypto-backed-stablecoin", "yield-bearing-stablecoins", etc.].
|
|
448
451
|
For "derivatives": exchange name (e.g., "binance_futures").`,
|
|
449
|
-
example: `"
|
|
452
|
+
example: `"yield-bearing-stablecoins"`,
|
|
450
453
|
require: "o"
|
|
451
454
|
},
|
|
452
455
|
{
|
|
453
456
|
name: "param2",
|
|
454
457
|
detail: `For "price": target currency(ies) (e.g. "usd").
|
|
455
458
|
For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d).`,
|
|
456
|
-
example: `"
|
|
459
|
+
example: `"1h,24h,7d"`,
|
|
457
460
|
require: "o"
|
|
458
461
|
},
|
|
459
462
|
{
|
|
@@ -989,5 +992,6 @@ export {
|
|
|
989
992
|
ERROR_MESSAGES_FLAG,
|
|
990
993
|
FUNCTION_LOCALE,
|
|
991
994
|
SAFE_CHAIN_MAP,
|
|
992
|
-
SERVICE_API_KEY
|
|
995
|
+
SERVICE_API_KEY,
|
|
996
|
+
UTILITY
|
|
993
997
|
};
|