@pufferfinance/puffer-sdk 1.25.1 → 1.25.2

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.
Files changed (97) hide show
  1. package/dist/api/puffer-client-helpers.cjs +1 -1
  2. package/dist/api/puffer-client-helpers.js +3 -3
  3. package/dist/api/puffer-client.cjs +1 -1
  4. package/dist/api/puffer-client.js +2 -2
  5. package/dist/{ccip-w5ez1DCx.js → ccip-C76-YhQK.js} +4 -4
  6. package/dist/{ccip-w5ez1DCx.js.map → ccip-C76-YhQK.js.map} +1 -1
  7. package/dist/{ccip-FdkpGaX4.cjs → ccip-CEodLZ4s.cjs} +2 -2
  8. package/dist/{ccip-FdkpGaX4.cjs.map → ccip-CEodLZ4s.cjs.map} +1 -1
  9. package/dist/chains/constants.cjs +1 -1
  10. package/dist/chains/constants.d.ts +2 -1
  11. package/dist/chains/constants.js +1 -1
  12. package/dist/{constants-BweLzNUt.js → constants-C9YZ6Ewc.js} +302 -274
  13. package/dist/constants-C9YZ6Ewc.js.map +1 -0
  14. package/dist/{constants-JN89aXws.cjs → constants-CxSgz27h.cjs} +6 -6
  15. package/dist/constants-CxSgz27h.cjs.map +1 -0
  16. package/dist/contracts/addresses.cjs +1 -1
  17. package/dist/contracts/addresses.js +1 -1
  18. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  19. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  20. package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
  21. package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
  22. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  23. package/dist/contracts/handlers/distributor-handler.js +2 -2
  24. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  25. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  26. package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
  27. package/dist/contracts/handlers/guardian-module-handler.js +2 -2
  28. package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
  29. package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
  30. package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
  31. package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
  32. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  33. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  34. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  35. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  36. package/dist/contracts/handlers/lagoon-vault-handler.cjs +1 -1
  37. package/dist/contracts/handlers/lagoon-vault-handler.js +2 -2
  38. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  39. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  40. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  41. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  42. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  43. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  44. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  45. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  46. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  47. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  48. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  49. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  50. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  51. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  52. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  53. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  54. package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
  55. package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
  56. package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
  57. package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
  58. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  59. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  60. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  61. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  62. package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
  63. package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
  64. package/dist/contracts/tokens.cjs +1 -1
  65. package/dist/contracts/tokens.js +1 -1
  66. package/dist/contracts/vaults-addresses.cjs +1 -1
  67. package/dist/contracts/vaults-addresses.cjs.map +1 -1
  68. package/dist/contracts/vaults-addresses.d.ts +3 -0
  69. package/dist/contracts/vaults-addresses.js +4 -1
  70. package/dist/contracts/vaults-addresses.js.map +1 -1
  71. package/dist/{createWalletClient-LeyDLKOH.cjs → createWalletClient-Cct6ojqI.cjs} +2 -2
  72. package/dist/{createWalletClient-LeyDLKOH.cjs.map → createWalletClient-Cct6ojqI.cjs.map} +1 -1
  73. package/dist/{createWalletClient-CYva1_XM.js → createWalletClient-DAuQCrLq.js} +5 -5
  74. package/dist/{createWalletClient-CYva1_XM.js.map → createWalletClient-DAuQCrLq.js.map} +1 -1
  75. package/dist/{getContract-BES7gSby.js → getContract-DEPNMZxg.js} +2 -2
  76. package/dist/{getContract-BES7gSby.js.map → getContract-DEPNMZxg.js.map} +1 -1
  77. package/dist/{getContract-F-fd_vf7.cjs → getContract-DUA3M2pm.cjs} +2 -2
  78. package/dist/{getContract-F-fd_vf7.cjs.map → getContract-DUA3M2pm.cjs.map} +1 -1
  79. package/dist/{localBatchGatewayRequest-CCdxn5t3.js → localBatchGatewayRequest-C0QtijkB.js} +3 -3
  80. package/dist/{localBatchGatewayRequest-CCdxn5t3.js.map → localBatchGatewayRequest-C0QtijkB.js.map} +1 -1
  81. package/dist/{localBatchGatewayRequest-DCWU6kQW.cjs → localBatchGatewayRequest-CKLnLqib.cjs} +2 -2
  82. package/dist/{localBatchGatewayRequest-DCWU6kQW.cjs.map → localBatchGatewayRequest-CKLnLqib.cjs.map} +1 -1
  83. package/dist/main.cjs +1 -1
  84. package/dist/main.js +1 -1
  85. package/dist/{secp256k1-DGP4Y7VW.js → secp256k1-ClOw2ksU.js} +2 -2
  86. package/dist/{secp256k1-DGP4Y7VW.js.map → secp256k1-ClOw2ksU.js.map} +1 -1
  87. package/dist/{secp256k1-QOxLqUEc.cjs → secp256k1-YUzyTLhP.cjs} +2 -2
  88. package/dist/{secp256k1-QOxLqUEc.cjs.map → secp256k1-YUzyTLhP.cjs.map} +1 -1
  89. package/dist/utils/version.cjs +1 -1
  90. package/dist/utils/version.js +1 -1
  91. package/dist/{writeContract-Cqc9vxbU.cjs → writeContract-BfAYISeL.cjs} +4 -4
  92. package/dist/{writeContract-Cqc9vxbU.cjs.map → writeContract-BfAYISeL.cjs.map} +1 -1
  93. package/dist/{writeContract-QAArm5iD.js → writeContract-DkC9wV5p.js} +4 -4
  94. package/dist/{writeContract-QAArm5iD.js.map → writeContract-DkC9wV5p.js.map} +1 -1
  95. package/package.json +1 -1
  96. package/dist/constants-BweLzNUt.js.map +0 -1
  97. package/dist/constants-JN89aXws.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-JN89aXws.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0x228c44bb4885c6633f4b6c83f14622f37d5112e5",CarrotStaker:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",Distributor:"0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae",ValidatorTicket:"0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A",PufferOracleV2:"0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f",PufferProtocol:"0xf7b6B32492c2e13799D921E84202450131bd238B",GuardianModule:"0x628b183F248a142A598AA2dcCCD6f7E480a7CcF2"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",ValidatorTicket:"0xB028194785178a94Fe608994A4d5AD84c285A640",PufferOracleV2:"0x8e043ed3f06720615685d4978770cd5c8fe90fe3",PufferProtocol:"0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD",GuardianModule:"0x0910310130d1c062def8b807528bdac80203bc66"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-CxSgz27h.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0x228c44bb4885c6633f4b6c83f14622f37d5112e5",CarrotStaker:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",Distributor:"0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae",ValidatorTicket:"0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A",PufferOracleV2:"0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f",PufferProtocol:"0xf7b6B32492c2e13799D921E84202450131bd238B",GuardianModule:"0x628b183F248a142A598AA2dcCCD6f7E480a7CcF2"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",ValidatorTicket:"0xB028194785178a94Fe608994A4d5AD84c285A640",PufferOracleV2:"0x8e043ed3f06720615685d4978770cd5c8fe90fe3",PufferProtocol:"0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD",GuardianModule:"0x0910310130d1c062def8b807528bdac80203bc66"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
2
2
  //# sourceMappingURL=addresses.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as e } from "../constants-BweLzNUt.js";
