@lagoon-protocol/v0-core 0.8.0 → 0.10.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.
@@ -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.8";
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.31.3";
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 = undefined;
1991
+ let matchedAbiItem;
1990
1992
  for (const abiItem of abiItems) {
1991
1993
  if (!("inputs" in abiItem))
1992
1994
  continue;
@@ -2147,6 +2149,7 @@ __export(exports_src, {
2147
2149
  Version: () => Version,
2148
2150
  VaultUtils: () => VaultUtils,
2149
2151
  Vault: () => Vault,
2152
+ User: () => User,
2150
2153
  Token: () => Token,
2151
2154
  State: () => State,
2152
2155
  SettleData: () => SettleData,
@@ -2613,6 +2616,24 @@ class CacheMissError extends Error {
2613
2616
  this.msg = msg;
2614
2617
  }
2615
2618
  }
2619
+ // src/vault/User.ts
2620
+ class User {
2621
+ address;
2622
+ vault;
2623
+ hasDepositRequestOnboarded;
2624
+ hasRedeemRequestOnboarded;
2625
+ constructor({
2626
+ address,
2627
+ vault,
2628
+ hasDepositRequestOnboarded,
2629
+ hasRedeemRequestOnboarded
2630
+ }) {
2631
+ this.address = address;
2632
+ this.vault = vault;
2633
+ this.hasDepositRequestOnboarded = hasDepositRequestOnboarded;
2634
+ this.hasRedeemRequestOnboarded = hasRedeemRequestOnboarded;
2635
+ }
2636
+ }
2616
2637
  // src/proxy/DelayProxyAdmin.ts
2617
2638
  class DelayProxyAdmin {
2618
2639
  address;
@@ -2669,16 +2690,8 @@ var ChainId;
2669
2690
  ChainId2[ChainId2["ArbitrumMainnet"] = 42161] = "ArbitrumMainnet";
2670
2691
  ChainId2[ChainId2["OptimismMainnet"] = 10] = "OptimismMainnet";
2671
2692
  ChainId2[ChainId2["WorldChainMainnet"] = 480] = "WorldChainMainnet";
2672
- ChainId2[ChainId2["FraxtalMainnet"] = 252] = "FraxtalMainnet";
2673
- ChainId2[ChainId2["ScrollMainnet"] = 534352] = "ScrollMainnet";
2674
- ChainId2[ChainId2["InkMainnet"] = 57073] = "InkMainnet";
2675
2693
  ChainId2[ChainId2["UnichainMainnet"] = 130] = "UnichainMainnet";
2676
2694
  ChainId2[ChainId2["SonicMainnet"] = 146] = "SonicMainnet";
2677
- ChainId2[ChainId2["HemiMainnet"] = 43111] = "HemiMainnet";
2678
- ChainId2[ChainId2["ModeMainnet"] = 34443] = "ModeMainnet";
2679
- ChainId2[ChainId2["CornMainnet"] = 21000000] = "CornMainnet";
2680
- ChainId2[ChainId2["PlumeMainnet"] = 98866] = "PlumeMainnet";
2681
- ChainId2[ChainId2["CampMainnet"] = 123420001114] = "CampMainnet";
2682
2695
  ChainId2[ChainId2["BerachainMainnet"] = 80094] = "BerachainMainnet";
2683
2696
  ChainId2[ChainId2["MantleMainnet"] = 5000] = "MantleMainnet";
2684
2697
  ChainId2[ChainId2["AvalancheMainnet"] = 43114] = "AvalancheMainnet";
@@ -2686,7 +2699,8 @@ var ChainId;
2686
2699
  ChainId2[ChainId2["KatanaMainnet"] = 747474] = "KatanaMainnet";
2687
2700
  ChainId2[ChainId2["BscMainnet"] = 56] = "BscMainnet";
2688
2701
  ChainId2[ChainId2["HyperEVMMainnet"] = 999] = "HyperEVMMainnet";
2689
- ChainId2[ChainId2["Linea"] = 59144] = "Linea";
2702
+ ChainId2[ChainId2["LineaMainnet"] = 59144] = "LineaMainnet";
2703
+ ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
2690
2704
  })(ChainId ||= {});
2691
2705
  var ChainUtils;
2692
2706
  ((ChainUtils) => {
@@ -2745,27 +2759,6 @@ var ChainUtils;
2745
2759
  explorerUrl: "https://worldscan.org",
2746
2760
  identifier: "worldchain"
2747
2761
  },
2748
- [252 /* FraxtalMainnet */]: {
2749
- name: "Fraxtal",
2750
- id: 252 /* FraxtalMainnet */,
2751
- nativeCurrency: { name: "Frax Ether", symbol: "frxETH", decimals: 18 },
2752
- explorerUrl: "https://fraxscan.com",
2753
- identifier: "fraxtal"
2754
- },
2755
- [534352 /* ScrollMainnet */]: {
2756
- name: "Scroll",
2757
- id: 534352 /* ScrollMainnet */,
2758
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2759
- explorerUrl: "https://scrollscan.com",
2760
- identifier: "scroll"
2761
- },
2762
- [57073 /* InkMainnet */]: {
2763
- name: "Ink",
2764
- id: 57073 /* InkMainnet */,
2765
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2766
- explorerUrl: "https://explorer.inkonchain.com",
2767
- identifier: "ink"
2768
- },
2769
2762
  [130 /* UnichainMainnet */]: {
2770
2763
  name: "Unichain",
2771
2764
  id: 130 /* UnichainMainnet */,
@@ -2780,41 +2773,6 @@ var ChainUtils;
2780
2773
  explorerUrl: "https://sonicscan.org",
2781
2774
  identifier: "sonic"
2782
2775
  },
2783
- [43111 /* HemiMainnet */]: {
2784
- name: "Hemi",
2785
- id: 43111 /* HemiMainnet */,
2786
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2787
- explorerUrl: "https://explorer.hemi.xyz",
2788
- identifier: "hemi"
2789
- },
2790
- [34443 /* ModeMainnet */]: {
2791
- name: "Mode",
2792
- id: 34443 /* ModeMainnet */,
2793
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2794
- explorerUrl: "https://modescan.io",
2795
- identifier: "mode"
2796
- },
2797
- [21000000 /* CornMainnet */]: {
2798
- name: "Corn",
2799
- id: 21000000 /* CornMainnet */,
2800
- nativeCurrency: { name: "Bitcoin", symbol: "BTCN", decimals: 18 },
2801
- explorerUrl: "https://cornscan.io",
2802
- identifier: "corn"
2803
- },
2804
- [98866 /* PlumeMainnet */]: {
2805
- name: "Plume",
2806
- id: 98866 /* PlumeMainnet */,
2807
- nativeCurrency: { name: "Plume", symbol: "PLUME", decimals: 18 },
2808
- explorerUrl: "https://phoenix-explorer.plumenetwork.xyz",
2809
- identifier: "plume"
2810
- },
2811
- [123420001114 /* CampMainnet */]: {
2812
- name: "Camp",
2813
- id: 123420001114 /* CampMainnet */,
2814
- nativeCurrency: { name: "Camp", symbol: "CAMP", decimals: 18 },
2815
- explorerUrl: "https://basecamp.cloud.blockscout.com/",
2816
- identifier: "camp"
2817
- },
2818
2776
  [80094 /* BerachainMainnet */]: {
2819
2777
  name: "Berachain",
2820
2778
  id: 80094 /* BerachainMainnet */,
@@ -2864,12 +2822,19 @@ var ChainUtils;
2864
2822
  explorerUrl: "https://hyperevmscan.io/",
2865
2823
  identifier: "hyperevm"
2866
2824
  },
2867
- [59144 /* Linea */]: {
2825
+ [59144 /* LineaMainnet */]: {
2868
2826
  name: "Linea Mainnet",
2869
- id: 59144 /* Linea */,
2827
+ id: 59144 /* LineaMainnet */,
2870
2828
  nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
2871
2829
  explorerUrl: "https://lineascan.build",
2872
2830
  identifier: "linea"
2831
+ },
2832
+ [9745 /* PlasmaMainnet */]: {
2833
+ name: "Plasma Mainnet Beta",
2834
+ id: 9745 /* PlasmaMainnet */,
2835
+ nativeCurrency: { name: "XPL", symbol: "XPL", decimals: 18 },
2836
+ explorerUrl: "https://plasmascan.to/",
2837
+ identifier: "plasma"
2873
2838
  }
2874
2839
  };
2875
2840
  })(ChainUtils ||= {});
