@fileverse-dev/formulajs 4.4.11-mod-63 → 4.4.11-mod-64-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.
@@ -17,15 +17,19 @@ var SAFE_CHAIN_MAP = {
17
17
  gnosis: "gno"
18
18
  };
19
19
  var ERROR_MESSAGES_FLAG = {
20
- INVALID_API_KEY: "_INVALID_KEY",
21
- RATE_LIMIT: "_RATE_LIMIT_REACHED",
22
- DEFAULT: "FETCH_ERROR",
23
- MISSING_KEY: "_MISSING",
24
- INVALID_CHAIN: "_INVALID_CHAIN",
25
- INVALID_TYPE: "_INVALID_TYPE",
26
- INVALID_ADDRESS: "_INVALID_ADDRESS",
27
- INVALID_PARAM: "_INVALID_PARAM",
28
- MAX_PAGE_LIMIT: "Max page limit is 250"
20
+ INVALID_API_KEY: "INVALID_API_KEY",
21
+ RATE_LIMIT: "RATE_LIMIT",
22
+ DEFAULT: "DEFAULT",
23
+ MISSING_KEY: "MISSING_KEY",
24
+ INVALID_CHAIN: "INVALID_CHAIN",
25
+ INVALID_TYPE: "INVALID_TYPE",
26
+ INVALID_ADDRESS: "INVALID_ADDRESS",
27
+ INVALID_PARAM: "INVALID_PARAM",
28
+ MAX_PAGE_LIMIT: "MAX_PAGE_LIMIT",
29
+ NETWORK_ERROR: "NETWORK_ERROR",
30
+ ENS: "ENS",
31
+ CUSTOM: "CUSTOM",
32
+ MISSING_PARAM: "MISSING_PARAM"
29
33
  };
