@fileverse-dev/formulajs 4.4.11-mod-38-patch-004 → 4.4.11-mod-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 +380 -448
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +48 -138
- package/lib/esm/crypto-constants.mjs +109 -199
- package/lib/esm/index.mjs +48 -135
- package/package.json +1 -2
- package/types/cjs/index.d.cts +14 -21
- package/types/esm/index.d.mts +14 -21
|
@@ -38,7 +38,8 @@ var SERVICE_API_KEY = {
|
|
|
38
38
|
Basescan: "BASESCAN_API_KEY",
|
|
39
39
|
Gnosisscan: "GNOSIS_API_KEY",
|
|
40
40
|
Firefly: "FIRE_FLY_API_KEY",
|
|
41
|
-
GnosisPay: "GNOSIS_API_KEY"
|
|
41
|
+
GnosisPay: "GNOSIS_API_KEY",
|
|
42
|
+
Neynar: "NEYNAR_API_KEY"
|
|
42
43
|
};
|
|
43
44
|
var FUNCTION_LOCALE = [
|
|
44
45
|
{
|
|
@@ -91,7 +92,7 @@ var FUNCTION_LOCALE = [
|
|
|
91
92
|
{
|
|
92
93
|
API_KEY: SERVICE_API_KEY.Neynar,
|
|
93
94
|
LOGO: "https://framerusercontent.com/images/OS5YeZ2Y7DmszAxL6Zf06pXtKzc.svg",
|
|
94
|
-
BRAND_COLOR: "
|
|
95
|
+
BRAND_COLOR: "#e8e6ff",
|
|
95
96
|
BRAND_SECONDARY_COLOR: "#28204A",
|
|
96
97
|
n: "NEYNAR",
|
|
97
98
|
t: 20,
|
|
@@ -140,7 +141,7 @@ var FUNCTION_LOCALE = [
|
|
|
140
141
|
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",
|
|
141
142
|
BRAND_COLOR: "#f1f5ff",
|
|
142
143
|
BRAND_SECONDARY_COLOR: "#2752ff",
|
|
143
|
-
n: "
|
|
144
|
+
n: "BASE",
|
|
144
145
|
t: 20,
|
|
145
146
|
d: "Fetches Base network data via Basescan: native txns, ERC-20 transfers, ERC-721 transfers, and gas metrics.",
|
|
146
147
|
a: "Pulls on-chain activity for Base (chainid 8453) using Basescan\u2019s API \u2014 supports full tx history, token/NFT transfers, gas prices, and pagination.",
|
|
@@ -201,7 +202,7 @@ var FUNCTION_LOCALE = [
|
|
|
201
202
|
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
202
203
|
BRAND_COLOR: "#f6f7f6",
|
|
203
204
|
BRAND_SECONDARY_COLOR: "#133629",
|
|
204
|
-
n: "
|
|
205
|
+
n: "GNOSIS",
|
|
205
206
|
t: 20,
|
|
206
207
|
d: "Fetches Gnosis Chain data via Gnosisscan: native transactions, ERC-20 token transfers, ERC-721 NFT transfers, and gas metrics.",
|
|
207
208
|
a: "Queries Gnosis Chain (chainid 100) through Gnosisscan\u2019s API to return transaction history, token/NFT transfers, or gas price information. Supports pagination and time-based filtering for transaction types.",
|
|
@@ -345,8 +346,8 @@ var FUNCTION_LOCALE = [
|
|
|
345
346
|
},
|
|
346
347
|
{
|
|
347
348
|
name: "address",
|
|
348
|
-
detail: "Wallet address to query",
|
|
349
|
-
example: `"
|
|
349
|
+
detail: "Wallet address / Ens name to query",
|
|
350
|
+
example: `"vitalik.eth"`,
|
|
350
351
|
require: "o",
|
|
351
352
|
type: "string"
|
|
352
353
|
},
|
|
@@ -445,16 +446,19 @@ var FUNCTION_LOCALE = [
|
|
|
445
446
|
},
|
|
446
447
|
{
|
|
447
448
|
name: "param1",
|
|
448
|
-
detail: `
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
449
|
+
detail: `If "price" then - eg. "BTC", "ETH", OR any token on coingecko
|
|
450
|
+
|
|
451
|
+
If "market": one of ["all", "base", "meme", "aiagents", "bitcoin", "ethereum", "hyperliquid", "pump", "solana"].
|
|
452
|
+
|
|
453
|
+
If "stablecoins": one of ["all", "yield-bearing-stablecoins", "crypto-backed-stablecoin"].
|
|
454
|
+
|
|
455
|
+
If "derivatives": exchange name (e.g., "binance_futures").`,
|
|
452
456
|
example: `"yield-bearing-stablecoins"`,
|
|
453
457
|
require: "o"
|
|
454
458
|
},
|
|
455
459
|
{
|
|
456
460
|
name: "param2",
|
|
457
|
-
detail: `For "price": target currency(ies) (e.g. "usd").
|
|
461
|
+
detail: `For "price": target currency(ies) (e.g. "usd").
|
|
458
462
|
For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d).`,
|
|
459
463
|
example: `"1h,24h,7d"`,
|
|
460
464
|
require: "o"
|
|
@@ -656,53 +660,53 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
656
660
|
}
|
|
657
661
|
]
|
|
658
662
|
},
|
|
659
|
-
{
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
},
|
|
663
|
+
// {
|
|
664
|
+
// API_KEY: SERVICE_API_KEY.Etherscan,
|
|
665
|
+
// LOGO: "https://www.pendle.finance/uploads/wp-content/uploads/2021/12/cropped-Pendle-Logo-quite-small.png",
|
|
666
|
+
// BRAND_COLOR: "#eafffb",
|
|
667
|
+
// BRAND_SECONDARY_COLOR: "#47e2c2",
|
|
668
|
+
// n: "PENDLE",
|
|
669
|
+
// t: 20,
|
|
670
|
+
// d: "Returns blockchain transaction history for the given address",
|
|
671
|
+
// a: "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
|
|
672
|
+
// p: [
|
|
673
|
+
// {
|
|
674
|
+
// name: "type",
|
|
675
|
+
// detail: "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
676
|
+
// example: `"all-txns"`,
|
|
677
|
+
// require: "m",
|
|
678
|
+
// type: "string"
|
|
679
|
+
// },
|
|
680
|
+
// {
|
|
681
|
+
// name: "chain",
|
|
682
|
+
// detail: "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
|
|
683
|
+
// example: `"ethereum"`,
|
|
684
|
+
// require: "m",
|
|
685
|
+
// type: "string"
|
|
686
|
+
// },
|
|
687
|
+
// {
|
|
688
|
+
// name: "address",
|
|
689
|
+
// detail: "Wallet address to query",
|
|
690
|
+
// example: `"0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC"`,
|
|
691
|
+
// require: "o",
|
|
692
|
+
// type: "string"
|
|
693
|
+
// },
|
|
694
|
+
// {
|
|
695
|
+
// name: "startDate",
|
|
696
|
+
// detail: "Used to filter block range.",
|
|
697
|
+
// example: `"01/01/2024"`,
|
|
698
|
+
// require: "o",
|
|
699
|
+
// type: "string"
|
|
700
|
+
// },
|
|
701
|
+
// {
|
|
702
|
+
// name: "endDate",
|
|
703
|
+
// detail: "Used to filter block range.",
|
|
704
|
+
// example: `"01/07/2025"`,
|
|
705
|
+
// require: "o",
|
|
706
|
+
// type: "string"
|
|
707
|
+
// }
|
|
708
|
+
// ]
|
|
709
|
+
// },
|
|
706
710
|
{
|
|
707
711
|
API_KEY: SERVICE_API_KEY.Etherscan,
|
|
708
712
|
LOGO: "https://aerodrome.finance/images/AERO/favicon.ico",
|
|
@@ -797,147 +801,53 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
797
801
|
}
|
|
798
802
|
]
|
|
799
803
|
},
|
|
800
|
-
{
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
API_KEY: SERVICE_API_KEY.GnosisPay,
|
|
849
|
-
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
850
|
-
BRAND_COLOR: "#f6f7f6",
|
|
851
|
-
BRAND_SECONDARY_COLOR: "#133629",
|
|
852
|
-
n: "GNOSISPAY",
|
|
853
|
-
t: 20,
|
|
854
|
-
d: "Fetches Gnosis Pay card transaction history, including merchant, amount, and currency info.",
|
|
855
|
-
a: "Retrieves card transactions from Gnosis Pay\u2019s API for a specific card ID, filtered by date range and paginated via limit/offset.",
|
|
856
|
-
p: [
|
|
857
|
-
{
|
|
858
|
-
name: "cardId",
|
|
859
|
-
detail: "The Gnosis Pay card ID to fetch transactions for.",
|
|
860
|
-
example: `"card_9f8f8b3a56"`,
|
|
861
|
-
require: "m",
|
|
862
|
-
type: "string"
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
name: "startDate",
|
|
866
|
-
detail: "Filters transactions created after this date.",
|
|
867
|
-
example: `"01/01/2024"`,
|
|
868
|
-
require: "o",
|
|
869
|
-
type: "string"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
name: "endDate",
|
|
873
|
-
detail: "Filters transactions created before this date.",
|
|
874
|
-
example: `"01/07/2025"`,
|
|
875
|
-
require: "o",
|
|
876
|
-
type: "string"
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
name: "limit",
|
|
880
|
-
detail: "Number of transactions to return per page.",
|
|
881
|
-
example: `"20"`,
|
|
882
|
-
require: "o",
|
|
883
|
-
type: "number"
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
name: "offset",
|
|
887
|
-
detail: "Offset for pagination (i.e., how many records to skip).",
|
|
888
|
-
example: `"0"`,
|
|
889
|
-
require: "o",
|
|
890
|
-
type: "number"
|
|
891
|
-
}
|
|
892
|
-
]
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
API_KEY: SERVICE_API_KEY.Etherscan,
|
|
896
|
-
LOGO: "https://avatars.githubusercontent.com/u/129790008?s=48&v=4",
|
|
897
|
-
BRAND_COLOR: "#f1f7fc",
|
|
898
|
-
BRAND_SECONDARY_COLOR: "#5098d6",
|
|
899
|
-
n: "OTTERSCAN",
|
|
900
|
-
t: 20,
|
|
901
|
-
d: "Returns blockchain transaction history for the given address",
|
|
902
|
-
a: "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
|
|
903
|
-
p: [
|
|
904
|
-
{
|
|
905
|
-
name: "type",
|
|
906
|
-
detail: "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
907
|
-
example: `"all-txns"`,
|
|
908
|
-
require: "m",
|
|
909
|
-
type: "string"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
name: "chain",
|
|
913
|
-
detail: "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
|
|
914
|
-
example: `"ethereum"`,
|
|
915
|
-
require: "m",
|
|
916
|
-
type: "string"
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
name: "address",
|
|
920
|
-
detail: "Wallet address to query",
|
|
921
|
-
example: `"0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC"`,
|
|
922
|
-
require: "o",
|
|
923
|
-
type: "string"
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
name: "startDate",
|
|
927
|
-
detail: "Used to filter block range.",
|
|
928
|
-
example: `"01/01/2024"`,
|
|
929
|
-
require: "o",
|
|
930
|
-
type: "string"
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
name: "endDate",
|
|
934
|
-
detail: "Used to filter block range.",
|
|
935
|
-
example: `"01/07/2025"`,
|
|
936
|
-
require: "o",
|
|
937
|
-
type: "string"
|
|
938
|
-
}
|
|
939
|
-
]
|
|
940
|
-
},
|
|
804
|
+
// {
|
|
805
|
+
// API_KEY: SERVICE_API_KEY.GnosisPay,
|
|
806
|
+
// LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
807
|
+
// BRAND_COLOR: "#f6f7f6",
|
|
808
|
+
// BRAND_SECONDARY_COLOR: "#133629",
|
|
809
|
+
// n: "GNOSISPAY",
|
|
810
|
+
// t: 20,
|
|
811
|
+
// d: "Fetches Gnosis Pay card transaction history, including merchant, amount, and currency info.",
|
|
812
|
+
// a: "Retrieves card transactions from Gnosis Pay’s API for a specific card ID, filtered by date range and paginated via limit/offset.",
|
|
813
|
+
// p: [
|
|
814
|
+
// {
|
|
815
|
+
// name: "cardId",
|
|
816
|
+
// detail: "The Gnosis Pay card ID to fetch transactions for.",
|
|
817
|
+
// example: `"card_9f8f8b3a56"`,
|
|
818
|
+
// require: "m",
|
|
819
|
+
// type: "string"
|
|
820
|
+
// },
|
|
821
|
+
// {
|
|
822
|
+
// name: "startDate",
|
|
823
|
+
// detail: "Filters transactions created after this date.",
|
|
824
|
+
// example: `"01/01/2024"`,
|
|
825
|
+
// require: "o",
|
|
826
|
+
// type: "string"
|
|
827
|
+
// },
|
|
828
|
+
// {
|
|
829
|
+
// name: "endDate",
|
|
830
|
+
// detail: "Filters transactions created before this date.",
|
|
831
|
+
// example: `"01/07/2025"`,
|
|
832
|
+
// require: "o",
|
|
833
|
+
// type: "string"
|
|
834
|
+
// },
|
|
835
|
+
// {
|
|
836
|
+
// name: "limit",
|
|
837
|
+
// detail: "Number of transactions to return per page.",
|
|
838
|
+
// example: `"20"`,
|
|
839
|
+
// require: "o",
|
|
840
|
+
// type: "number"
|
|
841
|
+
// },
|
|
842
|
+
// {
|
|
843
|
+
// name: "offset",
|
|
844
|
+
// detail: "Offset for pagination (i.e., how many records to skip).",
|
|
845
|
+
// example: `"0"`,
|
|
846
|
+
// require: "o",
|
|
847
|
+
// type: "number"
|
|
848
|
+
// }
|
|
849
|
+
// ]
|
|
850
|
+
// },
|
|
941
851
|
{
|
|
942
852
|
API_KEY: SERVICE_API_KEY.Etherscan,
|
|
943
853
|
LOGO: "https://www.tally.xyz/favicon.ico",
|