@@ -2969,11 +2934,23 @@ var addresses = {
2969
2934
  wrappedNative: "0x5555555555555555555555555555555555555555",
2970
2935
  optinFactory: "0x90beB507A1BA7D64633540cbce615B574224CD84"
2971
2936
  },
2972
- [59144 /* Linea */]: {
2937
+ [59144 /* LineaMainnet */]: {
2973
2938
  feeRegistry: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
2974
2939
  v0_4_0: "0xC094C224ce0406BC338E00837B96aD2e265F7287",
2975
2940
  wrappedNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
2976
2941
  optinFactory: "0x8D6f5479B14348186faE9BC7E636e947c260f9B1"
2942
+ },
2943
+ [9745 /* PlasmaMainnet */]: {
2944
+ feeRegistry: "0xfd9fa4986C6cB8cbce6b632DD7c587EBCcaEDb7A",
2945
+ v0_5_0: "0xa61FAEB94249F08e05e7eD7502D6Ec86297Bc9e4",
2946
+ wrappedNative: "0x6100E367285b01F48D07953803A2d8dCA5D19873",
2947
+ optinFactory: "0xF838E8Bd649fc6fBC48D44E9D87273c0519C45c9"
2948
+ },
2949
+ [137 /* PolygonMainnet */]: {
2950
+ feeRegistry: "0x744F9cA26CD9F6Be5cf79A00b1Ad457145D9F691",
2951
+ v0_5_0: "0x50f30E712D535b796C8543012D0C05218b89c7d5",
2952
+ wrappedNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
2953
+ optinFactory: "0x0C0E287f6e4de685f4b44A5282A3ad4A29D05a91"
2977
2954
  }
2978
2955
  };
