@pufferfinance/puffer-sdk 1.29.0 → 1.29.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 (140) hide show
  1. package/dist/api/puffer-client-helpers.cjs +1 -1
  2. package/dist/api/puffer-client-helpers.cjs.map +1 -1
  3. package/dist/api/puffer-client-helpers.js +3 -3
  4. package/dist/api/puffer-client-helpers.js.map +1 -1
  5. package/dist/api/puffer-client.cjs +1 -1
  6. package/dist/api/puffer-client.js +2 -2
  7. package/dist/{ccip-Dv8Z-tXr.cjs → ccip-BQKdkZzc.cjs} +2 -2
  8. package/dist/{ccip-Dv8Z-tXr.cjs.map → ccip-BQKdkZzc.cjs.map} +1 -1
  9. package/dist/{ccip-dYaIZXTj.js → ccip-DkpMYAPh.js} +4 -4
  10. package/dist/{ccip-dYaIZXTj.js.map → ccip-DkpMYAPh.js.map} +1 -1
  11. package/dist/chains/constants.cjs +1 -1
  12. package/dist/chains/constants.d.ts +3 -1
  13. package/dist/chains/constants.js +1 -1
  14. package/dist/{constants-BO_Dvglw.js → constants-0GZgavMM.js} +511 -443
  15. package/dist/constants-0GZgavMM.js.map +1 -0
  16. package/dist/constants-CwkqnEF2.cjs +8 -0
  17. package/dist/constants-CwkqnEF2.cjs.map +1 -0
  18. package/dist/contracts/addresses.cjs +1 -1
  19. package/dist/contracts/addresses.js +1 -1
  20. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  21. package/dist/contracts/handlers/carrot-staking-handler.d.ts +9 -3
  22. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  23. package/dist/contracts/handlers/carrot-vesting-handler.cjs +1 -1
  24. package/dist/contracts/handlers/carrot-vesting-handler.d.ts +9 -3
  25. package/dist/contracts/handlers/carrot-vesting-handler.js +2 -2
  26. package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
  27. package/dist/contracts/handlers/concrete-vault-handler.d.ts +9 -3
  28. package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
  29. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  30. package/dist/contracts/handlers/distributor-handler.d.ts +9 -3
  31. package/dist/contracts/handlers/distributor-handler.js +2 -2
  32. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  33. package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
  34. package/dist/contracts/handlers/erc20-permit-handler.d.ts +9 -3
  35. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  36. package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
  37. package/dist/contracts/handlers/gauge-registry-handler.cjs +1 -1
  38. package/dist/contracts/handlers/gauge-registry-handler.d.ts +9 -3
  39. package/dist/contracts/handlers/gauge-registry-handler.js +2 -2
  40. package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
  41. package/dist/contracts/handlers/guardian-module-handler.d.ts +9 -3
  42. package/dist/contracts/handlers/guardian-module-handler.js +2 -2
  43. package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
  44. package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +9 -3
  45. package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
  46. package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
  47. package/dist/contracts/handlers/institutional-vault-handler.d.ts +9 -3
  48. package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
  49. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  50. package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +9 -3
  51. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  52. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  53. package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +9 -3
  54. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  55. package/dist/contracts/handlers/lagoon-vault-handler.cjs +1 -1
  56. package/dist/contracts/handlers/lagoon-vault-handler.d.ts +9 -3
  57. package/dist/contracts/handlers/lagoon-vault-handler.js +2 -2
  58. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  59. package/dist/contracts/handlers/mtw-carrot-handler.d.ts +9 -3
  60. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  61. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  62. package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +9 -3
  63. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  64. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  65. package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +10 -4
  66. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  67. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  68. package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +9 -3
  69. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  70. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  71. package/dist/contracts/handlers/nucleus-teller-handler.d.ts +9 -3
  72. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  73. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  74. package/dist/contracts/handlers/puf-locker-handler.d.ts +9 -3
  75. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  76. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  77. package/dist/contracts/handlers/puffer-depositor-handler.d.ts +9 -3
  78. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  79. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  80. package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +9 -3
  81. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  82. package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
  83. package/dist/contracts/handlers/puffer-oracle-v2-handler.d.ts +9 -3
  84. package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
  85. package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
  86. package/dist/contracts/handlers/puffer-protocol-handler.d.ts +9 -3
  87. package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
  88. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  89. package/dist/contracts/handlers/puffer-vault-handler.d.ts +9 -3
  90. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  91. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  92. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +9 -3
  93. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  94. package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
  95. package/dist/contracts/handlers/validator-ticket-handler.d.ts +10 -4
  96. package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
  97. package/dist/contracts/handlers/vl-puffer-handler.cjs +1 -1
  98. package/dist/contracts/handlers/vl-puffer-handler.d.ts +9 -3
  99. package/dist/contracts/handlers/vl-puffer-handler.js +2 -2
  100. package/dist/contracts/tokens.cjs +1 -1
  101. package/dist/contracts/tokens.cjs.map +1 -1
  102. package/dist/contracts/tokens.d.ts +1 -0
  103. package/dist/contracts/tokens.js +9 -4
  104. package/dist/contracts/tokens.js.map +1 -1
  105. package/dist/contracts/vaults-addresses.cjs +1 -1
  106. package/dist/contracts/vaults-addresses.js +1 -1
  107. package/dist/{getContract-C6a8L2Jd.cjs → getContract-BinxcNSi.cjs} +2 -2
  108. package/dist/{getContract-C6a8L2Jd.cjs.map → getContract-BinxcNSi.cjs.map} +1 -1
  109. package/dist/{getContract-DRjKmuyC.js → getContract-DaCKXI8P.js} +2 -2
  110. package/dist/{getContract-DRjKmuyC.js.map → getContract-DaCKXI8P.js.map} +1 -1
  111. package/dist/http-BC-nqLLb.cjs +5 -0
  112. package/dist/http-BC-nqLLb.cjs.map +1 -0
  113. package/dist/{http-ZcKHvn9V.js → http-DfLfk9B5.js} +1343 -1302
  114. package/dist/http-DfLfk9B5.js.map +1 -0
  115. package/dist/{localBatchGatewayRequest-BTy8p6qj.cjs → localBatchGatewayRequest-B7XKTHRK.cjs} +2 -2
  116. package/dist/{localBatchGatewayRequest-BTy8p6qj.cjs.map → localBatchGatewayRequest-B7XKTHRK.cjs.map} +1 -1
  117. package/dist/{localBatchGatewayRequest-Cb0QKL0s.js → localBatchGatewayRequest-C1C2Kpcs.js} +3 -3
  118. package/dist/{localBatchGatewayRequest-Cb0QKL0s.js.map → localBatchGatewayRequest-C1C2Kpcs.js.map} +1 -1
  119. package/dist/main.cjs +1 -1
  120. package/dist/main.js +1 -1
  121. package/dist/{secp256k1-Dx1prb1E.js → secp256k1-BNsewQvi.js} +2 -2
  122. package/dist/{secp256k1-Dx1prb1E.js.map → secp256k1-BNsewQvi.js.map} +1 -1
  123. package/dist/{secp256k1-CzsL7iVx.cjs → secp256k1-Be7RiBch.cjs} +2 -2
  124. package/dist/{secp256k1-CzsL7iVx.cjs.map → secp256k1-Be7RiBch.cjs.map} +1 -1
  125. package/dist/utils/version.cjs +1 -1
  126. package/dist/utils/version.js +1 -1
  127. package/dist/writeContract-De1cMFmW.cjs +36 -0
  128. package/dist/writeContract-De1cMFmW.cjs.map +1 -0
  129. package/dist/{writeContract-BFxyLFA9.js → writeContract-DordYfu2.js} +1650 -1479
  130. package/dist/writeContract-DordYfu2.js.map +1 -0
  131. package/package.json +2 -2
  132. package/dist/constants-4-ehn8UI.cjs +0 -9
  133. package/dist/constants-4-ehn8UI.cjs.map +0 -1
  134. package/dist/constants-BO_Dvglw.js.map +0 -1
  135. package/dist/http-CRYDzx7w.cjs +0 -5
  136. package/dist/http-CRYDzx7w.cjs.map +0 -1
  137. package/dist/http-ZcKHvn9V.js.map +0 -1
  138. package/dist/writeContract-BFxyLFA9.js.map +0 -1
  139. package/dist/writeContract-HBsqM_Od.cjs +0 -36
  140. package/dist/writeContract-HBsqM_Od.cjs.map +0 -1
