@fileverse-dev/formulajs 4.4.11-mod-83-patch-1 → 4.4.11-mod-83-patch-3
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
|
@@ -17767,7 +17767,7 @@ async function BLOCKSCOUT() {
|
|
|
17767
17767
|
}
|
|
17768
17768
|
}
|
|
17769
17769
|
|
|
17770
|
-
const allowedValues = ['1h', '24h', '7d'];
|
|
17770
|
+
const allowedValues = ['1h', '24h', '7d', '14d', '30d', '200d', '1y'];
|
|
17771
17771
|
const param2Schema = stringType()
|
|
17772
17772
|
.refine((val) => {
|
|
17773
17773
|
const tokens = val.split(',').map((t) => t.trim().toLowerCase());
|
|
@@ -17775,7 +17775,7 @@ const param2Schema = stringType()
|
|
|
17775
17775
|
allowedValues.some((allowed) => token.includes(allowed))
|
|
17776
17776
|
);
|
|
17777
17777
|
}, {
|
|
17778
|
-
message: "param2 must contain at least one of: '1h', '24h', '7d'",
|
|
17778
|
+
message: "param2 must contain at least one of: '1h', '24h', '7d', '14d', '30d', '200d', '1y'",
|
|
17779
17779
|
}).optional();
|
|
17780
17780
|
const priceSchema = objectType({
|
|
17781
17781
|
category: literalType('price'),
|
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
// src/utils/constants.js
|
|
2
|
+
var CHAIN_ID_MAP = {
|
|
3
|
+
ethereum: 1,
|
|
4
|
+
gnosis: 100,
|
|
5
|
+
base: 8453
|
|
6
|
+
};
|
|
7
|
+
var BLOCKSCOUT_CHAINS_MAP = {
|
|
8
|
+
ethereum: "https://eth.blockscout.com",
|
|
9
|
+
gnosis: "https://gnosis.blockscout.com",
|
|
10
|
+
arbitrum: "https://arbitrum.blockscout.com",
|
|
11
|
+
optimism: "https://optimism.blockscout.com",
|
|
12
|
+
soneium: "https://soneium.blockscout.com",
|
|
13
|
+
unichain: "https://unichain.blockscout.com"
|
|
14
|
+
};
|
|
15
|
+
var SAFE_CHAIN_MAP = {
|
|
16
|
+
ethereum: "eth",
|
|
17
|
+
gnosis: "gno"
|
|
18
|
+
};
|
|
19
|
+
var ERROR_MESSAGES_FLAG = {
|
|
20
|
+
INVALID_API_KEY: "INVALID_API_KEY",
|
|
21
|
+
RATE_LIMIT: "RATE_LIMIT",
|
|
22
|
+
DEFAULT: "DEFAULT",
|
|
23
|
+
MISSING_KEY: "MISSING_KEY",
|
|
24
|
+
INVALID_PARAM: "INVALID_PARAM",
|
|
25
|
+
NETWORK_ERROR: "NETWORK_ERROR",
|
|
26
|
+
ENS: "ENS"
|
|
27
|
+
};
|
|
28
|
+
var UTILITY = {
|
|
29
|
+
ALCHEMY_API_KEY: "ALCHEMY_API_KEY"
|
|
30
|
+
};
|
|
31
|
+
var MAX_PAGE_LIMIT = 250;
|
|
2
32
|
var SERVICES_API_KEY = {
|
|
3
33
|
Etherscan: "Etherscan",
|
|
4
34
|
Coingecko: "Coingecko",
|
|
@@ -651,7 +681,7 @@ var Neynar_metadata = {
|
|
|
651
681
|
]
|
|
652
682
|
};
|
|
653
683
|
|
|
654
|
-
// src/crypto-
|
|
684
|
+
// src/crypto/crypto-metadata.js
|
|
655
685
|
var FUNCTION_LOCALE = [
|
|
656
686
|
EOA_metadata,
|
|
657
687
|
UNISWAP_metadata,
|
|
@@ -726,5 +756,12 @@ var FUNCTION_LOCALE = [
|
|
|
726
756
|
}
|
|
727
757
|
];
|
|
728
758
|
export {
|
|
729
|
-
|
|
759
|
+
BLOCKSCOUT_CHAINS_MAP,
|
|
760
|
+
CHAIN_ID_MAP,
|
|
761
|
+
ERROR_MESSAGES_FLAG,
|
|
762
|
+
FUNCTION_LOCALE,
|
|
763
|
+
MAX_PAGE_LIMIT,
|
|
764
|
+
SAFE_CHAIN_MAP,
|
|
765
|
+
SERVICES_API_KEY,
|
|
766
|
+
UTILITY
|
|
730
767
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -17765,7 +17765,7 @@ async function BLOCKSCOUT() {
|
|
|
17765
17765
|
}
|
|
17766
17766
|
}
|
|
17767
17767
|
|
|
17768
|
-
const allowedValues = ['1h', '24h', '7d'];
|
|
17768
|
+
const allowedValues = ['1h', '24h', '7d', '14d', '30d', '200d', '1y'];
|
|
17769
17769
|
const param2Schema = stringType()
|
|
17770
17770
|
.refine((val) => {
|
|
17771
17771
|
const tokens = val.split(',').map((t) => t.trim().toLowerCase());
|
|
@@ -17773,7 +17773,7 @@ const param2Schema = stringType()
|
|
|
17773
17773
|
allowedValues.some((allowed) => token.includes(allowed))
|
|
17774
17774
|
);
|
|
17775
17775
|
}, {
|
|
17776
|
-
message: "param2 must contain at least one of: '1h', '24h', '7d'",
|
|
17776
|
+
message: "param2 must contain at least one of: '1h', '24h', '7d', '14d', '30d', '200d', '1y'",
|
|
17777
17777
|
}).optional();
|
|
17778
17778
|
const priceSchema = objectType({
|
|
17779
17779
|
category: literalType('price'),
|
package/package.json
CHANGED