@fileverse-dev/formulajs 4.4.39 → 4.4.41-example

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/cjs/index.cjs CHANGED
@@ -18350,7 +18350,6 @@ const coingeckoParamsSchema = discriminatedUnionType('category', [
18350
18350
  /* global window */
18351
18351
 
18352
18352
 
18353
-
18354
18353
  async function COINGECKO() {
18355
18354
  try {
18356
18355
  const [category, param1, param2, columnName = null] = argsToArray(arguments);
@@ -244,7 +244,16 @@ var EOA_metadata = {
244
244
  require: "o",
245
245
  type: "string"
246
246
  }
247
- ]
247
+ ],
248
+ examples: [{
249
+ title: "EOA",
250
+ argumentString: 'vitalik.eth, txns, ethereum, "01/01/2023", "01/05/2024", 1, 2',
251
+ description: "Fetches transaction history for the address vitalik.eth on the Ethereum blockchain between January 1, 2023 and January 5, 2024, returning page 1 with 2 transactions per page."
252
+ }, {
253
+ title: "EOA",
254
+ argumentString: "vitalik.eth, balance, gnosis",
255
+ description: "Fetches the balance for the address vitalik.eth on the Gnosis blockchain."
256
+ }]
248
257
  };
249
258
 
250
259
  // src/crypto/uniswap/metadata.js
@@ -285,6 +294,18 @@ var UNISWAP_metadata = {
285
294
  require: "o",
286
295
  type: "string"
287
296
  }
297
+ ],
298
+ examples: [
299
+ {
300
+ title: "UNISWAP",
301
+ argumentString: "v3, tokens, eth",
302
+ description: "Fetches data for the ETH token from Uniswap V3."
303
+ },
304
+ {
305
+ title: "UNISWAP",
306
+ argumentString: "v3-raw, markets, 0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8",
307
+ description: "Fetches data for the Uniswap V3 market with the specified contract address."
308
+ }
288
309
  ]
289
310
  };
290
311
 
@@ -327,6 +348,18 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
327
348
  require: "o",
328
349
  type: "string"
329
350
  }
351
+ ],
352
+ examples: [
353
+ {
354
+ title: "COINGECKO",
355
+ argumentString: "stablecoins, yield-bearing-stablecoins, 1h,24h,7d",
356
+ description: "Fetches yield-bearing stablecoins with percentage changes over 1 hour, 24 hours, and 7 days."
357
+ },
358
+ {
359
+ title: "COINGECKO",
360
+ argumentString: "derivatives, binance_futures",
361
+ description: "Fetches derivatives data from the Binance Futures exchange."
362
+ }
330
363
  ]
331
364
  };
332
365
 
@@ -355,7 +388,16 @@ var DEFILLAMA_metadata = {
355
388
  require: "o",
356
389
  type: "string"
357
390
  }
358
- ]
391
+ ],
392
+ examples: [{
393
+ title: "DEFILLAMA",
394
+ argumentString: "protocols",
395
+ description: "Fetches a list of DeFi protocols from Defillama."
396
+ }, {
397
+ title: "DEFILLAMA",
398
+ argumentString: "dex",
399
+ description: "Fetches decentralized exchange (DEX) data from Defillama."
400
+ }]
359
401
  };
360
402
 
361
403
  // src/crypto/base/metadata.js
@@ -418,6 +460,18 @@ var BASE_metadata = {
418
460
  require: "o",
419
461
  type: "string"
420
462
  }
463
+ ],
464
+ examples: [
465
+ {
466
+ title: "BASE",
467
+ argumentString: 'token-txns, 0x7FD624f3f97A7dd36195E8379F28dB6147C270ff, "01/01/2024", "07/07/2024", 1, 2',
468
+ description: "Fetches ERC-20 token transfer history for the specified address on the Base network between January 1, 2024 and July 7, 2024, returning page 1 with 2 results per page."
469
+ },
470
+ {
471
+ title: "BASE",
472
+ argumentString: "gas",
473
+ description: "Fetches gas price metrics for the Base network."
474
+ }
421
475
  ]
422
476
  };
423
477
 
@@ -474,7 +528,16 @@ var GNOSIS_metadata = {
474
528
  require: "o",
475
529
  type: "number"
476
530
  }