@@ -440,6 +440,7 @@ export declare class ERC20PermitHandler {
440
440
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
441
441
  } | undefined;
442
442
  chain: ViemChain | undefined;
443
+ dataSuffix?: import('viem').DataSuffix | undefined;
443
444
  experimental_blockTag?: import('viem').BlockTag | undefined;
444
445
  key: string;
445
446
  name: string;
@@ -459,6 +460,7 @@ export declare class ERC20PermitHandler {
459
460
  createPendingTransactionFilter: () => Promise<import('viem').CreatePendingTransactionFilterReturnType>;
460
461
  estimateContractGas: <chain extends ViemChain | undefined, const abi extends import('viem').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, args extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: import('viem').EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<import('viem').EstimateContractGasReturnType>;
461
462
  estimateGas: (args: import('viem').EstimateGasParameters<ViemChain | undefined>) => Promise<import('viem').EstimateGasReturnType>;
463
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
462
464
  getBalance: (args: import('viem').GetBalanceParameters) => Promise<import('viem').GetBalanceReturnType>;
463
465
  getBlobBaseFee: () => Promise<import('viem').GetBlobBaseFeeReturnType>;
464
466
  getBlock: <includeTransactions extends boolean = false, blockTag extends import('viem').BlockTag = "latest">(args?: import('viem').GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
@@ -4056,6 +4058,7 @@ export declare class ERC20PermitHandler {
4056
4058
  cacheTime?: undefined;
4057
4059
  ccipRead?: undefined;
4058
4060
  chain?: undefined;
4061
+ dataSuffix?: undefined;
4059
4062
  experimental_blockTag?: undefined;
4060
4063
  key?: undefined;
4061
4064
  name?: undefined;
@@ -4064,7 +4067,7 @@ export declare class ERC20PermitHandler {
4064
4067
  transport?: undefined;
4065
4068
  type?: undefined;
4066
4069
  uid?: undefined;
4067
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
4070
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
4068
4071
  };
4069
4072
  wallet: {
4070
4073
  account: import('viem').Account | undefined;
@@ -4076,6 +4079,7 @@ export declare class ERC20PermitHandler {
4076
4079
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
4077
4080
  } | undefined;
4078
4081
  chain: ViemChain | undefined;
4082
+ dataSuffix?: import('viem').DataSuffix | undefined;
4079
4083
  experimental_blockTag?: import('viem').BlockTag | undefined;
4080
4084
  key: string;
4081
4085
  name: string;
@@ -4086,6 +4090,7 @@ export declare class ERC20PermitHandler {
4086
4090
  uid: string;
4087
4091
  addChain: (args: import('viem').AddChainParameters) => Promise<void>;
4088
4092
  deployContract: <const abi extends import('viem').Abi | readonly unknown[], chainOverride extends ViemChain | undefined>(args: import('viem').DeployContractParameters<abi, ViemChain | undefined, import('viem').Account | undefined, chainOverride>) => Promise<import('viem').DeployContractReturnType>;
4093
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
4089
4094
  getAddresses: () => Promise<import('viem').GetAddressesReturnType>;
4090
4095
  getCallsStatus: (parameters: import('viem').GetCallsStatusParameters) => Promise<import('viem').GetCallsStatusReturnType>;
4091
4096
  getCapabilities: <chainId extends number | undefined>(parameters?: import('viem').GetCapabilitiesParameters<chainId>) => Promise<import('viem').GetCapabilitiesReturnType<chainId>>;
@@ -7370,7 +7375,7 @@ export declare class ERC20PermitHandler {
7370
7375
  sendRawTransaction: (args: import('viem').SendRawTransactionParameters) => Promise<import('viem').SendRawTransactionReturnType>;
7371
7376
  sendRawTransactionSync: (args: import('viem').SendRawTransactionSyncParameters) => Promise<import('viem').TransactionReceipt>;
7372
7377
  sendTransaction: <const request extends import('viem').SendTransactionRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionReturnType>;
7373
- sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionSyncReturnType>;
7378
+ sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').TransactionReceipt>;
7374
7379
  showCallsStatus: (parameters: import('viem').ShowCallsStatusParameters) => Promise<import('viem').ShowCallsStatusReturnType>;
7375
7380
  signAuthorization: (parameters: import('viem').SignAuthorizationParameters<import('viem').Account | undefined>) => Promise<import('viem').SignAuthorizationReturnType>;
7376
7381
  signMessage: (args: import('viem').SignMessageParameters<import('viem').Account | undefined>) => Promise<import('viem').SignMessageReturnType>;
@@ -8486,6 +8491,7 @@ export declare class ERC20PermitHandler {
8486
8491
  cacheTime?: undefined;
8487
8492
  ccipRead?: undefined;
8488
8493
  chain?: undefined;
8494
+ dataSuffix?: undefined;
8489
8495
  experimental_blockTag?: undefined;
8490
8496
  key?: undefined;
8491
8497
  name?: undefined;
@@ -8494,7 +8500,7 @@ export declare class ERC20PermitHandler {
8494
8500
  transport?: undefined;
8495
8501
  type?: undefined;
8496
8502
  uid?: undefined;
8497
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>;
8503
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>;
8498
8504
  };
8499
8505
  }, Address>;
8500
8506
  /**
@@ -1,9 +1,9 @@
1
- import { n as a, V as l } from "../../constants-BO_Dvglw.js";
1
+ import { n as a, V as l } from "../../constants-0GZgavMM.js";
2
2
  import { Token as g, TOKENS_ADDRESSES as u, TOKENS_PERMIT_VERSION as d, TOKENS_SALT as y } from "../tokens.js";
3
3
  import { getTimestampInSeconds as C } from "../../utils/time.js";
4
4
  import { ERC20Permit as f } from "../abis/mainnet/ERC20Permit.js";
5
- import { g as P } from "../../getContract-DRjKmuyC.js";
6
- import { secp256k1 as S } from "../../secp256k1-Dx1prb1E.js";
5
+ import { g as P } from "../../getContract-DaCKXI8P.js";
6
+ import { secp256k1 as S } from "../../secp256k1-BNsewQvi.js";
7
7
  function v(s) {
8
8
  const { r: t, s: n } = S.Signature.fromCompact(s.slice(2, 130)), e = +`0x${s.slice(130)}`, [i, r] = (() => {
9
9
  if (e === 0 || e === 1)
@@ -1 +1 @@
1
- {"version":3,"file":"erc20-permit-handler.js","sources":["../../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.1.12/node_modules/viem/_esm/utils/signature/parseSignature.js","../../../lib/contracts/handlers/erc20-permit-handler.ts"],"sourcesContent":["import { secp256k1 } from '@noble/curves/secp256k1';\nimport { numberToHex, } from '../../utils/encoding/toHex.js';\n/**\n * @description Parses a hex formatted signature into a structured signature.\n *\n * @param signatureHex Signature in hex format.\n * @returns The structured signature.\n *\n * @example\n * parseSignature('0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c')\n * // { r: '0x...', s: '0x...', v: 28n }\n */\nexport function parseSignature(signatureHex) {\n const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));\n const yParityOrV = Number(`0x${signatureHex.slice(130)}`);\n const [v, yParity] = (() => {\n if (yParityOrV === 0 || yParityOrV === 1)\n return [undefined, yParityOrV];\n if (yParityOrV === 27)\n return [BigInt(yParityOrV), 0];\n if (yParityOrV === 28)\n return [BigInt(yParityOrV), 1];\n throw new Error('Invalid yParityOrV value');\n })();\n if (typeof v !== 'undefined')\n return {\n r: numberToHex(r, { size: 32 }),\n s: numberToHex(s, { size: 32 }),\n v,\n yParity,\n };\n return {\n r: numberToHex(r, { size: 32 }),\n s: numberToHex(s, { size: 32 }),\n yParity,\n };\n}\n//# sourceMappingURL=parseSignature.js.map","import {\n WalletClient,\n PublicClient,\n getContract,\n Address,\n parseSignature,\n GetContractReturnType,\n} from 'viem';\nimport { Chain, VIEM_CHAINS, ViemChain } from '../../chains/constants';\nimport {\n AnyToken,\n TOKENS_ADDRESSES,\n TOKENS_SALT,\n TOKENS_PERMIT_VERSION,\n Token,\n} from '../tokens';\nimport { getTimestampInSeconds } from '../../utils/time';\nimport { ERC20Permit } from '../abis/mainnet/ERC20Permit';\nimport { PermitData } from '../common/lib/types';\n\n/**\n * Handler for performing operations for and with ERC20Permit tokens.\n */\nexport class ERC20PermitHandler {\n private viemChain: ViemChain;\n private token: AnyToken;\n\n /**\n * Create the handler for processing tokens.\n *\n * @param chain Chain to use for the client.\n * @param walletClient The wallet client to use for wallet\n * interactions.\n * @param publicClient The public client to use for public\n * interactions.\n */\n constructor(\n private chain: Chain,\n private walletClient: WalletClient,\n private publicClient: PublicClient,\n ) {\n this.viemChain = VIEM_CHAINS[chain];\n this.token = Token.WETH;\n }\n\n /**\n * Set the token to use for executing transactions on the contract.\n *\n * @param token Token to use for the handler.\n * @returns The handler.\n */\n public withToken(token: AnyToken) {\n this.token = token;\n return this;\n }\n\n /**\n * Get the contract. This is a method because the typings are complex\n * and lost when trying to make it a member.\n *\n * @returns The viem contract.\n */\n public getContract() {\n const address = TOKENS_ADDRESSES[this.token][this.chain];\n const abi = ERC20Permit;\n const client = { public: this.publicClient, wallet: this.walletClient };\n\n return getContract({ address, abi, client }) as GetContractReturnType<\n typeof abi,\n typeof client,\n Address\n >;\n }\n\n /**\n * Get the nonces for the given account.\n *\n * @param account Address of the account.\n * @returns The nonces.\n */\n public nonces(account: Address) {\n return this.getContract().read.nonces([account]);\n }\n\n /**\n * Process and get permit signature for the given token to perform\n * transactions without calling `approve()`.\n *\n * @param ownerAddress Address of the token owner.\n * @param spenderAddress Address of the spender who needs the permit.\n * @param value Value of the transaction.\n * @returns Permit signature in the form `{ r, s, v?, yParity }`.\n */\n public async getPermitSignature(\n ownerAddress: Address,\n spenderAddress: Address,\n value: bigint,\n ) {\n const contract = this.getContract();\n\n const permitNonces = await this.nonces(ownerAddress);\n const name = await contract.read.name();\n const domain = <const>{\n name,\n version: this.getPermitVersion(this.token),\n chainId: this.chain,\n verifyingContract: TOKENS_ADDRESSES[this.token][this.chain],\n salt: this.getPermitSalt(this.token),\n };\n const types = <const>{\n Permit: [\n { name: 'owner', type: 'address' },\n { name: 'spender', type: 'address' },\n { name: 'value', type: 'uint256' },\n { name: 'nonce', type: 'uint256' },\n { name: 'deadline', type: 'uint256' },\n ],\n };\n // Valid for 2 hours.\n const deadline = BigInt(getTimestampInSeconds() + 60 * 60 * 2);\n\n const signature = await this.walletClient.signTypedData({\n account: ownerAddress,\n domain,\n types,\n primaryType: 'Permit',\n message: {\n owner: ownerAddress,\n spender: spenderAddress,\n value,\n nonce: permitNonces,\n deadline,\n },\n });\n\n return { ...parseSignature(signature), deadline };\n }\n\n /**\n * Get the permit data for the given owner, spender and value.\n *\n * @param ownerAddress Address of the token owner.\n * @param spenderAddress Address of the spender who needs the permit.\n * @param value Value/amount to be permitted.\n * @returns Permit data in the form `{ r, s, v, deadline, amount }`.\n */\n public async getPermitData(\n ownerAddress: Address,\n spenderAddress: Address,\n value: bigint,\n ): Promise<PermitData> {\n const { r, s, v, yParity, deadline } = await this.getPermitSignature(\n ownerAddress,\n spenderAddress,\n value,\n );\n\n /* istanbul ignore next */\n return { r, s, v: Number(v ?? yParity), deadline, amount: value };\n }\n\n /**\n * Approve transaction for the spender to spend the owner's tokens.\n *\n * @param ownerAddress Address of the caller of the transaction.\n * @param spenderAddress Address of the spender.\n * @param value Value to approve for the spender.\n * @returns Hash of the transaction.\n */\n public approve(\n ownerAddress: Address,\n spenderAddress: Address,\n value: bigint,\n ) {\n return this.getContract().write.approve([spenderAddress, value], {\n account: ownerAddress,\n chain: this.viemChain,\n });\n }\n\n private getPermitVersion(token: AnyToken): string {\n return TOKENS_PERMIT_VERSION[token];\n }\n\n private getPermitSalt(token: AnyToken) {\n return TOKENS_SALT?.[token]?.[this.chain];\n }\n}\n"],"names":["parseSignature","signatureHex","r","s","secp256k1","yParityOrV","v","yParity","numberToHex","ERC20PermitHandler","chain","walletClient","publicClient","VIEM_CHAINS","Token","token","address","TOKENS_ADDRESSES","abi","ERC20Permit","client","getContract","account","ownerAddress","spenderAddress","value","contract","permitNonces","domain","types","deadline","getTimestampInSeconds","signature","TOKENS_PERMIT_VERSION","TOKENS_SALT"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"erc20-permit-handler.js","sources":["../../../node_modules/.pnpm/viem@2.45.0_typescript@5.9.3_zod@4.1.12/node_modules/viem/_esm/utils/signature/parseSignature.js","../../../lib/contracts/handlers/erc20-permit-handler.ts"],"sourcesContent":["import { secp256k1 } from '@noble/curves/secp256k1';\nimport { numberToHex, } from '../../utils/encoding/toHex.js';\n/**\n * @description Parses a hex formatted signature into a structured signature.\n *\n * @param signatureHex Signature in hex format.\n * @returns The structured signature.\n *\n * @example\n * parseSignature('0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c')\n * // { r: '0x...', s: '0x...', v: 28n }\n */\nexport function parseSignature(signatureHex) {\n const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));\n const yParityOrV = Number(`0x${signatureHex.slice(130)}`);\n const [v, yParity] = (() => {\n if (yParityOrV === 0 || yParityOrV === 1)\n return [undefined, yParityOrV];\n if (yParityOrV === 27)\n return [BigInt(yParityOrV), 0];\n if (yParityOrV === 28)\n return [BigInt(yParityOrV), 1];\n throw new Error('Invalid yParityOrV value');\n })();\n if (typeof v !== 'undefined')\n return {\n r: numberToHex(r, { size: 32 }),\n s: numberToHex(s, { size: 32 }),\n v,\n yParity,\n };\n return {\n r: numberToHex(r, { size: 32 }),\n s: numberToHex(s, { size: 32 }),\n yParity,\n };\n}\n//# sourceMappingURL=parseSignature.js.map","import {\n WalletClient,\n PublicClient,\n getContract,\n Address,\n parseSignature,\n GetContractReturnType,\n} from 'viem';\nimport { Chain, VIEM_CHAINS, ViemChain } from '../../chains/constants';\nimport {\n AnyToken,\n TOKENS_ADDRESSES,\n TOKENS_SALT,\n TOKENS_PERMIT_VERSION,\n Token,\n} from '../tokens';\nimport { getTimestampInSeconds } from '../../utils/time';\nimport { ERC20Permit } from '../abis/mainnet/ERC20Permit';\nimport { PermitData } from '../common/lib/types';\n\n/**\n * Handler for performing operations for and with ERC20Permit tokens.\n */\nexport class ERC20PermitHandler {\n private viemChain: ViemChain;\n private token: AnyToken;\n\n /**\n * Create the handler for processing tokens.\n *\n * @param chain Chain to use for the client.\n * @param walletClient The wallet client to use for wallet\n * interactions.\n * @param publicClient The public client to use for public\n * interactions.\n */\n constructor(\n private chain: Chain,\n private walletClient: WalletClient,\n private publicClient: PublicClient,\n ) {\n this.viemChain = VIEM_CHAINS[chain];\n this.token = Token.WETH;\n }\n\n /**\n * Set the token to use for executing transactions on the contract.\n *\n * @param token Token to use for the handler.\n * @returns The handler.\n */\n public withToken(token: AnyToken) {\n this.token = token;\n return this;\n }\n\n /**\n * Get the contract. This is a method because the typings are complex\n * and lost when trying to make it a member.\n *\n * @returns The viem contract.\n */\n public getContract() {\n const address = TOKENS_ADDRESSES[this.token][this.chain];\n const abi = ERC20Permit;\n const client = { public: this.publicClient, wallet: this.walletClient };\n\n return getContract({ address, abi, client }) as GetContractReturnType<\n typeof abi,\n typeof client,\n Address\n >;\n }\n\n /**\n * Get the nonces for the given account.\n *\n * @param account Address of the account.\n * @returns The nonces.\n */\n public nonces(account: Address) {\n return this.getContract().read.nonces([account]);\n }\n\n /**\n * Process and get permit signature for the given token to perform\n * transactions without calling `approve()`.\n *\n * @param ownerAddress Address of the token owner.\n * @param spenderAddress Address of the spender who needs the permit.\n * @param value Value of the transaction.\n * @returns Permit signature in the form `{ r, s, v?, yParity }`.\n */\n public async getPermitSignature(\n ownerAddress: Address,\n spenderAddress: Address,\n value: bigint,\n ) {\n const contract = this.getContract();\n\n const permitNonces = await this.nonces(ownerAddress);\n const name = await contract.read.name();\n const domain = <const>{\n name,\n version: this.getPermitVersion(this.token),\n chainId: this.chain,\n verifyingContract: TOKENS_ADDRESSES[this.token][this.chain],\n salt: this.getPermitSalt(this.token),\n };\n const types = <const>{\n Permit: [\n { name: 'owner', type: 'address' },\n { name: 'spender', type: 'address' },\n { name: 'value', type: 'uint256' },\n { name: 'nonce', type: 'uint256' },\n { name: 'deadline', type: 'uint256' },\n ],\n };\n // Valid for 2 hours.\n const deadline = BigInt(getTimestampInSeconds() + 60 * 60 * 2);\n\n const signature = await this.walletClient.signTypedData({\n account: ownerAddress,\n domain,\n types,\n primaryType: 'Permit',\n message: {\n owner: ownerAddress,\n spender: spenderAddress,\n value,\n nonce: permitNonces,\n deadline,\n },\n });\n\n return { ...parseSignature(signature), deadline };\n }\n\n /**\n * Get the permit data for the given owner, spender and value.\n *\n * @param ownerAddress Address of the token owner.\n * @param spenderAddress Address of the spender who needs the permit.\n * @param value Value/amount to be permitted.\n * @returns Permit data in the form `{ r, s, v, deadline, amount }`.\n */\n public async getPermitData(\n ownerAddress: Address,\n spenderAddress: Address,\n value: bigint,\n ): Promise<PermitData> {\n const { r, s, v, yParity, deadline } = await this.getPermitSignature(\n ownerAddress,\n spenderAddress,\n value,\n );\n\n /* istanbul ignore next */\n return { r, s, v: Number(v ?? yParity), deadline, amount: value };\n }\n\n /**\n * Approve transaction for the spender to spend the owner's tokens.\n *\n * @param ownerAddress Address of the caller of the transaction.\n * @param spenderAddress Address of the spender.\n * @param value Value to approve for the spender.\n * @returns Hash of the transaction.\n */\n public approve(\n ownerAddress: Address,\n spenderAddress: Address,\n value: bigint,\n ) {\n return this.getContract().write.approve([spenderAddress, value], {\n account: ownerAddress,\n chain: this.viemChain,\n });\n }\n\n private getPermitVersion(token: AnyToken): string {\n return TOKENS_PERMIT_VERSION[token];\n }\n\n private getPermitSalt(token: AnyToken) {\n return TOKENS_SALT?.[token]?.[this.chain];\n }\n}\n"],"names":["parseSignature","signatureHex","r","s","secp256k1","yParityOrV","v","yParity","numberToHex","ERC20PermitHandler","chain","walletClient","publicClient","VIEM_CHAINS","Token","token","address","TOKENS_ADDRESSES","abi","ERC20Permit","client","getContract","account","ownerAddress","spenderAddress","value","contract","permitNonces","domain","types","deadline","getTimestampInSeconds","signature","TOKENS_PERMIT_VERSION","TOKENS_SALT"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-4-ehn8UI.cjs"),n=require("../abis/mainnet/GaugeRegistry.cjs"),r=require("../addresses.cjs"),c=require("../../getContract-C6a8L2Jd.cjs");class s{constructor(t,e,i){this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=a.VIEM_CHAINS[t]}viemChain;getContract(){const t=r.CONTRACT_ADDRESSES[this.chain].GaugeRegistry,e=n.GaugeRegistry,i={public:this.publicClient,wallet:this.walletClient};return c.getContract({address:t,abi:e,client:i})}owner(){return this.getContract().read.owner()}pendingOwner(){return this.getContract().read.pendingOwner()}gaugeExists(t){return this.getContract().read.gaugeExists([t])}isActive(t){return this.getContract().read.isActive([t])}async getGauge(t){return await this.getContract().read.getGauge([t])}getGaugeList(){return this.getContract().read.getGaugeList()}registerGauge(t,e){return this.getContract().write.registerGauge([t,e],{account:this.walletClient.account,chain:this.viemChain})}activateGauge(t){return this.getContract().write.activateGauge([t],{account:this.walletClient.account,chain:this.viemChain})}deactivateGauge(t){return this.getContract().write.deactivateGauge([t],{account:this.walletClient.account,chain:this.viemChain})}updateGaugeMetadata(t,e){return this.getContract().write.updateGaugeMetadata([t,e],{account:this.walletClient.account,chain:this.viemChain})}transferOwnership(t){return this.getContract().write.transferOwnership([t],{account:this.walletClient.account,chain:this.viemChain})}acceptOwnership(){return this.getContract().write.acceptOwnership({account:this.walletClient.account,chain:this.viemChain})}renounceOwnership(){return this.getContract().write.renounceOwnership({account:this.walletClient.account,chain:this.viemChain})}}exports.GaugeRegistryHandler=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-CwkqnEF2.cjs"),n=require("../abis/mainnet/GaugeRegistry.cjs"),r=require("../addresses.cjs"),c=require("../../getContract-BinxcNSi.cjs");class s{constructor(t,e,i){this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=a.VIEM_CHAINS[t]}viemChain;getContract(){const t=r.CONTRACT_ADDRESSES[this.chain].GaugeRegistry,e=n.GaugeRegistry,i={public:this.publicClient,wallet:this.walletClient};return c.getContract({address:t,abi:e,client:i})}owner(){return this.getContract().read.owner()}pendingOwner(){return this.getContract().read.pendingOwner()}gaugeExists(t){return this.getContract().read.gaugeExists([t])}isActive(t){return this.getContract().read.isActive([t])}async getGauge(t){return await this.getContract().read.getGauge([t])}getGaugeList(){return this.getContract().read.getGaugeList()}registerGauge(t,e){return this.getContract().write.registerGauge([t,e],{account:this.walletClient.account,chain:this.viemChain})}activateGauge(t){return this.getContract().write.activateGauge([t],{account:this.walletClient.account,chain:this.viemChain})}deactivateGauge(t){return this.getContract().write.deactivateGauge([t],{account:this.walletClient.account,chain:this.viemChain})}updateGaugeMetadata(t,e){return this.getContract().write.updateGaugeMetadata([t,e],{account:this.walletClient.account,chain:this.viemChain})}transferOwnership(t){return this.getContract().write.transferOwnership([t],{account:this.walletClient.account,chain:this.viemChain})}acceptOwnership(){return this.getContract().write.acceptOwnership({account:this.walletClient.account,chain:this.viemChain})}renounceOwnership(){return this.getContract().write.renounceOwnership({account:this.walletClient.account,chain:this.viemChain})}}exports.GaugeRegistryHandler=s;
2
2
  //# sourceMappingURL=gauge-registry-handler.cjs.map
@@ -37,6 +37,7 @@ export declare class GaugeRegistryHandler {
37
37
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
38
38
  } | undefined;
39
39
  chain: ViemChain | undefined;
40
+ dataSuffix?: import('viem').DataSuffix | undefined;
40
41
  experimental_blockTag?: import('viem').BlockTag | undefined;
41
42
  key: string;
42
43
  name: string;
@@ -56,6 +57,7 @@ export declare class GaugeRegistryHandler {
56
57
  createPendingTransactionFilter: () => Promise<import('viem').CreatePendingTransactionFilterReturnType>;
57
58
  estimateContractGas: <chain extends ViemChain | undefined, const abi extends import('viem').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, args extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: import('viem').EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<import('viem').EstimateContractGasReturnType>;
58
59
  estimateGas: (args: import('viem').EstimateGasParameters<ViemChain | undefined>) => Promise<import('viem').EstimateGasReturnType>;
60
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
59
61
  getBalance: (args: import('viem').GetBalanceParameters) => Promise<import('viem').GetBalanceReturnType>;
60
62
  getBlobBaseFee: () => Promise<import('viem').GetBlobBaseFeeReturnType>;
61
63
  getBlock: <includeTransactions extends boolean = false, blockTag extends import('viem').BlockTag = "latest">(args?: import('viem').GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
@@ -3653,6 +3655,7 @@ export declare class GaugeRegistryHandler {
3653
3655
  cacheTime?: undefined;
3654
3656
  ccipRead?: undefined;
3655
3657
  chain?: undefined;
3658
+ dataSuffix?: undefined;
3656
3659
  experimental_blockTag?: undefined;
3657
3660
  key?: undefined;
3658
3661
  name?: undefined;
@@ -3661,7 +3664,7 @@ export declare class GaugeRegistryHandler {
3661
3664
  transport?: undefined;
3662
3665
  type?: undefined;
3663
3666
  uid?: undefined;
3664
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
3667
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
3665
3668
  };
3666
3669
  wallet: {
3667
3670
  account: Account | undefined;
@@ -3673,6 +3676,7 @@ export declare class GaugeRegistryHandler {
3673
3676
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
3674
3677
  } | undefined;
3675
3678
  chain: ViemChain | undefined;
3679
+ dataSuffix?: import('viem').DataSuffix | undefined;
3676
3680
  experimental_blockTag?: import('viem').BlockTag | undefined;
3677
3681
  key: string;
3678
3682
  name: string;
@@ -3683,6 +3687,7 @@ export declare class GaugeRegistryHandler {
3683
3687
  uid: string;
3684
3688
  addChain: (args: import('viem').AddChainParameters) => Promise<void>;
3685
3689
  deployContract: <const abi extends import('viem').Abi | readonly unknown[], chainOverride extends ViemChain | undefined>(args: import('viem').DeployContractParameters<abi, ViemChain | undefined, Account | undefined, chainOverride>) => Promise<import('viem').DeployContractReturnType>;
3690
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
3686
3691
  getAddresses: () => Promise<import('viem').GetAddressesReturnType>;
3687
3692
  getCallsStatus: (parameters: import('viem').GetCallsStatusParameters) => Promise<import('viem').GetCallsStatusReturnType>;
3688
3693
  getCapabilities: <chainId extends number | undefined>(parameters?: import('viem').GetCapabilitiesParameters<chainId>) => Promise<import('viem').GetCapabilitiesReturnType<chainId>>;
@@ -6967,7 +6972,7 @@ export declare class GaugeRegistryHandler {
6967
6972
  sendRawTransaction: (args: import('viem').SendRawTransactionParameters) => Promise<import('viem').SendRawTransactionReturnType>;
6968
6973
  sendRawTransactionSync: (args: import('viem').SendRawTransactionSyncParameters) => Promise<import('viem').TransactionReceipt>;
6969
6974
  sendTransaction: <const request extends import('viem').SendTransactionRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionParameters<ViemChain | undefined, Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionReturnType>;
6970
- sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionSyncReturnType>;
6975
+ sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, Account | undefined, chainOverride, request>) => Promise<import('viem').TransactionReceipt>;
6971
6976
  showCallsStatus: (parameters: import('viem').ShowCallsStatusParameters) => Promise<import('viem').ShowCallsStatusReturnType>;
6972
6977
  signAuthorization: (parameters: import('viem').SignAuthorizationParameters<Account | undefined>) => Promise<import('viem').SignAuthorizationReturnType>;
6973
6978
  signMessage: (args: import('viem').SignMessageParameters<Account | undefined>) => Promise<import('viem').SignMessageReturnType>;
@@ -8083,6 +8088,7 @@ export declare class GaugeRegistryHandler {
8083
8088
  cacheTime?: undefined;
8084
8089
  ccipRead?: undefined;
8085
8090
  chain?: undefined;
8091
+ dataSuffix?: undefined;
8086
8092
  experimental_blockTag?: undefined;
8087
8093
  key?: undefined;
8088
8094
  name?: undefined;
@@ -8091,7 +8097,7 @@ export declare class GaugeRegistryHandler {
8091
8097
  transport?: undefined;
8092
8098
  type?: undefined;
8093
8099
  uid?: undefined;
8094
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, Account | undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, Account | undefined>>;
8100
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, Account | undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, Account | undefined>>;
8095
8101
  };
8096
8102
  }, Address>;
8097
8103
  /**
@@ -1,7 +1,7 @@
1
- import { V as a } from "../../constants-BO_Dvglw.js";
1
+ import { V as a } from "../../constants-0GZgavMM.js";
2
2
  import { GaugeRegistry as n } from "../abis/mainnet/GaugeRegistry.js";
3
3
  import { CONTRACT_ADDRESSES as r } from "../addresses.js";
4
- import { g as c } from "../../getContract-DRjKmuyC.js";
4
+ import { g as c } from "../../getContract-DaCKXI8P.js";
5
5
  class C {
6
6
  /**
7
7
  * Create the handler for the `GaugeRegistry` contract exposing methods to
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-4-ehn8UI.cjs"),n=require("../addresses.cjs"),i=require("../abis/mainnet/GuardianModule.cjs"),s=require("../../getContract-C6a8L2Jd.cjs");class d{constructor(e,t,r){this.chain=e,this.walletClient=t,this.publicClient=r,this.viemChain=a.VIEM_CHAINS[e]}viemChain;getContract(){const e=n.CONTRACT_ADDRESSES[this.chain].GuardianModule,t=i.GuardianModule,r={public:this.publicClient,wallet:this.walletClient};return s.getContract({address:e,abi:t,client:r})}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=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-CwkqnEF2.cjs"),n=require("../addresses.cjs"),i=require("../abis/mainnet/GuardianModule.cjs"),s=require("../../getContract-BinxcNSi.cjs");class d{constructor(e,t,r){this.chain=e,this.walletClient=t,this.publicClient=r,this.viemChain=a.VIEM_CHAINS[e]}viemChain;getContract(){const e=n.CONTRACT_ADDRESSES[this.chain].GuardianModule,t=i.GuardianModule,r={public:this.publicClient,wallet:this.walletClient};return s.getContract({address:e,abi:t,client:r})}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=d;
2
2
  //# sourceMappingURL=guardian-module-handler.cjs.map
@@ -337,6 +337,7 @@ export declare class GuardianModuleHandler {
337
337
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
338
338
  } | undefined;
339
339
  chain: ViemChain | undefined;
340
+ dataSuffix?: import('viem').DataSuffix | undefined;
340
341
  experimental_blockTag?: import('viem').BlockTag | undefined;
341
342
  key: string;
342
343
  name: string;
@@ -356,6 +357,7 @@ export declare class GuardianModuleHandler {
356
357
  createPendingTransactionFilter: () => Promise<import('viem').CreatePendingTransactionFilterReturnType>;
357
358
  estimateContractGas: <chain extends ViemChain | undefined, const abi extends import('viem').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, args extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: import('viem').EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<import('viem').EstimateContractGasReturnType>;
358
359
  estimateGas: (args: import('viem').EstimateGasParameters<ViemChain | undefined>) => Promise<import('viem').EstimateGasReturnType>;
360
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
359
361
  getBalance: (args: import('viem').GetBalanceParameters) => Promise<import('viem').GetBalanceReturnType>;
360
362
  getBlobBaseFee: () => Promise<import('viem').GetBlobBaseFeeReturnType>;
361
363
  getBlock: <includeTransactions extends boolean = false, blockTag extends import('viem').BlockTag = "latest">(args?: import('viem').GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
@@ -3953,6 +3955,7 @@ export declare class GuardianModuleHandler {
3953
3955
  cacheTime?: undefined;
3954
3956
  ccipRead?: undefined;
3955
3957
  chain?: undefined;
3958
+ dataSuffix?: undefined;
3956
3959
  experimental_blockTag?: undefined;
3957
3960
  key?: undefined;
3958
3961
  name?: undefined;
@@ -3961,7 +3964,7 @@ export declare class GuardianModuleHandler {
3961
3964
  transport?: undefined;
3962
3965
  type?: undefined;
3963
3966
  uid?: undefined;
3964
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
3967
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
3965
3968
  };
3966
3969
  wallet: {
3967
3970
  account: import('viem').Account | undefined;
@@ -3973,6 +3976,7 @@ export declare class GuardianModuleHandler {
3973
3976
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
3974
3977
  } | undefined;
3975
3978
  chain: ViemChain | undefined;
3979
+ dataSuffix?: import('viem').DataSuffix | undefined;
3976
3980
  experimental_blockTag?: import('viem').BlockTag | undefined;
3977
3981
  key: string;
3978
3982
  name: string;
@@ -3983,6 +3987,7 @@ export declare class GuardianModuleHandler {
3983
3987
  uid: string;
3984
3988
  addChain: (args: import('viem').AddChainParameters) => Promise<void>;
3985
3989
  deployContract: <const abi extends import('viem').Abi | readonly unknown[], chainOverride extends ViemChain | undefined>(args: import('viem').DeployContractParameters<abi, ViemChain | undefined, import('viem').Account | undefined, chainOverride>) => Promise<import('viem').DeployContractReturnType>;
3990
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
3986
3991
  getAddresses: () => Promise<import('viem').GetAddressesReturnType>;
3987
3992
  getCallsStatus: (parameters: import('viem').GetCallsStatusParameters) => Promise<import('viem').GetCallsStatusReturnType>;
3988
3993
  getCapabilities: <chainId extends number | undefined>(parameters?: import('viem').GetCapabilitiesParameters<chainId>) => Promise<import('viem').GetCapabilitiesReturnType<chainId>>;
@@ -7267,7 +7272,7 @@ export declare class GuardianModuleHandler {
7267
7272
  sendRawTransaction: (args: import('viem').SendRawTransactionParameters) => Promise<import('viem').SendRawTransactionReturnType>;
7268
7273
  sendRawTransactionSync: (args: import('viem').SendRawTransactionSyncParameters) => Promise<import('viem').TransactionReceipt>;
7269
7274
  sendTransaction: <const request extends import('viem').SendTransactionRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionReturnType>;
7270
- sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionSyncReturnType>;
7275
+ sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').TransactionReceipt>;
7271
7276
  showCallsStatus: (parameters: import('viem').ShowCallsStatusParameters) => Promise<import('viem').ShowCallsStatusReturnType>;
7272
7277
  signAuthorization: (parameters: import('viem').SignAuthorizationParameters<import('viem').Account | undefined>) => Promise<import('viem').SignAuthorizationReturnType>;
7273
7278
  signMessage: (args: import('viem').SignMessageParameters<import('viem').Account | undefined>) => Promise<import('viem').SignMessageReturnType>;
@@ -8383,6 +8388,7 @@ export declare class GuardianModuleHandler {
8383
8388
  cacheTime?: undefined;
8384
8389
  ccipRead?: undefined;
8385
8390
  chain?: undefined;
8391
+ dataSuffix?: undefined;
8386
8392
  experimental_blockTag?: undefined;
8387
8393
  key?: undefined;
8388
8394
  name?: undefined;
@@ -8391,7 +8397,7 @@ export declare class GuardianModuleHandler {
8391
8397
  transport?: undefined;
8392
8398
  type?: undefined;
8393
8399
  uid?: undefined;
8394
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>;
8400
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>;
8395
8401
  };
8396
8402
  }, Address>;
8397
8403
  /**
@@ -1,7 +1,7 @@
1
- import { V as a } from "../../constants-BO_Dvglw.js";
1
+ import { V as a } from "../../constants-0GZgavMM.js";
2
2
  import { CONTRACT_ADDRESSES as n } from "../addresses.js";
3
3
  import { GuardianModule as i } from "../abis/mainnet/GuardianModule.js";
4
- import { g as s } from "../../getContract-DRjKmuyC.js";
4
+ import { g as s } from "../../getContract-DaCKXI8P.js";
5
5
  class l {
6
6
  /**
7
7
  * Create the handler for the `PufLocker` contract exposing methods to
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../abis/mainnet/InstitutionalAccessManager.cjs"),s=require("../../constants-4-ehn8UI.cjs"),l=require("../../errors/validation-errors.cjs"),d=require("../../getContract-C6a8L2Jd.cjs"),h=require("../../writeContract-HBsqM_Od.cjs");class u{constructor(t,e,r){this.walletClient=e,this.publicClient=r,this.viemChain=s.VIEM_CHAINS[t]}viemChain;address;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)"};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=o.InstitutionalAccessManager,e={public:this.publicClient,wallet:this.walletClient};return d.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,n]=await this.getContract().read.canCall([t,e,r]);return{canCall:a,canCallDelay:n}}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,n,i,c]=await this.getContract().read.getAccess([r,e]);return{since:a,currentDelay:n,pendingDelay:i,effect:c}}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,n]=await this.getContract().read.hasRole([r,e]);return{isMember:a,executionDelay:n}}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=s.stringToBytes(t).reverse(),a=s.bytesToHex(r);return s.hexToBigInt(a)}roleIdToLabel(t){const e=s.toHex(t),r=s.toBytes(e).reverse();return h.bytesToString(r)}getSelectorFromFunctionName(t){return Object.entries(this.selectorsMap).find(([,e])=>e.includes(t))?.[0]}getFunctionNameFromSelector(t){return Object.entries(this.selectorsMap).find(([e])=>e===t)?.[1]}processRoleIdOrLabel(t){return typeof t=="string"?this.labelToRoleId(t):t}}exports.InstitutionalAccessManagerHandler=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../abis/mainnet/InstitutionalAccessManager.cjs"),s=require("../../constants-CwkqnEF2.cjs"),l=require("../../errors/validation-errors.cjs"),d=require("../../getContract-BinxcNSi.cjs"),h=require("../../writeContract-De1cMFmW.cjs");class u{constructor(t,e,r){this.walletClient=e,this.publicClient=r,this.viemChain=s.VIEM_CHAINS[t]}viemChain;address;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)"};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=o.InstitutionalAccessManager,e={public:this.publicClient,wallet:this.walletClient};return d.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,n]=await this.getContract().read.canCall([t,e,r]);return{canCall:a,canCallDelay:n}}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,n,i,c]=await this.getContract().read.getAccess([r,e]);return{since:a,currentDelay:n,pendingDelay:i,effect:c}}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,n]=await this.getContract().read.hasRole([r,e]);return{isMember:a,executionDelay:n}}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=s.stringToBytes(t).reverse(),a=s.bytesToHex(r);return s.hexToBigInt(a)}roleIdToLabel(t){const e=s.toHex(t),r=s.toBytes(e).reverse();return h.bytesToString(r)}getSelectorFromFunctionName(t){return Object.entries(this.selectorsMap).find(([,e])=>e.includes(t))?.[0]}getFunctionNameFromSelector(t){return Object.entries(this.selectorsMap).find(([e])=>e===t)?.[1]}processRoleIdOrLabel(t){return typeof t=="string"?this.labelToRoleId(t):t}}exports.InstitutionalAccessManagerHandler=u;
2
2
  //# sourceMappingURL=institutional-access-manager-handler.cjs.map
@@ -563,6 +563,7 @@ export declare class InstitutionalAccessManagerHandler {
563
563
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
564
564
  } | undefined;
565
565
  chain: ViemChain | undefined;
566
+ dataSuffix?: import('viem').DataSuffix | undefined;
566
567
  experimental_blockTag?: import('viem').BlockTag | undefined;
567
568
  key: string;
568
569
  name: string;
@@ -582,6 +583,7 @@ export declare class InstitutionalAccessManagerHandler {
582
583
  createPendingTransactionFilter: () => Promise<import('viem').CreatePendingTransactionFilterReturnType>;
583
584
  estimateContractGas: <chain extends ViemChain | undefined, const abi extends import('viem').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, args extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: import('viem').EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<import('viem').EstimateContractGasReturnType>;
584
585
  estimateGas: (args: import('viem').EstimateGasParameters<ViemChain | undefined>) => Promise<import('viem').EstimateGasReturnType>;
586
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
585
587
  getBalance: (args: import('viem').GetBalanceParameters) => Promise<import('viem').GetBalanceReturnType>;
586
588
  getBlobBaseFee: () => Promise<import('viem').GetBlobBaseFeeReturnType>;
587
589
  getBlock: <includeTransactions extends boolean = false, blockTag extends import('viem').BlockTag = "latest">(args?: import('viem').GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
@@ -4179,6 +4181,7 @@ export declare class InstitutionalAccessManagerHandler {
4179
4181
  cacheTime?: undefined;
4180
4182
  ccipRead?: undefined;
4181
4183
  chain?: undefined;
4184
+ dataSuffix?: undefined;
4182
4185
  experimental_blockTag?: undefined;
4183
4186
  key?: undefined;
4184
4187
  name?: undefined;
@@ -4187,7 +4190,7 @@ export declare class InstitutionalAccessManagerHandler {
4187
4190
  transport?: undefined;
4188
4191
  type?: undefined;
4189
4192
  uid?: undefined;
4190
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
4193
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, undefined, import('viem').PublicRpcSchema, { [K in keyof client]: client[K]; } & import('viem').PublicActions<import('viem').Transport, ViemChain | undefined>>;
4191
4194
  };
4192
4195
  wallet: {
4193
4196
  account: import('viem').Account | undefined;
@@ -4199,6 +4202,7 @@ export declare class InstitutionalAccessManagerHandler {
4199
4202
  request?: (parameters: import('viem').CcipRequestParameters) => Promise<`0x${string}`>;
4200
4203
  } | undefined;
4201
4204
  chain: ViemChain | undefined;
4205
+ dataSuffix?: import('viem').DataSuffix | undefined;
4202
4206
  experimental_blockTag?: import('viem').BlockTag | undefined;
4203
4207
  key: string;
4204
4208
  name: string;
@@ -4209,6 +4213,7 @@ export declare class InstitutionalAccessManagerHandler {
4209
4213
  uid: string;
4210
4214
  addChain: (args: import('viem').AddChainParameters) => Promise<void>;
4211
4215
  deployContract: <const abi extends import('viem').Abi | readonly unknown[], chainOverride extends ViemChain | undefined>(args: import('viem').DeployContractParameters<abi, ViemChain | undefined, import('viem').Account | undefined, chainOverride>) => Promise<import('viem').DeployContractReturnType>;
4216
+ fillTransaction: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: import('viem').FillTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>) => Promise<import('viem').FillTransactionReturnType<ViemChain | undefined, chainOverride>>;
4212
4217
  getAddresses: () => Promise<import('viem').GetAddressesReturnType>;
4213
4218
  getCallsStatus: (parameters: import('viem').GetCallsStatusParameters) => Promise<import('viem').GetCallsStatusReturnType>;
4214
4219
  getCapabilities: <chainId extends number | undefined>(parameters?: import('viem').GetCapabilitiesParameters<chainId>) => Promise<import('viem').GetCapabilitiesReturnType<chainId>>;
@@ -7493,7 +7498,7 @@ export declare class InstitutionalAccessManagerHandler {
7493
7498
  sendRawTransaction: (args: import('viem').SendRawTransactionParameters) => Promise<import('viem').SendRawTransactionReturnType>;
7494
7499
  sendRawTransactionSync: (args: import('viem').SendRawTransactionSyncParameters) => Promise<import('viem').TransactionReceipt>;
7495
7500
  sendTransaction: <const request extends import('viem').SendTransactionRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionReturnType>;
7496
- sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').SendTransactionSyncReturnType>;
7501
+ sendTransactionSync: <const request extends import('viem').SendTransactionSyncRequest<ViemChain | undefined, chainOverride>, chainOverride extends ViemChain | undefined = undefined>(args: import('viem').SendTransactionSyncParameters<ViemChain | undefined, import('viem').Account | undefined, chainOverride, request>) => Promise<import('viem').TransactionReceipt>;
7497
7502
  showCallsStatus: (parameters: import('viem').ShowCallsStatusParameters) => Promise<import('viem').ShowCallsStatusReturnType>;
7498
7503
  signAuthorization: (parameters: import('viem').SignAuthorizationParameters<import('viem').Account | undefined>) => Promise<import('viem').SignAuthorizationReturnType>;
7499
7504
  signMessage: (args: import('viem').SignMessageParameters<import('viem').Account | undefined>) => Promise<import('viem').SignMessageReturnType>;
@@ -8609,6 +8614,7 @@ export declare class InstitutionalAccessManagerHandler {
8609
8614
  cacheTime?: undefined;
8610
8615
  ccipRead?: undefined;
8611
8616
  chain?: undefined;
8617
+ dataSuffix?: undefined;
8612
8618
  experimental_blockTag?: undefined;
8613
8619
  key?: undefined;
8614
8620
  name?: undefined;
@@ -8617,7 +8623,7 @@ export declare class InstitutionalAccessManagerHandler {
8617
8623
  transport?: undefined;
8618
8624
  type?: undefined;
8619
8625
  uid?: undefined;
8620
- } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>;
8626
+ } & import('viem').ExactPartial<Pick<import('viem').PublicActions<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined>, "prepareTransactionRequest" | "getChainId" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>) => client) => import('viem').Client<import('viem').Transport, ViemChain | undefined, import('viem').Account | undefined, import('viem').WalletRpcSchema, { [K in keyof client]: client[K]; } & import('viem').WalletActions<ViemChain | undefined, import('viem').Account | undefined>>;
8621
8627
  };
8622
8628
  }, Address>;
8623
8629
  /**
@@ -1,8 +1,8 @@
1
1
  import { InstitutionalAccessManager as o } from "../abis/mainnet/InstitutionalAccessManager.js";
2
- import { V as c, s as l, b as d, h, t as u, a as g } from "../../constants-BO_Dvglw.js";
2
+ import { V as c, s as l, b as d, h, t as u, a as g } from "../../constants-0GZgavMM.js";
3
3
  import { InvalidContractAddressError as C } from "../../errors/validation-errors.js";
4
- import { g as m } from "../../getContract-DRjKmuyC.js";
5
- import { b } from "../../writeContract-BFxyLFA9.js";
4
+ import { g as m } from "../../getContract-DaCKXI8P.js";
5
+ import { b } from "../../writeContract-DordYfu2.js";
6
6
  class v {
7
7
  /**
8
8
  * Create the handler for the Institutional `AccessManager` contract
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../abis/mainnet/InstitutionalVault.cjs"),n=require("../../constants-4-ehn8UI.cjs"),s=require("../../errors/validation-errors.cjs"),o=require("../../getContract-C6a8L2Jd.cjs");class c{constructor(t,e,a){this.walletClient=e,this.publicClient=a,this.viemChain=n.VIEM_CHAINS[t]}viemChain;address;withAddress(t){return this.address=t,this}getAddress(){return this.address}getContract(){if(!this.address)throw new s.InvalidContractAddressError("No address specified for the contract",{fixMessage:"Set the contract address in the handler by using the setAddress method"});const t=i.InstitutionalVault,e={public:this.publicClient,wallet:this.walletClient};return o.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,r){return this.getContract().write.startNonRestakingValidators([t,e,a,r],{account:this.walletClient.account,chain:this.viemChain})}startRestakingValidators(t,e,a,r){return this.getContract().write.startRestakingValidators([t,e,a,r],{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=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../abis/mainnet/InstitutionalVault.cjs"),n=require("../../constants-CwkqnEF2.cjs"),s=require("../../errors/validation-errors.cjs"),o=require("../../getContract-BinxcNSi.cjs");class c{constructor(t,e,a){this.walletClient=e,this.publicClient=a,this.viemChain=n.VIEM_CHAINS[t]}viemChain;address;withAddress(t){return this.address=t,this}getAddress(){return this.address}getContract(){if(!this.address)throw new s.InvalidContractAddressError("No address specified for the contract",{fixMessage:"Set the contract address in the handler by using the setAddress method"});const t=i.InstitutionalVault,e={public:this.publicClient,wallet:this.walletClient};return o.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,r){return this.getContract().write.startNonRestakingValidators([t,e,a,r],{account:this.walletClient.account,chain:this.viemChain})}startRestakingValidators(t,e,a,r){return this.getContract().write.startRestakingValidators([t,e,a,r],{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=c;
2
2
  //# sourceMappingURL=institutional-vault-handler.cjs.map