@lagoon-protocol/v0-core 0.7.0 → 0.9.0
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/dist/cjs/index.cjs +33 -74
- package/dist/esm/index.js +33 -74
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/addresses.d.ts +12 -0
- package/dist/types/addresses.d.ts.map +1 -1
- package/dist/types/chain.d.ts +14 -98
- package/dist/types/chain.d.ts.map +1 -1
- package/dist/types/vault/Vault.d.ts +2 -2
- package/dist/types/vault/Vault.d.ts.map +1 -1
- package/dist/types/vault/VaultUtils.d.ts +2 -1
- package/dist/types/vault/VaultUtils.d.ts.map +1 -1
- package/dist/types/vault/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -28,7 +28,7 @@ var __export = (target, all) => {
|
|
|
28
28
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
29
29
|
|
|
30
30
|
// ../../node_modules/abitype/dist/esm/version.js
|
|
31
|
-
var version = "1.0
|
|
31
|
+
var version = "1.1.0";
|
|
32
32
|
|
|
33
33
|
// ../../node_modules/abitype/dist/esm/errors.js
|
|
34
34
|
var BaseError;
|
|
@@ -509,6 +509,8 @@ function parseAbiParameter(param, options) {
|
|
|
509
509
|
components = { components: structs[match.type] };
|
|
510
510
|
} else if (dynamicIntegerRegex.test(match.type)) {
|
|
511
511
|
type = `${match.type}256`;
|
|
512
|
+
} else if (match.type === "address payable") {
|
|
513
|
+
type = "address";
|
|
512
514
|
} else {
|
|
513
515
|
type = match.type;
|
|
514
516
|
if (!(options?.type === "struct") && !isSolidityType(type))
|
|
@@ -577,7 +579,7 @@ var init_utils = __esm(() => {
|
|
|
577
579
|
init_splitParameters();
|
|
578
580
|
init_cache();
|
|
579
581
|
init_signatures();
|
|
580
|
-
abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
582
|
+
abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
581
583
|
abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
582
584
|
dynamicIntegerRegex = /^u?int$/;
|
|
583
585
|
protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
@@ -773,7 +775,7 @@ function size(value) {
|
|
|
773
775
|
var init_size = () => {};
|
|
774
776
|
|
|
775
777
|
// ../../node_modules/viem/_esm/errors/version.js
|
|
776
|
-
var version2 = "2.
|
|
778
|
+
var version2 = "2.37.9";
|
|
777
779
|
|
|
778
780
|
// ../../node_modules/viem/_esm/errors/base.js
|
|
779
781
|
function walk(err, fn) {
|
|
@@ -1875,9 +1877,9 @@ function encodeBytes(value, { param }) {
|
|
|
1875
1877
|
encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
|
|
1876
1878
|
};
|
|
1877
1879
|
}
|
|
1878
|
-
if (bytesSize !== Number.parseInt(paramSize))
|
|
1880
|
+
if (bytesSize !== Number.parseInt(paramSize, 10))
|
|
1879
1881
|
throw new AbiEncodingBytesSizeMismatchError({
|
|
1880
|
-
expectedSize: Number.parseInt(paramSize),
|
|
1882
|
+
expectedSize: Number.parseInt(paramSize, 10),
|
|
1881
1883
|
value
|
|
1882
1884
|
});
|
|
1883
1885
|
return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
|
|
@@ -1986,7 +1988,7 @@ function getAbiItem(parameters) {
|
|
|
1986
1988
|
return;
|
|
1987
1989
|
if (abiItems.length === 1)
|
|
1988
1990
|
return abiItems[0];
|
|
1989
|
-
let matchedAbiItem
|
|
1991
|
+
let matchedAbiItem;
|
|
1990
1992
|
for (const abiItem of abiItems) {
|
|
1991
1993
|
if (!("inputs" in abiItem))
|
|
1992
1994
|
continue;
|
|
@@ -2302,6 +2304,7 @@ class Token {
|
|
|
2302
2304
|
var VaultUtils;
|
|
2303
2305
|
((VaultUtils) => {
|
|
2304
2306
|
VaultUtils.VIRTUAL_ASSETS = 1n;
|
|
2307
|
+
VaultUtils.BPS = 10000n;
|
|
2305
2308
|
VaultUtils.ONE_SHARE = 10n ** 18n;
|
|
2306
2309
|
function decimalsOffset(decimals) {
|
|
2307
2310
|
return MathLib.zeroFloorSub(18n, decimals);
|
|
@@ -2668,16 +2671,8 @@ var ChainId;
|
|
|
2668
2671
|
ChainId2[ChainId2["ArbitrumMainnet"] = 42161] = "ArbitrumMainnet";
|
|
2669
2672
|
ChainId2[ChainId2["OptimismMainnet"] = 10] = "OptimismMainnet";
|
|
2670
2673
|
ChainId2[ChainId2["WorldChainMainnet"] = 480] = "WorldChainMainnet";
|
|
2671
|
-
ChainId2[ChainId2["FraxtalMainnet"] = 252] = "FraxtalMainnet";
|
|
2672
|
-
ChainId2[ChainId2["ScrollMainnet"] = 534352] = "ScrollMainnet";
|
|
2673
|
-
ChainId2[ChainId2["InkMainnet"] = 57073] = "InkMainnet";
|
|
2674
2674
|
ChainId2[ChainId2["UnichainMainnet"] = 130] = "UnichainMainnet";
|
|
2675
2675
|
ChainId2[ChainId2["SonicMainnet"] = 146] = "SonicMainnet";
|
|
2676
|
-
ChainId2[ChainId2["HemiMainnet"] = 43111] = "HemiMainnet";
|
|
2677
|
-
ChainId2[ChainId2["ModeMainnet"] = 34443] = "ModeMainnet";
|
|
2678
|
-
ChainId2[ChainId2["CornMainnet"] = 21000000] = "CornMainnet";
|
|
2679
|
-
ChainId2[ChainId2["PlumeMainnet"] = 98866] = "PlumeMainnet";
|
|
2680
|
-
ChainId2[ChainId2["CampMainnet"] = 123420001114] = "CampMainnet";
|
|
2681
2676
|
ChainId2[ChainId2["BerachainMainnet"] = 80094] = "BerachainMainnet";
|
|
2682
2677
|
ChainId2[ChainId2["MantleMainnet"] = 5000] = "MantleMainnet";
|
|
2683
2678
|
ChainId2[ChainId2["AvalancheMainnet"] = 43114] = "AvalancheMainnet";
|
|
@@ -2685,7 +2680,8 @@ var ChainId;
|
|
|
2685
2680
|
ChainId2[ChainId2["KatanaMainnet"] = 747474] = "KatanaMainnet";
|
|
2686
2681
|
ChainId2[ChainId2["BscMainnet"] = 56] = "BscMainnet";
|
|
2687
2682
|
ChainId2[ChainId2["HyperEVMMainnet"] = 999] = "HyperEVMMainnet";
|
|
2688
|
-
ChainId2[ChainId2["
|
|
2683
|
+
ChainId2[ChainId2["LineaMainnet"] = 59144] = "LineaMainnet";
|
|
2684
|
+
ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
|
|
2689
2685
|
})(ChainId ||= {});
|
|
2690
2686
|
var ChainUtils;
|
|
2691
2687
|
((ChainUtils) => {
|
|
@@ -2744,27 +2740,6 @@ var ChainUtils;
|
|
|
2744
2740
|
explorerUrl: "https://worldscan.org",
|
|
2745
2741
|
identifier: "worldchain"
|
|
2746
2742
|
},
|
|
2747
|
-
[252 /* FraxtalMainnet */]: {
|
|
2748
|
-
name: "Fraxtal",
|
|
2749
|
-
id: 252 /* FraxtalMainnet */,
|
|
2750
|
-
nativeCurrency: { name: "Frax Ether", symbol: "frxETH", decimals: 18 },
|
|
2751
|
-
explorerUrl: "https://fraxscan.com",
|
|
2752
|
-
identifier: "fraxtal"
|
|
2753
|
-
},
|
|
2754
|
-
[534352 /* ScrollMainnet */]: {
|
|
2755
|
-
name: "Scroll",
|
|
2756
|
-
id: 534352 /* ScrollMainnet */,
|
|
2757
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2758
|
-
explorerUrl: "https://scrollscan.com",
|
|
2759
|
-
identifier: "scroll"
|
|
2760
|
-
},
|
|
2761
|
-
[57073 /* InkMainnet */]: {
|
|
2762
|
-
name: "Ink",
|
|
2763
|
-
id: 57073 /* InkMainnet */,
|
|
2764
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2765
|
-
explorerUrl: "https://explorer.inkonchain.com",
|
|
2766
|
-
identifier: "ink"
|
|
2767
|
-
},
|
|
2768
2743
|
[130 /* UnichainMainnet */]: {
|
|
2769
2744
|
name: "Unichain",
|
|
2770
2745
|
id: 130 /* UnichainMainnet */,
|
|
@@ -2779,41 +2754,6 @@ var ChainUtils;
|
|
|
2779
2754
|
explorerUrl: "https://sonicscan.org",
|
|
2780
2755
|
identifier: "sonic"
|
|
2781
2756
|
},
|
|
2782
|
-
[43111 /* HemiMainnet */]: {
|
|
2783
|
-
name: "Hemi",
|
|
2784
|
-
id: 43111 /* HemiMainnet */,
|
|
2785
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2786
|
-
explorerUrl: "https://explorer.hemi.xyz",
|
|
2787
|
-
identifier: "hemi"
|
|
2788
|
-
},
|
|
2789
|
-
[34443 /* ModeMainnet */]: {
|
|
2790
|
-
name: "Mode",
|
|
2791
|
-
id: 34443 /* ModeMainnet */,
|
|
2792
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2793
|
-
explorerUrl: "https://modescan.io",
|
|
2794
|
-
identifier: "mode"
|
|
2795
|
-
},
|
|
2796
|
-
[21000000 /* CornMainnet */]: {
|
|
2797
|
-
name: "Corn",
|
|
2798
|
-
id: 21000000 /* CornMainnet */,
|
|
2799
|
-
nativeCurrency: { name: "Bitcoin", symbol: "BTCN", decimals: 18 },
|
|
2800
|
-
explorerUrl: "https://cornscan.io",
|
|
2801
|
-
identifier: "corn"
|
|
2802
|
-
},
|
|
2803
|
-
[98866 /* PlumeMainnet */]: {
|
|
2804
|
-
name: "Plume",
|
|
2805
|
-
id: 98866 /* PlumeMainnet */,
|
|
2806
|
-
nativeCurrency: { name: "Plume", symbol: "PLUME", decimals: 18 },
|
|
2807
|
-
explorerUrl: "https://phoenix-explorer.plumenetwork.xyz",
|
|
2808
|
-
identifier: "plume"
|
|
2809
|
-
},
|
|
2810
|
-
[123420001114 /* CampMainnet */]: {
|
|
2811
|
-
name: "Camp",
|
|
2812
|
-
id: 123420001114 /* CampMainnet */,
|
|
2813
|
-
nativeCurrency: { name: "Camp", symbol: "CAMP", decimals: 18 },
|
|
2814
|
-
explorerUrl: "https://basecamp.cloud.blockscout.com/",
|
|
2815
|
-
identifier: "camp"
|
|
2816
|
-
},
|
|
2817
2757
|
[80094 /* BerachainMainnet */]: {
|
|
2818
2758
|
name: "Berachain",
|
|
2819
2759
|
id: 80094 /* BerachainMainnet */,
|
|
@@ -2863,12 +2803,19 @@ var ChainUtils;
|
|
|
2863
2803
|
explorerUrl: "https://hyperevmscan.io/",
|
|
2864
2804
|
identifier: "hyperevm"
|
|
2865
2805
|
},
|
|
2866
|
-
[59144 /*
|
|
2806
|
+
[59144 /* LineaMainnet */]: {
|
|
2867
2807
|
name: "Linea Mainnet",
|
|
2868
|
-
id: 59144 /*
|
|
2808
|
+
id: 59144 /* LineaMainnet */,
|
|
2869
2809
|
nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
|
|
2870
2810
|
explorerUrl: "https://lineascan.build",
|
|
2871
2811
|
identifier: "linea"
|
|
2812
|
+
},
|
|
2813
|
+
[9745 /* PlasmaMainnet */]: {
|
|
2814
|
+
name: "Plasma Mainnet Beta",
|
|
2815
|
+
id: 9745 /* PlasmaMainnet */,
|
|
2816
|
+
nativeCurrency: { name: "XPL", symbol: "XPL", decimals: 18 },
|
|
2817
|
+
explorerUrl: "https://plasmascan.to/",
|
|
2818
|
+
identifier: "plasma"
|
|
2872
2819
|
}
|
|
2873
2820
|
};
|
|
2874
2821
|
})(ChainUtils ||= {});
|
|
@@ -2968,11 +2915,23 @@ var addresses = {
|
|
|
2968
2915
|
wrappedNative: "0x5555555555555555555555555555555555555555",
|
|
2969
2916
|
optinFactory: "0x90beB507A1BA7D64633540cbce615B574224CD84"
|
|
2970
2917
|
},
|
|
2971
|
-
[59144 /*
|
|
2918
|
+
[59144 /* LineaMainnet */]: {
|
|
2972
2919
|
feeRegistry: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
|
|
2973
2920
|
v0_4_0: "0xC094C224ce0406BC338E00837B96aD2e265F7287",
|
|
2974
2921
|
wrappedNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
|
|
2975
2922
|
optinFactory: "0x8D6f5479B14348186faE9BC7E636e947c260f9B1"
|
|
2923
|
+
},
|
|
2924
|
+
[9745 /* PlasmaMainnet */]: {
|
|
2925
|
+
feeRegistry: "0xfd9fa4986C6cB8cbce6b632DD7c587EBCcaEDb7A",
|
|
2926
|
+
v0_5_0: "0xa61FAEB94249F08e05e7eD7502D6Ec86297Bc9e4",
|
|
2927
|
+
wrappedNative: "0x6100E367285b01F48D07953803A2d8dCA5D19873",
|
|
2928
|
+
optinFactory: "0xF838E8Bd649fc6fBC48D44E9D87273c0519C45c9"
|
|
2929
|
+
},
|
|
2930
|
+
[137 /* PolygonMainnet */]: {
|
|
2931
|
+
feeRegistry: "0x744F9cA26CD9F6Be5cf79A00b1Ad457145D9F691",
|
|
2932
|
+
v0_5_0: "0x50f30E712D535b796C8543012D0C05218b89c7d5",
|
|
2933
|
+
wrappedNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
2934
|
+
optinFactory: "0x0C0E287f6e4de685f4b44A5282A3ad4A29D05a91"
|
|
2976
2935
|
}
|
|
2977
2936
|
};
|
|
2978
2937
|
// src/utils.ts
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/abitype/dist/esm/version.js
|
|
4
|
-
var version = "1.0
|
|
4
|
+
var version = "1.1.0";
|
|
5
5
|
|
|
6
6
|
// ../../node_modules/abitype/dist/esm/errors.js
|
|
7
7
|
var BaseError;
|
|
@@ -482,6 +482,8 @@ function parseAbiParameter(param, options) {
|
|
|
482
482
|
components = { components: structs[match.type] };
|
|
483
483
|
} else if (dynamicIntegerRegex.test(match.type)) {
|
|
484
484
|
type = `${match.type}256`;
|
|
485
|
+
} else if (match.type === "address payable") {
|
|
486
|
+
type = "address";
|
|
485
487
|
} else {
|
|
486
488
|
type = match.type;
|
|
487
489
|
if (!(options?.type === "struct") && !isSolidityType(type))
|
|
@@ -550,7 +552,7 @@ var init_utils = __esm(() => {
|
|
|
550
552
|
init_splitParameters();
|
|
551
553
|
init_cache();
|
|
552
554
|
init_signatures();
|
|
553
|
-
abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
555
|
+
abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
554
556
|
abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
555
557
|
dynamicIntegerRegex = /^u?int$/;
|
|
556
558
|
protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
@@ -746,7 +748,7 @@ function size(value) {
|
|
|
746
748
|
var init_size = () => {};
|
|
747
749
|
|
|
748
750
|
// ../../node_modules/viem/_esm/errors/version.js
|
|
749
|
-
var version2 = "2.
|
|
751
|
+
var version2 = "2.37.9";
|
|
750
752
|
|
|
751
753
|
// ../../node_modules/viem/_esm/errors/base.js
|
|
752
754
|
function walk(err, fn) {
|
|
@@ -1848,9 +1850,9 @@ function encodeBytes(value, { param }) {
|
|
|
1848
1850
|
encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
|
|
1849
1851
|
};
|
|
1850
1852
|
}
|
|
1851
|
-
if (bytesSize !== Number.parseInt(paramSize))
|
|
1853
|
+
if (bytesSize !== Number.parseInt(paramSize, 10))
|
|
1852
1854
|
throw new AbiEncodingBytesSizeMismatchError({
|
|
1853
|
-
expectedSize: Number.parseInt(paramSize),
|
|
1855
|
+
expectedSize: Number.parseInt(paramSize, 10),
|
|
1854
1856
|
value
|
|
1855
1857
|
});
|
|
1856
1858
|
return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
|
|
@@ -1959,7 +1961,7 @@ function getAbiItem(parameters) {
|
|
|
1959
1961
|
return;
|
|
1960
1962
|
if (abiItems.length === 1)
|
|
1961
1963
|
return abiItems[0];
|
|
1962
|
-
let matchedAbiItem
|
|
1964
|
+
let matchedAbiItem;
|
|
1963
1965
|
for (const abiItem of abiItems) {
|
|
1964
1966
|
if (!("inputs" in abiItem))
|
|
1965
1967
|
continue;
|
|
@@ -2245,6 +2247,7 @@ class Token {
|
|
|
2245
2247
|
var VaultUtils;
|
|
2246
2248
|
((VaultUtils) => {
|
|
2247
2249
|
VaultUtils.VIRTUAL_ASSETS = 1n;
|
|
2250
|
+
VaultUtils.BPS = 10000n;
|
|
2248
2251
|
VaultUtils.ONE_SHARE = 10n ** 18n;
|
|
2249
2252
|
function decimalsOffset(decimals) {
|
|
2250
2253
|
return MathLib.zeroFloorSub(18n, decimals);
|
|
@@ -2611,16 +2614,8 @@ var ChainId;
|
|
|
2611
2614
|
ChainId2[ChainId2["ArbitrumMainnet"] = 42161] = "ArbitrumMainnet";
|
|
2612
2615
|
ChainId2[ChainId2["OptimismMainnet"] = 10] = "OptimismMainnet";
|
|
2613
2616
|
ChainId2[ChainId2["WorldChainMainnet"] = 480] = "WorldChainMainnet";
|
|
2614
|
-
ChainId2[ChainId2["FraxtalMainnet"] = 252] = "FraxtalMainnet";
|
|
2615
|
-
ChainId2[ChainId2["ScrollMainnet"] = 534352] = "ScrollMainnet";
|
|
2616
|
-
ChainId2[ChainId2["InkMainnet"] = 57073] = "InkMainnet";
|
|
2617
2617
|
ChainId2[ChainId2["UnichainMainnet"] = 130] = "UnichainMainnet";
|
|
2618
2618
|
ChainId2[ChainId2["SonicMainnet"] = 146] = "SonicMainnet";
|
|
2619
|
-
ChainId2[ChainId2["HemiMainnet"] = 43111] = "HemiMainnet";
|
|
2620
|
-
ChainId2[ChainId2["ModeMainnet"] = 34443] = "ModeMainnet";
|
|
2621
|
-
ChainId2[ChainId2["CornMainnet"] = 21000000] = "CornMainnet";
|
|
2622
|
-
ChainId2[ChainId2["PlumeMainnet"] = 98866] = "PlumeMainnet";
|
|
2623
|
-
ChainId2[ChainId2["CampMainnet"] = 123420001114] = "CampMainnet";
|
|
2624
2619
|
ChainId2[ChainId2["BerachainMainnet"] = 80094] = "BerachainMainnet";
|
|
2625
2620
|
ChainId2[ChainId2["MantleMainnet"] = 5000] = "MantleMainnet";
|
|
2626
2621
|
ChainId2[ChainId2["AvalancheMainnet"] = 43114] = "AvalancheMainnet";
|
|
@@ -2628,7 +2623,8 @@ var ChainId;
|
|
|
2628
2623
|
ChainId2[ChainId2["KatanaMainnet"] = 747474] = "KatanaMainnet";
|
|
2629
2624
|
ChainId2[ChainId2["BscMainnet"] = 56] = "BscMainnet";
|
|
2630
2625
|
ChainId2[ChainId2["HyperEVMMainnet"] = 999] = "HyperEVMMainnet";
|
|
2631
|
-
ChainId2[ChainId2["
|
|
2626
|
+
ChainId2[ChainId2["LineaMainnet"] = 59144] = "LineaMainnet";
|
|
2627
|
+
ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
|
|
2632
2628
|
})(ChainId ||= {});
|
|
2633
2629
|
var ChainUtils;
|
|
2634
2630
|
((ChainUtils) => {
|
|
@@ -2687,27 +2683,6 @@ var ChainUtils;
|
|
|
2687
2683
|
explorerUrl: "https://worldscan.org",
|
|
2688
2684
|
identifier: "worldchain"
|
|
2689
2685
|
},
|
|
2690
|
-
[252 /* FraxtalMainnet */]: {
|
|
2691
|
-
name: "Fraxtal",
|
|
2692
|
-
id: 252 /* FraxtalMainnet */,
|
|
2693
|
-
nativeCurrency: { name: "Frax Ether", symbol: "frxETH", decimals: 18 },
|
|
2694
|
-
explorerUrl: "https://fraxscan.com",
|
|
2695
|
-
identifier: "fraxtal"
|
|
2696
|
-
},
|
|
2697
|
-
[534352 /* ScrollMainnet */]: {
|
|
2698
|
-
name: "Scroll",
|
|
2699
|
-
id: 534352 /* ScrollMainnet */,
|
|
2700
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2701
|
-
explorerUrl: "https://scrollscan.com",
|
|
2702
|
-
identifier: "scroll"
|
|
2703
|
-
},
|
|
2704
|
-
[57073 /* InkMainnet */]: {
|
|
2705
|
-
name: "Ink",
|
|
2706
|
-
id: 57073 /* InkMainnet */,
|
|
2707
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2708
|
-
explorerUrl: "https://explorer.inkonchain.com",
|
|
2709
|
-
identifier: "ink"
|
|
2710
|
-
},
|
|
2711
2686
|
[130 /* UnichainMainnet */]: {
|
|
2712
2687
|
name: "Unichain",
|
|
2713
2688
|
id: 130 /* UnichainMainnet */,
|
|
@@ -2722,41 +2697,6 @@ var ChainUtils;
|
|
|
2722
2697
|
explorerUrl: "https://sonicscan.org",
|
|
2723
2698
|
identifier: "sonic"
|
|
2724
2699
|
},
|
|
2725
|
-
[43111 /* HemiMainnet */]: {
|
|
2726
|
-
name: "Hemi",
|
|
2727
|
-
id: 43111 /* HemiMainnet */,
|
|
2728
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2729
|
-
explorerUrl: "https://explorer.hemi.xyz",
|
|
2730
|
-
identifier: "hemi"
|
|
2731
|
-
},
|
|
2732
|
-
[34443 /* ModeMainnet */]: {
|
|
2733
|
-
name: "Mode",
|
|
2734
|
-
id: 34443 /* ModeMainnet */,
|
|
2735
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2736
|
-
explorerUrl: "https://modescan.io",
|
|
2737
|
-
identifier: "mode"
|
|
2738
|
-
},
|
|
2739
|
-
[21000000 /* CornMainnet */]: {
|
|
2740
|
-
name: "Corn",
|
|
2741
|
-
id: 21000000 /* CornMainnet */,
|
|
2742
|
-
nativeCurrency: { name: "Bitcoin", symbol: "BTCN", decimals: 18 },
|
|
2743
|
-
explorerUrl: "https://cornscan.io",
|
|
2744
|
-
identifier: "corn"
|
|
2745
|
-
},
|
|
2746
|
-
[98866 /* PlumeMainnet */]: {
|
|
2747
|
-
name: "Plume",
|
|
2748
|
-
id: 98866 /* PlumeMainnet */,
|
|
2749
|
-
nativeCurrency: { name: "Plume", symbol: "PLUME", decimals: 18 },
|
|
2750
|
-
explorerUrl: "https://phoenix-explorer.plumenetwork.xyz",
|
|
2751
|
-
identifier: "plume"
|
|
2752
|
-
},
|
|
2753
|
-
[123420001114 /* CampMainnet */]: {
|
|
2754
|
-
name: "Camp",
|
|
2755
|
-
id: 123420001114 /* CampMainnet */,
|
|
2756
|
-
nativeCurrency: { name: "Camp", symbol: "CAMP", decimals: 18 },
|
|
2757
|
-
explorerUrl: "https://basecamp.cloud.blockscout.com/",
|
|
2758
|
-
identifier: "camp"
|
|
2759
|
-
},
|
|
2760
2700
|
[80094 /* BerachainMainnet */]: {
|
|
2761
2701
|
name: "Berachain",
|
|
2762
2702
|
id: 80094 /* BerachainMainnet */,
|
|
@@ -2806,12 +2746,19 @@ var ChainUtils;
|
|
|
2806
2746
|
explorerUrl: "https://hyperevmscan.io/",
|
|
2807
2747
|
identifier: "hyperevm"
|
|
2808
2748
|
},
|
|
2809
|
-
[59144 /*
|
|
2749
|
+
[59144 /* LineaMainnet */]: {
|
|
2810
2750
|
name: "Linea Mainnet",
|
|
2811
|
-
id: 59144 /*
|
|
2751
|
+
id: 59144 /* LineaMainnet */,
|
|
2812
2752
|
nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
|
|
2813
2753
|
explorerUrl: "https://lineascan.build",
|
|
2814
2754
|
identifier: "linea"
|
|
2755
|
+
},
|
|
2756
|
+
[9745 /* PlasmaMainnet */]: {
|
|
2757
|
+
name: "Plasma Mainnet Beta",
|
|
2758
|
+
id: 9745 /* PlasmaMainnet */,
|
|
2759
|
+
nativeCurrency: { name: "XPL", symbol: "XPL", decimals: 18 },
|
|
2760
|
+
explorerUrl: "https://plasmascan.to/",
|
|
2761
|
+
identifier: "plasma"
|
|
2815
2762
|
}
|
|
2816
2763
|
};
|
|
2817
2764
|
})(ChainUtils ||= {});
|
|
@@ -2911,11 +2858,23 @@ var addresses = {
|
|
|
2911
2858
|
wrappedNative: "0x5555555555555555555555555555555555555555",
|
|
2912
2859
|
optinFactory: "0x90beB507A1BA7D64633540cbce615B574224CD84"
|
|
2913
2860
|
},
|
|
2914
|
-
[59144 /*
|
|
2861
|
+
[59144 /* LineaMainnet */]: {
|
|
2915
2862
|
feeRegistry: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
|
|
2916
2863
|
v0_4_0: "0xC094C224ce0406BC338E00837B96aD2e265F7287",
|
|
2917
2864
|
wrappedNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
|
|
2918
2865
|
optinFactory: "0x8D6f5479B14348186faE9BC7E636e947c260f9B1"
|
|
2866
|
+
},
|
|
2867
|
+
[9745 /* PlasmaMainnet */]: {
|
|
2868
|
+
feeRegistry: "0xfd9fa4986C6cB8cbce6b632DD7c587EBCcaEDb7A",
|
|
2869
|
+
v0_5_0: "0xa61FAEB94249F08e05e7eD7502D6Ec86297Bc9e4",
|
|
2870
|
+
wrappedNative: "0x6100E367285b01F48D07953803A2d8dCA5D19873",
|
|
2871
|
+
optinFactory: "0xF838E8Bd649fc6fBC48D44E9D87273c0519C45c9"
|
|
2872
|
+
},
|
|
2873
|
+
[137 /* PolygonMainnet */]: {
|
|
2874
|
+
feeRegistry: "0x744F9cA26CD9F6Be5cf79A00b1Ad457145D9F691",
|
|
2875
|
+
v0_5_0: "0x50f30E712D535b796C8543012D0C05218b89c7d5",
|
|
2876
|
+
wrappedNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
2877
|
+
optinFactory: "0x0C0E287f6e4de685f4b44A5282A3ad4A29D05a91"
|
|
2919
2878
|
}
|
|
2920
2879
|
};
|
|
2921
2880
|
// src/utils.ts
|