@fileverse-dev/formulajs 4.4.12-mod-9 → 4.4.13
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 +498 -506
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +12 -26
- package/lib/esm/index.mjs +12 -26
- package/package.json +1 -1
package/lib/cjs/index.cjs
CHANGED
|
@@ -18565,17 +18565,18 @@ function flattenObject(obj, parentKey = '', res = {}) {
|
|
|
18565
18565
|
}
|
|
18566
18566
|
|
|
18567
18567
|
const SUPPORTED_TOKEN_NAMES = {
|
|
18568
|
-
"eth": 1,
|
|
18569
|
-
"base": 8453,
|
|
18570
|
-
"polygon": 137,
|
|
18571
|
-
"arbitrum": 42161,
|
|
18572
|
-
"optimism": 10,
|
|
18573
|
-
"gnosis": 100,
|
|
18574
|
-
"bsc": 56,
|
|
18575
|
-
"avalanche": 43114,
|
|
18576
|
-
"fantom": 250,
|
|
18577
|
-
"scroll": 534352,
|
|
18578
|
-
"linea": 59144
|
|
18568
|
+
"eth": 1,
|
|
18569
|
+
"base": 8453,
|
|
18570
|
+
"polygon": 137,
|
|
18571
|
+
"arbitrum": 42161,
|
|
18572
|
+
"optimism": 10,
|
|
18573
|
+
"gnosis": 100,
|
|
18574
|
+
"bsc": 56,
|
|
18575
|
+
"avalanche": 43114,
|
|
18576
|
+
"fantom": 250,
|
|
18577
|
+
"scroll": 534352,
|
|
18578
|
+
"linea": 59144,
|
|
18579
|
+
"ethereum": 1
|
|
18579
18580
|
};
|
|
18580
18581
|
|
|
18581
18582
|
|
|
@@ -18738,21 +18739,6 @@ async function DUNESIM() {
|
|
|
18738
18739
|
}
|
|
18739
18740
|
}
|
|
18740
18741
|
|
|
18741
|
-
|
|
18742
|
-
(async () => {
|
|
18743
|
-
// Example: activity
|
|
18744
|
-
// const res1 = await DUNESIM('activity', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', "eth", 5);
|
|
18745
|
-
// console.log('Activity result:', res1, res1.length);
|
|
18746
|
-
|
|
18747
|
-
// Example: price (token-info)
|
|
18748
|
-
// const res2 = await DUNESIM('price', 'eth', '1,6,24', "", 5);
|
|
18749
|
-
// console.log('Price result:', res2);
|
|
18750
|
-
|
|
18751
|
-
// // Example: token holders
|
|
18752
|
-
// const res3 = await DUNESIM('token-holders', '0x63706e401c06ac8513145b7687A14804d17f814b', "base", 1);
|
|
18753
|
-
// console.log('Holders result:', res3, res3.length);
|
|
18754
|
-
})();
|
|
18755
|
-
|
|
18756
18742
|
// export {GNOSISPAY} from './gnosispay/gnosispay.js'
|
|
18757
18743
|
|
|
18758
18744
|
|
package/lib/esm/index.mjs
CHANGED
|
@@ -18563,17 +18563,18 @@ function flattenObject(obj, parentKey = '', res = {}) {
|
|
|
18563
18563
|
}
|
|
18564
18564
|
|
|
18565
18565
|
const SUPPORTED_TOKEN_NAMES = {
|
|
18566
|
-
"eth": 1,
|
|
18567
|
-
"base": 8453,
|
|
18568
|
-
"polygon": 137,
|
|
18569
|
-
"arbitrum": 42161,
|
|
18570
|
-
"optimism": 10,
|
|
18571
|
-
"gnosis": 100,
|
|
18572
|
-
"bsc": 56,
|
|
18573
|
-
"avalanche": 43114,
|
|
18574
|
-
"fantom": 250,
|
|
18575
|
-
"scroll": 534352,
|
|
18576
|
-
"linea": 59144
|
|
18566
|
+
"eth": 1,
|
|
18567
|
+
"base": 8453,
|
|
18568
|
+
"polygon": 137,
|
|
18569
|
+
"arbitrum": 42161,
|
|
18570
|
+
"optimism": 10,
|
|
18571
|
+
"gnosis": 100,
|
|
18572
|
+
"bsc": 56,
|
|
18573
|
+
"avalanche": 43114,
|
|
18574
|
+
"fantom": 250,
|
|
18575
|
+
"scroll": 534352,
|
|
18576
|
+
"linea": 59144,
|
|
18577
|
+
"ethereum": 1
|
|
18577
18578
|
};
|
|
18578
18579
|
|
|
18579
18580
|
|
|
@@ -18736,21 +18737,6 @@ async function DUNESIM() {
|
|
|
18736
18737
|
}
|
|
18737
18738
|
}
|
|
18738
18739
|
|
|
18739
|
-
|
|
18740
|
-
(async () => {
|
|
18741
|
-
// Example: activity
|
|
18742
|
-
// const res1 = await DUNESIM('activity', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', "eth", 5);
|
|
18743
|
-
// console.log('Activity result:', res1, res1.length);
|
|
18744
|
-
|
|
18745
|
-
// Example: price (token-info)
|
|
18746
|
-
// const res2 = await DUNESIM('price', 'eth', '1,6,24', "", 5);
|
|
18747
|
-
// console.log('Price result:', res2);
|
|
18748
|
-
|
|
18749
|
-
// // Example: token holders
|
|
18750
|
-
// const res3 = await DUNESIM('token-holders', '0x63706e401c06ac8513145b7687A14804d17f814b', "base", 1);
|
|
18751
|
-
// console.log('Holders result:', res3, res3.length);
|
|
18752
|
-
})();
|
|
18753
|
-
|
|
18754
18740
|
// export {GNOSISPAY} from './gnosispay/gnosispay.js'
|
|
18755
18741
|
|
|
18756
18742
|
|