@fileverse-dev/formulajs 4.4.11-mod-25 → 4.4.11-mod-27
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 +1367 -358
- package/lib/browser/formula.min.js +10 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +968 -68
- package/lib/esm/crypto-constants.mjs +61 -37
- package/lib/esm/index.mjs +968 -68
- package/package.json +2 -1
- package/types/cjs/index.d.cts +2 -2
- package/types/esm/index.d.mts +2 -2
|
@@ -34,7 +34,8 @@ var SERVICE_API_KEY = {
|
|
|
34
34
|
Safe: "SAFE_API_KEY",
|
|
35
35
|
Basescan: "BASESCAN_API_KEY",
|
|
36
36
|
Gnosisscan: "GNOSIS_API_KEY",
|
|
37
|
-
Firefly: "FIRE_FLY_API_KEY"
|
|
37
|
+
Firefly: "FIRE_FLY_API_KEY",
|
|
38
|
+
GnosisPay: "GNOSIS_API_KEY"
|
|
38
39
|
};
|
|
39
40
|
var FUNCTION_LOCALE = [
|
|
40
41
|
{
|
|
@@ -180,7 +181,7 @@ var FUNCTION_LOCALE = [
|
|
|
180
181
|
},
|
|
181
182
|
{
|
|
182
183
|
API_KEY: SERVICE_API_KEY.Gnosisscan,
|
|
183
|
-
LOGO: "https://
|
|
184
|
+
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
184
185
|
BRAND_COLOR: "#f6f7f6",
|
|
185
186
|
BRAND_SECONDARY_COLOR: "#133629",
|
|
186
187
|
n: "GNOSISSCAN",
|
|
@@ -251,7 +252,7 @@ var FUNCTION_LOCALE = [
|
|
|
251
252
|
{
|
|
252
253
|
name: "address",
|
|
253
254
|
detail: "The address string representing the addresses to check for balance",
|
|
254
|
-
example: `"
|
|
255
|
+
example: `"0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4"`,
|
|
255
256
|
require: "m",
|
|
256
257
|
type: "string"
|
|
257
258
|
},
|
|
@@ -265,21 +266,21 @@ var FUNCTION_LOCALE = [
|
|
|
265
266
|
{
|
|
266
267
|
name: "chain",
|
|
267
268
|
detail: "The blockchain to query. By default on Ethereum mainnet.",
|
|
268
|
-
example: `"
|
|
269
|
+
example: `"ethereum"`,
|
|
269
270
|
require: "o",
|
|
270
271
|
type: "string"
|
|
271
272
|
},
|
|
272
273
|
{
|
|
273
274
|
name: "startTimestamp",
|
|
274
275
|
detail: 'The Unix timestamp marking the start of the transaction search range. Work with type === "txns"',
|
|
275
|
-
example: "
|
|
276
|
+
example: "1704067200",
|
|
276
277
|
require: "o",
|
|
277
278
|
type: "rangenumber"
|
|
278
279
|
},
|
|
279
280
|
{
|
|
280
281
|
name: "endTimestamp",
|
|
281
282
|
detail: 'The Unix timestamp marking the end of the transaction search range. Work with type === "txns"',
|
|
282
|
-
example: "
|
|
283
|
+
example: "1719792000",
|
|
283
284
|
require: "o",
|
|
284
285
|
type: "rangenumber"
|
|
285
286
|
},
|
|
@@ -294,7 +295,7 @@ var FUNCTION_LOCALE = [
|
|
|
294
295
|
{
|
|
295
296
|
name: "offset",
|
|
296
297
|
detail: 'The number of transactions to return per page. Work with type === "txns"',
|
|
297
|
-
example: "
|
|
298
|
+
example: "2",
|
|
298
299
|
require: "o",
|
|
299
300
|
repeat: "n",
|
|
300
301
|
type: "rangenumber"
|
|
@@ -382,14 +383,14 @@ var FUNCTION_LOCALE = [
|
|
|
382
383
|
{
|
|
383
384
|
name: "startTime",
|
|
384
385
|
detail: "Start time in UNIX timestamp (seconds). Used to calculate starting block for transaction queries.",
|
|
385
|
-
example: "
|
|
386
|
+
example: "01/01/2024",
|
|
386
387
|
require: "m",
|
|
387
388
|
type: "rangenumber"
|
|
388
389
|
},
|
|
389
390
|
{
|
|
390
391
|
name: "endTime",
|
|
391
392
|
detail: "End time in UNIX timestamp (seconds). Used to calculate ending block for transaction queries.",
|
|
392
|
-
example: "
|
|
393
|
+
example: "01/07/2024",
|
|
393
394
|
require: "m",
|
|
394
395
|
type: "rangenumber"
|
|
395
396
|
},
|
|
@@ -416,43 +417,66 @@ var FUNCTION_LOCALE = [
|
|
|
416
417
|
n: "COINGECKO",
|
|
417
418
|
t: 20,
|
|
418
419
|
API_KEY: SERVICE_API_KEY.Coingecko,
|
|
419
|
-
d: "Query
|
|
420
|
-
a:
|
|
420
|
+
d: "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko. Returns flat, spreadsheet-compatible output with pagination support.",
|
|
421
|
+
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.',
|
|
421
422
|
p: [
|
|
422
423
|
{
|
|
423
|
-
name: "
|
|
424
|
-
detail:
|
|
425
|
-
example: `"
|
|
424
|
+
name: "category",
|
|
425
|
+
detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
|
|
426
|
+
example: `"price"`,
|
|
426
427
|
require: "m"
|
|
427
428
|
},
|
|
428
429
|
{
|
|
429
|
-
name: "
|
|
430
|
-
detail: "
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
n: "FLVURL",
|
|
438
|
-
t: 20,
|
|
439
|
-
d: "Query the prices of one or more coins by using their unique Coin API IDs, symbols, or names.",
|
|
440
|
-
a: "Query the prices of one or more coins by using their unique Coin API IDs, symbols, or names.",
|
|
441
|
-
p: [
|
|
430
|
+
name: "param1",
|
|
431
|
+
detail: `For "price": coin ID(s).
|
|
432
|
+
For "market": one of ["eth", "base", "sol", "gnosis", "hyperliquid", "bitcoin", "pump"].
|
|
433
|
+
For "stablecoins": one of ["all", "crypto-backed-stablecoin", "yield-bearing-stablecoins", etc.].
|
|
434
|
+
For "derivatives": exchange name (e.g., "binance_futures").`,
|
|
435
|
+
example: `"bitcoin" | "eth" | "crypto-backed-stablecoin" | "binance_futures"`,
|
|
436
|
+
require: "o"
|
|
437
|
+
},
|
|
442
438
|
{
|
|
443
|
-
name: "
|
|
444
|
-
detail: "
|
|
445
|
-
|
|
446
|
-
|
|
439
|
+
name: "param2",
|
|
440
|
+
detail: `For "price": target currency(ies) (e.g. "usd").
|
|
441
|
+
For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d).`,
|
|
442
|
+
example: `"usd" | "1h,24h,7d"`,
|
|
443
|
+
require: "o"
|
|
447
444
|
},
|
|
448
445
|
{
|
|
449
|
-
name: "
|
|
450
|
-
detail:
|
|
451
|
-
example: `
|
|
452
|
-
require: "
|
|
446
|
+
name: "page",
|
|
447
|
+
detail: 'Page number for pagination (applies to "market", "stablecoins", and global "derivatives").',
|
|
448
|
+
example: `1`,
|
|
449
|
+
require: "o"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
name: "per_page",
|
|
453
|
+
detail: 'Number of items per page (applies to "market", "stablecoins", and global "derivatives").',
|
|
454
|
+
example: `2`,
|
|
455
|
+
require: "o"
|
|
453
456
|
}
|
|
454
457
|
]
|
|
455
458
|
},
|
|
459
|
+
// {
|
|
460
|
+
// n: "FLVURL",
|
|
461
|
+
// t: 20,
|
|
462
|
+
// d: "Query the prices of one or more coins by using their unique Coin API IDs, symbols, or names.",
|
|
463
|
+
// a: "Query the prices of one or more coins by using their unique Coin API IDs, symbols, or names.",
|
|
464
|
+
// p: [
|
|
465
|
+
// {
|
|
466
|
+
// name: "token",
|
|
467
|
+
// detail:
|
|
468
|
+
// "coins' IDs, comma-separated if querying more than 1 coin.",
|
|
469
|
+
// example: `"bitcoin"`,
|
|
470
|
+
// require: "m",
|
|
471
|
+
// },
|
|
472
|
+
// {
|
|
473
|
+
// name: "vs_currency",
|
|
474
|
+
// detail: "target currency of coins, comma-separated if querying more than 1 currency",
|
|
475
|
+
// example: `"usd"`,
|
|
476
|
+
// require: "m",
|
|
477
|
+
// },
|
|
478
|
+
// ],
|
|
479
|
+
// },
|
|
456
480
|
{
|
|
457
481
|
API_KEY: SERVICE_API_KEY.Safe,
|
|
458
482
|
LOGO: "https://safe-transaction-mainnet.safe.global/static/safe/favicon.png",
|
|
@@ -805,7 +829,7 @@ var FUNCTION_LOCALE = [
|
|
|
805
829
|
},
|
|
806
830
|
{
|
|
807
831
|
API_KEY: SERVICE_API_KEY.GnosisPay,
|
|
808
|
-
LOGO: "https://
|
|
832
|
+
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
809
833
|
BRAND_COLOR: "#f6f7f6",
|
|
810
834
|
BRAND_SECONDARY_COLOR: "#133629",
|
|
811
835
|
n: "GNOSIS",
|
|
@@ -899,7 +923,7 @@ var FUNCTION_LOCALE = [
|
|
|
899
923
|
},
|
|
900
924
|
{
|
|
901
925
|
API_KEY: SERVICE_API_KEY.Etherscan,
|
|
902
|
-
LOGO: "https://
|
|
926
|
+
LOGO: "https://www.tally.xyz/favicon.ico",
|
|
903
927
|
BRAND_COLOR: "#f9f8ff",
|
|
904
928
|
BRAND_SECONDARY_COLOR: "#725bff",
|
|
905
929
|
n: "TALLY",
|