@fileverse-dev/formulajs 4.4.11-mod-27 → 4.4.11-mod-30
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 +314 -1005
- package/lib/browser/formula.min.js +2 -10
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +130 -840
- package/lib/esm/crypto-constants.mjs +94 -76
- package/lib/esm/index.mjs +130 -840
- package/package.json +1 -1
- package/types/cjs/index.d.cts +2 -2
- package/types/esm/index.d.mts +2 -2
|
@@ -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 = {
|
|
@@ -45,8 +48,8 @@ var FUNCTION_LOCALE = [
|
|
|
45
48
|
BRAND_SECONDARY_COLOR: "#855dcd",
|
|
46
49
|
n: "FIREFLY",
|
|
47
50
|
t: 20,
|
|
48
|
-
d: "Fetches
|
|
49
|
-
a: "Retrieves posts or
|
|
51
|
+
d: "Fetches content from Farcaster or Lens using Firefly's OpenAPI with pagination and cleaned output.",
|
|
52
|
+
a: "Retrieves posts, replies, or channels from Farcaster and Lens using Firefly's OpenAPI by usernames, IDs, or hashes. Removes nested values and returns flat spreadsheet-friendly data. Supports pagination.",
|
|
50
53
|
p: [
|
|
51
54
|
{
|
|
52
55
|
name: "platform",
|
|
@@ -57,17 +60,31 @@ var FUNCTION_LOCALE = [
|
|
|
57
60
|
},
|
|
58
61
|
{
|
|
59
62
|
name: "contentType",
|
|
60
|
-
detail: "
|
|
63
|
+
detail: "Type of content to fetch. Supports 'posts', 'replies', and 'channels' (channels only for 'farcaster').",
|
|
61
64
|
example: `"posts"`,
|
|
62
65
|
require: "m",
|
|
63
66
|
type: "string"
|
|
64
67
|
},
|
|
65
68
|
{
|
|
66
69
|
name: "identifier",
|
|
67
|
-
detail: "
|
|
68
|
-
example: `"toka"
|
|
70
|
+
detail: "Comma-separated usernames, IDs, or post hashes depending on platform and contentType.",
|
|
71
|
+
example: `"toka,miroyato"`,
|
|
69
72
|
require: "m",
|
|
70
73
|
type: "string"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "start",
|
|
77
|
+
detail: "Pagination start index (default is 0).",
|
|
78
|
+
example: `0`,
|
|
79
|
+
require: "o",
|
|
80
|
+
type: "number"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "end",
|
|
84
|
+
detail: "Pagination end index (default is 10).",
|
|
85
|
+
example: `10`,
|
|
86
|
+
require: "o",
|
|
87
|
+
type: "number"
|
|
71
88
|
}
|
|
72
89
|
]
|
|
73
90
|
},
|
|
@@ -151,29 +168,29 @@ var FUNCTION_LOCALE = [
|
|
|
151
168
|
},
|
|
152
169
|
{
|
|
153
170
|
name: "startDate",
|
|
154
|
-
detail: "Start
|
|
155
|
-
example: `"
|
|
171
|
+
detail: "Start date (used to resolve block range). Optional, only applies to txns.",
|
|
172
|
+
example: `"01/01/2024"`,
|
|
156
173
|
require: "o",
|
|
157
174
|
type: "rangenumber"
|
|
158
175
|
},
|
|
159
176
|
{
|
|
160
177
|
name: "endDate",
|
|
161
|
-
detail: "End
|
|
162
|
-
example: `"
|
|
178
|
+
detail: "End date (used to resolve block range). Optional, only applies to txns.",
|
|
179
|
+
example: `"07/07/2024"`,
|
|
163
180
|
require: "o",
|
|
164
181
|
type: "rangenumber"
|
|
165
182
|
},
|
|
166
183
|
{
|
|
167
184
|
name: "page",
|
|
168
185
|
detail: "Page number for paginated results. Only applies to txns/token/nft queries.",
|
|
169
|
-
example: `
|
|
186
|
+
example: `1`,
|
|
170
187
|
require: "o",
|
|
171
188
|
type: "number"
|
|
172
189
|
},
|
|
173
190
|
{
|
|
174
191
|
name: "offset",
|
|
175
192
|
detail: "Number of items per page (limit). Only applies to txns/token/nft queries.",
|
|
176
|
-
example: `
|
|
193
|
+
example: `2`,
|
|
177
194
|
require: "o",
|
|
178
195
|
type: "number"
|
|
179
196
|
}
|
|
@@ -212,15 +229,15 @@ var FUNCTION_LOCALE = [
|
|
|
212
229
|
},
|
|
213
230
|
{
|
|
214
231
|
name: "startDate",
|
|
215
|
-
detail: "
|
|
216
|
-
example: `"
|
|
232
|
+
detail: "Used to resolve starting block for txns.",
|
|
233
|
+
example: `"01/01/2024"`,
|
|
217
234
|
require: "o",
|
|
218
235
|
type: "rangenumber"
|
|
219
236
|
},
|
|
220
237
|
{
|
|
221
238
|
name: "endDate",
|
|
222
|
-
detail: "
|
|
223
|
-
example: `"
|
|
239
|
+
detail: "Used to resolve ending block for txns.",
|
|
240
|
+
example: `"14/06/2025"`,
|
|
224
241
|
require: "o",
|
|
225
242
|
type: "rangenumber"
|
|
226
243
|
},
|
|
@@ -252,7 +269,7 @@ var FUNCTION_LOCALE = [
|
|
|
252
269
|
{
|
|
253
270
|
name: "address",
|
|
254
271
|
detail: "The address string representing the addresses to check for balance",
|
|
255
|
-
example: `"
|
|
272
|
+
example: `"vitalik.eth"`,
|
|
256
273
|
require: "m",
|
|
257
274
|
type: "string"
|
|
258
275
|
},
|
|
@@ -272,17 +289,17 @@ var FUNCTION_LOCALE = [
|
|
|
272
289
|
},
|
|
273
290
|
{
|
|
274
291
|
name: "startTimestamp",
|
|
275
|
-
detail: '
|
|
276
|
-
example: "
|
|
292
|
+
detail: 'Start date marking the start of the transaction search range. Work with type === "txns"',
|
|
293
|
+
example: `"01/01/2023"`,
|
|
277
294
|
require: "o",
|
|
278
|
-
type: "
|
|
295
|
+
type: "string"
|
|
279
296
|
},
|
|
280
297
|
{
|
|
281
298
|
name: "endTimestamp",
|
|
282
|
-
detail: '
|
|
283
|
-
example: "
|
|
299
|
+
detail: 'End date marking the end of the transaction search range. Work with type === "txns"',
|
|
300
|
+
example: `"01/05/2024"`,
|
|
284
301
|
require: "o",
|
|
285
|
-
type: "
|
|
302
|
+
type: "string"
|
|
286
303
|
},
|
|
287
304
|
{
|
|
288
305
|
name: "page",
|
|
@@ -335,15 +352,15 @@ var FUNCTION_LOCALE = [
|
|
|
335
352
|
},
|
|
336
353
|
{
|
|
337
354
|
name: "startDate",
|
|
338
|
-
detail: "
|
|
339
|
-
example: `"
|
|
355
|
+
detail: "Used to filter block range.",
|
|
356
|
+
example: `"01/01/2024"`,
|
|
340
357
|
require: "o",
|
|
341
358
|
type: "rangenumber"
|
|
342
359
|
},
|
|
343
360
|
{
|
|
344
361
|
name: "endDate",
|
|
345
|
-
detail: "
|
|
346
|
-
example: `"
|
|
362
|
+
detail: "Used to filter block range.",
|
|
363
|
+
example: `"01/07/2025"`,
|
|
347
364
|
require: "o",
|
|
348
365
|
type: "rangenumber"
|
|
349
366
|
}
|
|
@@ -362,7 +379,7 @@ var FUNCTION_LOCALE = [
|
|
|
362
379
|
{
|
|
363
380
|
name: "addresses",
|
|
364
381
|
detail: "One or more addresses (comma-separated) to query.",
|
|
365
|
-
example: `"
|
|
382
|
+
example: `"vitalik.eth"`,
|
|
366
383
|
require: "m",
|
|
367
384
|
type: "string"
|
|
368
385
|
},
|
|
@@ -376,35 +393,35 @@ var FUNCTION_LOCALE = [
|
|
|
376
393
|
{
|
|
377
394
|
name: "chain",
|
|
378
395
|
detail: `Blockchain network(s) to query. Supported values: "ethereum", "gnosis", "base". Accepts comma-separated values.`,
|
|
379
|
-
example: `"ethereum
|
|
396
|
+
example: `"ethereum"`,
|
|
380
397
|
require: "m",
|
|
381
398
|
type: "string"
|
|
382
399
|
},
|
|
383
400
|
{
|
|
384
401
|
name: "startTime",
|
|
385
|
-
detail: "
|
|
402
|
+
detail: "Used to calculate starting block for transaction queries.",
|
|
386
403
|
example: "01/01/2024",
|
|
387
404
|
require: "m",
|
|
388
405
|
type: "rangenumber"
|
|
389
406
|
},
|
|
390
407
|
{
|
|
391
408
|
name: "endTime",
|
|
392
|
-
detail: "
|
|
393
|
-
example: "01/
|
|
409
|
+
detail: "Used to calculate ending block for transaction queries.",
|
|
410
|
+
example: "01/06/2024",
|
|
394
411
|
require: "m",
|
|
395
412
|
type: "rangenumber"
|
|
396
413
|
},
|
|
397
414
|
{
|
|
398
415
|
name: "page",
|
|
399
|
-
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",
|
|
400
417
|
example: "1",
|
|
401
418
|
require: "o",
|
|
402
419
|
type: "number"
|
|
403
420
|
},
|
|
404
421
|
{
|
|
405
422
|
name: "offset",
|
|
406
|
-
detail: "The number of results to return per page (limit). Only used when category is 'txns'.",
|
|
407
|
-
example: "
|
|
423
|
+
detail: "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
|
|
424
|
+
example: "10",
|
|
408
425
|
require: "o",
|
|
409
426
|
type: "number"
|
|
410
427
|
}
|
|
@@ -423,23 +440,23 @@ var FUNCTION_LOCALE = [
|
|
|
423
440
|
{
|
|
424
441
|
name: "category",
|
|
425
442
|
detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
|
|
426
|
-
example: `"
|
|
443
|
+
example: `"stablecoins"`,
|
|
427
444
|
require: "m"
|
|
428
445
|
},
|
|
429
446
|
{
|
|
430
447
|
name: "param1",
|
|
431
448
|
detail: `For "price": coin ID(s).
|
|
432
|
-
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"].
|
|
433
450
|
For "stablecoins": one of ["all", "crypto-backed-stablecoin", "yield-bearing-stablecoins", etc.].
|
|
434
451
|
For "derivatives": exchange name (e.g., "binance_futures").`,
|
|
435
|
-
example: `"
|
|
452
|
+
example: `"yield-bearing-stablecoins"`,
|
|
436
453
|
require: "o"
|
|
437
454
|
},
|
|
438
455
|
{
|
|
439
456
|
name: "param2",
|
|
440
457
|
detail: `For "price": target currency(ies) (e.g. "usd").
|
|
441
458
|
For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d).`,
|
|
442
|
-
example: `"
|
|
459
|
+
example: `"1h,24h,7d"`,
|
|
443
460
|
require: "o"
|
|
444
461
|
},
|
|
445
462
|
{
|
|
@@ -578,15 +595,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
578
595
|
},
|
|
579
596
|
{
|
|
580
597
|
name: "startDate",
|
|
581
|
-
detail: "
|
|
582
|
-
example: `"
|
|
598
|
+
detail: "Used to filter block range.",
|
|
599
|
+
example: `"01/01/2024"`,
|
|
583
600
|
require: "o",
|
|
584
601
|
type: "rangenumber"
|
|
585
602
|
},
|
|
586
603
|
{
|
|
587
604
|
name: "endDate",
|
|
588
|
-
detail: "
|
|
589
|
-
example: `"
|
|
605
|
+
detail: "Used to filter block range.",
|
|
606
|
+
example: `"01/01/2025"`,
|
|
590
607
|
require: "o",
|
|
591
608
|
type: "rangenumber"
|
|
592
609
|
}
|
|
@@ -625,15 +642,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
625
642
|
},
|
|
626
643
|
{
|
|
627
644
|
name: "startDate",
|
|
628
|
-
detail: "
|
|
629
|
-
example: `"
|
|
645
|
+
detail: "Used to filter block range.",
|
|
646
|
+
example: `"01/01/2024"`,
|
|
630
647
|
require: "o",
|
|
631
648
|
type: "rangenumber"
|
|
632
649
|
},
|
|
633
650
|
{
|
|
634
651
|
name: "endDate",
|
|
635
|
-
detail: "
|
|
636
|
-
example: `"
|
|
652
|
+
detail: "Used to filter block range.",
|
|
653
|
+
example: `"01/07/2025"`,
|
|
637
654
|
require: "o",
|
|
638
655
|
type: "rangenumber"
|
|
639
656
|
}
|
|
@@ -672,15 +689,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
672
689
|
},
|
|
673
690
|
{
|
|
674
691
|
name: "startDate",
|
|
675
|
-
detail: "
|
|
676
|
-
example: `"
|
|
692
|
+
detail: "Used to filter block range.",
|
|
693
|
+
example: `"01/01/2024"`,
|
|
677
694
|
require: "o",
|
|
678
695
|
type: "rangenumber"
|
|
679
696
|
},
|
|
680
697
|
{
|
|
681
698
|
name: "endDate",
|
|
682
|
-
detail: "
|
|
683
|
-
example: `"
|
|
699
|
+
detail: "Used to filter block range.",
|
|
700
|
+
example: `"01/07/2025"`,
|
|
684
701
|
require: "o",
|
|
685
702
|
type: "rangenumber"
|
|
686
703
|
}
|
|
@@ -719,15 +736,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
719
736
|
},
|
|
720
737
|
{
|
|
721
738
|
name: "startDate",
|
|
722
|
-
detail: "
|
|
723
|
-
example: `"
|
|
739
|
+
detail: "Used to filter block range.",
|
|
740
|
+
example: `"01/01/2024"`,
|
|
724
741
|
require: "o",
|
|
725
742
|
type: "rangenumber"
|
|
726
743
|
},
|
|
727
744
|
{
|
|
728
745
|
name: "endDate",
|
|
729
|
-
detail: "
|
|
730
|
-
example: `"
|
|
746
|
+
detail: "Used to filter block range.",
|
|
747
|
+
example: `"01/07/2025"`,
|
|
731
748
|
require: "o",
|
|
732
749
|
type: "rangenumber"
|
|
733
750
|
}
|
|
@@ -766,15 +783,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
766
783
|
},
|
|
767
784
|
{
|
|
768
785
|
name: "startDate",
|
|
769
|
-
detail: "
|
|
770
|
-
example: `"
|
|
786
|
+
detail: "Used to filter block range.",
|
|
787
|
+
example: `"01/01/2024"`,
|
|
771
788
|
require: "o",
|
|
772
789
|
type: "rangenumber"
|
|
773
790
|
},
|
|
774
791
|
{
|
|
775
792
|
name: "endDate",
|
|
776
|
-
detail: "
|
|
777
|
-
example: `"
|
|
793
|
+
detail: "Used to filter block range.",
|
|
794
|
+
example: `"01/07/2025"`,
|
|
778
795
|
require: "o",
|
|
779
796
|
type: "rangenumber"
|
|
780
797
|
}
|
|
@@ -813,15 +830,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
813
830
|
},
|
|
814
831
|
{
|
|
815
832
|
name: "startDate",
|
|
816
|
-
detail: "
|
|
817
|
-
example: `"
|
|
833
|
+
detail: "Used to filter block range.",
|
|
834
|
+
example: `"01/01/2024"`,
|
|
818
835
|
require: "o",
|
|
819
836
|
type: "rangenumber"
|
|
820
837
|
},
|
|
821
838
|
{
|
|
822
839
|
name: "endDate",
|
|
823
|
-
detail: "
|
|
824
|
-
example: `"
|
|
840
|
+
detail: "Used to filter block range.",
|
|
841
|
+
example: `"01/07/2025"`,
|
|
825
842
|
require: "o",
|
|
826
843
|
type: "rangenumber"
|
|
827
844
|
}
|
|
@@ -832,7 +849,7 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
832
849
|
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
833
850
|
BRAND_COLOR: "#f6f7f6",
|
|
834
851
|
BRAND_SECONDARY_COLOR: "#133629",
|
|
835
|
-
n: "
|
|
852
|
+
n: "GNOSISPAY",
|
|
836
853
|
t: 20,
|
|
837
854
|
d: "Fetches Gnosis Pay card transaction history, including merchant, amount, and currency info.",
|
|
838
855
|
a: "Retrieves card transactions from Gnosis Pay\u2019s API for a specific card ID, filtered by date range and paginated via limit/offset.",
|
|
@@ -846,15 +863,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
846
863
|
},
|
|
847
864
|
{
|
|
848
865
|
name: "startDate",
|
|
849
|
-
detail: "
|
|
850
|
-
example: `"
|
|
866
|
+
detail: "Filters transactions created after this date.",
|
|
867
|
+
example: `"01/01/2024"`,
|
|
851
868
|
require: "o",
|
|
852
869
|
type: "rangenumber"
|
|
853
870
|
},
|
|
854
871
|
{
|
|
855
872
|
name: "endDate",
|
|
856
|
-
detail: "
|
|
857
|
-
example: `"
|
|
873
|
+
detail: "Filters transactions created before this date.",
|
|
874
|
+
example: `"01/07/2025"`,
|
|
858
875
|
require: "o",
|
|
859
876
|
type: "rangenumber"
|
|
860
877
|
},
|
|
@@ -907,15 +924,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
907
924
|
},
|
|
908
925
|
{
|
|
909
926
|
name: "startDate",
|
|
910
|
-
detail: "
|
|
911
|
-
example: `"
|
|
927
|
+
detail: "Used to filter block range.",
|
|
928
|
+
example: `"01/01/2024"`,
|
|
912
929
|
require: "o",
|
|
913
930
|
type: "rangenumber"
|
|
914
931
|
},
|
|
915
932
|
{
|
|
916
933
|
name: "endDate",
|
|
917
|
-
detail: "
|
|
918
|
-
example: `"
|
|
934
|
+
detail: "Used to filter block range.",
|
|
935
|
+
example: `"01/07/2025"`,
|
|
919
936
|
require: "o",
|
|
920
937
|
type: "rangenumber"
|
|
921
938
|
}
|
|
@@ -954,15 +971,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
954
971
|
},
|
|
955
972
|
{
|
|
956
973
|
name: "startDate",
|
|
957
|
-
detail: "
|
|
958
|
-
example: `"
|
|
974
|
+
detail: "Used to filter block range.",
|
|
975
|
+
example: `"01/01/2024"`,
|
|
959
976
|
require: "o",
|
|
960
977
|
type: "rangenumber"
|
|
961
978
|
},
|
|
962
979
|
{
|
|
963
980
|
name: "endDate",
|
|
964
|
-
detail: "
|
|
965
|
-
example: `"
|
|
981
|
+
detail: "Used to filter block range.",
|
|
982
|
+
example: `"01/07/2025"`,
|
|
966
983
|
require: "o",
|
|
967
984
|
type: "rangenumber"
|
|
968
985
|
}
|
|
@@ -975,5 +992,6 @@ export {
|
|
|
975
992
|
ERROR_MESSAGES_FLAG,
|
|
976
993
|
FUNCTION_LOCALE,
|
|
977
994
|
SAFE_CHAIN_MAP,
|
|
978
|
-
SERVICE_API_KEY
|
|
995
|
+
SERVICE_API_KEY,
|
|
996
|
+
UTILITY
|
|
979
997
|
};
|