2979
2956
  // 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.8";
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.31.3";
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 = undefined;
1964
+ let matchedAbiItem;
1963
1965
  for (const abiItem of abiItems) {
1964
1966
  if (!("inputs" in abiItem))
1965
1967
  continue;
@@ -2556,6 +2558,24 @@ class CacheMissError extends Error {
2556
2558
  this.msg = msg;
2557
2559
  }
2558
2560
  }
2561
+ // src/vault/User.ts
2562
+ class User {
2563
+ address;
2564
+ vault;
2565
+ hasDepositRequestOnboarded;
2566
+ hasRedeemRequestOnboarded;
2567
+ constructor({
2568
+ address,
2569
+ vault,
2570
+ hasDepositRequestOnboarded,
2571
+ hasRedeemRequestOnboarded
2572
+ }) {
2573
+ this.address = address;
2574
+ this.vault = vault;
2575
+ this.hasDepositRequestOnboarded = hasDepositRequestOnboarded;
2576
+ this.hasRedeemRequestOnboarded = hasRedeemRequestOnboarded;
2577
+ }
2578
+ }
2559
2579
  // src/proxy/DelayProxyAdmin.ts
2560
2580
  class DelayProxyAdmin {
2561
2581
  address;
@@ -2612,16 +2632,8 @@ var ChainId;
2612
2632
  ChainId2[ChainId2["ArbitrumMainnet"] = 42161] = "ArbitrumMainnet";
2613
2633
  ChainId2[ChainId2["OptimismMainnet"] = 10] = "OptimismMainnet";
2614
2634
  ChainId2[ChainId2["WorldChainMainnet"] = 480] = "WorldChainMainnet";
2615
- ChainId2[ChainId2["FraxtalMainnet"] = 252] = "FraxtalMainnet";
2616
- ChainId2[ChainId2["ScrollMainnet"] = 534352] = "ScrollMainnet";
2617
- ChainId2[ChainId2["InkMainnet"] = 57073] = "InkMainnet";
2618
2635
  ChainId2[ChainId2["UnichainMainnet"] = 130] = "UnichainMainnet";
2619
2636
  ChainId2[ChainId2["SonicMainnet"] = 146] = "SonicMainnet";
2620
- ChainId2[ChainId2["HemiMainnet"] = 43111] = "HemiMainnet";
2621
- ChainId2[ChainId2["ModeMainnet"] = 34443] = "ModeMainnet";
2622
- ChainId2[ChainId2["CornMainnet"] = 21000000] = "CornMainnet";
2623
- ChainId2[ChainId2["PlumeMainnet"] = 98866] = "PlumeMainnet";
2624
- ChainId2[ChainId2["CampMainnet"] = 123420001114] = "CampMainnet";
2625
2637
  ChainId2[ChainId2["BerachainMainnet"] = 80094] = "BerachainMainnet";
2626
2638
  ChainId2[ChainId2["MantleMainnet"] = 5000] = "MantleMainnet";
2627
2639
  ChainId2[ChainId2["AvalancheMainnet"] = 43114] = "AvalancheMainnet";
@@ -2629,7 +2641,8 @@ var ChainId;
2629
2641
  ChainId2[ChainId2["KatanaMainnet"] = 747474] = "KatanaMainnet";
2630
2642
  ChainId2[ChainId2["BscMainnet"] = 56] = "BscMainnet";
2631
2643
  ChainId2[ChainId2["HyperEVMMainnet"] = 999] = "HyperEVMMainnet";
2632
- ChainId2[ChainId2["Linea"] = 59144] = "Linea";
2644
+ ChainId2[ChainId2["LineaMainnet"] = 59144] = "LineaMainnet";
2645
+ ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
2633
2646
  })(ChainId ||= {});