30
34
  var UTILITY = {
31
35
  ALCHEMY_API_KEY: "ALCHEMY_API_KEY"
@@ -33,20 +37,20 @@ var UTILITY = {
33
37
  var MAX_PAGE_LIMIT = 250;
34
38
 
35
39
  // src/crypto-constants.js
36
- var SERVICE_API_KEY = {
37
- Etherscan: "ETHERSCAN_API_KEY",
38
- Coingecko: "COINGECKO_API_KEY",
39
- Safe: "SAFE_API_KEY",
40
- Basescan: "BASESCAN_API_KEY",
41
- Gnosisscan: "GNOSIS_API_KEY",
42
- Firefly: "FIRE_FLY_API_KEY",
43
- GnosisPay: "GNOSIS_API_KEY",
44
- Neynar: "NEYNAR_API_KEY",
45
- Defillama: "DEFILLAMA_API_KEY"
40
+ var SERVICES_API_KEY = {
41
+ Etherscan: "Etherscan",
42
+ Coingecko: "Coingecko",
43
+ Safe: "Safe",
44
+ Basescan: "Basescan",
45
+ Gnosisscan: "Gnosisscan",
46
+ Firefly: "Firefly",
47
+ GnosisPay: "GnosisPay",
48
+ Neynar: "Neynar",
49
+ Defillama: "Defillama"
46
50
  };
47
51
  var FUNCTION_LOCALE = [
48
52
  {
49
- API_KEY: SERVICE_API_KEY.Etherscan,
53
+ API_KEY: SERVICES_API_KEY.Etherscan,
50
54
  LOGO: "https://raw.githubusercontent.com/ethereum/ethereum-org/master/dist/favicon.ico",
51
55
  BRAND_COLOR: "#F6F7F8",
52
56
  BRAND_SECONDARY_COLOR: "#21325B",
@@ -144,7 +148,7 @@ var FUNCTION_LOCALE = [
144
148
  BRAND_SECONDARY_COLOR: "#4bc63d",
145
149
  n: "COINGECKO",
146
150
  t: 20,
147
- API_KEY: SERVICE_API_KEY.Coingecko,
151
+ API_KEY: SERVICES_API_KEY.Coingecko,
148
152
  d: "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko.",
149
153
  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.',
150
154
  p: [
@@ -175,7 +179,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
175
179
  ]
176
180
  },
177
181
  {
178
- API_KEY: SERVICE_API_KEY.Defillama,
182
+ API_KEY: SERVICES_API_KEY.Defillama,
179
183
  LOGO: "https://defillama.com/favicon-32x32.png",
180
184
  BRAND_COLOR: "#f8f5fc",
181
185
  BRAND_SECONDARY_COLOR: "#855dcd",
@@ -194,7 +198,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
194
198
  ]
195
199
  },
196
200
  {
197
- API_KEY: SERVICE_API_KEY.Basescan,
201
+ API_KEY: SERVICES_API_KEY.Basescan,
198
202
  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",
199
203
  BRAND_COLOR: "#f1f5ff",
200
204
  BRAND_SECONDARY_COLOR: "#2752ff",
@@ -210,13 +214,6 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
210
214
  require: "m",
211
215
  type: "string"
212
216
  },
213
- {
214
- name: "chain",
215
- detail: "Must be 'base'.",
216
- example: `"base"`,
217
- require: "m",
218
- type: "string"
219
- },
220
217
  {
221
218
  name: "address",
222
219
  detail: "Target wallet address (only required for txns, token, and nft queries). Not needed for 'gas'.",
@@ -255,7 +252,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
255
252
  ]
256
253
  },
257
254
  {
258
- API_KEY: SERVICE_API_KEY.Gnosisscan,
255
+ API_KEY: SERVICES_API_KEY.Gnosisscan,
259
256
  LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
260
257
  BRAND_COLOR: "#f6f7f6",
261
258
  BRAND_SECONDARY_COLOR: "#133629",
@@ -271,13 +268,6 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
271
268
  require: "m",
272
269
  type: "string"
273
270
  },
274
- {
275
- name: "chain",
276
- detail: "Must be 'gnosis'.",
277
- example: `"gnosis"`,
278
- require: "m",
279
- type: "string"
280
- },
281
271
  {
282
272
  name: "address",
283
273
  detail: "Wallet address to query. Required for all types except 'gas'.",
@@ -316,7 +306,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
316
306
  ]
317
307
  },
318
308
  {
319
- API_KEY: SERVICE_API_KEY.Etherscan,
309
+ API_KEY: SERVICES_API_KEY.Etherscan,
320
310
  LOGO: "https://etherscan.io/images/favicon3.ico",
321
311
  BRAND_COLOR: "#F6F7F8",
322
312
  BRAND_SECONDARY_COLOR: "#21325B",
@@ -343,7 +333,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
343
333
  name: "address",
344
334
  detail: "Wallet address / Ens name to query",
345
335
  example: `"vitalik.eth"`,
346
- require: "o",
336
+ require: "m",
347
337
  type: "string"
348
338
  },
349
339
  {
@@ -387,7 +377,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
387
377
  ]
388
378
  },
389
379
  {
390
- API_KEY: SERVICE_API_KEY.Safe,
380
+ API_KEY: SERVICES_API_KEY.Safe,
391
381
  LOGO: "https://safe-transaction-mainnet.safe.global/static/safe/favicon.png",
392
382
  BRAND_COLOR: "#ebf9f3",
393
383
  BRAND_SECONDARY_COLOR: "#00B460",
@@ -516,7 +506,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
516
506
  type: "string"
517
507
  },
518
508
  {
519
- name: "param2",
509
+ name: "param1",
520
510
  detail: "Token Contract Address for market category or Token symbol",
521
511
  example: `"USDT"`,
522
512
  require: "m",
@@ -525,7 +515,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
525
515
  ]
526
516
  },