1
+ import { C as e } from "../constants-C9YZ6Ewc.js";
2
2
  const c = {
3
3
  // Casting to number so the consumer can use chain ids. Also not using
4
4
  // a generic type for the variable so the consumer knows which
@@ -1,2 +1,2 @@
1
- "use strict";var s=Object.defineProperty;var c=(a,t,e)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var r=(a,t,e)=>c(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-JN89aXws.cjs"),i=require("../tokens.cjs"),l=require("../abis/mainnet/CarrotStaker.cjs"),h=require("../../getContract-F-fd_vf7.cjs");class C{constructor(t,e,n){r(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t]}getContract(){const t=i.TOKENS_ADDRESSES[i.Token.sCARROT][this.chain],e=l.CarrotStaker,n={public:this.publicClient,wallet:this.walletClient};return h.getContract({address:t,abi:e,client:n})}allowance(t,e){return this.getContract().read.allowance([t,e])}balanceOf(t){return this.getContract().read.balanceOf([t])}decimals(){return this.getContract().read.decimals()}isUnstakingAllowed(){return this.getContract().read.isUnstakingAllowed()}totalSupply(){return this.getContract().read.totalSupply()}stake(t,e){return this.getContract().write.stake([e],{account:t,chain:this.viemChain})}unstake(t,e,n){return this.getContract().write.unstake([e,n],{account:t,chain:this.viemChain})}}exports.CarrotStakingHandler=C;
1
+ "use strict";var s=Object.defineProperty;var c=(a,t,e)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var r=(a,t,e)=>c(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-CxSgz27h.cjs"),i=require("../tokens.cjs"),l=require("../abis/mainnet/CarrotStaker.cjs"),h=require("../../getContract-DUA3M2pm.cjs");class C{constructor(t,e,n){r(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t]}getContract(){const t=i.TOKENS_ADDRESSES[i.Token.sCARROT][this.chain],e=l.CarrotStaker,n={public:this.publicClient,wallet:this.walletClient};return h.getContract({address:t,abi:e,client:n})}allowance(t,e){return this.getContract().read.allowance([t,e])}balanceOf(t){return this.getContract().read.balanceOf([t])}decimals(){return this.getContract().read.decimals()}isUnstakingAllowed(){return this.getContract().read.isUnstakingAllowed()}totalSupply(){return this.getContract().read.totalSupply()}stake(t,e){return this.getContract().write.stake([e],{account:t,chain:this.viemChain})}unstake(t,e,n){return this.getContract().write.unstake([e,n],{account:t,chain:this.viemChain})}}exports.CarrotStakingHandler=C;
2
2
  //# sourceMappingURL=carrot-staking-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var n = Object.defineProperty;
2
2
  var s = (a, t, e) => t in a ? n(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var i = (a, t, e) => s(a, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as l } from "../../constants-BweLzNUt.js";
4
+ import { V as l } from "../../constants-C9YZ6Ewc.js";
5
5
  import { TOKENS_ADDRESSES as o, Token as c } from "../tokens.js";
6
6
  import { CarrotStaker as h } from "../abis/mainnet/CarrotStaker.js";
7
- import { g as C } from "../../getContract-BES7gSby.js";
7
+ import { g as C } from "../../getContract-DEPNMZxg.js";
8
8
  class k {
9
9
  /**
10
10
  * Create the handler for the `CarrotStaker` contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var a=Object.defineProperty;var c=(i,t,e)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-JN89aXws.cjs"),s=require("../abis/mainnet/ConcreteMultiStrategyVault.cjs"),l=require("../tokens.cjs"),h=require("../vaults-addresses.cjs"),u=require("../../getContract-F-fd_vf7.cjs");class C{constructor(t,e,n){r(this,"viemChain");r(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t],this.token=l.Token.ctTACpufETH}withToken(t){return this.token=t,this}getContract(){const t=h.VAULTS_ADDRESSES[this.token][this.chain].ConcreteMultiStrategyVault,e=s.ConcreteMultiStrategyVault,n={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:t,abi:e,client:n})}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}getBalance(t){return this.getContract().read.balanceOf([t])}getTotalSupply(){return this.getContract().read.totalSupply()}deposit(t){return this.getContract().write.deposit([t],{account:this.walletClient.account,chain:this.viemChain})}withdraw(t){return this.getContract().write.withdraw([t],{account:this.walletClient.account,chain:this.viemChain})}redeem(t,e,n){return e&&n?this.getContract().write.redeem([t,e,n],{account:this.walletClient.account,chain:this.viemChain}):this.getContract().write.redeem([t],{account:this.walletClient.account,chain:this.viemChain})}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}}exports.ConcreteVaultHandler=C;
1
+ "use strict";var a=Object.defineProperty;var c=(i,t,e)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-CxSgz27h.cjs"),s=require("../abis/mainnet/ConcreteMultiStrategyVault.cjs"),l=require("../tokens.cjs"),h=require("../vaults-addresses.cjs"),u=require("../../getContract-DUA3M2pm.cjs");class C{constructor(t,e,n){r(this,"viemChain");r(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t],this.token=l.Token.ctTACpufETH}withToken(t){return this.token=t,this}getContract(){const t=h.VAULTS_ADDRESSES[this.token][this.chain].ConcreteMultiStrategyVault,e=s.ConcreteMultiStrategyVault,n={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:t,abi:e,client:n})}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}getBalance(t){return this.getContract().read.balanceOf([t])}getTotalSupply(){return this.getContract().read.totalSupply()}deposit(t){return this.getContract().write.deposit([t],{account:this.walletClient.account,chain:this.viemChain})}withdraw(t){return this.getContract().write.withdraw([t],{account:this.walletClient.account,chain:this.viemChain})}redeem(t,e,n){return e&&n?this.getContract().write.redeem([t,e,n],{account:this.walletClient.account,chain:this.viemChain}):this.getContract().write.redeem([t],{account:this.walletClient.account,chain:this.viemChain})}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}}exports.ConcreteVaultHandler=C;
2
2
  //# sourceMappingURL=concrete-vault-handler.cjs.map
@@ -1,11 +1,11 @@
1
1
  var a = Object.defineProperty;
2
2
  var o = (i, t, e) => t in i ? a(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var n = (i, t, e) => o(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as c } from "../../constants-BweLzNUt.js";
4
+ import { V as c } from "../../constants-C9YZ6Ewc.js";
5
5
  import { ConcreteMultiStrategyVault as h } from "../abis/mainnet/ConcreteMultiStrategyVault.js";
6
6
  import { Token as l } from "../tokens.js";
7
7
  import { VAULTS_ADDRESSES as s } from "../vaults-addresses.js";
8
- import { g as u } from "../../getContract-BES7gSby.js";
8
+ import { g as u } from "../../getContract-DEPNMZxg.js";
9
9
  class v {
10
10
  /**
11
11
  * Create the handler for processing UniFi tokens.
@@ -1,2 +1,2 @@
1
- "use strict";var o=Object.defineProperty;var c=(i,t,e)=>t in i?o(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var s=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../constants-JN89aXws.cjs"),l=require("../addresses.cjs"),h=require("../abis/mainnet/Distributor.cjs"),C=require("../../getContract-F-fd_vf7.cjs");class d{constructor(t,e,r){s(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=u.VIEM_CHAINS[t]}getContract(){const t=l.CONTRACT_ADDRESSES[this.chain].Distributor,e=h.Distributor,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}claim(t,{users:e,tokens:r,amounts:n,proofs:a}){return this.getContract().write.claim([e,r,n,a],{account:t,chain:this.viemChain})}async claimed(t,e){const[r,n,a]=await this.getContract().read.claimed([t,e]);return{amount:r,timestamp:BigInt(n),merkleRoot:a}}core(){return this.getContract().read.core()}disputeAmount(){return this.getContract().read.disputeAmount()}disputePeriod(){return this.getContract().read.disputePeriod()}disputeToken(){return this.getContract().read.disputeToken()}disputeTree(t,e){return this.getContract().write.disputeTree([e],{account:t,chain:this.viemChain})}disputer(){return this.getContract().read.disputer()}endOfDisputePeriod(){return this.getContract().read.endOfDisputePeriod()}getMerkleRoot(){return this.getContract().read.getMerkleRoot()}async lastTree(){const[t,e]=await this.getContract().read.lastTree();return{merkleRoot:t,ipfsHash:e}}onlyOperatorCanClaim(t){return this.getContract().read.onlyOperatorCanClaim([t])}toggleOnlyOperatorCanClaim(t,e){return this.getContract().write.toggleOnlyOperatorCanClaim([e],{account:t,chain:this.viemChain})}toggleOperator(t,e,r){return this.getContract().write.toggleOperator([e,r],{account:t,chain:this.viemChain})}toggleTrusted(t,e){return this.getContract().write.toggleTrusted([e],{account:t,chain:this.viemChain})}async tree(){const[t,e]=await this.getContract().read.tree();return{merkleRoot:t,ipfsHash:e}}}exports.DistributorHandler=d;
1
+ "use strict";var o=Object.defineProperty;var c=(i,t,e)=>t in i?o(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var s=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../constants-CxSgz27h.cjs"),l=require("../addresses.cjs"),h=require("../abis/mainnet/Distributor.cjs"),C=require("../../getContract-DUA3M2pm.cjs");class d{constructor(t,e,r){s(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=u.VIEM_CHAINS[t]}getContract(){const t=l.CONTRACT_ADDRESSES[this.chain].Distributor,e=h.Distributor,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}claim(t,{users:e,tokens:r,amounts:n,proofs:a}){return this.getContract().write.claim([e,r,n,a],{account:t,chain:this.viemChain})}async claimed(t,e){const[r,n,a]=await this.getContract().read.claimed([t,e]);return{amount:r,timestamp:BigInt(n),merkleRoot:a}}core(){return this.getContract().read.core()}disputeAmount(){return this.getContract().read.disputeAmount()}disputePeriod(){return this.getContract().read.disputePeriod()}disputeToken(){return this.getContract().read.disputeToken()}disputeTree(t,e){return this.getContract().write.disputeTree([e],{account:t,chain:this.viemChain})}disputer(){return this.getContract().read.disputer()}endOfDisputePeriod(){return this.getContract().read.endOfDisputePeriod()}getMerkleRoot(){return this.getContract().read.getMerkleRoot()}async lastTree(){const[t,e]=await this.getContract().read.lastTree();return{merkleRoot:t,ipfsHash:e}}onlyOperatorCanClaim(t){return this.getContract().read.onlyOperatorCanClaim([t])}toggleOnlyOperatorCanClaim(t,e){return this.getContract().write.toggleOnlyOperatorCanClaim([e],{account:t,chain:this.viemChain})}toggleOperator(t,e,r){return this.getContract().write.toggleOperator([e,r],{account:t,chain:this.viemChain})}toggleTrusted(t,e){return this.getContract().write.toggleTrusted([e],{account:t,chain:this.viemChain})}async tree(){const[t,e]=await this.getContract().read.tree();return{merkleRoot:t,ipfsHash:e}}}exports.DistributorHandler=d;
2
2
  //# sourceMappingURL=distributor-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var s = Object.defineProperty;
2
2
  var c = (i, t, e) => t in i ? s(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var o = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as h } from "../../constants-BweLzNUt.js";
4
+ import { V as h } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as l } from "../addresses.js";
6
6
  import { Distributor as u } from "../abis/mainnet/Distributor.js";
7
- import { g as C } from "../../getContract-BES7gSby.js";
7
+ import { g as C } from "../../getContract-DEPNMZxg.js";
8
8
  class O {
9
9
  /**
10
10
  * Create the handler for the Distributor contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty;var d=(i,t,e)=>t in i?p(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var c=(i,t,e)=>d(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-JN89aXws.cjs"),s=require("../tokens.cjs"),g=require("../../utils/time.cjs"),S=require("../abis/mainnet/ERC20Permit.cjs"),y=require("../../getContract-F-fd_vf7.cjs"),C=require("../../secp256k1-QOxLqUEc.cjs");function E(i){const{r:t,s:e}=C.secp256k1.Signature.fromCompact(i.slice(2,130)),n=+`0x${i.slice(130)}`,[r,o]=(()=>{if(n===0||n===1)return[void 0,n];if(n===27)return[BigInt(n),0];if(n===28)return[BigInt(n),1];throw new Error("Invalid yParityOrV value")})();return typeof r<"u"?{r:a.numberToHex(t,{size:32}),s:a.numberToHex(e,{size:32}),v:r,yParity:o}:{r:a.numberToHex(t,{size:32}),s:a.numberToHex(e,{size:32}),yParity:o}}class T{constructor(t,e,n){c(this,"viemChain");c(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=a.VIEM_CHAINS[t],this.token=s.Token.WETH}withToken(t){return this.token=t,this}getContract(){const t=s.TOKENS_ADDRESSES[this.token][this.chain],e=S.ERC20Permit,n={public:this.publicClient,wallet:this.walletClient};return y.getContract({address:t,abi:e,client:n})}async getPermitSignature(t,e,n){const r=this.getContract(),o=await r.read.nonces([t]),m={name:await r.read.name(),version:this.getPermitVersion(this.token),chainId:this.chain,verifyingContract:s.TOKENS_ADDRESSES[this.token][this.chain],salt:this.getPermitSalt(this.token)},h={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},u=BigInt(g.getTimestampInSeconds()+60*60*2),l=await this.walletClient.signTypedData({account:t,domain:m,types:h,primaryType:"Permit",message:{owner:t,spender:e,value:n,nonce:o,deadline:u}});return{...E(l),deadline:u}}approve(t,e,n){return this.getContract().write.approve([e,n],{account:t,chain:this.viemChain})}getPermitVersion(t){return s.TOKENS_PERMIT_VERSION[t]}getPermitSalt(t){var e,n;return(n=(e=s.TOKENS_SALT)==null?void 0:e[t])==null?void 0:n[this.chain]}}exports.ERC20PermitHandler=T;
1
+ "use strict";var p=Object.defineProperty;var d=(i,t,e)=>t in i?p(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var c=(i,t,e)=>d(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-CxSgz27h.cjs"),s=require("../tokens.cjs"),g=require("../../utils/time.cjs"),S=require("../abis/mainnet/ERC20Permit.cjs"),y=require("../../getContract-DUA3M2pm.cjs"),C=require("../../secp256k1-YUzyTLhP.cjs");function E(i){const{r:t,s:e}=C.secp256k1.Signature.fromCompact(i.slice(2,130)),n=+`0x${i.slice(130)}`,[r,o]=(()=>{if(n===0||n===1)return[void 0,n];if(n===27)return[BigInt(n),0];if(n===28)return[BigInt(n),1];throw new Error("Invalid yParityOrV value")})();return typeof r<"u"?{r:a.numberToHex(t,{size:32}),s:a.numberToHex(e,{size:32}),v:r,yParity:o}:{r:a.numberToHex(t,{size:32}),s:a.numberToHex(e,{size:32}),yParity:o}}class T{constructor(t,e,n){c(this,"viemChain");c(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=a.VIEM_CHAINS[t],this.token=s.Token.WETH}withToken(t){return this.token=t,this}getContract(){const t=s.TOKENS_ADDRESSES[this.token][this.chain],e=S.ERC20Permit,n={public:this.publicClient,wallet:this.walletClient};return y.getContract({address:t,abi:e,client:n})}async getPermitSignature(t,e,n){const r=this.getContract(),o=await r.read.nonces([t]),m={name:await r.read.name(),version:this.getPermitVersion(this.token),chainId:this.chain,verifyingContract:s.TOKENS_ADDRESSES[this.token][this.chain],salt:this.getPermitSalt(this.token)},h={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},u=BigInt(g.getTimestampInSeconds()+60*60*2),l=await this.walletClient.signTypedData({account:t,domain:m,types:h,primaryType:"Permit",message:{owner:t,spender:e,value:n,nonce:o,deadline:u}});return{...E(l),deadline:u}}approve(t,e,n){return this.getContract().write.approve([e,n],{account:t,chain:this.viemChain})}getPermitVersion(t){return s.TOKENS_PERMIT_VERSION[t]}getPermitSalt(t){var e,n;return(n=(e=s.TOKENS_SALT)==null?void 0:e[t])==null?void 0:n[this.chain]}}exports.ERC20PermitHandler=T;
2
2
  //# sourceMappingURL=erc20-permit-handler.cjs.map
@@ -1,12 +1,12 @@
1
1
  var l = Object.defineProperty;
2
2
  var d = (i, t, e) => t in i ? l(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var o = (i, t, e) => d(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { n as s, V as g } from "../../constants-BweLzNUt.js";
4
+ import { n as s, V as g } from "../../constants-C9YZ6Ewc.js";
5
5
  import { Token as y, TOKENS_ADDRESSES as m, TOKENS_PERMIT_VERSION as C, TOKENS_SALT as f } from "../tokens.js";
6
6
  import { getTimestampInSeconds as S } from "../../utils/time.js";
7
7
  import { ERC20Permit as P } from "../abis/mainnet/ERC20Permit.js";
8
- import { g as E } from "../../getContract-BES7gSby.js";
9
- import { secp256k1 as T } from "../../secp256k1-DGP4Y7VW.js";
8
+ import { g as E } from "../../getContract-DEPNMZxg.js";
9
+ import { secp256k1 as T } from "../../secp256k1-ClOw2ksU.js";
10
10
  function v(i) {
11
11
  const { r: t, s: e } = T.Signature.fromCompact(i.slice(2, 130)), n = +`0x${i.slice(130)}`, [r, a] = (() => {
12
12
  if (n === 0 || n === 1)
@@ -1,2 +1,2 @@
1
- "use strict";var i=Object.defineProperty;var s=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>s(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../constants-JN89aXws.cjs"),u=require("../addresses.cjs"),c=require("../abis/mainnet/GuardianModule.cjs"),o=require("../../getContract-F-fd_vf7.cjs");class l{constructor(e,t,a){n(this,"viemChain");this.chain=e,this.walletClient=t,this.publicClient=a,this.viemChain=d.VIEM_CHAINS[e]}getContract(){const e=u.CONTRACT_ADDRESSES[this.chain].GuardianModule,t=c.GuardianModule,a={public:this.publicClient,wallet:this.walletClient};return o.getContract({address:e,abi:t,client:a})}getEjectionThreshold(){return this.getContract().read.getEjectionThreshold()}getGuardians(){return this.getContract().read.getGuardians()}getGuardiansEnclaveAddress(e){return this.getContract().read.getGuardiansEnclaveAddress([e])}getGuardiansEnclaveAddresses(){return this.getContract().read.getGuardiansEnclaveAddresses()}getGuardiansEnclavePubkeys(){return this.getContract().read.getGuardiansEnclavePubkeys()}validateGuardiansEnclaveSignatures(e,t){return this.getContract().read.validateGuardiansEnclaveSignatures([e,t])}getMrenclave(){return this.getContract().read.getMrenclave()}getMrsigner(){return this.getContract().read.getMrsigner()}getThreshold(){return this.getContract().read.getThreshold()}isConsumingScheduledOp(){return this.getContract().read.isConsumingScheduledOp()}isGuardian(e){return this.getContract().read.isGuardian([e])}removeGuardian(e,t){return this.getContract().write.removeGuardian([e],{account:t,chain:this.viemChain})}}exports.GuardianModuleHandler=l;
1
+ "use strict";var i=Object.defineProperty;var s=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>s(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../constants-CxSgz27h.cjs"),u=require("../addresses.cjs"),c=require("../abis/mainnet/GuardianModule.cjs"),o=require("../../getContract-DUA3M2pm.cjs");class l{constructor(e,t,a){n(this,"viemChain");this.chain=e,this.walletClient=t,this.publicClient=a,this.viemChain=d.VIEM_CHAINS[e]}getContract(){const e=u.CONTRACT_ADDRESSES[this.chain].GuardianModule,t=c.GuardianModule,a={public:this.publicClient,wallet:this.walletClient};return o.getContract({address:e,abi:t,client:a})}getEjectionThreshold(){return this.getContract().read.getEjectionThreshold()}getGuardians(){return this.getContract().read.getGuardians()}getGuardiansEnclaveAddress(e){return this.getContract().read.getGuardiansEnclaveAddress([e])}getGuardiansEnclaveAddresses(){return this.getContract().read.getGuardiansEnclaveAddresses()}getGuardiansEnclavePubkeys(){return this.getContract().read.getGuardiansEnclavePubkeys()}validateGuardiansEnclaveSignatures(e,t){return this.getContract().read.validateGuardiansEnclaveSignatures([e,t])}getMrenclave(){return this.getContract().read.getMrenclave()}getMrsigner(){return this.getContract().read.getMrsigner()}getThreshold(){return this.getContract().read.getThreshold()}isConsumingScheduledOp(){return this.getContract().read.isConsumingScheduledOp()}isGuardian(e){return this.getContract().read.isGuardian([e])}removeGuardian(e,t){return this.getContract().write.removeGuardian([e],{account:t,chain:this.viemChain})}}exports.GuardianModuleHandler=l;
2
2
  //# sourceMappingURL=guardian-module-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var i = Object.defineProperty;
2
2
  var s = (r, t, e) => t in r ? i(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var n = (r, t, e) => s(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as d } from "../../constants-BweLzNUt.js";
4
+ import { V as d } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as u } from "../addresses.js";
6
6
  import { GuardianModule as o } from "../abis/mainnet/GuardianModule.js";
7
- import { g as c } from "../../getContract-BES7gSby.js";
7
+ import { g as c } from "../../getContract-DEPNMZxg.js";
8
8
  class G {
9
9
  /**
10
10
  * Create the handler for the `PufLocker` contract exposing methods to
@@ -1,2 +1,2 @@
1
- "use strict";var d=Object.defineProperty;var h=(s,t,e)=>t in s?d(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var c=(s,t,e)=>h(s,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../abis/mainnet/InstitutionalAccessManager.cjs"),n=require("../../constants-JN89aXws.cjs"),g=require("../../errors/validation-errors.cjs"),C=require("../../getContract-F-fd_vf7.cjs"),b=require("../../writeContract-Cqc9vxbU.cjs");class R{constructor(t,e,r){c(this,"viemChain");c(this,"address");c(this,"selectorsMap",{"0x6056b271":"completeQueuedWithdrawals((address,address,address,uint256,uint32,address[],uint256[])[],bool[])","0x29d85402":"customExternalCall(address,bytes,uint256)","0x6e553f65":"deposit(uint256,address)","0x2d2da806":"depositETH(address)","0xba087652":"redeem(uint256,address,address)","0xb460af94":"withdraw(uint256,address,address)","0xa9059cbb":"transfer(address,uint256)","0x23b872dd":"transferFrom(address,address,uint256)","0x94bf804d":"mint(uint256,address)","0x61c17990":"startRestakingValidators(bytes[],bytes[],bytes32[])","0x3e5e60c6":"startNonRestakingValidators(bytes[],bytes[],bytes32[])","0x852aa33d":"queueWithdrawals(uint256)","0xad0cdf3e":"setValidatorsETH(uint128,uint128)"});this.walletClient=e,this.publicClient=r,this.viemChain=n.VIEM_CHAINS[t]}withAddress(t){return this.address=t,this}getAddress(){return this.address}getContract(){if(!this.address)throw new g.InvalidContractAddressError("No address specified for the contract",{fixMessage:"Set the contract address in the handler by using the setAddress method"});const t=u.InstitutionalAccessManager,e={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:this.address,abi:t,client:e})}getAdminRole(){return this.getContract().read.ADMIN_ROLE()}getPublicRole(){return this.getContract().read.PUBLIC_ROLE()}async canCall(t,e,r){const[a,i]=await this.getContract().read.canCall([t,e,r]);return{canCall:a,canCallDelay:i}}cancel(t,e,r){return this.getContract().write.cancel([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}execute(t,e,r){return this.getContract().write.execute([t,e],{account:this.walletClient.account,chain:this.viemChain,value:r})}async getAccess(t,e){const r=this.processRoleIdOrLabel(t),[a,i,o,l]=await this.getContract().read.getAccess([r,e]);return{since:a,currentDelay:i,pendingDelay:o,effect:l}}getNonce(t){return this.getContract().read.getNonce([t])}getRoleAdmin(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleAdmin([e])}getRoleGrantDelay(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleGrantDelay([e])}getRoleGuardian(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleGuardian([e])}getSchedule(t){return this.getContract().read.getSchedule([t])}getTargetAdminDelay(t){return this.getContract().read.getTargetAdminDelay([t])}getTargetFunctionRole(t,e){return this.getContract().read.getTargetFunctionRole([t,e])}grantRole(t,e,r){const a=this.processRoleIdOrLabel(t);return this.getContract().write.grantRole([a,e,r],{account:this.walletClient.account,chain:this.viemChain})}async hasRole(t,e){const r=this.processRoleIdOrLabel(t),[a,i]=await this.getContract().read.hasRole([r,e]);return{isMember:a,executionDelay:i}}hashOperation(t,e,r){return this.getContract().read.hashOperation([t,e,r])}isTargetClosed(t){return this.getContract().read.isTargetClosed([t])}labelRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.labelRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}getMinSetback(){return this.getContract().read.minSetback()}multicall(t){return this.getContract().write.multicall([t],{account:this.walletClient.account,chain:this.viemChain})}renounceRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.renounceRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}revokeRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.revokeRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}schedule(t,e,r){return this.getContract().write.schedule([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}setGrantDelay(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setGrantDelay([r,e],{account:this.walletClient.account,chain:this.viemChain})}setRoleAdmin(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setRoleAdmin([r,e],{account:this.walletClient.account,chain:this.viemChain})}setRoleGuardian(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setRoleGuardian([r,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetAdminDelay(t,e){return this.getContract().write.setTargetAdminDelay([t,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetClosed(t,e){return this.getContract().write.setTargetClosed([t,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetFunctionRole(t,e,r){const a=this.processRoleIdOrLabel(r);return this.getContract().write.setTargetFunctionRole([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}updateAuthority(t,e){return this.getContract().write.updateAuthority([t,e],{account:this.walletClient.account,chain:this.viemChain})}labelToRoleId(t){const r=n.stringToBytes(t).reverse(),a=n.bytesToHex(r);return n.hexToBigInt(a)}roleIdToLabel(t){const e=n.toHex(t),r=n.toBytes(e).reverse();return b.bytesToString(r)}getSelectorFromFunctionName(t){var e;return(e=Object.entries(this.selectorsMap).find(([,r])=>r.includes(t)))==null?void 0:e[0]}getFunctionNameFromSelector(t){var e;return(e=Object.entries(this.selectorsMap).find(([r])=>r===t))==null?void 0:e[1]}processRoleIdOrLabel(t){return typeof t=="string"?this.labelToRoleId(t):t}}exports.InstitutionalAccessManagerHandler=R;
1
+ "use strict";var d=Object.defineProperty;var h=(s,t,e)=>t in s?d(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var c=(s,t,e)=>h(s,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../abis/mainnet/InstitutionalAccessManager.cjs"),n=require("../../constants-CxSgz27h.cjs"),g=require("../../errors/validation-errors.cjs"),C=require("../../getContract-DUA3M2pm.cjs"),b=require("../../writeContract-BfAYISeL.cjs");class R{constructor(t,e,r){c(this,"viemChain");c(this,"address");c(this,"selectorsMap",{"0x6056b271":"completeQueuedWithdrawals((address,address,address,uint256,uint32,address[],uint256[])[],bool[])","0x29d85402":"customExternalCall(address,bytes,uint256)","0x6e553f65":"deposit(uint256,address)","0x2d2da806":"depositETH(address)","0xba087652":"redeem(uint256,address,address)","0xb460af94":"withdraw(uint256,address,address)","0xa9059cbb":"transfer(address,uint256)","0x23b872dd":"transferFrom(address,address,uint256)","0x94bf804d":"mint(uint256,address)","0x61c17990":"startRestakingValidators(bytes[],bytes[],bytes32[])","0x3e5e60c6":"startNonRestakingValidators(bytes[],bytes[],bytes32[])","0x852aa33d":"queueWithdrawals(uint256)","0xad0cdf3e":"setValidatorsETH(uint128,uint128)"});this.walletClient=e,this.publicClient=r,this.viemChain=n.VIEM_CHAINS[t]}withAddress(t){return this.address=t,this}getAddress(){return this.address}getContract(){if(!this.address)throw new g.InvalidContractAddressError("No address specified for the contract",{fixMessage:"Set the contract address in the handler by using the setAddress method"});const t=u.InstitutionalAccessManager,e={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:this.address,abi:t,client:e})}getAdminRole(){return this.getContract().read.ADMIN_ROLE()}getPublicRole(){return this.getContract().read.PUBLIC_ROLE()}async canCall(t,e,r){const[a,i]=await this.getContract().read.canCall([t,e,r]);return{canCall:a,canCallDelay:i}}cancel(t,e,r){return this.getContract().write.cancel([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}execute(t,e,r){return this.getContract().write.execute([t,e],{account:this.walletClient.account,chain:this.viemChain,value:r})}async getAccess(t,e){const r=this.processRoleIdOrLabel(t),[a,i,o,l]=await this.getContract().read.getAccess([r,e]);return{since:a,currentDelay:i,pendingDelay:o,effect:l}}getNonce(t){return this.getContract().read.getNonce([t])}getRoleAdmin(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleAdmin([e])}getRoleGrantDelay(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleGrantDelay([e])}getRoleGuardian(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleGuardian([e])}getSchedule(t){return this.getContract().read.getSchedule([t])}getTargetAdminDelay(t){return this.getContract().read.getTargetAdminDelay([t])}getTargetFunctionRole(t,e){return this.getContract().read.getTargetFunctionRole([t,e])}grantRole(t,e,r){const a=this.processRoleIdOrLabel(t);return this.getContract().write.grantRole([a,e,r],{account:this.walletClient.account,chain:this.viemChain})}async hasRole(t,e){const r=this.processRoleIdOrLabel(t),[a,i]=await this.getContract().read.hasRole([r,e]);return{isMember:a,executionDelay:i}}hashOperation(t,e,r){return this.getContract().read.hashOperation([t,e,r])}isTargetClosed(t){return this.getContract().read.isTargetClosed([t])}labelRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.labelRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}getMinSetback(){return this.getContract().read.minSetback()}multicall(t){return this.getContract().write.multicall([t],{account:this.walletClient.account,chain:this.viemChain})}renounceRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.renounceRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}revokeRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.revokeRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}schedule(t,e,r){return this.getContract().write.schedule([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}setGrantDelay(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setGrantDelay([r,e],{account:this.walletClient.account,chain:this.viemChain})}setRoleAdmin(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setRoleAdmin([r,e],{account:this.walletClient.account,chain:this.viemChain})}setRoleGuardian(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setRoleGuardian([r,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetAdminDelay(t,e){return this.getContract().write.setTargetAdminDelay([t,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetClosed(t,e){return this.getContract().write.setTargetClosed([t,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetFunctionRole(t,e,r){const a=this.processRoleIdOrLabel(r);return this.getContract().write.setTargetFunctionRole([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}updateAuthority(t,e){return this.getContract().write.updateAuthority([t,e],{account:this.walletClient.account,chain:this.viemChain})}labelToRoleId(t){const r=n.stringToBytes(t).reverse(),a=n.bytesToHex(r);return n.hexToBigInt(a)}roleIdToLabel(t){const e=n.toHex(t),r=n.toBytes(e).reverse();return b.bytesToString(r)}getSelectorFromFunctionName(t){var e;return(e=Object.entries(this.selectorsMap).find(([,r])=>r.includes(t)))==null?void 0:e[0]}getFunctionNameFromSelector(t){var e;return(e=Object.entries(this.selectorsMap).find(([r])=>r===t))==null?void 0:e[1]}processRoleIdOrLabel(t){return typeof t=="string"?this.labelToRoleId(t):t}}exports.InstitutionalAccessManagerHandler=R;
2
2
  //# sourceMappingURL=institutional-access-manager-handler.cjs.map
@@ -2,10 +2,10 @@ var l = Object.defineProperty;
2
2
  var d = (s, t, e) => t in s ? l(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
3
  var i = (s, t, e) => d(s, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { InstitutionalAccessManager as h } from "../abis/mainnet/InstitutionalAccessManager.js";
5
- import { V as u, s as g, b as C, h as m, t as b, a as R } from "../../constants-BweLzNUt.js";
5
+ import { V as u, s as g, b as C, h as m, t as b, a as R } from "../../constants-C9YZ6Ewc.js";
6
6
  import { InvalidContractAddressError as w } from "../../errors/validation-errors.js";
7
- import { g as p } from "../../getContract-BES7gSby.js";
8
- import { b as I } from "../../writeContract-QAArm5iD.js";
7
+ import { g as p } from "../../getContract-DEPNMZxg.js";
8
+ import { b as I } from "../../writeContract-DkC9wV5p.js";
9
9
  class O {
10
10
  /**
11
11
  * Create the handler for the Institutional `AccessManager` contract
@@ -1,2 +1,2 @@
1
- "use strict";var s=Object.defineProperty;var o=(r,t,e)=>t in r?s(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>o(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../abis/mainnet/InstitutionalVault.cjs"),h=require("../../constants-JN89aXws.cjs"),l=require("../../errors/validation-errors.cjs"),u=require("../../getContract-F-fd_vf7.cjs");class d{constructor(t,e,a){n(this,"viemChain");n(this,"address");this.walletClient=e,this.publicClient=a,this.viemChain=h.VIEM_CHAINS[t]}withAddress(t){return this.address=t,this}getAddress(){return this.address}getContract(){if(!this.address)throw new l.InvalidContractAddressError("No address specified for the contract",{fixMessage:"Set the contract address in the handler by using the setAddress method"});const t=c.InstitutionalVault,e={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:this.address,abi:t,client:e})}getBeaconDepositContract(){return this.getContract().read.BEACON_DEPOSIT_CONTRACT()}getEigenDelegationManager(){return this.getContract().read.EIGEN_DELEGATION_MANAGER()}getEigenPodManager(){return this.getContract().read.EIGEN_POD_MANAGER()}getEigenPod(){return this.getContract().read.getEigenPod()}allowance(t,e){return this.getContract().read.allowance([t,e])}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}asset(){return this.getContract().read.asset()}authority(){return this.getContract().read.authority()}balanceOf(t){return this.getContract().read.balanceOf([t])}decimals(){return this.getContract().read.decimals()}completeQueuedWithdrawals(t,e){return this.getContract().write.completeQueuedWithdrawals([t,e],{account:this.walletClient.account,chain:this.viemChain})}convertToAssets(t){return this.getContract().read.convertToAssets([t])}convertToShares(t){return this.getContract().read.convertToShares([t])}deposit(t,e){return this.getContract().write.deposit([t,e],{account:this.walletClient.account,chain:this.viemChain})}depositETH(t,e){return this.getContract().write.depositETH([t],{account:this.walletClient.account,chain:this.viemChain,value:e})}getNonRestakedValidatorETH(){return this.getContract().read.getNonRestakedValidatorETH()}getRestakedValidatorETH(){return this.getContract().read.getRestakedValidatorETH()}getWithdrawalCredentials(){return this.getContract().read.getWithdrawalCredentials()}maxDeposit(t){return this.getContract().read.maxDeposit([t])}maxMint(t){return this.getContract().read.maxMint([t])}maxRedeem(t){return this.getContract().read.maxRedeem([t])}maxWithdraw(t){return this.getContract().read.maxWithdraw([t])}mint(t,e){return this.getContract().write.mint([t,e],{account:this.walletClient.account,chain:this.viemChain})}name(){return this.getContract().read.name()}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewMint(t){return this.getContract().read.previewMint([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}queueWithdrawals(t){return this.getContract().write.queueWithdrawals([t],{account:this.walletClient.account,chain:this.viemChain})}redeem(t,e,a){return this.getContract().write.redeem([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}setValidatorsETH(t,e){return this.getContract().write.setValidatorsETH([t,e],{account:this.walletClient.account,chain:this.viemChain})}startNonRestakingValidators(t,e,a,i){return this.getContract().write.startNonRestakingValidators([t,e,a,i],{account:this.walletClient.account,chain:this.viemChain})}startRestakingValidators(t,e,a,i){return this.getContract().write.startRestakingValidators([t,e,a,i],{account:this.walletClient.account,chain:this.viemChain})}withdraw(t,e,a){return this.getContract().write.withdraw([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}symbol(){return this.getContract().read.symbol()}totalAssets(){return this.getContract().read.totalAssets()}totalSupply(){return this.getContract().read.totalSupply()}transfer(t,e){return this.getContract().write.transfer([t,e],{account:this.walletClient.account,chain:this.viemChain})}transferFrom(t,e,a){return this.getContract().write.transferFrom([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}customExternalCall(t,e,a){return this.getContract().write.customExternalCall([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}requestEigenPodConsolidation(t,e,a){return this.getContract().write.requestEigenPodConsolidation([t,e],{account:this.walletClient.account,chain:this.viemChain,value:a})}}exports.InstitutionalVaultHandler=d;
1
+ "use strict";var s=Object.defineProperty;var o=(r,t,e)=>t in r?s(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>o(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../abis/mainnet/InstitutionalVault.cjs"),h=require("../../constants-CxSgz27h.cjs"),l=require("../../errors/validation-errors.cjs"),u=require("../../getContract-DUA3M2pm.cjs");class d{constructor(t,e,a){n(this,"viemChain");n(this,"address");this.walletClient=e,this.publicClient=a,this.viemChain=h.VIEM_CHAINS[t]}withAddress(t){return this.address=t,this}getAddress(){return this.address}getContract(){if(!this.address)throw new l.InvalidContractAddressError("No address specified for the contract",{fixMessage:"Set the contract address in the handler by using the setAddress method"});const t=c.InstitutionalVault,e={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:this.address,abi:t,client:e})}getBeaconDepositContract(){return this.getContract().read.BEACON_DEPOSIT_CONTRACT()}getEigenDelegationManager(){return this.getContract().read.EIGEN_DELEGATION_MANAGER()}getEigenPodManager(){return this.getContract().read.EIGEN_POD_MANAGER()}getEigenPod(){return this.getContract().read.getEigenPod()}allowance(t,e){return this.getContract().read.allowance([t,e])}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}asset(){return this.getContract().read.asset()}authority(){return this.getContract().read.authority()}balanceOf(t){return this.getContract().read.balanceOf([t])}decimals(){return this.getContract().read.decimals()}completeQueuedWithdrawals(t,e){return this.getContract().write.completeQueuedWithdrawals([t,e],{account:this.walletClient.account,chain:this.viemChain})}convertToAssets(t){return this.getContract().read.convertToAssets([t])}convertToShares(t){return this.getContract().read.convertToShares([t])}deposit(t,e){return this.getContract().write.deposit([t,e],{account:this.walletClient.account,chain:this.viemChain})}depositETH(t,e){return this.getContract().write.depositETH([t],{account:this.walletClient.account,chain:this.viemChain,value:e})}getNonRestakedValidatorETH(){return this.getContract().read.getNonRestakedValidatorETH()}getRestakedValidatorETH(){return this.getContract().read.getRestakedValidatorETH()}getWithdrawalCredentials(){return this.getContract().read.getWithdrawalCredentials()}maxDeposit(t){return this.getContract().read.maxDeposit([t])}maxMint(t){return this.getContract().read.maxMint([t])}maxRedeem(t){return this.getContract().read.maxRedeem([t])}maxWithdraw(t){return this.getContract().read.maxWithdraw([t])}mint(t,e){return this.getContract().write.mint([t,e],{account:this.walletClient.account,chain:this.viemChain})}name(){return this.getContract().read.name()}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewMint(t){return this.getContract().read.previewMint([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}queueWithdrawals(t){return this.getContract().write.queueWithdrawals([t],{account:this.walletClient.account,chain:this.viemChain})}redeem(t,e,a){return this.getContract().write.redeem([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}setValidatorsETH(t,e){return this.getContract().write.setValidatorsETH([t,e],{account:this.walletClient.account,chain:this.viemChain})}startNonRestakingValidators(t,e,a,i){return this.getContract().write.startNonRestakingValidators([t,e,a,i],{account:this.walletClient.account,chain:this.viemChain})}startRestakingValidators(t,e,a,i){return this.getContract().write.startRestakingValidators([t,e,a,i],{account:this.walletClient.account,chain:this.viemChain})}withdraw(t,e,a){return this.getContract().write.withdraw([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}symbol(){return this.getContract().read.symbol()}totalAssets(){return this.getContract().read.totalAssets()}totalSupply(){return this.getContract().read.totalSupply()}transfer(t,e){return this.getContract().write.transfer([t,e],{account:this.walletClient.account,chain:this.viemChain})}transferFrom(t,e,a){return this.getContract().write.transferFrom([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}customExternalCall(t,e,a){return this.getContract().write.customExternalCall([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}requestEigenPodConsolidation(t,e,a){return this.getContract().write.requestEigenPodConsolidation([t,e],{account:this.walletClient.account,chain:this.viemChain,value:a})}}exports.InstitutionalVaultHandler=d;
2
2
  //# sourceMappingURL=institutional-vault-handler.cjs.map
@@ -2,9 +2,9 @@ var s = Object.defineProperty;
2
2
  var o = (r, t, e) => t in r ? s(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var n = (r, t, e) => o(r, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { InstitutionalVault as c } from "../abis/mainnet/InstitutionalVault.js";
5
- import { V as h } from "../../constants-BweLzNUt.js";
5
+ import { V as h } from "../../constants-C9YZ6Ewc.js";
6
6
  import { InvalidContractAddressError as l } from "../../errors/validation-errors.js";
7
- import { g as d } from "../../getContract-BES7gSby.js";
7
+ import { g as d } from "../../getContract-DEPNMZxg.js";
8
8
  class p {
9
9
  /**
10
10
  * Create the handler for the `InstitutionalVault` contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var i=Object.defineProperty;var s=(a,t,e)=>t in a?i(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var n=(a,t,e)=>s(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants-JN89aXws.cjs"),o=require("../addresses.cjs"),l=require("../abis/mainnet/L1RewardManager.cjs"),C=require("../../getContract-F-fd_vf7.cjs");class d{constructor(t,e,r){n(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=c.VIEM_CHAINS[t]}getContract(){const t=o.CONTRACT_ADDRESSES[this.chain].L1RewardManager,e=l.L1RewardManager,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}getBridge(t){return this.getContract().read.getBridge([t])}setL2RewardClaimer(t,e,r){return{transact:()=>this.getContract().write.setL2RewardClaimer([e,r],{chain:this.viemChain,account:t}),estimate:()=>this.getContract().estimateGas.setL2RewardClaimer([e,r],{account:t})}}}exports.L1RewardManagerHandler=d;
1
+ "use strict";var i=Object.defineProperty;var s=(a,t,e)=>t in a?i(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var n=(a,t,e)=>s(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants-CxSgz27h.cjs"),o=require("../addresses.cjs"),l=require("../abis/mainnet/L1RewardManager.cjs"),C=require("../../getContract-DUA3M2pm.cjs");class d{constructor(t,e,r){n(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=c.VIEM_CHAINS[t]}getContract(){const t=o.CONTRACT_ADDRESSES[this.chain].L1RewardManager,e=l.L1RewardManager,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}getBridge(t){return this.getContract().read.getBridge([t])}setL2RewardClaimer(t,e,r){return{transact:()=>this.getContract().write.setL2RewardClaimer([e,r],{chain:this.viemChain,account:t}),estimate:()=>this.getContract().estimateGas.setL2RewardClaimer([e,r],{account:t})}}}exports.L1RewardManagerHandler=d;
2
2
  //# sourceMappingURL=l1-reward-manager-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var s = Object.defineProperty;
2
2
  var n = (a, t, e) => t in a ? s(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var i = (a, t, e) => n(a, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as o } from "../../constants-BweLzNUt.js";
4
+ import { V as o } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as c } from "../addresses.js";
6
6
  import { L1RewardManager as l } from "../abis/mainnet/L1RewardManager.js";
7
- import { g as C } from "../../getContract-BES7gSby.js";
7
+ import { g as C } from "../../getContract-DEPNMZxg.js";
8
8
  class u {
9
9
  /**
10
10
  * Create the handler for the `L1RewardManager` contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var n=Object.defineProperty;var s=(r,t,e)=>t in r?n(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>s(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants-JN89aXws.cjs"),o=require("../addresses.cjs"),l=require("../../errors/validation-errors.cjs"),d=require("../abis/mainnet/L2RewardManager.cjs"),g=require("../../getContract-F-fd_vf7.cjs");class C{constructor(t,e,a){i(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=a,this.viemChain=c.VIEM_CHAINS[t]}getContract(){const t=o.CONTRACT_ADDRESSES[this.chain].L2RewardManager,e=d.L2RewardManager,a={public:this.publicClient,wallet:this.walletClient};return g.getContract({address:t,abi:e,client:a})}authority(){return this.getContract().read.authority()}getClaimingDelay(){return this.getContract().read.getClaimingDelay()}getEpochRecord(t){return this.getContract().read.getEpochRecord([t])}getIntervalId(t,e){return this.getContract().read.getIntervalId([t,e])}getRewardsClaimer(t){return this.getContract().read.getRewardsClaimer([t])}isClaimed(t,e){return this.getContract().read.isClaimed([e,t])}isClaimingLocked(t){return this.getContract().read.isClaimingLocked([t])}claimRewards(t,e){if(e.length===0)throw new l.InvalidInputError("`claimOrders` cannot be empty and must be specified",{fixMessage:"Specify at least one or more claim orders to claim rewards"});return{transact:()=>this.getContract().write.claimRewards([e],{chain:this.viemChain,account:t}),estimate:()=>this.getContract().estimateGas.claimRewards([e],{account:t})}}}exports.L2RewardManagerHandler=C;
1
+ "use strict";var n=Object.defineProperty;var s=(r,t,e)=>t in r?n(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>s(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants-CxSgz27h.cjs"),o=require("../addresses.cjs"),l=require("../../errors/validation-errors.cjs"),d=require("../abis/mainnet/L2RewardManager.cjs"),g=require("../../getContract-DUA3M2pm.cjs");class C{constructor(t,e,a){i(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=a,this.viemChain=c.VIEM_CHAINS[t]}getContract(){const t=o.CONTRACT_ADDRESSES[this.chain].L2RewardManager,e=d.L2RewardManager,a={public:this.publicClient,wallet:this.walletClient};return g.getContract({address:t,abi:e,client:a})}authority(){return this.getContract().read.authority()}getClaimingDelay(){return this.getContract().read.getClaimingDelay()}getEpochRecord(t){return this.getContract().read.getEpochRecord([t])}getIntervalId(t,e){return this.getContract().read.getIntervalId([t,e])}getRewardsClaimer(t){return this.getContract().read.getRewardsClaimer([t])}isClaimed(t,e){return this.getContract().read.isClaimed([e,t])}isClaimingLocked(t){return this.getContract().read.isClaimingLocked([t])}claimRewards(t,e){if(e.length===0)throw new l.InvalidInputError("`claimOrders` cannot be empty and must be specified",{fixMessage:"Specify at least one or more claim orders to claim rewards"});return{transact:()=>this.getContract().write.claimRewards([e],{chain:this.viemChain,account:t}),estimate:()=>this.getContract().estimateGas.claimRewards([e],{account:t})}}}exports.L2RewardManagerHandler=C;
2
2
  //# sourceMappingURL=l2-reward-manager-handler.cjs.map
@@ -1,11 +1,11 @@
1
1
  var n = Object.defineProperty;
2
2
  var s = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var i = (r, t, e) => s(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as o } from "../../constants-BweLzNUt.js";
4
+ import { V as o } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as c } from "../addresses.js";
6
6
  import { InvalidInputError as l } from "../../errors/validation-errors.js";
7
7
  import { L2RewardManager as m } from "../abis/mainnet/L2RewardManager.js";
8
- import { g as d } from "../../getContract-BES7gSby.js";
8
+ import { g as d } from "../../getContract-DEPNMZxg.js";
9
9
  class f {
10
10
  /**
11
11
  * Create the handler for the `L2RewardManager` contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var r=Object.defineProperty;var s=(a,t,e)=>t in a?r(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var n=(a,t,e)=>s(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants-JN89aXws.cjs"),o=require("../abis/mainnet/LagoonVault.cjs"),l=require("../tokens.cjs"),h=require("../vaults-addresses.cjs"),u=require("../../getContract-F-fd_vf7.cjs");class C{constructor(t,e,i){n(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=c.VIEM_CHAINS[t]}getContract(){const t=h.VAULTS_ADDRESSES[l.Token.tacpufETH][this.chain].LagoonVault,e=o.LagoonVault,i={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:t,abi:e,client:i})}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}getBalance(t){return this.getContract().read.balanceOf([t])}getTotalSupply(){return this.getContract().read.totalSupply()}isTotalAssetsValid(){return this.getContract().read.isTotalAssetsValid()}symbol(){return this.getContract().read.symbol()}deposit(t,e,i){return i?this.getContract().write.deposit([t,e,i],{account:this.walletClient.account,chain:this.viemChain}):this.getContract().write.deposit([t,e],{account:this.walletClient.account,chain:this.viemChain})}syncDeposit(t,e,i=e){return this.getContract().write.syncDeposit([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}requestDeposit(t,e,i=e){return this.getContract().write.requestDeposit([t,e,i],{account:this.walletClient.account,chain:this.viemChain,value:t})}withdraw(t,e,i=e){return this.getContract().write.withdraw([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}redeem(t,e,i=e){return this.getContract().write.redeem([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}requestRedeem(t,e,i=e){return this.getContract().write.requestRedeem([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}}exports.LagoonVaultHandler=C;
1
+ "use strict";var r=Object.defineProperty;var s=(a,t,e)=>t in a?r(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var n=(a,t,e)=>s(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants-CxSgz27h.cjs"),o=require("../abis/mainnet/LagoonVault.cjs"),l=require("../tokens.cjs"),h=require("../vaults-addresses.cjs"),u=require("../../getContract-DUA3M2pm.cjs");class C{constructor(t,e,i){n(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=c.VIEM_CHAINS[t]}getContract(){const t=h.VAULTS_ADDRESSES[l.Token.tacpufETH][this.chain].LagoonVault,e=o.LagoonVault,i={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:t,abi:e,client:i})}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}getBalance(t){return this.getContract().read.balanceOf([t])}getTotalSupply(){return this.getContract().read.totalSupply()}isTotalAssetsValid(){return this.getContract().read.isTotalAssetsValid()}symbol(){return this.getContract().read.symbol()}deposit(t,e,i){return i?this.getContract().write.deposit([t,e,i],{account:this.walletClient.account,chain:this.viemChain}):this.getContract().write.deposit([t,e],{account:this.walletClient.account,chain:this.viemChain})}syncDeposit(t,e,i=e){return this.getContract().write.syncDeposit([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}requestDeposit(t,e,i=e){return this.getContract().write.requestDeposit([t,e,i],{account:this.walletClient.account,chain:this.viemChain,value:t})}withdraw(t,e,i=e){return this.getContract().write.withdraw([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}redeem(t,e,i=e){return this.getContract().write.redeem([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}requestRedeem(t,e,i=e){return this.getContract().write.requestRedeem([t,e,i],{account:this.walletClient.account,chain:this.viemChain})}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}}exports.LagoonVaultHandler=C;
2
2
  //# sourceMappingURL=lagoon-vault-handler.cjs.map
@@ -1,11 +1,11 @@
1
1
  var r = Object.defineProperty;
2
2
  var s = (a, t, e) => t in a ? r(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var n = (a, t, e) => s(a, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as o } from "../../constants-BweLzNUt.js";
4
+ import { V as o } from "../../constants-C9YZ6Ewc.js";
5
5
  import { LagoonVault as c } from "../abis/mainnet/LagoonVault.js";
6
6
  import { Token as h } from "../tokens.js";
7
7
  import { VAULTS_ADDRESSES as l } from "../vaults-addresses.js";
8
- import { g as u } from "../../getContract-BES7gSby.js";
8
+ import { g as u } from "../../getContract-DEPNMZxg.js";
9
9
  class v {
10
10
  /**
11
11
  * Create the handler for processing Lagoon vault.
@@ -1,2 +1,2 @@
1
- "use strict";var s=Object.defineProperty;var o=(n,t,e)=>t in n?s(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var i=(n,t,e)=>o(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../constants-JN89aXws.cjs"),a=require("../tokens.cjs"),l=require("../abis/mainnet/mtwCARROT.cjs"),C=require("../../getContract-F-fd_vf7.cjs");class u{constructor(t,e,r){i(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=h.VIEM_CHAINS[t]}getContract(){const t=a.TOKENS_ADDRESSES[a.Token.mtwCARROT][this.chain],e=l.mtwCARROT,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}balanceOf(t){return this.getContract().read.balanceOf([t])}allowance(t,e){return this.getContract().read.allowance([t,e])}claimable(t,e){return e!==void 0?this.getContract().read.claimable([t,e]):this.getContract().read.claimable([t])}cliffDuration(){return this.getContract().read.cliffDuration()}async getUserVestings(t){const[e,r]=await this.getContract().read.getUserVestings([t]);return{allVestings:e,nextClaimIndex:r}}isTokenWrapper(){return this.getContract().read.isTokenWrapper()}symbol(){return this.getContract().read.symbol()}token(){return this.getContract().read.token()}underlying(){return this.getContract().read.underlying()}vestingData(t){return this.getContract().read.vestingData([t])}approve(t,e,r){return this.getContract().write.approve([e,r],{account:t,chain:this.viemChain})}claim(t,e,r){return r!==void 0?this.getContract().write.claim([e,r],{account:t,chain:this.viemChain}):this.getContract().write.claim([e],{account:t,chain:this.viemChain})}decreaseAllowance(t,e,r){return this.getContract().write.decreaseAllowance([e,r],{account:t,chain:this.viemChain})}increaseAllowance(t,e,r){return this.getContract().write.increaseAllowance([e,r],{account:t,chain:this.viemChain})}recoverERC20(t,e,r,c){return this.getContract().write.recoverERC20([e,r,c],{account:t,chain:this.viemChain})}transfer(t,e,r){return this.getContract().write.transfer([e,r],{account:t,chain:this.viemChain})}}exports.MtwCarrotHandler=u;
1
+ "use strict";var s=Object.defineProperty;var o=(n,t,e)=>t in n?s(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var i=(n,t,e)=>o(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../constants-CxSgz27h.cjs"),a=require("../tokens.cjs"),l=require("../abis/mainnet/mtwCARROT.cjs"),C=require("../../getContract-DUA3M2pm.cjs");class u{constructor(t,e,r){i(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=h.VIEM_CHAINS[t]}getContract(){const t=a.TOKENS_ADDRESSES[a.Token.mtwCARROT][this.chain],e=l.mtwCARROT,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}balanceOf(t){return this.getContract().read.balanceOf([t])}allowance(t,e){return this.getContract().read.allowance([t,e])}claimable(t,e){return e!==void 0?this.getContract().read.claimable([t,e]):this.getContract().read.claimable([t])}cliffDuration(){return this.getContract().read.cliffDuration()}async getUserVestings(t){const[e,r]=await this.getContract().read.getUserVestings([t]);return{allVestings:e,nextClaimIndex:r}}isTokenWrapper(){return this.getContract().read.isTokenWrapper()}symbol(){return this.getContract().read.symbol()}token(){return this.getContract().read.token()}underlying(){return this.getContract().read.underlying()}vestingData(t){return this.getContract().read.vestingData([t])}approve(t,e,r){return this.getContract().write.approve([e,r],{account:t,chain:this.viemChain})}claim(t,e,r){return r!==void 0?this.getContract().write.claim([e,r],{account:t,chain:this.viemChain}):this.getContract().write.claim([e],{account:t,chain:this.viemChain})}decreaseAllowance(t,e,r){return this.getContract().write.decreaseAllowance([e,r],{account:t,chain:this.viemChain})}increaseAllowance(t,e,r){return this.getContract().write.increaseAllowance([e,r],{account:t,chain:this.viemChain})}recoverERC20(t,e,r,c){return this.getContract().write.recoverERC20([e,r,c],{account:t,chain:this.viemChain})}transfer(t,e,r){return this.getContract().write.transfer([e,r],{account:t,chain:this.viemChain})}}exports.MtwCarrotHandler=u;
2
2
  //# sourceMappingURL=mtw-carrot-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var c = Object.defineProperty;
2
2
  var s = (i, t, e) => t in i ? c(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var a = (i, t, e) => s(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as o } from "../../constants-BweLzNUt.js";
4
+ import { V as o } from "../../constants-C9YZ6Ewc.js";
5
5
  import { TOKENS_ADDRESSES as h, Token as l } from "../tokens.js";
6
6
  import { mtwCARROT as C } from "../abis/mainnet/mtwCARROT.js";
7
- import { g } from "../../getContract-BES7gSby.js";
7
+ import { g } from "../../getContract-DEPNMZxg.js";
8
8
  class p {
9
9
  /**
10
10
  * Create the handler for the `mtwCARROT` token contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var c=Object.defineProperty;var i=(n,t,e)=>t in n?c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var r=(n,t,e)=>i(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../vaults-addresses.cjs"),s=require("../tokens.cjs"),u=require("../abis/mainnet/Accountant.cjs"),l=require("../../getContract-F-fd_vf7.cjs");class g{constructor(t,e,a){r(this,"token");this.chain=t,this.walletClient=e,this.publicClient=a,this.token=s.UnifiToken.unifiETH}withToken(t){return this.token=t,this}getContract(){const t=o.VAULTS_ADDRESSES[this.token][this.chain].NucleusAccountant,e=u.Accountant,a={public:this.publicClient,wallet:this.walletClient};return l.getContract({address:t,abi:e,client:a})}async rateProviderData(t){const[e,a]=await this.getContract().read.rateProviderData([t]);return{isPeggedToBase:e,rateProvider:a}}vault(){return this.getContract().read.vault()}getRate(){return this.getContract().read.getRate()}getRateSafe(){return this.getContract().read.getRateSafe()}getRateInQuote(t){return this.getContract().read.getRateInQuote([t])}getRateInQuoteSafe(t){return this.getContract().read.getRateInQuoteSafe([t])}}exports.NucleusAccountantHandler=g;
1
+ "use strict";var c=Object.defineProperty;var i=(n,t,e)=>t in n?c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var r=(n,t,e)=>i(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../vaults-addresses.cjs"),s=require("../tokens.cjs"),u=require("../abis/mainnet/Accountant.cjs"),l=require("../../getContract-DUA3M2pm.cjs");class g{constructor(t,e,a){r(this,"token");this.chain=t,this.walletClient=e,this.publicClient=a,this.token=s.UnifiToken.unifiETH}withToken(t){return this.token=t,this}getContract(){const t=o.VAULTS_ADDRESSES[this.token][this.chain].NucleusAccountant,e=u.Accountant,a={public:this.publicClient,wallet:this.walletClient};return l.getContract({address:t,abi:e,client:a})}async rateProviderData(t){const[e,a]=await this.getContract().read.rateProviderData([t]);return{isPeggedToBase:e,rateProvider:a}}vault(){return this.getContract().read.vault()}getRate(){return this.getContract().read.getRate()}getRateSafe(){return this.getContract().read.getRateSafe()}getRateInQuote(t){return this.getContract().read.getRateInQuote([t])}getRateInQuoteSafe(t){return this.getContract().read.getRateInQuoteSafe([t])}}exports.NucleusAccountantHandler=g;
2
2
  //# sourceMappingURL=nucleus-accountant-handler.cjs.map
@@ -4,7 +4,7 @@ var n = (a, t, e) => o(a, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { VAULTS_ADDRESSES as s } from "../vaults-addresses.js";
5
5
  import { UnifiToken as c } from "../tokens.js";
6
6
  import { Accountant as u } from "../abis/mainnet/Accountant.js";
7
- import { g as l } from "../../getContract-BES7gSby.js";
7
+ import { g as l } from "../../getContract-DEPNMZxg.js";
8
8
  class R {
9
9
  /**
10
10
  * Create the handler for processing tokens.
@@ -1,2 +1,2 @@
1
- "use strict";var u=Object.defineProperty;var a=(s,t,e)=>t in s?u(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var n=(s,t,e)=>a(s,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-JN89aXws.cjs"),l=require("../addresses.cjs"),h=require("../abis/mainnet/AtomicQueue.cjs"),C=require("../../getContract-F-fd_vf7.cjs");class m{constructor(t,e,i){n(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=o.VIEM_CHAINS[t]}getContract(){const t=l.CONTRACT_ADDRESSES[this.chain].NucleusAtomicQueue,e=h.AtomicQueue,i={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:i})}getUserAtomicRequest(t,e,i){return this.getContract().read.getUserAtomicRequest([t,e,i])}isAtomicRequestValid(t,e,i){return this.getContract().read.isAtomicRequestValid([t,e,i])}solve(t,e,i,c,r){return this.getContract().write.solve([t,e,i,c,r],{account:this.walletClient.account,chain:this.viemChain})}updateAtomicRequest(t,e,i,c){return this.getContract().write.updateAtomicRequest([t,e,i],{account:c,chain:this.viemChain})}userAtomicRequest(t,e,i){return this.getContract().read.userAtomicRequest([t,e,i])}}exports.NucleusAtomicQueueHandler=m;
1
+ "use strict";var u=Object.defineProperty;var a=(s,t,e)=>t in s?u(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var n=(s,t,e)=>a(s,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-CxSgz27h.cjs"),l=require("../addresses.cjs"),h=require("../abis/mainnet/AtomicQueue.cjs"),C=require("../../getContract-DUA3M2pm.cjs");class m{constructor(t,e,i){n(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=o.VIEM_CHAINS[t]}getContract(){const t=l.CONTRACT_ADDRESSES[this.chain].NucleusAtomicQueue,e=h.AtomicQueue,i={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:i})}getUserAtomicRequest(t,e,i){return this.getContract().read.getUserAtomicRequest([t,e,i])}isAtomicRequestValid(t,e,i){return this.getContract().read.isAtomicRequestValid([t,e,i])}solve(t,e,i,c,r){return this.getContract().write.solve([t,e,i,c,r],{account:this.walletClient.account,chain:this.viemChain})}updateAtomicRequest(t,e,i,c){return this.getContract().write.updateAtomicRequest([t,e,i],{account:c,chain:this.viemChain})}userAtomicRequest(t,e,i){return this.getContract().read.userAtomicRequest([t,e,i])}}exports.NucleusAtomicQueueHandler=m;
2
2
  //# sourceMappingURL=nucleus-atomic-queue-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var u = Object.defineProperty;
2
2
  var a = (s, t, e) => t in s ? u(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
3
  var c = (s, t, e) => a(s, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as n } from "../../constants-BweLzNUt.js";
4
+ import { V as n } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as l } from "../addresses.js";
6
6
  import { AtomicQueue as m } from "../abis/mainnet/AtomicQueue.js";
7
- import { g as h } from "../../getContract-BES7gSby.js";
7
+ import { g as h } from "../../getContract-DEPNMZxg.js";
8
8
  class R {
9
9
  constructor(t, e, i) {
10
10
  c(this, "viemChain");
@@ -1,2 +1,2 @@
1
- "use strict";var l=Object.defineProperty;var C=(a,t,e)=>t in a?l(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var c=(a,t,e)=>C(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../constants-JN89aXws.cjs"),g=require("../vaults-addresses.cjs"),p=require("../tokens.cjs"),f=require("../abis/mainnet/BoringVault.cjs"),v=require("../../getContract-F-fd_vf7.cjs");class b{constructor(t,e,n){c(this,"viemChain");c(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=m.VIEM_CHAINS[t],this.token=p.UnifiToken.unifiETH}withToken(t){return this.token=t,this}getContract(){const t=g.VAULTS_ADDRESSES[this.token][this.chain].NucleusBoringVault,e=f.BoringVault,n={public:this.publicClient,wallet:this.walletClient};return v.getContract({address:t,abi:e,client:n})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}balanceOf(t){return this.getContract().read.balanceOf([t])}totalSupply(){return this.getContract().read.totalSupply()}approve(t,e,n){return this.getContract().write.approve([e,n],{account:t,chain:this.viemChain})}transfer(t,e,n){return{transact:()=>this.getContract().write.transfer([e,n],{account:t,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.transfer([e,n],{account:t})}}transferFrom(t,e,n,i){return{transact:()=>this.getContract().write.transferFrom([e,n,i],{account:t,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.transferFrom([e,n,i],{account:t})}}permit(t){const{account:e,owner:n,spender:i,value:r,deadline:s,v:o,r:u,s:h}=t;return{transact:()=>this.getContract().write.permit([n,i,r,s,o,u,h],{account:e,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.permit([n,i,r,s,o,u,h],{account:e})}}}exports.NucleusBoringVaultHandler=b;
1
+ "use strict";var l=Object.defineProperty;var C=(a,t,e)=>t in a?l(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var c=(a,t,e)=>C(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../constants-CxSgz27h.cjs"),g=require("../vaults-addresses.cjs"),p=require("../tokens.cjs"),f=require("../abis/mainnet/BoringVault.cjs"),v=require("../../getContract-DUA3M2pm.cjs");class b{constructor(t,e,n){c(this,"viemChain");c(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=m.VIEM_CHAINS[t],this.token=p.UnifiToken.unifiETH}withToken(t){return this.token=t,this}getContract(){const t=g.VAULTS_ADDRESSES[this.token][this.chain].NucleusBoringVault,e=f.BoringVault,n={public:this.publicClient,wallet:this.walletClient};return v.getContract({address:t,abi:e,client:n})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}balanceOf(t){return this.getContract().read.balanceOf([t])}totalSupply(){return this.getContract().read.totalSupply()}approve(t,e,n){return this.getContract().write.approve([e,n],{account:t,chain:this.viemChain})}transfer(t,e,n){return{transact:()=>this.getContract().write.transfer([e,n],{account:t,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.transfer([e,n],{account:t})}}transferFrom(t,e,n,i){return{transact:()=>this.getContract().write.transferFrom([e,n,i],{account:t,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.transferFrom([e,n,i],{account:t})}}permit(t){const{account:e,owner:n,spender:i,value:r,deadline:s,v:o,r:u,s:h}=t;return{transact:()=>this.getContract().write.permit([n,i,r,s,o,u,h],{account:e,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.permit([n,i,r,s,o,u,h],{account:e})}}}exports.NucleusBoringVaultHandler=b;
2
2
  //# sourceMappingURL=nucleus-boring-vault-handler.cjs.map
@@ -1,11 +1,11 @@
1
1
  var u = Object.defineProperty;
2
2
  var l = (a, t, n) => t in a ? u(a, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[t] = n;
3
3
  var c = (a, t, n) => l(a, typeof t != "symbol" ? t + "" : t, n);
4
- import { V as C } from "../../constants-BweLzNUt.js";
4
+ import { V as C } from "../../constants-C9YZ6Ewc.js";
5
5
  import { VAULTS_ADDRESSES as p } from "../vaults-addresses.js";
6
6
  import { UnifiToken as g } from "../tokens.js";
7
7
  import { BoringVault as f } from "../abis/mainnet/BoringVault.js";
8
- import { g as w } from "../../getContract-BES7gSby.js";
8
+ import { g as w } from "../../getContract-DEPNMZxg.js";
9
9
  class F {
10
10
  /**
11
11
  * Create the handler for processing UniFi tokens.
@@ -1,2 +1,2 @@
1
- "use strict";var P=Object.defineProperty;var p=(r,t,e)=>t in r?P(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var u=(r,t,e)=>p(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../constants-JN89aXws.cjs"),T=require("../vaults-addresses.cjs"),l=require("../tokens.cjs"),k=require("./erc20-permit-handler.cjs"),v=require("../abis/mainnet/Teller.cjs"),_=require("../../getContract-F-fd_vf7.cjs");class E{constructor(t,e,i){u(this,"viemChain");u(this,"erc20PermitHandler");u(this,"token");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=S.VIEM_CHAINS[t],this.erc20PermitHandler=new k.ERC20PermitHandler(t,e,i),this.token=l.UnifiToken.unifiETH}withToken(t){return this.token=t,this}getContract(){const t=T.VAULTS_ADDRESSES[this.token][this.chain].NucleusTeller,e=v.Teller,i={public:this.publicClient,wallet:this.walletClient};return _.getContract({address:t,abi:e,client:i})}accountant(){return this.getContract().read.accountant()}vault(){return this.getContract().read.vault()}shareLockPeriod(){return this.getContract().read.shareLockPeriod()}shareUnlockTime(t){return this.getContract().read.shareUnlockTime([t])}isPaused(){return this.getContract().read.isPaused()}async deposit(t){const{token:e,unifiToken:i,account:s,amount:n,minimumMint:a,isPreapproved:o=!1}=t,c=l.TOKENS_ADDRESSES[e][this.chain];if(o)return{transact:()=>this.getContract().write.deposit([c,n,a],{account:s,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.deposit([c,n,a],{account:s})};const{r:h,s:d,v:m,deadline:g}=await this.erc20PermitHandler.withToken(e).getPermitSignature(s,l.TOKENS_ADDRESSES[i][this.chain],n),C=[c,n,a,g,Number(m),h,d];return{transact:()=>this.getContract().write.depositWithPermit(C,{account:s,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.depositWithPermit(C,{account:s})}}depositWithPermit(t){const{account:e,depositAsset:i,depositAmount:s,minimumMint:n,deadline:a,v:o,r:c,s:h}=t;return{transact:()=>this.getContract().write.depositWithPermit([i,s,n,a,o,c,h],{account:e,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.depositWithPermit([i,s,n,a,o,c,h],{account:e})}}}exports.NucleusTellerHandler=E;
1
+ "use strict";var P=Object.defineProperty;var p=(r,t,e)=>t in r?P(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var u=(r,t,e)=>p(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../constants-CxSgz27h.cjs"),T=require("../vaults-addresses.cjs"),l=require("../tokens.cjs"),k=require("./erc20-permit-handler.cjs"),v=require("../abis/mainnet/Teller.cjs"),_=require("../../getContract-DUA3M2pm.cjs");class E{constructor(t,e,i){u(this,"viemChain");u(this,"erc20PermitHandler");u(this,"token");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=S.VIEM_CHAINS[t],this.erc20PermitHandler=new k.ERC20PermitHandler(t,e,i),this.token=l.UnifiToken.unifiETH}withToken(t){return this.token=t,this}getContract(){const t=T.VAULTS_ADDRESSES[this.token][this.chain].NucleusTeller,e=v.Teller,i={public:this.publicClient,wallet:this.walletClient};return _.getContract({address:t,abi:e,client:i})}accountant(){return this.getContract().read.accountant()}vault(){return this.getContract().read.vault()}shareLockPeriod(){return this.getContract().read.shareLockPeriod()}shareUnlockTime(t){return this.getContract().read.shareUnlockTime([t])}isPaused(){return this.getContract().read.isPaused()}async deposit(t){const{token:e,unifiToken:i,account:s,amount:n,minimumMint:a,isPreapproved:o=!1}=t,c=l.TOKENS_ADDRESSES[e][this.chain];if(o)return{transact:()=>this.getContract().write.deposit([c,n,a],{account:s,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.deposit([c,n,a],{account:s})};const{r:h,s:d,v:m,deadline:g}=await this.erc20PermitHandler.withToken(e).getPermitSignature(s,l.TOKENS_ADDRESSES[i][this.chain],n),C=[c,n,a,g,Number(m),h,d];return{transact:()=>this.getContract().write.depositWithPermit(C,{account:s,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.depositWithPermit(C,{account:s})}}depositWithPermit(t){const{account:e,depositAsset:i,depositAmount:s,minimumMint:n,deadline:a,v:o,r:c,s:h}=t;return{transact:()=>this.getContract().write.depositWithPermit([i,s,n,a,o,c,h],{account:e,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.depositWithPermit([i,s,n,a,o,c,h],{account:e})}}}exports.NucleusTellerHandler=E;
2
2
  //# sourceMappingURL=nucleus-teller-handler.cjs.map
@@ -1,12 +1,12 @@
1
1
  var g = Object.defineProperty;
2
2
  var P = (n, t, e) => t in n ? g(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var m = (n, t, e) => P(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as k } from "../../constants-BweLzNUt.js";
4
+ import { V as k } from "../../constants-C9YZ6Ewc.js";
5
5
  import { VAULTS_ADDRESSES as T } from "../vaults-addresses.js";
6
6
  import { UnifiToken as f, TOKENS_ADDRESSES as p } from "../tokens.js";
7
7
  import { ERC20PermitHandler as v } from "./erc20-permit-handler.js";
8
8
  import { Teller as S } from "../abis/mainnet/Teller.js";
9
- import { g as w } from "../../getContract-BES7gSby.js";
9
+ import { g as w } from "../../getContract-DEPNMZxg.js";
10
10
  class L {
11
11
  /**
12
12
  * Create the handler for processing tokens.
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty;var D=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>D(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-JN89aXws.cjs"),S=require("../addresses.cjs"),n=require("../tokens.cjs"),_=require("./erc20-permit-handler.cjs"),w=require("../abis/mainnet/PufLocker.cjs"),k=require("../../getContract-F-fd_vf7.cjs");class A{constructor(t,e,i){c(this,"viemChain");c(this,"erc20PermitHandler");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=o.VIEM_CHAINS[t],this.erc20PermitHandler=new _.ERC20PermitHandler(t,e,i)}getContract(){const t=S.CONTRACT_ADDRESSES[this.chain].PufLocker,e=w.PufLocker,i={public:this.publicClient,wallet:this.walletClient};return k.getContract({address:t,abi:e,client:i})}getAllDeposits(t,e){return this.getContract().read.getAllDeposits([n.TOKENS_ADDRESSES[t][this.chain],e])}getDeposits(t,e,i,a){return this.getContract().read.getDeposits([e,n.TOKENS_ADDRESSES[t][this.chain],i,a])}getLockPeriods(){return this.getContract().read.getLockPeriods()}async deposit(t){const{token:e,account:i,recipient:a,value:s,lockPeriod:h,isPreapproved:d=!1}=t;let u={r:o.padHex("0x",{size:32}),s:o.padHex("0x",{size:32}),v:0,deadline:0n,amount:s};if(!d){const{r:g,s:m,v:C,yParity:E,deadline:P}=await this.erc20PermitHandler.withToken(e).getPermitSignature(i,S.CONTRACT_ADDRESSES[this.chain].PufLocker,s);u={r:g,s:m,v:Number(C??E),deadline:P,amount:s}}const l=[n.TOKENS_ADDRESSES[e][this.chain],a,h,u];return{transact:()=>this.getContract().write.deposit(l,{account:i,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.deposit(l,{account:i})}}withdraw(t,e,i,a){const s=[n.TOKENS_ADDRESSES[t][this.chain],a,i];return{transact:()=>this.getContract().write.withdraw(s,{account:e,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.withdraw(s,{account:e})}}}exports.PufLockerHandler=A;
1
+ "use strict";var p=Object.defineProperty;var D=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>D(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-CxSgz27h.cjs"),S=require("../addresses.cjs"),n=require("../tokens.cjs"),_=require("./erc20-permit-handler.cjs"),w=require("../abis/mainnet/PufLocker.cjs"),k=require("../../getContract-DUA3M2pm.cjs");class A{constructor(t,e,i){c(this,"viemChain");c(this,"erc20PermitHandler");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=o.VIEM_CHAINS[t],this.erc20PermitHandler=new _.ERC20PermitHandler(t,e,i)}getContract(){const t=S.CONTRACT_ADDRESSES[this.chain].PufLocker,e=w.PufLocker,i={public:this.publicClient,wallet:this.walletClient};return k.getContract({address:t,abi:e,client:i})}getAllDeposits(t,e){return this.getContract().read.getAllDeposits([n.TOKENS_ADDRESSES[t][this.chain],e])}getDeposits(t,e,i,a){return this.getContract().read.getDeposits([e,n.TOKENS_ADDRESSES[t][this.chain],i,a])}getLockPeriods(){return this.getContract().read.getLockPeriods()}async deposit(t){const{token:e,account:i,recipient:a,value:s,lockPeriod:h,isPreapproved:d=!1}=t;let u={r:o.padHex("0x",{size:32}),s:o.padHex("0x",{size:32}),v:0,deadline:0n,amount:s};if(!d){const{r:g,s:m,v:C,yParity:E,deadline:P}=await this.erc20PermitHandler.withToken(e).getPermitSignature(i,S.CONTRACT_ADDRESSES[this.chain].PufLocker,s);u={r:g,s:m,v:Number(C??E),deadline:P,amount:s}}const l=[n.TOKENS_ADDRESSES[e][this.chain],a,h,u];return{transact:()=>this.getContract().write.deposit(l,{account:i,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.deposit(l,{account:i})}}withdraw(t,e,i,a){const s=[n.TOKENS_ADDRESSES[t][this.chain],a,i];return{transact:()=>this.getContract().write.withdraw(s,{account:e,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.withdraw(s,{account:e})}}}exports.PufLockerHandler=A;
2
2
  //# sourceMappingURL=puf-locker-handler.cjs.map
@@ -1,12 +1,12 @@
1
1
  var f = Object.defineProperty;
2
2
  var k = (r, t, e) => t in r ? f(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var o = (r, t, e) => k(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as v, p as l } from "../../constants-BweLzNUt.js";
4
+ import { V as v, p as l } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as p } from "../addresses.js";
6
6
  import { TOKENS_ADDRESSES as n } from "../tokens.js";
7
7
  import { ERC20PermitHandler as D } from "./erc20-permit-handler.js";
8
8
  import { PufLocker as S } from "../abis/mainnet/PufLocker.js";
9
- import { g as A } from "../../getContract-BES7gSby.js";
9
+ import { g as A } from "../../getContract-DEPNMZxg.js";
10
10
  class _ {
11
11
  /**
12
12
  * Create the handler for the `PufLocker` contract exposing methods to
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty;var P=(n,t,e)=>t in n?p(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var h=(n,t,e)=>P(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("../../constants-JN89aXws.cjs"),u=require("../addresses.cjs"),S=require("./erc20-permit-handler.cjs"),m=require("../tokens.cjs"),E=require("../abis/mainnet/PufferDepositor.cjs"),f=require("../../getContract-F-fd_vf7.cjs");class D{constructor(t,e,i){h(this,"viemChain");h(this,"erc20PermitHandler");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=H.VIEM_CHAINS[t],this.erc20PermitHandler=new S.ERC20PermitHandler(t,e,i)}getContract(){const t=u.CONTRACT_ADDRESSES[this.chain].PufferDepositor,e=E.PufferDepositor,i={public:this.publicClient,wallet:this.walletClient};return f.getContract({address:t,abi:e,client:i})}async depositStETH(t,e){const{r:i,s:a,v:s,yParity:c,deadline:o}=await this.erc20PermitHandler.withToken(m.Token.stETH).getPermitSignature(t,u.CONTRACT_ADDRESSES[this.chain].PufferDepositor,e),r={r:i,s:a,v:Number(s??c),deadline:o,amount:e};return{transact:async()=>await this.getContract().write.depositStETH([r,t],{account:t,chain:this.viemChain}),estimate:async()=>await this.getContract().estimateGas.depositStETH([r,t],{account:t})}}async depositWstETH(t,e){const{r:i,s:a,v:s,yParity:c,deadline:o}=await this.erc20PermitHandler.withToken(m.Token.wstETH).getPermitSignature(t,u.CONTRACT_ADDRESSES[this.chain].PufferDepositor,e),r={r:i,s:a,v:Number(s??c),deadline:o,amount:e};return{transact:async()=>await this.getContract().write.depositWstETH([r,t],{account:t,chain:this.viemChain}),estimate:async()=>await this.getContract().estimateGas.depositWstETH([r,t],{account:t})}}}exports.PufferDepositorHandler=D;
1
+ "use strict";var p=Object.defineProperty;var P=(n,t,e)=>t in n?p(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var h=(n,t,e)=>P(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("../../constants-CxSgz27h.cjs"),u=require("../addresses.cjs"),S=require("./erc20-permit-handler.cjs"),m=require("../tokens.cjs"),E=require("../abis/mainnet/PufferDepositor.cjs"),f=require("../../getContract-DUA3M2pm.cjs");class D{constructor(t,e,i){h(this,"viemChain");h(this,"erc20PermitHandler");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=H.VIEM_CHAINS[t],this.erc20PermitHandler=new S.ERC20PermitHandler(t,e,i)}getContract(){const t=u.CONTRACT_ADDRESSES[this.chain].PufferDepositor,e=E.PufferDepositor,i={public:this.publicClient,wallet:this.walletClient};return f.getContract({address:t,abi:e,client:i})}async depositStETH(t,e){const{r:i,s:a,v:s,yParity:c,deadline:o}=await this.erc20PermitHandler.withToken(m.Token.stETH).getPermitSignature(t,u.CONTRACT_ADDRESSES[this.chain].PufferDepositor,e),r={r:i,s:a,v:Number(s??c),deadline:o,amount:e};return{transact:async()=>await this.getContract().write.depositStETH([r,t],{account:t,chain:this.viemChain}),estimate:async()=>await this.getContract().estimateGas.depositStETH([r,t],{account:t})}}async depositWstETH(t,e){const{r:i,s:a,v:s,yParity:c,deadline:o}=await this.erc20PermitHandler.withToken(m.Token.wstETH).getPermitSignature(t,u.CONTRACT_ADDRESSES[this.chain].PufferDepositor,e),r={r:i,s:a,v:Number(s??c),deadline:o,amount:e};return{transact:async()=>await this.getContract().write.depositWstETH([r,t],{account:t,chain:this.viemChain}),estimate:async()=>await this.getContract().estimateGas.depositWstETH([r,t],{account:t})}}}exports.PufferDepositorHandler=D;
2
2
  //# sourceMappingURL=puffer-depositor-handler.cjs.map
@@ -1,12 +1,12 @@
1
1
  var C = Object.defineProperty;
2
2
  var H = (e, t, i) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
3
  var m = (e, t, i) => H(e, typeof t != "symbol" ? t + "" : t, i);
4
- import { V as P } from "../../constants-BweLzNUt.js";
4
+ import { V as P } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as h } from "../addresses.js";
6
6
  import { ERC20PermitHandler as T } from "./erc20-permit-handler.js";
7
7
  import { Token as p } from "../tokens.js";
8
8
  import { PufferDepositor as E } from "../abis/mainnet/PufferDepositor.js";
9
- import { g } from "../../getContract-BES7gSby.js";
9
+ import { g } from "../../getContract-DEPNMZxg.js";
10
10
  class k {
11
11
  /**
12
12
  * Create the handler for the `PufferDepositor` contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var S=Object.defineProperty;var D=(i,t,e)=>t in i?S(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var n=(i,t,e)=>D(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-JN89aXws.cjs"),l=require("../addresses.cjs"),_=require("../tokens.cjs"),g=require("./erc20-permit-handler.cjs"),H=require("../abis/mainnet/PufferL2Depositor.cjs"),v=require("../../getContract-F-fd_vf7.cjs");class E{constructor(t,e,r){n(this,"viemChain");n(this,"erc20PermitHandler");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=a.VIEM_CHAINS[t],this.erc20PermitHandler=new g.ERC20PermitHandler(t,e,r)}getContract(){const t=l.CONTRACT_ADDRESSES[this.chain].PufferL2Depositor,e=H.PufferL2Depositor,r={public:this.publicClient,wallet:this.walletClient};return v.getContract({address:t,abi:e,client:r})}async deposit(t){const{token:e,account:r,value:s,referralCode:d=0n,lockPeriod:u=0n,isPreapproved:h=!1}=t;let o={r:a.padHex("0x",{size:32}),s:a.padHex("0x",{size:32}),v:0,deadline:0n,amount:s};if(!h){const{r:m,s:p,v:C,yParity:f,deadline:P}=await this.erc20PermitHandler.withToken(e).getPermitSignature(r,l.CONTRACT_ADDRESSES[this.chain].PufferL2Depositor,s);o={r:m,s:p,v:Number(C??f),deadline:P,amount:s}}const c=[_.TOKENS_ADDRESSES[e][this.chain],r,o,d,u];return{transact:()=>this.getContract().write.deposit(c,{account:r,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.deposit(c,{account:r})}}}exports.PufferL2DepositorHandler=E;
1
+ "use strict";var S=Object.defineProperty;var D=(i,t,e)=>t in i?S(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var n=(i,t,e)=>D(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-CxSgz27h.cjs"),l=require("../addresses.cjs"),_=require("../tokens.cjs"),g=require("./erc20-permit-handler.cjs"),H=require("../abis/mainnet/PufferL2Depositor.cjs"),v=require("../../getContract-DUA3M2pm.cjs");class E{constructor(t,e,r){n(this,"viemChain");n(this,"erc20PermitHandler");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=a.VIEM_CHAINS[t],this.erc20PermitHandler=new g.ERC20PermitHandler(t,e,r)}getContract(){const t=l.CONTRACT_ADDRESSES[this.chain].PufferL2Depositor,e=H.PufferL2Depositor,r={public:this.publicClient,wallet:this.walletClient};return v.getContract({address:t,abi:e,client:r})}async deposit(t){const{token:e,account:r,value:s,referralCode:d=0n,lockPeriod:u=0n,isPreapproved:h=!1}=t;let o={r:a.padHex("0x",{size:32}),s:a.padHex("0x",{size:32}),v:0,deadline:0n,amount:s};if(!h){const{r:m,s:p,v:C,yParity:f,deadline:P}=await this.erc20PermitHandler.withToken(e).getPermitSignature(r,l.CONTRACT_ADDRESSES[this.chain].PufferL2Depositor,s);o={r:m,s:p,v:Number(C??f),deadline:P,amount:s}}const c=[_.TOKENS_ADDRESSES[e][this.chain],r,o,d,u];return{transact:()=>this.getContract().write.deposit(c,{account:r,chain:this.viemChain}),estimate:()=>this.getContract().estimateGas.deposit(c,{account:r})}}}exports.PufferL2DepositorHandler=E;
2
2
  //# sourceMappingURL=puffer-l2-depositor-handler.cjs.map
@@ -1,12 +1,12 @@
1
1
  var D = Object.defineProperty;
2
2
  var S = (r, t, e) => t in r ? D(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var a = (r, t, e) => S(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as g, p as c } from "../../constants-BweLzNUt.js";
4
+ import { V as g, p as c } from "../../constants-C9YZ6Ewc.js";
5
5
  import { CONTRACT_ADDRESSES as m } from "../addresses.js";
6
6
  import { TOKENS_ADDRESSES as v } from "../tokens.js";
7
7
  import { ERC20PermitHandler as E } from "./erc20-permit-handler.js";
8
8
  import { PufferL2Depositor as H } from "../abis/mainnet/PufferL2Depositor.js";
9
- import { g as w } from "../../getContract-BES7gSby.js";
9
+ import { g as w } from "../../getContract-DEPNMZxg.js";
10
10
  class _ {
11
11
  /**
12
12
  * Create the handler for the `PufferL2Depositor` contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var n=Object.defineProperty;var c=(i,t,e)=>t in i?n(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var a=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../constants-JN89aXws.cjs"),o=require("../addresses.cjs"),l=require("../abis/mainnet/PufferOracleV2.cjs"),h=require("../../getContract-F-fd_vf7.cjs");class u{constructor(t,e,r){a(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=s.VIEM_CHAINS[t]}getContract(){const t=o.CONTRACT_ADDRESSES[this.chain].PufferOracleV2,e=l.PufferOracleV2,r={public:this.publicClient,wallet:this.walletClient};return h.getContract({address:t,abi:e,client:r})}getValidatorTicketPrice(){return this.getContract().read.getValidatorTicketPrice()}getTotalNumberOfValidators(){return this.getContract().read.getTotalNumberOfValidators()}getLockedEthAmount(){return this.getContract().read.getLockedEthAmount()}isOverBurstThreshold(){return this.getContract().read.isOverBurstThreshold()}provisionNode(){return this.getContract().write.provisionNode({account:this.walletClient.account,chain:this.viemChain})}exitValidators(t){return this.getContract().write.exitValidators([t],{account:this.walletClient.account,chain:this.viemChain})}setMintPrice(t){return this.getContract().write.setMintPrice([t],{account:this.walletClient.account,chain:this.viemChain})}setTotalNumberOfValidators(t,e,r){return this.getContract().write.setTotalNumberOfValidators([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}}exports.PufferOracleV2Handler=u;
1
+ "use strict";var n=Object.defineProperty;var c=(i,t,e)=>t in i?n(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var a=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../constants-CxSgz27h.cjs"),o=require("../addresses.cjs"),l=require("../abis/mainnet/PufferOracleV2.cjs"),h=require("../../getContract-DUA3M2pm.cjs");class u{constructor(t,e,r){a(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=s.VIEM_CHAINS[t]}getContract(){const t=o.CONTRACT_ADDRESSES[this.chain].PufferOracleV2,e=l.PufferOracleV2,r={public:this.publicClient,wallet:this.walletClient};return h.getContract({address:t,abi:e,client:r})}getValidatorTicketPrice(){return this.getContract().read.getValidatorTicketPrice()}getTotalNumberOfValidators(){return this.getContract().read.getTotalNumberOfValidators()}getLockedEthAmount(){return this.getContract().read.getLockedEthAmount()}isOverBurstThreshold(){return this.getContract().read.isOverBurstThreshold()}provisionNode(){return this.getContract().write.provisionNode({account:this.walletClient.account,chain:this.viemChain})}exitValidators(t){return this.getContract().write.exitValidators([t],{account:this.walletClient.account,chain:this.viemChain})}setMintPrice(t){return this.getContract().write.setMintPrice([t],{account:this.walletClient.account,chain:this.viemChain})}setTotalNumberOfValidators(t,e,r){return this.getContract().write.setTotalNumberOfValidators([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}}exports.PufferOracleV2Handler=u;
2
2
  //# sourceMappingURL=puffer-oracle-v2-handler.cjs.map