2634
2647
  var ChainUtils;
2635
2648
  ((ChainUtils) => {
@@ -2688,27 +2701,6 @@ var ChainUtils;
2688
2701
  explorerUrl: "https://worldscan.org",
2689
2702
  identifier: "worldchain"
2690
2703
  },
2691
- [252 /* FraxtalMainnet */]: {
2692
- name: "Fraxtal",
2693
- id: 252 /* FraxtalMainnet */,
2694
- nativeCurrency: { name: "Frax Ether", symbol: "frxETH", decimals: 18 },
2695
- explorerUrl: "https://fraxscan.com",
2696
- identifier: "fraxtal"
2697
- },
2698
- [534352 /* ScrollMainnet */]: {
2699
- name: "Scroll",
2700
- id: 534352 /* ScrollMainnet */,
2701
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2702
- explorerUrl: "https://scrollscan.com",
2703
- identifier: "scroll"
2704
- },
2705
- [57073 /* InkMainnet */]: {
2706
- name: "Ink",
2707
- id: 57073 /* InkMainnet */,
2708
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2709
- explorerUrl: "https://explorer.inkonchain.com",
2710
- identifier: "ink"
2711
- },
2712
2704
  [130 /* UnichainMainnet */]: {
2713
2705
  name: "Unichain",
2714
2706
  id: 130 /* UnichainMainnet */,
@@ -2723,41 +2715,6 @@ var ChainUtils;
2723
2715
  explorerUrl: "https://sonicscan.org",
2724
2716
  identifier: "sonic"
2725
2717
  },
2726
- [43111 /* HemiMainnet */]: {
2727
- name: "Hemi",
2728
- id: 43111 /* HemiMainnet */,
2729
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2730
- explorerUrl: "https://explorer.hemi.xyz",
2731
- identifier: "hemi"
2732
- },
2733
- [34443 /* ModeMainnet */]: {
2734
- name: "Mode",
2735
- id: 34443 /* ModeMainnet */,
2736
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
2737
- explorerUrl: "https://modescan.io",
2738
- identifier: "mode"
2739
- },
2740
- [21000000 /* CornMainnet */]: {
2741
- name: "Corn",
2742
- id: 21000000 /* CornMainnet */,
2743
- nativeCurrency: { name: "Bitcoin", symbol: "BTCN", decimals: 18 },
2744
- explorerUrl: "https://cornscan.io",
2745
- identifier: "corn"
2746
- },
2747
- [98866 /* PlumeMainnet */]: {
2748
- name: "Plume",
2749
- id: 98866 /* PlumeMainnet */,
2750
- nativeCurrency: { name: "Plume", symbol: "PLUME", decimals: 18 },
2751
- explorerUrl: "https://phoenix-explorer.plumenetwork.xyz",
2752
- identifier: "plume"
2753
- },
2754
- [123420001114 /* CampMainnet */]: {
2755
- name: "Camp",
2756
- id: 123420001114 /* CampMainnet */,
2757
- nativeCurrency: { name: "Camp", symbol: "CAMP", decimals: 18 },
2758
- explorerUrl: "https://basecamp.cloud.blockscout.com/",
2759
- identifier: "camp"
2760
- },
2761
2718
  [80094 /* BerachainMainnet */]: {
2762
2719
  name: "Berachain",
2763
2720
  id: 80094 /* BerachainMainnet */,
@@ -2807,12 +2764,19 @@ var ChainUtils;
2807
2764
  explorerUrl: "https://hyperevmscan.io/",
2808
2765
  identifier: "hyperevm"
2809
2766
  },
2810
- [59144 /* Linea */]: {
2767
+ [59144 /* LineaMainnet */]: {
2811
2768
  name: "Linea Mainnet",
2812
- id: 59144 /* Linea */,
2769
+ id: 59144 /* LineaMainnet */,
2813
2770
  nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
2814
2771
  explorerUrl: "https://lineascan.build",
2815
2772
  identifier: "linea"
2773
+ },
2774
+ [9745 /* PlasmaMainnet */]: {
2775
+ name: "Plasma Mainnet Beta",
2776
+ id: 9745 /* PlasmaMainnet */,
2777
+ nativeCurrency: { name: "XPL", symbol: "XPL", decimals: 18 },
2778
+ explorerUrl: "https://plasmascan.to/",
2779
+ identifier: "plasma"
2816
2780
  }
2817
2781
  };
2818
2782
  })(ChainUtils ||= {});