527
517
  {
528
- API_KEY: SERVICE_API_KEY.Firefly,
518
+ API_KEY: SERVICES_API_KEY.Firefly,
529
519
  LOGO: "https://tse3.mm.bing.net/th?id=OIP.1TANdvYNcEadCk6CO1bCcgAAAA&r=0&w=440&h=440&c=7",
530
520
  SECONDARY_LOGO: "https://firefly.social/android-chrome-192x192.png",
531
521
  BRAND_COLOR: "#f8f5fc",
@@ -566,7 +556,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
566
556
  ]
567
557
  },
568
558
  {
569
- API_KEY: SERVICE_API_KEY.Firefly,
559
+ API_KEY: SERVICES_API_KEY.Firefly,
570
560
  LOGO: "https://farcaster.xyz/favicon.ico",
571
561
  SECONDARY_LOGO: "https://firefly.social/android-chrome-192x192.png",
572
562
  BRAND_COLOR: "#f8f5fc",
@@ -607,7 +597,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
607
597
  ]
608
598
  },
609
599
  {
610
- API_KEY: SERVICE_API_KEY.Firefly,
600
+ API_KEY: SERVICES_API_KEY.Firefly,
611
601
  LOGO: "https://firefly.social/android-chrome-192x192.png",
612
602
  BRAND_COLOR: "#f8f5fc",
613
603
  BRAND_SECONDARY_COLOR: "#855dcd",
@@ -654,7 +644,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
654
644
  ]
655
645
  },
656
646
  {
657
- API_KEY: SERVICE_API_KEY.Neynar,
647
+ API_KEY: SERVICES_API_KEY.Neynar,
658
648
  LOGO: "https://framerusercontent.com/images/OS5YeZ2Y7DmszAxL6Zf06pXtKzc.svg",
659
649
  BRAND_COLOR: "#e8e6ff",
660
650
  BRAND_SECONDARY_COLOR: "#28204A",
@@ -694,7 +684,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
694
684
  // ],
695
685
  // },
696
686
  // {
697
- // API_KEY: SERVICE_API_KEY.Etherscan,
687
+ // API_KEY: SERVICES_API_KEY.Etherscan,
698
688
  // LOGO: "https://www.pendle.finance/uploads/wp-content/uploads/2021/12/cropped-Pendle-Logo-quite-small.png",
699
689
  // BRAND_COLOR: "#eafffb",
700
690
  // BRAND_SECONDARY_COLOR: "#47e2c2",
@@ -741,7 +731,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
741
731
  // ]
742
732
  // },
743
733
  // {
744
- // API_KEY: SERVICE_API_KEY.Etherscan,
734
+ // API_KEY: SERVICES_API_KEY.Etherscan,
745
735
  // LOGO: "https://cdn.prod.website-files.com/6760e87b474d412dfa9a7a68/6760e8ebe8faad5fb985c89a_Frame%201321316795.png",
746
736
  // BRAND_COLOR: "#f6f4ff",
747
737
  // BRAND_SECONDARY_COLOR: "#684ff8",
@@ -788,7 +778,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
788
778
  // ]
789
779
  // },
790
780
  // {
791
- // API_KEY: SERVICE_API_KEY.GnosisPay,
781
+ // API_KEY: SERVICES_API_KEY.GnosisPay,
792
782
  // LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
793
783
  // BRAND_COLOR: "#f6f7f6",
794
784
  // BRAND_SECONDARY_COLOR: "#133629",
@@ -835,7 +825,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
835
825
  // ]
836
826
  // },
837
827
  // {
838
- // API_KEY: SERVICE_API_KEY.Etherscan,
828
+ // API_KEY: SERVICES_API_KEY.Etherscan,
839
829
  // LOGO: "https://www.tally.xyz/favicon.ico",
840
830
  // BRAND_COLOR: "#f9f8ff",
841
831
  // BRAND_SECONDARY_COLOR: "#725bff",
@@ -945,6 +935,6 @@ export {
945
935
  FUNCTION_LOCALE,
946
936
  MAX_PAGE_LIMIT,
947
937
  SAFE_CHAIN_MAP,
948
- SERVICE_API_KEY,
938
+ SERVICES_API_KEY,
949
939
  UTILITY
950
940
  };