477
- ]
531
+ ],
532
+ examples: [{
533
+ title: "GNOSIS",
534
+ argumentString: 'nft-txns, 0x90830Ed558f12D826370DC52E9D87947A7F18De9, "01/01/2024", "14/06/2025", 1, 50',
535
+ description: "Fetches NFT transaction history for the address 0x90830Ed558f12D826370DC52E9D87947A7F18De9 on the Gnosis Chain between January 1, 2024 and June 14, 2025, returning page 1 with 50 transactions per page."
536
+ }, {
537
+ title: "GNOSIS",
538
+ argumentString: "gas",
539
+ description: "Fetches current gas price metrics for the Gnosis Chain."
540
+ }]
478
541
  };
479
542
 
480
543
  // src/crypto/etherscan/metadata.js
@@ -530,6 +593,18 @@ var ETHERSCAN_metadata = {
530
593
  require: "o",
531
594
  type: "string"
532
595
  }
596
+ ],
597
+ examples: [
598
+ {
599
+ title: "ETHERSCAN",
600
+ argumentString: "all-txns, ethereum, vitalik.eth",
601
+ description: "Fetches the complete transaction history for the address vitalik.eth on the Ethereum blockchain."
602
+ },
603
+ {
604
+ title: "ETHERSCAN",
605
+ argumentString: 'token-txns, gnosis, vitalik.eth, "01/01/2024", "01/05/2024"',
606
+ description: "Fetches the token transaction history for the address vitalik.eth on the Gnosis blockchain between January 1, 2024 and January 5, 2024."
607
+ }
533
608
  ]
534
609
  };
535
610
 
@@ -556,7 +631,16 @@ var PNL_metadata = {
556
631
  repeat: "n",
557
632
  type: "range"
558
633
  }
559
- ]
634
+ ],
635
+ examples: [{
636
+ title: "PNL",
637
+ argumentString: "A1:A10, B1:B10",
638
+ description: "Calculates the total profit or loss by subtracting the costs in range A1:A10 from the revenues in range B1:B10."
639
+ }, {
640
+ title: "PNL",
641
+ argumentString: "{100, 200, 150}, {250, 300, 200}",
642
+ description: "Calculates the total profit or loss by subtracting the costs {100, 200, 150} from the revenues {250, 300, 200}."
643
+ }]
560
644
  };
561
645
 
562
646
  // src/crypto/safe/metadata.js
@@ -602,7 +686,16 @@ var SAFE_metadata = {
602
686
  require: "o",
603
687
  repeat: "n"
604
688
  }
605
- ]
689
+ ],
690
+ examples: [{
691
+ title: "SAFE",
692
+ argumentString: "0xe9A6378d8FD4983C2999DB0735f258397E8C2253, txns, gnosis, 10, 0",
693
+ description: "Fetches the last 10 transactions for the specified Safe address on the Gnosis chain."
694
+ }, {
695
+ title: "SAFE",
696
+ argumentString: "0x1234567890abcdef1234567890abcdef12345678, txns, ethereum",
697
+ description: "Fetches the last 100 transactions for the specified Safe address on the Ethereum chain."
698
+ }]
606
699
  };
607
700
 
608
701
  // src/crypto/blockscout/metadata.js
@@ -666,7 +759,16 @@ var BLOCKSCOUT_metadata = {
666
759
  repeat: "n",
667
760
  type: "rangenumber"
668
761
  }
669
- ]
762
+ ],
763
+ examples: [{
764
+ title: "BLOCKSCOUT",
765
+ argumentString: 'vitalik.eth, txns, ethereum, "01/01/2023", "01/05/2024", 1, 2',
766
+ description: "Fetches transaction history for the address vitalik.eth on the Ethereum blockchain between January 1, 2023 and January 5, 2024, returning page 1 with 2 transactions per page."
767
+ }, {
768
+ title: "BLOCKSCOUT",
769
+ argumentString: "vitalik.eth, balance, gnosis",
770
+ description: "Fetches the balance for the address vitalik.eth on the Gnosis blockchain."
771
+ }]
670
772
  };
671
773
 
672
774
  // src/crypto/aave/metadata.js