@@ -2912,11 +2876,23 @@ var addresses = {
2912
2876
  wrappedNative: "0x5555555555555555555555555555555555555555",
2913
2877
  optinFactory: "0x90beB507A1BA7D64633540cbce615B574224CD84"
2914
2878
  },
2915
- [59144 /* Linea */]: {
2879
+ [59144 /* LineaMainnet */]: {
2916
2880
  feeRegistry: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
2917
2881
  v0_4_0: "0xC094C224ce0406BC338E00837B96aD2e265F7287",
2918
2882
  wrappedNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
2919
2883
  optinFactory: "0x8D6f5479B14348186faE9BC7E636e947c260f9B1"
2884
+ },
2885
+ [9745 /* PlasmaMainnet */]: {
2886
+ feeRegistry: "0xfd9fa4986C6cB8cbce6b632DD7c587EBCcaEDb7A",
2887
+ v0_5_0: "0xa61FAEB94249F08e05e7eD7502D6Ec86297Bc9e4",
2888
+ wrappedNative: "0x6100E367285b01F48D07953803A2d8dCA5D19873",
2889
+ optinFactory: "0xF838E8Bd649fc6fBC48D44E9D87273c0519C45c9"
2890
+ },
2891
+ [137 /* PolygonMainnet */]: {
2892
+ feeRegistry: "0x744F9cA26CD9F6Be5cf79A00b1Ad457145D9F691",
2893
+ v0_5_0: "0x50f30E712D535b796C8543012D0C05218b89c7d5",
2894
+ wrappedNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
2895
+ optinFactory: "0x0C0E287f6e4de685f4b44A5282A3ad4A29D05a91"
2920
2896
  }
2921
2897
  };
2922
2898
  // src/utils.ts
@@ -2941,6 +2917,7 @@ export {
2941
2917
  Version,
2942
2918
  VaultUtils,
2943
2919
  Vault,
2920
+ User,
2944
2921
  Token,
2945
2922
  State,
2946
2923
  SettleData,