@fileverse-dev/formulajs 4.4.41-example → 4.4.41
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 +1 -1
- package/lib/browser/formula.min.js +1 -1
- package/lib/esm/crypto-constants.mjs +10 -232
- package/package.json +1 -1
|
@@ -244,16 +244,7 @@ var EOA_metadata = {
|
|
|
244
244
|
require: "o",
|
|
245
245
|
type: "string"
|
|
246
246
|
}
|
|
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
|
-
}]
|
|
247
|
+
]
|
|
257
248
|
};
|
|
258
249
|
|
|
259
250
|
// src/crypto/uniswap/metadata.js
|
|
@@ -294,18 +285,6 @@ var UNISWAP_metadata = {
|
|
|
294
285
|
require: "o",
|
|
295
286
|
type: "string"
|
|
296
287
|
}
|
|
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
|
-
}
|
|
309
288
|
]
|
|
310
289
|
};
|
|
311
290
|
|
|
@@ -348,18 +327,6 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
348
327
|
require: "o",
|
|
349
328
|
type: "string"
|
|
350
329
|
}
|
|
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
|
-
}
|
|
363
330
|
]
|
|
364
331
|
};
|
|
365
332
|
|
|
@@ -388,16 +355,7 @@ var DEFILLAMA_metadata = {
|
|
|
388
355
|
require: "o",
|
|
389
356
|
type: "string"
|
|
390
357
|
}
|
|
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
|
-
}]
|
|
358
|
+
]
|
|
401
359
|
};
|
|
402
360
|
|
|
403
361
|
// src/crypto/base/metadata.js
|
|
@@ -460,18 +418,6 @@ var BASE_metadata = {
|
|
|
460
418
|
require: "o",
|
|
461
419
|
type: "string"
|
|
462
420
|
}
|
|
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
|
-
}
|
|
475
421
|
]
|
|
476
422
|
};
|
|
477
423
|
|
|
@@ -528,16 +474,7 @@ var GNOSIS_metadata = {
|
|
|
528
474
|
require: "o",
|
|
529
475
|
type: "number"
|
|
530
476
|
}
|
|
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
|
-
}]
|
|
477
|
+
]
|
|
541
478
|
};
|
|
542
479
|
|
|
543
480
|
// src/crypto/etherscan/metadata.js
|
|
@@ -593,18 +530,6 @@ var ETHERSCAN_metadata = {
|
|
|
593
530
|
require: "o",
|
|
594
531
|
type: "string"
|
|
595
532
|
}
|
|
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
|
-
}
|
|
608
533
|
]
|
|
609
534
|
};
|
|
610
535
|
|
|
@@ -631,16 +556,7 @@ var PNL_metadata = {
|
|
|
631
556
|
repeat: "n",
|
|
632
557
|
type: "range"
|
|
633
558
|
}
|
|
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
|
-
}]
|
|
559
|
+
]
|
|
644
560
|
};
|
|
645
561
|
|
|
646
562
|
// src/crypto/safe/metadata.js
|
|
@@ -686,16 +602,7 @@ var SAFE_metadata = {
|
|
|
686
602
|
require: "o",
|
|
687
603
|
repeat: "n"
|
|
688
604
|
}
|
|
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
|
-
}]
|
|
605
|
+
]
|
|
699
606
|
};
|
|
700
607
|
|
|
701
608
|
// src/crypto/blockscout/metadata.js
|
|
@@ -759,16 +666,7 @@ var BLOCKSCOUT_metadata = {
|
|
|
759
666
|
repeat: "n",
|
|
760
667
|
type: "rangenumber"
|
|
761
668
|
}
|
|
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
|
-
}]
|
|
669
|
+
]
|
|
772
670
|
};
|
|
773
671
|
|
|
774
672
|
// src/crypto/aave/metadata.js
|
|
@@ -809,18 +707,6 @@ var AAVE_metadata = {
|
|
|
809
707
|
require: "o",
|
|
810
708
|
type: "string"
|
|
811
709
|
}
|
|
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
|
-
}
|
|
824
710
|
]
|
|
825
711
|
};
|
|
826
712
|
|
|
@@ -864,18 +750,6 @@ var LENS_metadata = {
|
|
|
864
750
|
require: "o",
|
|
865
751
|
type: "number"
|
|
866
752
|
}
|
|
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
|
-
}
|
|
879
753
|
]
|
|
880
754
|
};
|
|
881
755
|
|
|
@@ -919,18 +793,6 @@ var FARCASTER_metadata = {
|
|
|
919
793
|
require: "o",
|
|
920
794
|
type: "number"
|
|
921
795
|
}
|
|
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
|
-
}
|
|
934
796
|
]
|
|
935
797
|
};
|
|
936
798
|
|
|
@@ -980,18 +842,6 @@ var FIREFLY_metadata = {
|
|
|
980
842
|
require: "o",
|
|
981
843
|
type: "number"
|
|
982
844
|
}
|
|
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
|
-
}
|
|
995
845
|
]
|
|
996
846
|
};
|
|
997
847
|
|
|
@@ -1013,16 +863,7 @@ var Neynar_metadata = {
|
|
|
1013
863
|
require: "m",
|
|
1014
864
|
type: "number"
|
|
1015
865
|
}
|
|
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
|
-
}]
|
|
866
|
+
]
|
|
1026
867
|
};
|
|
1027
868
|
|
|
1028
869
|
// src/crypto/smart-contract/metadata.js
|
|
@@ -1080,16 +921,7 @@ var TALLY_metadata = {
|
|
|
1080
921
|
require: "m",
|
|
1081
922
|
type: "string"
|
|
1082
923
|
}
|
|
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
|
-
}]
|
|
924
|
+
]
|
|
1093
925
|
};
|
|
1094
926
|
|
|
1095
927
|
// src/crypto/dune-sim/metadata.js
|
|
@@ -1138,18 +970,6 @@ var DUNESIM_metadata = {
|
|
|
1138
970
|
require: "o",
|
|
1139
971
|
type: "number"
|
|
1140
972
|
}
|
|
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
|
-
}
|
|
1153
973
|
]
|
|
1154
974
|
};
|
|
1155
975
|
|
|
@@ -1181,18 +1001,6 @@ var PRICE_metadata = {
|
|
|
1181
1001
|
require: "o",
|
|
1182
1002
|
type: "string"
|
|
1183
1003
|
}
|
|
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
|
-
}
|
|
1196
1004
|
]
|
|
1197
1005
|
};
|
|
1198
1006
|
|
|
@@ -1231,18 +1039,6 @@ var WALLET_metadata = {
|
|
|
1231
1039
|
require: "o",
|
|
1232
1040
|
type: "string"
|
|
1233
1041
|
}
|
|
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
|
-
}
|
|
1246
1042
|
]
|
|
1247
1043
|
};
|
|
1248
1044
|
|
|
@@ -1260,16 +1056,7 @@ var YIELD_metadata = {
|
|
|
1260
1056
|
require: "m",
|
|
1261
1057
|
type: "string"
|
|
1262
1058
|
}
|
|
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
|
-
}]
|
|
1059
|
+
]
|
|
1273
1060
|
};
|
|
1274
1061
|
|
|
1275
1062
|
// src/crypto/circles/metadata.js
|
|
@@ -1306,16 +1093,7 @@ var CIRCLES_metadata = {
|
|
|
1306
1093
|
require: "o",
|
|
1307
1094
|
type: "string"
|
|
1308
1095
|
}
|
|
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
|
-
}]
|
|
1096
|
+
]
|
|
1319
1097
|
};
|
|
1320
1098
|
|
|
1321
1099
|
// src/crypto/crypto-metadata.js
|