@@ -707,6 +809,18 @@ var AAVE_metadata = {
707
809
  require: "o",
708
810
  type: "string"
709
811
  }
812
+ ],
813
+ examples: [
814
+ {
815
+ title: "AAVE",
816
+ argumentString: "v2, tokens, USDT",
817
+ description: "Fetches data for the USDT token from Aave V2."
818
+ },
819
+ {
820
+ title: "AAVE",
821
+ argumentString: "v2-raw, markets, AAVE",
822
+ description: "Fetches data for the AAVE token from Aave V2."
823
+ }
710
824
  ]
711
825
  };
712
826
 
@@ -750,6 +864,18 @@ var LENS_metadata = {
750
864
  require: "o",
751
865
  type: "number"
752
866
  }
867
+ ],
868
+ examples: [
869
+ {
870
+ title: "LENS",
871
+ argumentString: "posts, toka,miroyato",
872
+ description: "Fetches posts made by the users with the usernames toka and miroyato on Lens."
873
+ },
874
+ {
875
+ title: "LENS",
876
+ argumentString: "replies, 0x123abc456def789ghi012jkl345mno678pqr901stu234vwx567yz890abc123d",
877
+ description: "Fetches replies to the post with the specified hash on Lens."
878
+ }
753
879
  ]
754
880
  };
755
881
 
@@ -793,6 +919,18 @@ var FARCASTER_metadata = {
793
919
  require: "o",
794
920
  type: "number"
795
921
  }
922
+ ],
923
+ examples: [
924
+ {
925
+ title: "FARCASTER",
926
+ argumentString: "posts, miroyato",
927
+ description: "Fetches posts made by the user with the username miroyato."
928
+ },
929
+ {
930
+ title: "FARCASTER",
931
+ argumentString: "replies, 0x123abc456def789ghi012jkl345mno678pqr901stu234vwx567yz890abc123d",
932
+ description: "Fetches replies to the post with the specified hash."
933
+ }
796
934
  ]
797
935
  };
798
936
 
@@ -842,6 +980,18 @@ var FIREFLY_metadata = {
842
980
  require: "o",
843
981
  type: "number"
844
982
  }
983
+ ],
984
+ examples: [
985
+ {
986
+ title: "FIREFLY",
987
+ argumentString: "farcaster, posts, miroyato",
988
+ description: "Fetches posts made by the user with the username miroyato on Farcaster."
989
+ },
990
+ {
991
+ title: "FIREFLY",
992
+ argumentString: "lens, posts, toka",
993
+ description: "Fetches posts made by the user with the username toka on Lens."
994
+ }
845
995
  ]
846
996
  };
847
997
 
@@ -863,7 +1013,16 @@ var Neynar_metadata = {
863
1013
  require: "m",
864
1014
  type: "number"
865
1015
  }
866
- ]
1016
+ ],
1017
+ examples: [{
1018
+ title: "NEYNAR",
1019
+ argumentString: "miroyato",
1020
+ description: "Fetches followers for the Farcaster user with the username miroyato."
1021
+ }, {
1022
+ title: "NEYNAR",
1023
+ argumentString: "alice",
1024
+ description: "Fetches followers for the Farcaster user with the username alice."
1025
+ }]
867
1026
  };
868
1027
 
869
1028
  // src/crypto/smart-contract/metadata.js
@@ -921,7 +1080,16 @@ var TALLY_metadata = {
921
1080
  require: "m",
922
1081
  type: "string"
923
1082
  }
924
- ]
1083
+ ],
1084
+ examples: [{
1085
+ title: "TALLY",
1086
+ argumentString: "organization, arbitrum",
1087
+ description: "Fetches details about the Arbitrum organization from Tally."
1088
+ }, {
1089
+ title: "TALLY",
1090
+ argumentString: "proposals, aave",
1091
+ description: "Fetches proposals for the Aave organization from Tally."
1092
+ }]
925
1093
  };
926
1094
 
927
1095
  // src/crypto/dune-sim/metadata.js
@@ -970,6 +1138,18 @@ var DUNESIM_metadata = {
970
1138
  require: "o",
971
1139
  type: "number"
972
1140
  }
1141
+ ],
1142
+ examples: [
1143
+ {
1144
+ title: "DUNE",
1145
+ argumentString: "price, base, 1, 0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca, 5",
1146
+ description: "Fetches the price of the specified token on the Base chain with a 1-hour historical offset, limiting results to 5 entries."
1147
+ },
1148
+ {
1149
+ title: "DUNE",
1150
+ argumentString: "activity, vitalik.eth, eth, 10",
1151
+ description: "Fetches the latest 10 wallet activities for the address vitalik.eth on the Ethereum chain."
1152
+ }
973
1153
  ]
974
1154
  };
975
1155
 
@@ -1001,6 +1181,18 @@ var PRICE_metadata = {
1001
1181
  require: "o",
1002
1182
  type: "string"
1003
1183
  }
1184
+ ],
1185
+ examples: [
1186
+ {
1187
+ title: "PRICE",
1188
+ argumentString: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca, base, 1,24",
1189
+ description: "Fetches the price of the specified token on the Base chain with 1-hour and 24-hour historical offsets."
1190
+ },
1191
+ {
1192
+ title: "PRICE",
1193
+ argumentString: "ETH,BTC, 1,24,168",
1194
+ description: "Fetches the prices of ETH and BTC with 1-hour, 24-hour, and 168-hour (7-day) historical offsets."
1195
+ }
1004
1196
  ]
1005
1197
  };
1006
1198
 
@@ -1039,6 +1231,18 @@ var WALLET_metadata = {
1039
1231
  require: "o",
1040
1232
  type: "string"
1041
1233
  }
1234
+ ],
1235
+ examples: [
1236
+ {
1237
+ title: "WALLET",
1238
+ argumentString: "0x7FD624f3f97A7dd36195E8379F28dB6147C270ff, ethereum, txns, 17520",
1239
+ description: "Fetches transactions for the specified wallet address on the Ethereum chain within the last 17520 hours (approximately 2 years)."
1240
+ },
1241
+ {
1242
+ title: "WALLET",
1243
+ argumentString: "vitalik.eth, base, balance",
1244
+ description: "Fetches the latest balance for the address vitalik.eth on the Base chain."
1245
+ }
1042
1246
  ]
1043
1247
  };
1044
1248
 
@@ -1056,7 +1260,16 @@ var YIELD_metadata = {
1056
1260
  require: "m",
1057
1261
  type: "string"
1058
1262
  }
1059
- ]
1263
+ ],
1264
+ examples: [{
1265
+ title: "YIELD",
1266
+ argumentString: "stablecoins",
1267
+ description: "Fetches yield data for stablecoins."
1268
+ }, {
1269
+ title: "YIELD",
1270
+ argumentString: "all",
1271
+ description: "Fetches yield data for all categories."
1272
+ }]
1060
1273
  };
1061
1274
 
1062
1275
  // src/crypto/circles/metadata.js
@@ -1093,7 +1306,16 @@ var CIRCLES_metadata = {
1093
1306
  require: "o",
1094
1307
  type: "string"
1095
1308
  }
1096
- ]
1309
+ ],
1310
+ examples: [{
1311
+ title: "CIRCLES",
1312
+ argumentString: "trust, 0xe9A6378d8FD4983C2999DB0735f258397E8C2253",
1313
+ description: "Fetches the trust relationships for the specified Circles address."
1314
+ }, {
1315
+ title: "CIRCLES",
1316
+ argumentString: "transactions, 0xe9A6378d8FD4983C2999DB0735f258397E8C2253, 5",
1317
+ description: "Fetches the last 5 transactions for the specified Circles address."
1318
+ }]
1097
1319
  };
1098
1320
 
1099
1321
  // src/crypto/crypto-metadata.js
package/lib/esm/index.mjs CHANGED
@@ -18348,7 +18348,6 @@ const coingeckoParamsSchema = discriminatedUnionType('category', [
18348
18348
  /* global window */
18349
18349
 
18350
18350
 
18351
-
18352
18351
  async function COINGECKO() {
18353
18352
  try {
18354
18353
  const [category, param1, param2, columnName = null] = argsToArray(arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.39",
3
+ "version": "4.4.41-example",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {