@pufferfinance/puffer-sdk 1.13.2 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/dist/api/puffer-client-helpers.cjs.map +1 -1
  2. package/dist/api/puffer-client-helpers.js.map +1 -1
  3. package/dist/ccip-C0xwQhXU.cjs.map +1 -1
  4. package/dist/ccip-K-z2PL4P.js.map +1 -1
  5. package/dist/constants-BcPRVxdH.cjs.map +1 -1
  6. package/dist/constants-CH7Tz5jz.js.map +1 -1
  7. package/dist/contracts/abis/mainnet/Accountant.cjs +1 -1
  8. package/dist/contracts/abis/mainnet/Accountant.cjs.map +1 -1
  9. package/dist/contracts/abis/mainnet/Accountant.d.ts +13 -457
  10. package/dist/contracts/abis/mainnet/Accountant.js +12 -441
  11. package/dist/contracts/abis/mainnet/Accountant.js.map +1 -1
  12. package/dist/contracts/abis/mainnet/BoringVault.cjs +1 -1
  13. package/dist/contracts/abis/mainnet/BoringVault.cjs.map +1 -1
  14. package/dist/contracts/abis/mainnet/BoringVault.d.ts +18 -505
  15. package/dist/contracts/abis/mainnet/BoringVault.js +15 -346
  16. package/dist/contracts/abis/mainnet/BoringVault.js.map +1 -1
  17. package/dist/contracts/abis/mainnet/CarrotStaker.cjs +1 -1
  18. package/dist/contracts/abis/mainnet/CarrotStaker.cjs.map +1 -1
  19. package/dist/contracts/abis/mainnet/CarrotStaker.d.ts +2 -371
  20. package/dist/contracts/abis/mainnet/CarrotStaker.js +4 -295
  21. package/dist/contracts/abis/mainnet/CarrotStaker.js.map +1 -1
  22. package/dist/contracts/abis/mainnet/Distributor.cjs +1 -1
  23. package/dist/contracts/abis/mainnet/Distributor.cjs.map +1 -1
  24. package/dist/contracts/abis/mainnet/Distributor.d.ts +0 -413
  25. package/dist/contracts/abis/mainnet/Distributor.js +2 -355
  26. package/dist/contracts/abis/mainnet/Distributor.js.map +1 -1
  27. package/dist/contracts/abis/mainnet/L1RewardManager.cjs +1 -1
  28. package/dist/contracts/abis/mainnet/L1RewardManager.cjs.map +1 -1
  29. package/dist/contracts/abis/mainnet/L1RewardManager.d.ts +0 -489
  30. package/dist/contracts/abis/mainnet/L1RewardManager.js +0 -411
  31. package/dist/contracts/abis/mainnet/L1RewardManager.js.map +1 -1
  32. package/dist/contracts/abis/mainnet/L2RewardManager.cjs +1 -1
  33. package/dist/contracts/abis/mainnet/L2RewardManager.cjs.map +1 -1
  34. package/dist/contracts/abis/mainnet/L2RewardManager.d.ts +23 -569
  35. package/dist/contracts/abis/mainnet/L2RewardManager.js +16 -484
  36. package/dist/contracts/abis/mainnet/L2RewardManager.js.map +1 -1
  37. package/dist/contracts/abis/mainnet/PufLocker.cjs +1 -1
  38. package/dist/contracts/abis/mainnet/PufLocker.cjs.map +1 -1
  39. package/dist/contracts/abis/mainnet/PufLocker.d.ts +29 -371
  40. package/dist/contracts/abis/mainnet/PufLocker.js +15 -285
  41. package/dist/contracts/abis/mainnet/PufLocker.js.map +1 -1
  42. package/dist/contracts/abis/mainnet/PufferL2Depositor.cjs +1 -1
  43. package/dist/contracts/abis/mainnet/PufferL2Depositor.cjs.map +1 -1
  44. package/dist/contracts/abis/mainnet/PufferL2Depositor.d.ts +0 -325
  45. package/dist/contracts/abis/mainnet/PufferL2Depositor.js +0 -270
  46. package/dist/contracts/abis/mainnet/PufferL2Depositor.js.map +1 -1
  47. package/dist/contracts/abis/mainnet/PufferVaultV2.cjs +1 -1
  48. package/dist/contracts/abis/mainnet/PufferVaultV2.cjs.map +1 -1
  49. package/dist/contracts/abis/mainnet/PufferVaultV2.d.ts +35 -1289
  50. package/dist/contracts/abis/mainnet/PufferVaultV2.js +45 -1681
  51. package/dist/contracts/abis/mainnet/PufferVaultV2.js.map +1 -1
  52. package/dist/contracts/abis/mainnet/PufferWithdrawalManager.cjs +1 -1
  53. package/dist/contracts/abis/mainnet/PufferWithdrawalManager.cjs.map +1 -1
  54. package/dist/contracts/abis/mainnet/PufferWithdrawalManager.d.ts +3 -426
  55. package/dist/contracts/abis/mainnet/PufferWithdrawalManager.js +5 -552
  56. package/dist/contracts/abis/mainnet/PufferWithdrawalManager.js.map +1 -1
  57. package/dist/contracts/abis/mainnet/Teller.cjs +1 -1
  58. package/dist/contracts/abis/mainnet/Teller.cjs.map +1 -1
  59. package/dist/contracts/abis/mainnet/Teller.d.ts +18 -444
  60. package/dist/contracts/abis/mainnet/Teller.js +15 -390
  61. package/dist/contracts/abis/mainnet/Teller.js.map +1 -1
  62. package/dist/contracts/abis/mainnet/mtwCARROT.cjs +1 -1
  63. package/dist/contracts/abis/mainnet/mtwCARROT.cjs.map +1 -1
  64. package/dist/contracts/abis/mainnet/mtwCARROT.d.ts +69 -399
  65. package/dist/contracts/abis/mainnet/mtwCARROT.js +43 -346
  66. package/dist/contracts/abis/mainnet/mtwCARROT.js.map +1 -1
  67. package/dist/contracts/addresses.cjs.map +1 -1
  68. package/dist/contracts/addresses.js +3 -0
  69. package/dist/contracts/addresses.js.map +1 -1
  70. package/dist/contracts/handlers/carrot-staking-handler.d.ts +1652 -0
  71. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  72. package/dist/contracts/handlers/distributor-handler.cjs.map +1 -1
  73. package/dist/contracts/handlers/distributor-handler.d.ts +8762 -0
  74. package/dist/contracts/handlers/distributor-handler.js +13 -127
  75. package/dist/contracts/handlers/distributor-handler.js.map +1 -1
  76. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  77. package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
  78. package/dist/contracts/handlers/erc20-permit-handler.d.ts +4 -4
  79. package/dist/contracts/handlers/erc20-permit-handler.js +12 -12
  80. package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
  81. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  82. package/dist/contracts/handlers/l1-reward-manager-handler.cjs.map +1 -1
  83. package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +339 -0
  84. package/dist/contracts/handlers/l1-reward-manager-handler.js +13 -13
  85. package/dist/contracts/handlers/l1-reward-manager-handler.js.map +1 -1
  86. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  87. package/dist/contracts/handlers/l2-reward-manager-handler.cjs.map +1 -1
  88. package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +2423 -0
  89. package/dist/contracts/handlers/l2-reward-manager-handler.js +4 -4
  90. package/dist/contracts/handlers/l2-reward-manager-handler.js.map +1 -1
  91. package/dist/contracts/handlers/mtw-carrot-handler.d.ts +14333 -0
  92. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  93. package/dist/contracts/handlers/nucleus-accountant-handler.cjs.map +1 -1
  94. package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +620 -0
  95. package/dist/contracts/handlers/nucleus-accountant-handler.js +8 -8
  96. package/dist/contracts/handlers/nucleus-accountant-handler.js.map +1 -1
  97. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  98. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs.map +1 -1
  99. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +9 -9
  100. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js.map +1 -1
  101. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  102. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs.map +1 -1
  103. package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +3917 -0
  104. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +22 -22
  105. package/dist/contracts/handlers/nucleus-boring-vault-handler.js.map +1 -1
  106. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  107. package/dist/contracts/handlers/nucleus-teller-handler.cjs.map +1 -1
  108. package/dist/contracts/handlers/nucleus-teller-handler.d.ts +2209 -0
  109. package/dist/contracts/handlers/nucleus-teller-handler.js +13 -13
  110. package/dist/contracts/handlers/nucleus-teller-handler.js.map +1 -1
  111. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  112. package/dist/contracts/handlers/puf-locker-handler.cjs.map +1 -1
  113. package/dist/contracts/handlers/puf-locker-handler.d.ts +2389 -0
  114. package/dist/contracts/handlers/puf-locker-handler.js +11 -11
  115. package/dist/contracts/handlers/puf-locker-handler.js.map +1 -1
  116. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  117. package/dist/contracts/handlers/puffer-depositor-handler.cjs.map +1 -1
  118. package/dist/contracts/handlers/puffer-depositor-handler.d.ts +100 -100
  119. package/dist/contracts/handlers/puffer-depositor-handler.js +18 -18
  120. package/dist/contracts/handlers/puffer-depositor-handler.js.map +1 -1
  121. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  122. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs.map +1 -1
  123. package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +471 -0
  124. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +16 -16
  125. package/dist/contracts/handlers/puffer-l2-depositor-handler.js.map +1 -1
  126. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  127. package/dist/contracts/handlers/puffer-vault-handler.cjs.map +1 -1
  128. package/dist/contracts/handlers/puffer-vault-handler.d.ts +4657 -0
  129. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  130. package/dist/contracts/handlers/puffer-vault-handler.js.map +1 -1
  131. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  132. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs.map +1 -1
  133. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +1882 -0
  134. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +8 -8
  135. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js.map +1 -1
  136. package/dist/contracts/vaults-addresses.d.ts +5 -4
  137. package/dist/createWalletClient-DNLhBkOd.js.map +1 -1
  138. package/dist/createWalletClient-Di5of07E.cjs.map +1 -1
  139. package/dist/getContract-6ajhFbP2.js.map +1 -1
  140. package/dist/getContract-ChPFzc5y.cjs.map +1 -1
  141. package/dist/utils/version.cjs +1 -1
  142. package/dist/utils/version.js +1 -1
  143. package/dist/writeContract-BatuNuTe.cjs.map +1 -1
  144. package/dist/writeContract-CjcOEtWX.js.map +1 -1
  145. package/package.json +2 -2
  146. package/dist/contracts/abis/holesky/PufferDepositor.cjs +0 -2
  147. package/dist/contracts/abis/holesky/PufferDepositor.cjs.map +0 -1
  148. package/dist/contracts/abis/holesky/PufferDepositor.d.ts +0 -283
  149. package/dist/contracts/abis/holesky/PufferDepositor.js +0 -377
  150. package/dist/contracts/abis/holesky/PufferDepositor.js.map +0 -1
  151. package/dist/contracts/abis/holesky/PufferVaultV2.cjs +0 -2
  152. package/dist/contracts/abis/holesky/PufferVaultV2.cjs.map +0 -1
  153. package/dist/contracts/abis/holesky/PufferVaultV2.d.ts +0 -1361
  154. package/dist/contracts/abis/holesky/PufferVaultV2.js +0 -1787
  155. package/dist/contracts/abis/holesky/PufferVaultV2.js.map +0 -1
  156. package/dist/contracts/abis/l1-reward-manager-abis.cjs +0 -2
  157. package/dist/contracts/abis/l1-reward-manager-abis.cjs.map +0 -1
  158. package/dist/contracts/abis/l1-reward-manager-abis.d.ts +0 -527
  159. package/dist/contracts/abis/l1-reward-manager-abis.js +0 -10
  160. package/dist/contracts/abis/l1-reward-manager-abis.js.map +0 -1
  161. package/dist/contracts/abis/l2-reward-manager-abis.cjs +0 -2
  162. package/dist/contracts/abis/l2-reward-manager-abis.cjs.map +0 -1
  163. package/dist/contracts/abis/l2-reward-manager-abis.d.ts +0 -709
  164. package/dist/contracts/abis/l2-reward-manager-abis.js +0 -11
  165. package/dist/contracts/abis/l2-reward-manager-abis.js.map +0 -1
  166. package/dist/contracts/abis/nucleus-accountant-abis.cjs +0 -2
  167. package/dist/contracts/abis/nucleus-accountant-abis.cjs.map +0 -1
  168. package/dist/contracts/abis/nucleus-accountant-abis.d.ts +0 -525
  169. package/dist/contracts/abis/nucleus-accountant-abis.js +0 -9
  170. package/dist/contracts/abis/nucleus-accountant-abis.js.map +0 -1
  171. package/dist/contracts/abis/nucleus-atomic-queue-abis.cjs +0 -2
  172. package/dist/contracts/abis/nucleus-atomic-queue-abis.cjs.map +0 -1
  173. package/dist/contracts/abis/nucleus-atomic-queue-abis.d.ts +0 -332
  174. package/dist/contracts/abis/nucleus-atomic-queue-abis.js +0 -9
  175. package/dist/contracts/abis/nucleus-atomic-queue-abis.js.map +0 -1
  176. package/dist/contracts/abis/nucleus-boring-vault-abis.cjs +0 -2
  177. package/dist/contracts/abis/nucleus-boring-vault-abis.cjs.map +0 -1
  178. package/dist/contracts/abis/nucleus-boring-vault-abis.d.ts +0 -626
  179. package/dist/contracts/abis/nucleus-boring-vault-abis.js +0 -9
  180. package/dist/contracts/abis/nucleus-boring-vault-abis.js.map +0 -1
  181. package/dist/contracts/abis/nucleus-teller-abis.cjs +0 -2
  182. package/dist/contracts/abis/nucleus-teller-abis.cjs.map +0 -1
  183. package/dist/contracts/abis/nucleus-teller-abis.d.ts +0 -545
  184. package/dist/contracts/abis/nucleus-teller-abis.js +0 -9
  185. package/dist/contracts/abis/nucleus-teller-abis.js.map +0 -1
  186. package/dist/contracts/abis/puf-locker-abis.cjs +0 -2
  187. package/dist/contracts/abis/puf-locker-abis.cjs.map +0 -1
  188. package/dist/contracts/abis/puf-locker-abis.d.ts +0 -484
  189. package/dist/contracts/abis/puf-locker-abis.js +0 -10
  190. package/dist/contracts/abis/puf-locker-abis.js.map +0 -1
  191. package/dist/contracts/abis/puffer-depositor-abis.cjs +0 -2
  192. package/dist/contracts/abis/puffer-depositor-abis.cjs.map +0 -1
  193. package/dist/contracts/abis/puffer-depositor-abis.d.ts +0 -664
  194. package/dist/contracts/abis/puffer-depositor-abis.js +0 -20
  195. package/dist/contracts/abis/puffer-depositor-abis.js.map +0 -1
  196. package/dist/contracts/abis/puffer-vault-abis.cjs +0 -2
  197. package/dist/contracts/abis/puffer-vault-abis.cjs.map +0 -1
  198. package/dist/contracts/abis/puffer-vault-abis.d.ts +0 -2787
  199. package/dist/contracts/abis/puffer-vault-abis.js +0 -15
  200. package/dist/contracts/abis/puffer-vault-abis.js.map +0 -1
  201. package/dist/contracts/abis/puffer-withdrawal-manager-abis.cjs +0 -2
  202. package/dist/contracts/abis/puffer-withdrawal-manager-abis.cjs.map +0 -1
  203. package/dist/contracts/abis/puffer-withdrawal-manager-abis.d.ts +0 -514
  204. package/dist/contracts/abis/puffer-withdrawal-manager-abis.js +0 -10
  205. package/dist/contracts/abis/puffer-withdrawal-manager-abis.js.map +0 -1
  206. package/dist/contracts/abis/tokens-abis.cjs +0 -2
  207. package/dist/contracts/abis/tokens-abis.cjs.map +0 -1
  208. package/dist/contracts/abis/tokens-abis.d.ts +0 -396
  209. package/dist/contracts/abis/tokens-abis.js +0 -6
  210. package/dist/contracts/abis/tokens-abis.js.map +0 -1
@@ -0,0 +1,1882 @@
1
+ import { Address, PublicClient, WalletClient } from 'viem';
2
+ import { Chain, ViemChain } from '../../chains/constants';
3
+ /**
4
+ * Handler for the `PufferWithdrawalsManager` contract exposing methods to
5
+ * interact with the contract.
6
+ */
7
+ export declare class PufferWithdrawalManagerHandler {
8
+ private chain;
9
+ private walletClient;
10
+ private publicClient;
11
+ private viemChain;
12
+ private erc20PermitHandler;
13
+ /**
14
+ * Create the handler for the `PufferWithdrawalsManager` contract exposing
15
+ * methods to interact with the contract.
16
+ *
17
+ * @param chain Chain to use for the client.
18
+ * @param walletClient The wallet client to use for wallet
19
+ * interactions.
20
+ * @param publicClient The public client to use for public
21
+ * interactions.
22
+ */
23
+ constructor(chain: Chain, walletClient: WalletClient, publicClient: PublicClient);
24
+ /**
25
+ * Get the contract.
26
+ *
27
+ * @returns The viem contract.
28
+ */
29
+ getContract(): {
30
+ read: {
31
+ getWithdrawal: (args: readonly [bigint], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
32
+ readonly type: "function";
33
+ readonly name: "getWithdrawal";
34
+ readonly inputs: readonly [{
35
+ readonly name: "withdrawalIdx";
36
+ readonly type: "uint256";
37
+ readonly internalType: "uint256";
38
+ }];
39
+ readonly outputs: readonly [{
40
+ readonly name: "";
41
+ readonly type: "tuple";
42
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
43
+ readonly components: readonly [{
44
+ readonly name: "pufETHAmount";
45
+ readonly type: "uint128";
46
+ readonly internalType: "uint128";
47
+ }, {
48
+ readonly name: "pufETHToETHExchangeRate";
49
+ readonly type: "uint128";
50
+ readonly internalType: "uint128";
51
+ }, {
52
+ readonly name: "recipient";
53
+ readonly type: "address";
54
+ readonly internalType: "address";
55
+ }];
56
+ }];
57
+ readonly stateMutability: "view";
58
+ }, {
59
+ readonly type: "function";
60
+ readonly name: "requestWithdrawal";
61
+ readonly inputs: readonly [{
62
+ readonly name: "pufETHAmount";
63
+ readonly type: "uint128";
64
+ readonly internalType: "uint128";
65
+ }, {
66
+ readonly name: "recipient";
67
+ readonly type: "address";
68
+ readonly internalType: "address";
69
+ }];
70
+ readonly outputs: readonly [];
71
+ readonly stateMutability: "nonpayable";
72
+ }, {
73
+ readonly type: "function";
74
+ readonly name: "requestWithdrawalWithPermit";
75
+ readonly inputs: readonly [{
76
+ readonly name: "permitData";
77
+ readonly type: "tuple";
78
+ readonly internalType: "struct Permit";
79
+ readonly components: readonly [{
80
+ readonly name: "deadline";
81
+ readonly type: "uint256";
82
+ readonly internalType: "uint256";
83
+ }, {
84
+ readonly name: "amount";
85
+ readonly type: "uint256";
86
+ readonly internalType: "uint256";
87
+ }, {
88
+ readonly name: "v";
89
+ readonly type: "uint8";
90
+ readonly internalType: "uint8";
91
+ }, {
92
+ readonly name: "r";
93
+ readonly type: "bytes32";
94
+ readonly internalType: "bytes32";
95
+ }, {
96
+ readonly name: "s";
97
+ readonly type: "bytes32";
98
+ readonly internalType: "bytes32";
99
+ }];
100
+ }, {
101
+ readonly name: "recipient";
102
+ readonly type: "address";
103
+ readonly internalType: "address";
104
+ }];
105
+ readonly outputs: readonly [];
106
+ readonly stateMutability: "nonpayable";
107
+ }, {
108
+ readonly type: "function";
109
+ readonly name: "completeQueuedWithdrawal";
110
+ readonly inputs: readonly [{
111
+ readonly name: "withdrawalIdx";
112
+ readonly type: "uint256";
113
+ readonly internalType: "uint256";
114
+ }];
115
+ readonly outputs: readonly [];
116
+ readonly stateMutability: "nonpayable";
117
+ }], "getWithdrawal", readonly [bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<{
118
+ pufETHAmount: bigint;
119
+ pufETHToETHExchangeRate: bigint;
120
+ recipient: `0x${string}`;
121
+ }>;
122
+ };
123
+ estimateGas: {
124
+ requestWithdrawal: (args: readonly [bigint, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
125
+ readonly type: "function";
126
+ readonly name: "getWithdrawal";
127
+ readonly inputs: readonly [{
128
+ readonly name: "withdrawalIdx";
129
+ readonly type: "uint256";
130
+ readonly internalType: "uint256";
131
+ }];
132
+ readonly outputs: readonly [{
133
+ readonly name: "";
134
+ readonly type: "tuple";
135
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
136
+ readonly components: readonly [{
137
+ readonly name: "pufETHAmount";
138
+ readonly type: "uint128";
139
+ readonly internalType: "uint128";
140
+ }, {
141
+ readonly name: "pufETHToETHExchangeRate";
142
+ readonly type: "uint128";
143
+ readonly internalType: "uint128";
144
+ }, {
145
+ readonly name: "recipient";
146
+ readonly type: "address";
147
+ readonly internalType: "address";
148
+ }];
149
+ }];
150
+ readonly stateMutability: "view";
151
+ }, {
152
+ readonly type: "function";
153
+ readonly name: "requestWithdrawal";
154
+ readonly inputs: readonly [{
155
+ readonly name: "pufETHAmount";
156
+ readonly type: "uint128";
157
+ readonly internalType: "uint128";
158
+ }, {
159
+ readonly name: "recipient";
160
+ readonly type: "address";
161
+ readonly internalType: "address";
162
+ }];
163
+ readonly outputs: readonly [];
164
+ readonly stateMutability: "nonpayable";
165
+ }, {
166
+ readonly type: "function";
167
+ readonly name: "requestWithdrawalWithPermit";
168
+ readonly inputs: readonly [{
169
+ readonly name: "permitData";
170
+ readonly type: "tuple";
171
+ readonly internalType: "struct Permit";
172
+ readonly components: readonly [{
173
+ readonly name: "deadline";
174
+ readonly type: "uint256";
175
+ readonly internalType: "uint256";
176
+ }, {
177
+ readonly name: "amount";
178
+ readonly type: "uint256";
179
+ readonly internalType: "uint256";
180
+ }, {
181
+ readonly name: "v";
182
+ readonly type: "uint8";
183
+ readonly internalType: "uint8";
184
+ }, {
185
+ readonly name: "r";
186
+ readonly type: "bytes32";
187
+ readonly internalType: "bytes32";
188
+ }, {
189
+ readonly name: "s";
190
+ readonly type: "bytes32";
191
+ readonly internalType: "bytes32";
192
+ }];
193
+ }, {
194
+ readonly name: "recipient";
195
+ readonly type: "address";
196
+ readonly internalType: "address";
197
+ }];
198
+ readonly outputs: readonly [];
199
+ readonly stateMutability: "nonpayable";
200
+ }, {
201
+ readonly type: "function";
202
+ readonly name: "completeQueuedWithdrawal";
203
+ readonly inputs: readonly [{
204
+ readonly name: "withdrawalIdx";
205
+ readonly type: "uint256";
206
+ readonly internalType: "uint256";
207
+ }];
208
+ readonly outputs: readonly [];
209
+ readonly stateMutability: "nonpayable";
210
+ }], "requestWithdrawal", readonly [bigint, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
211
+ requestWithdrawalWithPermit: (args: readonly [{
212
+ deadline: bigint;
213
+ amount: bigint;
214
+ v: number;
215
+ r: `0x${string}`;
216
+ s: `0x${string}`;
217
+ }, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
218
+ readonly type: "function";
219
+ readonly name: "getWithdrawal";
220
+ readonly inputs: readonly [{
221
+ readonly name: "withdrawalIdx";
222
+ readonly type: "uint256";
223
+ readonly internalType: "uint256";
224
+ }];
225
+ readonly outputs: readonly [{
226
+ readonly name: "";
227
+ readonly type: "tuple";
228
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
229
+ readonly components: readonly [{
230
+ readonly name: "pufETHAmount";
231
+ readonly type: "uint128";
232
+ readonly internalType: "uint128";
233
+ }, {
234
+ readonly name: "pufETHToETHExchangeRate";
235
+ readonly type: "uint128";
236
+ readonly internalType: "uint128";
237
+ }, {
238
+ readonly name: "recipient";
239
+ readonly type: "address";
240
+ readonly internalType: "address";
241
+ }];
242
+ }];
243
+ readonly stateMutability: "view";
244
+ }, {
245
+ readonly type: "function";
246
+ readonly name: "requestWithdrawal";
247
+ readonly inputs: readonly [{
248
+ readonly name: "pufETHAmount";
249
+ readonly type: "uint128";
250
+ readonly internalType: "uint128";
251
+ }, {
252
+ readonly name: "recipient";
253
+ readonly type: "address";
254
+ readonly internalType: "address";
255
+ }];
256
+ readonly outputs: readonly [];
257
+ readonly stateMutability: "nonpayable";
258
+ }, {
259
+ readonly type: "function";
260
+ readonly name: "requestWithdrawalWithPermit";
261
+ readonly inputs: readonly [{
262
+ readonly name: "permitData";
263
+ readonly type: "tuple";
264
+ readonly internalType: "struct Permit";
265
+ readonly components: readonly [{
266
+ readonly name: "deadline";
267
+ readonly type: "uint256";
268
+ readonly internalType: "uint256";
269
+ }, {
270
+ readonly name: "amount";
271
+ readonly type: "uint256";
272
+ readonly internalType: "uint256";
273
+ }, {
274
+ readonly name: "v";
275
+ readonly type: "uint8";
276
+ readonly internalType: "uint8";
277
+ }, {
278
+ readonly name: "r";
279
+ readonly type: "bytes32";
280
+ readonly internalType: "bytes32";
281
+ }, {
282
+ readonly name: "s";
283
+ readonly type: "bytes32";
284
+ readonly internalType: "bytes32";
285
+ }];
286
+ }, {
287
+ readonly name: "recipient";
288
+ readonly type: "address";
289
+ readonly internalType: "address";
290
+ }];
291
+ readonly outputs: readonly [];
292
+ readonly stateMutability: "nonpayable";
293
+ }, {
294
+ readonly type: "function";
295
+ readonly name: "completeQueuedWithdrawal";
296
+ readonly inputs: readonly [{
297
+ readonly name: "withdrawalIdx";
298
+ readonly type: "uint256";
299
+ readonly internalType: "uint256";
300
+ }];
301
+ readonly outputs: readonly [];
302
+ readonly stateMutability: "nonpayable";
303
+ }], "requestWithdrawalWithPermit", readonly [{
304
+ deadline: bigint;
305
+ amount: bigint;
306
+ v: number;
307
+ r: `0x${string}`;
308
+ s: `0x${string}`;
309
+ }, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
310
+ completeQueuedWithdrawal: (args: readonly [bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
311
+ readonly type: "function";
312
+ readonly name: "getWithdrawal";
313
+ readonly inputs: readonly [{
314
+ readonly name: "withdrawalIdx";
315
+ readonly type: "uint256";
316
+ readonly internalType: "uint256";
317
+ }];
318
+ readonly outputs: readonly [{
319
+ readonly name: "";
320
+ readonly type: "tuple";
321
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
322
+ readonly components: readonly [{
323
+ readonly name: "pufETHAmount";
324
+ readonly type: "uint128";
325
+ readonly internalType: "uint128";
326
+ }, {
327
+ readonly name: "pufETHToETHExchangeRate";
328
+ readonly type: "uint128";
329
+ readonly internalType: "uint128";
330
+ }, {
331
+ readonly name: "recipient";
332
+ readonly type: "address";
333
+ readonly internalType: "address";
334
+ }];
335
+ }];
336
+ readonly stateMutability: "view";
337
+ }, {
338
+ readonly type: "function";
339
+ readonly name: "requestWithdrawal";
340
+ readonly inputs: readonly [{
341
+ readonly name: "pufETHAmount";
342
+ readonly type: "uint128";
343
+ readonly internalType: "uint128";
344
+ }, {
345
+ readonly name: "recipient";
346
+ readonly type: "address";
347
+ readonly internalType: "address";
348
+ }];
349
+ readonly outputs: readonly [];
350
+ readonly stateMutability: "nonpayable";
351
+ }, {
352
+ readonly type: "function";
353
+ readonly name: "requestWithdrawalWithPermit";
354
+ readonly inputs: readonly [{
355
+ readonly name: "permitData";
356
+ readonly type: "tuple";
357
+ readonly internalType: "struct Permit";
358
+ readonly components: readonly [{
359
+ readonly name: "deadline";
360
+ readonly type: "uint256";
361
+ readonly internalType: "uint256";
362
+ }, {
363
+ readonly name: "amount";
364
+ readonly type: "uint256";
365
+ readonly internalType: "uint256";
366
+ }, {
367
+ readonly name: "v";
368
+ readonly type: "uint8";
369
+ readonly internalType: "uint8";
370
+ }, {
371
+ readonly name: "r";
372
+ readonly type: "bytes32";
373
+ readonly internalType: "bytes32";
374
+ }, {
375
+ readonly name: "s";
376
+ readonly type: "bytes32";
377
+ readonly internalType: "bytes32";
378
+ }];
379
+ }, {
380
+ readonly name: "recipient";
381
+ readonly type: "address";
382
+ readonly internalType: "address";
383
+ }];
384
+ readonly outputs: readonly [];
385
+ readonly stateMutability: "nonpayable";
386
+ }, {
387
+ readonly type: "function";
388
+ readonly name: "completeQueuedWithdrawal";
389
+ readonly inputs: readonly [{
390
+ readonly name: "withdrawalIdx";
391
+ readonly type: "uint256";
392
+ readonly internalType: "uint256";
393
+ }];
394
+ readonly outputs: readonly [];
395
+ readonly stateMutability: "nonpayable";
396
+ }], "completeQueuedWithdrawal", readonly [bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
397
+ } & {
398
+ requestWithdrawal: (args: readonly [bigint, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
399
+ readonly type: "function";
400
+ readonly name: "getWithdrawal";
401
+ readonly inputs: readonly [{
402
+ readonly name: "withdrawalIdx";
403
+ readonly type: "uint256";
404
+ readonly internalType: "uint256";
405
+ }];
406
+ readonly outputs: readonly [{
407
+ readonly name: "";
408
+ readonly type: "tuple";
409
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
410
+ readonly components: readonly [{
411
+ readonly name: "pufETHAmount";
412
+ readonly type: "uint128";
413
+ readonly internalType: "uint128";
414
+ }, {
415
+ readonly name: "pufETHToETHExchangeRate";
416
+ readonly type: "uint128";
417
+ readonly internalType: "uint128";
418
+ }, {
419
+ readonly name: "recipient";
420
+ readonly type: "address";
421
+ readonly internalType: "address";
422
+ }];
423
+ }];
424
+ readonly stateMutability: "view";
425
+ }, {
426
+ readonly type: "function";
427
+ readonly name: "requestWithdrawal";
428
+ readonly inputs: readonly [{
429
+ readonly name: "pufETHAmount";
430
+ readonly type: "uint128";
431
+ readonly internalType: "uint128";
432
+ }, {
433
+ readonly name: "recipient";
434
+ readonly type: "address";
435
+ readonly internalType: "address";
436
+ }];
437
+ readonly outputs: readonly [];
438
+ readonly stateMutability: "nonpayable";
439
+ }, {
440
+ readonly type: "function";
441
+ readonly name: "requestWithdrawalWithPermit";
442
+ readonly inputs: readonly [{
443
+ readonly name: "permitData";
444
+ readonly type: "tuple";
445
+ readonly internalType: "struct Permit";
446
+ readonly components: readonly [{
447
+ readonly name: "deadline";
448
+ readonly type: "uint256";
449
+ readonly internalType: "uint256";
450
+ }, {
451
+ readonly name: "amount";
452
+ readonly type: "uint256";
453
+ readonly internalType: "uint256";
454
+ }, {
455
+ readonly name: "v";
456
+ readonly type: "uint8";
457
+ readonly internalType: "uint8";
458
+ }, {
459
+ readonly name: "r";
460
+ readonly type: "bytes32";
461
+ readonly internalType: "bytes32";
462
+ }, {
463
+ readonly name: "s";
464
+ readonly type: "bytes32";
465
+ readonly internalType: "bytes32";
466
+ }];
467
+ }, {
468
+ readonly name: "recipient";
469
+ readonly type: "address";
470
+ readonly internalType: "address";
471
+ }];
472
+ readonly outputs: readonly [];
473
+ readonly stateMutability: "nonpayable";
474
+ }, {
475
+ readonly type: "function";
476
+ readonly name: "completeQueuedWithdrawal";
477
+ readonly inputs: readonly [{
478
+ readonly name: "withdrawalIdx";
479
+ readonly type: "uint256";
480
+ readonly internalType: "uint256";
481
+ }];
482
+ readonly outputs: readonly [];
483
+ readonly stateMutability: "nonpayable";
484
+ }], "requestWithdrawal", readonly [bigint, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
485
+ requestWithdrawalWithPermit: (args: readonly [{
486
+ deadline: bigint;
487
+ amount: bigint;
488
+ v: number;
489
+ r: `0x${string}`;
490
+ s: `0x${string}`;
491
+ }, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
492
+ readonly type: "function";
493
+ readonly name: "getWithdrawal";
494
+ readonly inputs: readonly [{
495
+ readonly name: "withdrawalIdx";
496
+ readonly type: "uint256";
497
+ readonly internalType: "uint256";
498
+ }];
499
+ readonly outputs: readonly [{
500
+ readonly name: "";
501
+ readonly type: "tuple";
502
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
503
+ readonly components: readonly [{
504
+ readonly name: "pufETHAmount";
505
+ readonly type: "uint128";
506
+ readonly internalType: "uint128";
507
+ }, {
508
+ readonly name: "pufETHToETHExchangeRate";
509
+ readonly type: "uint128";
510
+ readonly internalType: "uint128";
511
+ }, {
512
+ readonly name: "recipient";
513
+ readonly type: "address";
514
+ readonly internalType: "address";
515
+ }];
516
+ }];
517
+ readonly stateMutability: "view";
518
+ }, {
519
+ readonly type: "function";
520
+ readonly name: "requestWithdrawal";
521
+ readonly inputs: readonly [{
522
+ readonly name: "pufETHAmount";
523
+ readonly type: "uint128";
524
+ readonly internalType: "uint128";
525
+ }, {
526
+ readonly name: "recipient";
527
+ readonly type: "address";
528
+ readonly internalType: "address";
529
+ }];
530
+ readonly outputs: readonly [];
531
+ readonly stateMutability: "nonpayable";
532
+ }, {
533
+ readonly type: "function";
534
+ readonly name: "requestWithdrawalWithPermit";
535
+ readonly inputs: readonly [{
536
+ readonly name: "permitData";
537
+ readonly type: "tuple";
538
+ readonly internalType: "struct Permit";
539
+ readonly components: readonly [{
540
+ readonly name: "deadline";
541
+ readonly type: "uint256";
542
+ readonly internalType: "uint256";
543
+ }, {
544
+ readonly name: "amount";
545
+ readonly type: "uint256";
546
+ readonly internalType: "uint256";
547
+ }, {
548
+ readonly name: "v";
549
+ readonly type: "uint8";
550
+ readonly internalType: "uint8";
551
+ }, {
552
+ readonly name: "r";
553
+ readonly type: "bytes32";
554
+ readonly internalType: "bytes32";
555
+ }, {
556
+ readonly name: "s";
557
+ readonly type: "bytes32";
558
+ readonly internalType: "bytes32";
559
+ }];
560
+ }, {
561
+ readonly name: "recipient";
562
+ readonly type: "address";
563
+ readonly internalType: "address";
564
+ }];
565
+ readonly outputs: readonly [];
566
+ readonly stateMutability: "nonpayable";
567
+ }, {
568
+ readonly type: "function";
569
+ readonly name: "completeQueuedWithdrawal";
570
+ readonly inputs: readonly [{
571
+ readonly name: "withdrawalIdx";
572
+ readonly type: "uint256";
573
+ readonly internalType: "uint256";
574
+ }];
575
+ readonly outputs: readonly [];
576
+ readonly stateMutability: "nonpayable";
577
+ }], "requestWithdrawalWithPermit", readonly [{
578
+ deadline: bigint;
579
+ amount: bigint;
580
+ v: number;
581
+ r: `0x${string}`;
582
+ s: `0x${string}`;
583
+ }, `0x${string}`], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
584
+ completeQueuedWithdrawal: (args: readonly [bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
585
+ readonly type: "function";
586
+ readonly name: "getWithdrawal";
587
+ readonly inputs: readonly [{
588
+ readonly name: "withdrawalIdx";
589
+ readonly type: "uint256";
590
+ readonly internalType: "uint256";
591
+ }];
592
+ readonly outputs: readonly [{
593
+ readonly name: "";
594
+ readonly type: "tuple";
595
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
596
+ readonly components: readonly [{
597
+ readonly name: "pufETHAmount";
598
+ readonly type: "uint128";
599
+ readonly internalType: "uint128";
600
+ }, {
601
+ readonly name: "pufETHToETHExchangeRate";
602
+ readonly type: "uint128";
603
+ readonly internalType: "uint128";
604
+ }, {
605
+ readonly name: "recipient";
606
+ readonly type: "address";
607
+ readonly internalType: "address";
608
+ }];
609
+ }];
610
+ readonly stateMutability: "view";
611
+ }, {
612
+ readonly type: "function";
613
+ readonly name: "requestWithdrawal";
614
+ readonly inputs: readonly [{
615
+ readonly name: "pufETHAmount";
616
+ readonly type: "uint128";
617
+ readonly internalType: "uint128";
618
+ }, {
619
+ readonly name: "recipient";
620
+ readonly type: "address";
621
+ readonly internalType: "address";
622
+ }];
623
+ readonly outputs: readonly [];
624
+ readonly stateMutability: "nonpayable";
625
+ }, {
626
+ readonly type: "function";
627
+ readonly name: "requestWithdrawalWithPermit";
628
+ readonly inputs: readonly [{
629
+ readonly name: "permitData";
630
+ readonly type: "tuple";
631
+ readonly internalType: "struct Permit";
632
+ readonly components: readonly [{
633
+ readonly name: "deadline";
634
+ readonly type: "uint256";
635
+ readonly internalType: "uint256";
636
+ }, {
637
+ readonly name: "amount";
638
+ readonly type: "uint256";
639
+ readonly internalType: "uint256";
640
+ }, {
641
+ readonly name: "v";
642
+ readonly type: "uint8";
643
+ readonly internalType: "uint8";
644
+ }, {
645
+ readonly name: "r";
646
+ readonly type: "bytes32";
647
+ readonly internalType: "bytes32";
648
+ }, {
649
+ readonly name: "s";
650
+ readonly type: "bytes32";
651
+ readonly internalType: "bytes32";
652
+ }];
653
+ }, {
654
+ readonly name: "recipient";
655
+ readonly type: "address";
656
+ readonly internalType: "address";
657
+ }];
658
+ readonly outputs: readonly [];
659
+ readonly stateMutability: "nonpayable";
660
+ }, {
661
+ readonly type: "function";
662
+ readonly name: "completeQueuedWithdrawal";
663
+ readonly inputs: readonly [{
664
+ readonly name: "withdrawalIdx";
665
+ readonly type: "uint256";
666
+ readonly internalType: "uint256";
667
+ }];
668
+ readonly outputs: readonly [];
669
+ readonly stateMutability: "nonpayable";
670
+ }], "completeQueuedWithdrawal", readonly [bigint], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
671
+ };
672
+ simulate: {
673
+ requestWithdrawal: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [bigint, `0x${string}`], options?: Omit<import('viem').SimulateContractParameters<readonly [{
674
+ readonly type: "function";
675
+ readonly name: "getWithdrawal";
676
+ readonly inputs: readonly [{
677
+ readonly name: "withdrawalIdx";
678
+ readonly type: "uint256";
679
+ readonly internalType: "uint256";
680
+ }];
681
+ readonly outputs: readonly [{
682
+ readonly name: "";
683
+ readonly type: "tuple";
684
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
685
+ readonly components: readonly [{
686
+ readonly name: "pufETHAmount";
687
+ readonly type: "uint128";
688
+ readonly internalType: "uint128";
689
+ }, {
690
+ readonly name: "pufETHToETHExchangeRate";
691
+ readonly type: "uint128";
692
+ readonly internalType: "uint128";
693
+ }, {
694
+ readonly name: "recipient";
695
+ readonly type: "address";
696
+ readonly internalType: "address";
697
+ }];
698
+ }];
699
+ readonly stateMutability: "view";
700
+ }, {
701
+ readonly type: "function";
702
+ readonly name: "requestWithdrawal";
703
+ readonly inputs: readonly [{
704
+ readonly name: "pufETHAmount";
705
+ readonly type: "uint128";
706
+ readonly internalType: "uint128";
707
+ }, {
708
+ readonly name: "recipient";
709
+ readonly type: "address";
710
+ readonly internalType: "address";
711
+ }];
712
+ readonly outputs: readonly [];
713
+ readonly stateMutability: "nonpayable";
714
+ }, {
715
+ readonly type: "function";
716
+ readonly name: "requestWithdrawalWithPermit";
717
+ readonly inputs: readonly [{
718
+ readonly name: "permitData";
719
+ readonly type: "tuple";
720
+ readonly internalType: "struct Permit";
721
+ readonly components: readonly [{
722
+ readonly name: "deadline";
723
+ readonly type: "uint256";
724
+ readonly internalType: "uint256";
725
+ }, {
726
+ readonly name: "amount";
727
+ readonly type: "uint256";
728
+ readonly internalType: "uint256";
729
+ }, {
730
+ readonly name: "v";
731
+ readonly type: "uint8";
732
+ readonly internalType: "uint8";
733
+ }, {
734
+ readonly name: "r";
735
+ readonly type: "bytes32";
736
+ readonly internalType: "bytes32";
737
+ }, {
738
+ readonly name: "s";
739
+ readonly type: "bytes32";
740
+ readonly internalType: "bytes32";
741
+ }];
742
+ }, {
743
+ readonly name: "recipient";
744
+ readonly type: "address";
745
+ readonly internalType: "address";
746
+ }];
747
+ readonly outputs: readonly [];
748
+ readonly stateMutability: "nonpayable";
749
+ }, {
750
+ readonly type: "function";
751
+ readonly name: "completeQueuedWithdrawal";
752
+ readonly inputs: readonly [{
753
+ readonly name: "withdrawalIdx";
754
+ readonly type: "uint256";
755
+ readonly internalType: "uint256";
756
+ }];
757
+ readonly outputs: readonly [];
758
+ readonly stateMutability: "nonpayable";
759
+ }], "requestWithdrawal", readonly [bigint, `0x${string}`], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
760
+ readonly type: "function";
761
+ readonly name: "getWithdrawal";
762
+ readonly inputs: readonly [{
763
+ readonly name: "withdrawalIdx";
764
+ readonly type: "uint256";
765
+ readonly internalType: "uint256";
766
+ }];
767
+ readonly outputs: readonly [{
768
+ readonly name: "";
769
+ readonly type: "tuple";
770
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
771
+ readonly components: readonly [{
772
+ readonly name: "pufETHAmount";
773
+ readonly type: "uint128";
774
+ readonly internalType: "uint128";
775
+ }, {
776
+ readonly name: "pufETHToETHExchangeRate";
777
+ readonly type: "uint128";
778
+ readonly internalType: "uint128";
779
+ }, {
780
+ readonly name: "recipient";
781
+ readonly type: "address";
782
+ readonly internalType: "address";
783
+ }];
784
+ }];
785
+ readonly stateMutability: "view";
786
+ }, {
787
+ readonly type: "function";
788
+ readonly name: "requestWithdrawal";
789
+ readonly inputs: readonly [{
790
+ readonly name: "pufETHAmount";
791
+ readonly type: "uint128";
792
+ readonly internalType: "uint128";
793
+ }, {
794
+ readonly name: "recipient";
795
+ readonly type: "address";
796
+ readonly internalType: "address";
797
+ }];
798
+ readonly outputs: readonly [];
799
+ readonly stateMutability: "nonpayable";
800
+ }, {
801
+ readonly type: "function";
802
+ readonly name: "requestWithdrawalWithPermit";
803
+ readonly inputs: readonly [{
804
+ readonly name: "permitData";
805
+ readonly type: "tuple";
806
+ readonly internalType: "struct Permit";
807
+ readonly components: readonly [{
808
+ readonly name: "deadline";
809
+ readonly type: "uint256";
810
+ readonly internalType: "uint256";
811
+ }, {
812
+ readonly name: "amount";
813
+ readonly type: "uint256";
814
+ readonly internalType: "uint256";
815
+ }, {
816
+ readonly name: "v";
817
+ readonly type: "uint8";
818
+ readonly internalType: "uint8";
819
+ }, {
820
+ readonly name: "r";
821
+ readonly type: "bytes32";
822
+ readonly internalType: "bytes32";
823
+ }, {
824
+ readonly name: "s";
825
+ readonly type: "bytes32";
826
+ readonly internalType: "bytes32";
827
+ }];
828
+ }, {
829
+ readonly name: "recipient";
830
+ readonly type: "address";
831
+ readonly internalType: "address";
832
+ }];
833
+ readonly outputs: readonly [];
834
+ readonly stateMutability: "nonpayable";
835
+ }, {
836
+ readonly type: "function";
837
+ readonly name: "completeQueuedWithdrawal";
838
+ readonly inputs: readonly [{
839
+ readonly name: "withdrawalIdx";
840
+ readonly type: "uint256";
841
+ readonly internalType: "uint256";
842
+ }];
843
+ readonly outputs: readonly [];
844
+ readonly stateMutability: "nonpayable";
845
+ }], "requestWithdrawal", readonly [bigint, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
846
+ requestWithdrawalWithPermit: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [{
847
+ deadline: bigint;
848
+ amount: bigint;
849
+ v: number;
850
+ r: `0x${string}`;
851
+ s: `0x${string}`;
852
+ }, `0x${string}`], options?: Omit<import('viem').SimulateContractParameters<readonly [{
853
+ readonly type: "function";
854
+ readonly name: "getWithdrawal";
855
+ readonly inputs: readonly [{
856
+ readonly name: "withdrawalIdx";
857
+ readonly type: "uint256";
858
+ readonly internalType: "uint256";
859
+ }];
860
+ readonly outputs: readonly [{
861
+ readonly name: "";
862
+ readonly type: "tuple";
863
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
864
+ readonly components: readonly [{
865
+ readonly name: "pufETHAmount";
866
+ readonly type: "uint128";
867
+ readonly internalType: "uint128";
868
+ }, {
869
+ readonly name: "pufETHToETHExchangeRate";
870
+ readonly type: "uint128";
871
+ readonly internalType: "uint128";
872
+ }, {
873
+ readonly name: "recipient";
874
+ readonly type: "address";
875
+ readonly internalType: "address";
876
+ }];
877
+ }];
878
+ readonly stateMutability: "view";
879
+ }, {
880
+ readonly type: "function";
881
+ readonly name: "requestWithdrawal";
882
+ readonly inputs: readonly [{
883
+ readonly name: "pufETHAmount";
884
+ readonly type: "uint128";
885
+ readonly internalType: "uint128";
886
+ }, {
887
+ readonly name: "recipient";
888
+ readonly type: "address";
889
+ readonly internalType: "address";
890
+ }];
891
+ readonly outputs: readonly [];
892
+ readonly stateMutability: "nonpayable";
893
+ }, {
894
+ readonly type: "function";
895
+ readonly name: "requestWithdrawalWithPermit";
896
+ readonly inputs: readonly [{
897
+ readonly name: "permitData";
898
+ readonly type: "tuple";
899
+ readonly internalType: "struct Permit";
900
+ readonly components: readonly [{
901
+ readonly name: "deadline";
902
+ readonly type: "uint256";
903
+ readonly internalType: "uint256";
904
+ }, {
905
+ readonly name: "amount";
906
+ readonly type: "uint256";
907
+ readonly internalType: "uint256";
908
+ }, {
909
+ readonly name: "v";
910
+ readonly type: "uint8";
911
+ readonly internalType: "uint8";
912
+ }, {
913
+ readonly name: "r";
914
+ readonly type: "bytes32";
915
+ readonly internalType: "bytes32";
916
+ }, {
917
+ readonly name: "s";
918
+ readonly type: "bytes32";
919
+ readonly internalType: "bytes32";
920
+ }];
921
+ }, {
922
+ readonly name: "recipient";
923
+ readonly type: "address";
924
+ readonly internalType: "address";
925
+ }];
926
+ readonly outputs: readonly [];
927
+ readonly stateMutability: "nonpayable";
928
+ }, {
929
+ readonly type: "function";
930
+ readonly name: "completeQueuedWithdrawal";
931
+ readonly inputs: readonly [{
932
+ readonly name: "withdrawalIdx";
933
+ readonly type: "uint256";
934
+ readonly internalType: "uint256";
935
+ }];
936
+ readonly outputs: readonly [];
937
+ readonly stateMutability: "nonpayable";
938
+ }], "requestWithdrawalWithPermit", readonly [{
939
+ deadline: bigint;
940
+ amount: bigint;
941
+ v: number;
942
+ r: `0x${string}`;
943
+ s: `0x${string}`;
944
+ }, `0x${string}`], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
945
+ readonly type: "function";
946
+ readonly name: "getWithdrawal";
947
+ readonly inputs: readonly [{
948
+ readonly name: "withdrawalIdx";
949
+ readonly type: "uint256";
950
+ readonly internalType: "uint256";
951
+ }];
952
+ readonly outputs: readonly [{
953
+ readonly name: "";
954
+ readonly type: "tuple";
955
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
956
+ readonly components: readonly [{
957
+ readonly name: "pufETHAmount";
958
+ readonly type: "uint128";
959
+ readonly internalType: "uint128";
960
+ }, {
961
+ readonly name: "pufETHToETHExchangeRate";
962
+ readonly type: "uint128";
963
+ readonly internalType: "uint128";
964
+ }, {
965
+ readonly name: "recipient";
966
+ readonly type: "address";
967
+ readonly internalType: "address";
968
+ }];
969
+ }];
970
+ readonly stateMutability: "view";
971
+ }, {
972
+ readonly type: "function";
973
+ readonly name: "requestWithdrawal";
974
+ readonly inputs: readonly [{
975
+ readonly name: "pufETHAmount";
976
+ readonly type: "uint128";
977
+ readonly internalType: "uint128";
978
+ }, {
979
+ readonly name: "recipient";
980
+ readonly type: "address";
981
+ readonly internalType: "address";
982
+ }];
983
+ readonly outputs: readonly [];
984
+ readonly stateMutability: "nonpayable";
985
+ }, {
986
+ readonly type: "function";
987
+ readonly name: "requestWithdrawalWithPermit";
988
+ readonly inputs: readonly [{
989
+ readonly name: "permitData";
990
+ readonly type: "tuple";
991
+ readonly internalType: "struct Permit";
992
+ readonly components: readonly [{
993
+ readonly name: "deadline";
994
+ readonly type: "uint256";
995
+ readonly internalType: "uint256";
996
+ }, {
997
+ readonly name: "amount";
998
+ readonly type: "uint256";
999
+ readonly internalType: "uint256";
1000
+ }, {
1001
+ readonly name: "v";
1002
+ readonly type: "uint8";
1003
+ readonly internalType: "uint8";
1004
+ }, {
1005
+ readonly name: "r";
1006
+ readonly type: "bytes32";
1007
+ readonly internalType: "bytes32";
1008
+ }, {
1009
+ readonly name: "s";
1010
+ readonly type: "bytes32";
1011
+ readonly internalType: "bytes32";
1012
+ }];
1013
+ }, {
1014
+ readonly name: "recipient";
1015
+ readonly type: "address";
1016
+ readonly internalType: "address";
1017
+ }];
1018
+ readonly outputs: readonly [];
1019
+ readonly stateMutability: "nonpayable";
1020
+ }, {
1021
+ readonly type: "function";
1022
+ readonly name: "completeQueuedWithdrawal";
1023
+ readonly inputs: readonly [{
1024
+ readonly name: "withdrawalIdx";
1025
+ readonly type: "uint256";
1026
+ readonly internalType: "uint256";
1027
+ }];
1028
+ readonly outputs: readonly [];
1029
+ readonly stateMutability: "nonpayable";
1030
+ }], "requestWithdrawalWithPermit", readonly [{
1031
+ deadline: bigint;
1032
+ amount: bigint;
1033
+ v: number;
1034
+ r: `0x${string}`;
1035
+ s: `0x${string}`;
1036
+ }, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
1037
+ completeQueuedWithdrawal: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
1038
+ readonly type: "function";
1039
+ readonly name: "getWithdrawal";
1040
+ readonly inputs: readonly [{
1041
+ readonly name: "withdrawalIdx";
1042
+ readonly type: "uint256";
1043
+ readonly internalType: "uint256";
1044
+ }];
1045
+ readonly outputs: readonly [{
1046
+ readonly name: "";
1047
+ readonly type: "tuple";
1048
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1049
+ readonly components: readonly [{
1050
+ readonly name: "pufETHAmount";
1051
+ readonly type: "uint128";
1052
+ readonly internalType: "uint128";
1053
+ }, {
1054
+ readonly name: "pufETHToETHExchangeRate";
1055
+ readonly type: "uint128";
1056
+ readonly internalType: "uint128";
1057
+ }, {
1058
+ readonly name: "recipient";
1059
+ readonly type: "address";
1060
+ readonly internalType: "address";
1061
+ }];
1062
+ }];
1063
+ readonly stateMutability: "view";
1064
+ }, {
1065
+ readonly type: "function";
1066
+ readonly name: "requestWithdrawal";
1067
+ readonly inputs: readonly [{
1068
+ readonly name: "pufETHAmount";
1069
+ readonly type: "uint128";
1070
+ readonly internalType: "uint128";
1071
+ }, {
1072
+ readonly name: "recipient";
1073
+ readonly type: "address";
1074
+ readonly internalType: "address";
1075
+ }];
1076
+ readonly outputs: readonly [];
1077
+ readonly stateMutability: "nonpayable";
1078
+ }, {
1079
+ readonly type: "function";
1080
+ readonly name: "requestWithdrawalWithPermit";
1081
+ readonly inputs: readonly [{
1082
+ readonly name: "permitData";
1083
+ readonly type: "tuple";
1084
+ readonly internalType: "struct Permit";
1085
+ readonly components: readonly [{
1086
+ readonly name: "deadline";
1087
+ readonly type: "uint256";
1088
+ readonly internalType: "uint256";
1089
+ }, {
1090
+ readonly name: "amount";
1091
+ readonly type: "uint256";
1092
+ readonly internalType: "uint256";
1093
+ }, {
1094
+ readonly name: "v";
1095
+ readonly type: "uint8";
1096
+ readonly internalType: "uint8";
1097
+ }, {
1098
+ readonly name: "r";
1099
+ readonly type: "bytes32";
1100
+ readonly internalType: "bytes32";
1101
+ }, {
1102
+ readonly name: "s";
1103
+ readonly type: "bytes32";
1104
+ readonly internalType: "bytes32";
1105
+ }];
1106
+ }, {
1107
+ readonly name: "recipient";
1108
+ readonly type: "address";
1109
+ readonly internalType: "address";
1110
+ }];
1111
+ readonly outputs: readonly [];
1112
+ readonly stateMutability: "nonpayable";
1113
+ }, {
1114
+ readonly type: "function";
1115
+ readonly name: "completeQueuedWithdrawal";
1116
+ readonly inputs: readonly [{
1117
+ readonly name: "withdrawalIdx";
1118
+ readonly type: "uint256";
1119
+ readonly internalType: "uint256";
1120
+ }];
1121
+ readonly outputs: readonly [];
1122
+ readonly stateMutability: "nonpayable";
1123
+ }], "completeQueuedWithdrawal", readonly [bigint], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
1124
+ readonly type: "function";
1125
+ readonly name: "getWithdrawal";
1126
+ readonly inputs: readonly [{
1127
+ readonly name: "withdrawalIdx";
1128
+ readonly type: "uint256";
1129
+ readonly internalType: "uint256";
1130
+ }];
1131
+ readonly outputs: readonly [{
1132
+ readonly name: "";
1133
+ readonly type: "tuple";
1134
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1135
+ readonly components: readonly [{
1136
+ readonly name: "pufETHAmount";
1137
+ readonly type: "uint128";
1138
+ readonly internalType: "uint128";
1139
+ }, {
1140
+ readonly name: "pufETHToETHExchangeRate";
1141
+ readonly type: "uint128";
1142
+ readonly internalType: "uint128";
1143
+ }, {
1144
+ readonly name: "recipient";
1145
+ readonly type: "address";
1146
+ readonly internalType: "address";
1147
+ }];
1148
+ }];
1149
+ readonly stateMutability: "view";
1150
+ }, {
1151
+ readonly type: "function";
1152
+ readonly name: "requestWithdrawal";
1153
+ readonly inputs: readonly [{
1154
+ readonly name: "pufETHAmount";
1155
+ readonly type: "uint128";
1156
+ readonly internalType: "uint128";
1157
+ }, {
1158
+ readonly name: "recipient";
1159
+ readonly type: "address";
1160
+ readonly internalType: "address";
1161
+ }];
1162
+ readonly outputs: readonly [];
1163
+ readonly stateMutability: "nonpayable";
1164
+ }, {
1165
+ readonly type: "function";
1166
+ readonly name: "requestWithdrawalWithPermit";
1167
+ readonly inputs: readonly [{
1168
+ readonly name: "permitData";
1169
+ readonly type: "tuple";
1170
+ readonly internalType: "struct Permit";
1171
+ readonly components: readonly [{
1172
+ readonly name: "deadline";
1173
+ readonly type: "uint256";
1174
+ readonly internalType: "uint256";
1175
+ }, {
1176
+ readonly name: "amount";
1177
+ readonly type: "uint256";
1178
+ readonly internalType: "uint256";
1179
+ }, {
1180
+ readonly name: "v";
1181
+ readonly type: "uint8";
1182
+ readonly internalType: "uint8";
1183
+ }, {
1184
+ readonly name: "r";
1185
+ readonly type: "bytes32";
1186
+ readonly internalType: "bytes32";
1187
+ }, {
1188
+ readonly name: "s";
1189
+ readonly type: "bytes32";
1190
+ readonly internalType: "bytes32";
1191
+ }];
1192
+ }, {
1193
+ readonly name: "recipient";
1194
+ readonly type: "address";
1195
+ readonly internalType: "address";
1196
+ }];
1197
+ readonly outputs: readonly [];
1198
+ readonly stateMutability: "nonpayable";
1199
+ }, {
1200
+ readonly type: "function";
1201
+ readonly name: "completeQueuedWithdrawal";
1202
+ readonly inputs: readonly [{
1203
+ readonly name: "withdrawalIdx";
1204
+ readonly type: "uint256";
1205
+ readonly internalType: "uint256";
1206
+ }];
1207
+ readonly outputs: readonly [];
1208
+ readonly stateMutability: "nonpayable";
1209
+ }], "completeQueuedWithdrawal", readonly [bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
1210
+ };
1211
+ write: {
1212
+ requestWithdrawal: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
1213
+ readonly type: "function";
1214
+ readonly name: "getWithdrawal";
1215
+ readonly inputs: readonly [{
1216
+ readonly name: "withdrawalIdx";
1217
+ readonly type: "uint256";
1218
+ readonly internalType: "uint256";
1219
+ }];
1220
+ readonly outputs: readonly [{
1221
+ readonly name: "";
1222
+ readonly type: "tuple";
1223
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1224
+ readonly components: readonly [{
1225
+ readonly name: "pufETHAmount";
1226
+ readonly type: "uint128";
1227
+ readonly internalType: "uint128";
1228
+ }, {
1229
+ readonly name: "pufETHToETHExchangeRate";
1230
+ readonly type: "uint128";
1231
+ readonly internalType: "uint128";
1232
+ }, {
1233
+ readonly name: "recipient";
1234
+ readonly type: "address";
1235
+ readonly internalType: "address";
1236
+ }];
1237
+ }];
1238
+ readonly stateMutability: "view";
1239
+ }, {
1240
+ readonly type: "function";
1241
+ readonly name: "requestWithdrawal";
1242
+ readonly inputs: readonly [{
1243
+ readonly name: "pufETHAmount";
1244
+ readonly type: "uint128";
1245
+ readonly internalType: "uint128";
1246
+ }, {
1247
+ readonly name: "recipient";
1248
+ readonly type: "address";
1249
+ readonly internalType: "address";
1250
+ }];
1251
+ readonly outputs: readonly [];
1252
+ readonly stateMutability: "nonpayable";
1253
+ }, {
1254
+ readonly type: "function";
1255
+ readonly name: "requestWithdrawalWithPermit";
1256
+ readonly inputs: readonly [{
1257
+ readonly name: "permitData";
1258
+ readonly type: "tuple";
1259
+ readonly internalType: "struct Permit";
1260
+ readonly components: readonly [{
1261
+ readonly name: "deadline";
1262
+ readonly type: "uint256";
1263
+ readonly internalType: "uint256";
1264
+ }, {
1265
+ readonly name: "amount";
1266
+ readonly type: "uint256";
1267
+ readonly internalType: "uint256";
1268
+ }, {
1269
+ readonly name: "v";
1270
+ readonly type: "uint8";
1271
+ readonly internalType: "uint8";
1272
+ }, {
1273
+ readonly name: "r";
1274
+ readonly type: "bytes32";
1275
+ readonly internalType: "bytes32";
1276
+ }, {
1277
+ readonly name: "s";
1278
+ readonly type: "bytes32";
1279
+ readonly internalType: "bytes32";
1280
+ }];
1281
+ }, {
1282
+ readonly name: "recipient";
1283
+ readonly type: "address";
1284
+ readonly internalType: "address";
1285
+ }];
1286
+ readonly outputs: readonly [];
1287
+ readonly stateMutability: "nonpayable";
1288
+ }, {
1289
+ readonly type: "function";
1290
+ readonly name: "completeQueuedWithdrawal";
1291
+ readonly inputs: readonly [{
1292
+ readonly name: "withdrawalIdx";
1293
+ readonly type: "uint256";
1294
+ readonly internalType: "uint256";
1295
+ }];
1296
+ readonly outputs: readonly [];
1297
+ readonly stateMutability: "nonpayable";
1298
+ }], "requestWithdrawal", readonly [bigint, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
1299
+ readonly type: "function";
1300
+ readonly name: "getWithdrawal";
1301
+ readonly inputs: readonly [{
1302
+ readonly name: "withdrawalIdx";
1303
+ readonly type: "uint256";
1304
+ readonly internalType: "uint256";
1305
+ }];
1306
+ readonly outputs: readonly [{
1307
+ readonly name: "";
1308
+ readonly type: "tuple";
1309
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1310
+ readonly components: readonly [{
1311
+ readonly name: "pufETHAmount";
1312
+ readonly type: "uint128";
1313
+ readonly internalType: "uint128";
1314
+ }, {
1315
+ readonly name: "pufETHToETHExchangeRate";
1316
+ readonly type: "uint128";
1317
+ readonly internalType: "uint128";
1318
+ }, {
1319
+ readonly name: "recipient";
1320
+ readonly type: "address";
1321
+ readonly internalType: "address";
1322
+ }];
1323
+ }];
1324
+ readonly stateMutability: "view";
1325
+ }, {
1326
+ readonly type: "function";
1327
+ readonly name: "requestWithdrawal";
1328
+ readonly inputs: readonly [{
1329
+ readonly name: "pufETHAmount";
1330
+ readonly type: "uint128";
1331
+ readonly internalType: "uint128";
1332
+ }, {
1333
+ readonly name: "recipient";
1334
+ readonly type: "address";
1335
+ readonly internalType: "address";
1336
+ }];
1337
+ readonly outputs: readonly [];
1338
+ readonly stateMutability: "nonpayable";
1339
+ }, {
1340
+ readonly type: "function";
1341
+ readonly name: "requestWithdrawalWithPermit";
1342
+ readonly inputs: readonly [{
1343
+ readonly name: "permitData";
1344
+ readonly type: "tuple";
1345
+ readonly internalType: "struct Permit";
1346
+ readonly components: readonly [{
1347
+ readonly name: "deadline";
1348
+ readonly type: "uint256";
1349
+ readonly internalType: "uint256";
1350
+ }, {
1351
+ readonly name: "amount";
1352
+ readonly type: "uint256";
1353
+ readonly internalType: "uint256";
1354
+ }, {
1355
+ readonly name: "v";
1356
+ readonly type: "uint8";
1357
+ readonly internalType: "uint8";
1358
+ }, {
1359
+ readonly name: "r";
1360
+ readonly type: "bytes32";
1361
+ readonly internalType: "bytes32";
1362
+ }, {
1363
+ readonly name: "s";
1364
+ readonly type: "bytes32";
1365
+ readonly internalType: "bytes32";
1366
+ }];
1367
+ }, {
1368
+ readonly name: "recipient";
1369
+ readonly type: "address";
1370
+ readonly internalType: "address";
1371
+ }];
1372
+ readonly outputs: readonly [];
1373
+ readonly stateMutability: "nonpayable";
1374
+ }, {
1375
+ readonly type: "function";
1376
+ readonly name: "completeQueuedWithdrawal";
1377
+ readonly inputs: readonly [{
1378
+ readonly name: "withdrawalIdx";
1379
+ readonly type: "uint256";
1380
+ readonly internalType: "uint256";
1381
+ }];
1382
+ readonly outputs: readonly [];
1383
+ readonly stateMutability: "nonpayable";
1384
+ }], "requestWithdrawal", readonly [bigint, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [bigint, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
1385
+ requestWithdrawalWithPermit: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
1386
+ readonly type: "function";
1387
+ readonly name: "getWithdrawal";
1388
+ readonly inputs: readonly [{
1389
+ readonly name: "withdrawalIdx";
1390
+ readonly type: "uint256";
1391
+ readonly internalType: "uint256";
1392
+ }];
1393
+ readonly outputs: readonly [{
1394
+ readonly name: "";
1395
+ readonly type: "tuple";
1396
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1397
+ readonly components: readonly [{
1398
+ readonly name: "pufETHAmount";
1399
+ readonly type: "uint128";
1400
+ readonly internalType: "uint128";
1401
+ }, {
1402
+ readonly name: "pufETHToETHExchangeRate";
1403
+ readonly type: "uint128";
1404
+ readonly internalType: "uint128";
1405
+ }, {
1406
+ readonly name: "recipient";
1407
+ readonly type: "address";
1408
+ readonly internalType: "address";
1409
+ }];
1410
+ }];
1411
+ readonly stateMutability: "view";
1412
+ }, {
1413
+ readonly type: "function";
1414
+ readonly name: "requestWithdrawal";
1415
+ readonly inputs: readonly [{
1416
+ readonly name: "pufETHAmount";
1417
+ readonly type: "uint128";
1418
+ readonly internalType: "uint128";
1419
+ }, {
1420
+ readonly name: "recipient";
1421
+ readonly type: "address";
1422
+ readonly internalType: "address";
1423
+ }];
1424
+ readonly outputs: readonly [];
1425
+ readonly stateMutability: "nonpayable";
1426
+ }, {
1427
+ readonly type: "function";
1428
+ readonly name: "requestWithdrawalWithPermit";
1429
+ readonly inputs: readonly [{
1430
+ readonly name: "permitData";
1431
+ readonly type: "tuple";
1432
+ readonly internalType: "struct Permit";
1433
+ readonly components: readonly [{
1434
+ readonly name: "deadline";
1435
+ readonly type: "uint256";
1436
+ readonly internalType: "uint256";
1437
+ }, {
1438
+ readonly name: "amount";
1439
+ readonly type: "uint256";
1440
+ readonly internalType: "uint256";
1441
+ }, {
1442
+ readonly name: "v";
1443
+ readonly type: "uint8";
1444
+ readonly internalType: "uint8";
1445
+ }, {
1446
+ readonly name: "r";
1447
+ readonly type: "bytes32";
1448
+ readonly internalType: "bytes32";
1449
+ }, {
1450
+ readonly name: "s";
1451
+ readonly type: "bytes32";
1452
+ readonly internalType: "bytes32";
1453
+ }];
1454
+ }, {
1455
+ readonly name: "recipient";
1456
+ readonly type: "address";
1457
+ readonly internalType: "address";
1458
+ }];
1459
+ readonly outputs: readonly [];
1460
+ readonly stateMutability: "nonpayable";
1461
+ }, {
1462
+ readonly type: "function";
1463
+ readonly name: "completeQueuedWithdrawal";
1464
+ readonly inputs: readonly [{
1465
+ readonly name: "withdrawalIdx";
1466
+ readonly type: "uint256";
1467
+ readonly internalType: "uint256";
1468
+ }];
1469
+ readonly outputs: readonly [];
1470
+ readonly stateMutability: "nonpayable";
1471
+ }], "requestWithdrawalWithPermit", readonly [{
1472
+ deadline: bigint;
1473
+ amount: bigint;
1474
+ v: number;
1475
+ r: `0x${string}`;
1476
+ s: `0x${string}`;
1477
+ }, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
1478
+ readonly type: "function";
1479
+ readonly name: "getWithdrawal";
1480
+ readonly inputs: readonly [{
1481
+ readonly name: "withdrawalIdx";
1482
+ readonly type: "uint256";
1483
+ readonly internalType: "uint256";
1484
+ }];
1485
+ readonly outputs: readonly [{
1486
+ readonly name: "";
1487
+ readonly type: "tuple";
1488
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1489
+ readonly components: readonly [{
1490
+ readonly name: "pufETHAmount";
1491
+ readonly type: "uint128";
1492
+ readonly internalType: "uint128";
1493
+ }, {
1494
+ readonly name: "pufETHToETHExchangeRate";
1495
+ readonly type: "uint128";
1496
+ readonly internalType: "uint128";
1497
+ }, {
1498
+ readonly name: "recipient";
1499
+ readonly type: "address";
1500
+ readonly internalType: "address";
1501
+ }];
1502
+ }];
1503
+ readonly stateMutability: "view";
1504
+ }, {
1505
+ readonly type: "function";
1506
+ readonly name: "requestWithdrawal";
1507
+ readonly inputs: readonly [{
1508
+ readonly name: "pufETHAmount";
1509
+ readonly type: "uint128";
1510
+ readonly internalType: "uint128";
1511
+ }, {
1512
+ readonly name: "recipient";
1513
+ readonly type: "address";
1514
+ readonly internalType: "address";
1515
+ }];
1516
+ readonly outputs: readonly [];
1517
+ readonly stateMutability: "nonpayable";
1518
+ }, {
1519
+ readonly type: "function";
1520
+ readonly name: "requestWithdrawalWithPermit";
1521
+ readonly inputs: readonly [{
1522
+ readonly name: "permitData";
1523
+ readonly type: "tuple";
1524
+ readonly internalType: "struct Permit";
1525
+ readonly components: readonly [{
1526
+ readonly name: "deadline";
1527
+ readonly type: "uint256";
1528
+ readonly internalType: "uint256";
1529
+ }, {
1530
+ readonly name: "amount";
1531
+ readonly type: "uint256";
1532
+ readonly internalType: "uint256";
1533
+ }, {
1534
+ readonly name: "v";
1535
+ readonly type: "uint8";
1536
+ readonly internalType: "uint8";
1537
+ }, {
1538
+ readonly name: "r";
1539
+ readonly type: "bytes32";
1540
+ readonly internalType: "bytes32";
1541
+ }, {
1542
+ readonly name: "s";
1543
+ readonly type: "bytes32";
1544
+ readonly internalType: "bytes32";
1545
+ }];
1546
+ }, {
1547
+ readonly name: "recipient";
1548
+ readonly type: "address";
1549
+ readonly internalType: "address";
1550
+ }];
1551
+ readonly outputs: readonly [];
1552
+ readonly stateMutability: "nonpayable";
1553
+ }, {
1554
+ readonly type: "function";
1555
+ readonly name: "completeQueuedWithdrawal";
1556
+ readonly inputs: readonly [{
1557
+ readonly name: "withdrawalIdx";
1558
+ readonly type: "uint256";
1559
+ readonly internalType: "uint256";
1560
+ }];
1561
+ readonly outputs: readonly [];
1562
+ readonly stateMutability: "nonpayable";
1563
+ }], "requestWithdrawalWithPermit", readonly [{
1564
+ deadline: bigint;
1565
+ amount: bigint;
1566
+ v: number;
1567
+ r: `0x${string}`;
1568
+ s: `0x${string}`;
1569
+ }, `0x${string}`], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [{
1570
+ deadline: bigint;
1571
+ amount: bigint;
1572
+ v: number;
1573
+ r: `0x${string}`;
1574
+ s: `0x${string}`;
1575
+ }, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
1576
+ completeQueuedWithdrawal: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
1577
+ readonly type: "function";
1578
+ readonly name: "getWithdrawal";
1579
+ readonly inputs: readonly [{
1580
+ readonly name: "withdrawalIdx";
1581
+ readonly type: "uint256";
1582
+ readonly internalType: "uint256";
1583
+ }];
1584
+ readonly outputs: readonly [{
1585
+ readonly name: "";
1586
+ readonly type: "tuple";
1587
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1588
+ readonly components: readonly [{
1589
+ readonly name: "pufETHAmount";
1590
+ readonly type: "uint128";
1591
+ readonly internalType: "uint128";
1592
+ }, {
1593
+ readonly name: "pufETHToETHExchangeRate";
1594
+ readonly type: "uint128";
1595
+ readonly internalType: "uint128";
1596
+ }, {
1597
+ readonly name: "recipient";
1598
+ readonly type: "address";
1599
+ readonly internalType: "address";
1600
+ }];
1601
+ }];
1602
+ readonly stateMutability: "view";
1603
+ }, {
1604
+ readonly type: "function";
1605
+ readonly name: "requestWithdrawal";
1606
+ readonly inputs: readonly [{
1607
+ readonly name: "pufETHAmount";
1608
+ readonly type: "uint128";
1609
+ readonly internalType: "uint128";
1610
+ }, {
1611
+ readonly name: "recipient";
1612
+ readonly type: "address";
1613
+ readonly internalType: "address";
1614
+ }];
1615
+ readonly outputs: readonly [];
1616
+ readonly stateMutability: "nonpayable";
1617
+ }, {
1618
+ readonly type: "function";
1619
+ readonly name: "requestWithdrawalWithPermit";
1620
+ readonly inputs: readonly [{
1621
+ readonly name: "permitData";
1622
+ readonly type: "tuple";
1623
+ readonly internalType: "struct Permit";
1624
+ readonly components: readonly [{
1625
+ readonly name: "deadline";
1626
+ readonly type: "uint256";
1627
+ readonly internalType: "uint256";
1628
+ }, {
1629
+ readonly name: "amount";
1630
+ readonly type: "uint256";
1631
+ readonly internalType: "uint256";
1632
+ }, {
1633
+ readonly name: "v";
1634
+ readonly type: "uint8";
1635
+ readonly internalType: "uint8";
1636
+ }, {
1637
+ readonly name: "r";
1638
+ readonly type: "bytes32";
1639
+ readonly internalType: "bytes32";
1640
+ }, {
1641
+ readonly name: "s";
1642
+ readonly type: "bytes32";
1643
+ readonly internalType: "bytes32";
1644
+ }];
1645
+ }, {
1646
+ readonly name: "recipient";
1647
+ readonly type: "address";
1648
+ readonly internalType: "address";
1649
+ }];
1650
+ readonly outputs: readonly [];
1651
+ readonly stateMutability: "nonpayable";
1652
+ }, {
1653
+ readonly type: "function";
1654
+ readonly name: "completeQueuedWithdrawal";
1655
+ readonly inputs: readonly [{
1656
+ readonly name: "withdrawalIdx";
1657
+ readonly type: "uint256";
1658
+ readonly internalType: "uint256";
1659
+ }];
1660
+ readonly outputs: readonly [];
1661
+ readonly stateMutability: "nonpayable";
1662
+ }], "completeQueuedWithdrawal", readonly [bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
1663
+ readonly type: "function";
1664
+ readonly name: "getWithdrawal";
1665
+ readonly inputs: readonly [{
1666
+ readonly name: "withdrawalIdx";
1667
+ readonly type: "uint256";
1668
+ readonly internalType: "uint256";
1669
+ }];
1670
+ readonly outputs: readonly [{
1671
+ readonly name: "";
1672
+ readonly type: "tuple";
1673
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1674
+ readonly components: readonly [{
1675
+ readonly name: "pufETHAmount";
1676
+ readonly type: "uint128";
1677
+ readonly internalType: "uint128";
1678
+ }, {
1679
+ readonly name: "pufETHToETHExchangeRate";
1680
+ readonly type: "uint128";
1681
+ readonly internalType: "uint128";
1682
+ }, {
1683
+ readonly name: "recipient";
1684
+ readonly type: "address";
1685
+ readonly internalType: "address";
1686
+ }];
1687
+ }];
1688
+ readonly stateMutability: "view";
1689
+ }, {
1690
+ readonly type: "function";
1691
+ readonly name: "requestWithdrawal";
1692
+ readonly inputs: readonly [{
1693
+ readonly name: "pufETHAmount";
1694
+ readonly type: "uint128";
1695
+ readonly internalType: "uint128";
1696
+ }, {
1697
+ readonly name: "recipient";
1698
+ readonly type: "address";
1699
+ readonly internalType: "address";
1700
+ }];
1701
+ readonly outputs: readonly [];
1702
+ readonly stateMutability: "nonpayable";
1703
+ }, {
1704
+ readonly type: "function";
1705
+ readonly name: "requestWithdrawalWithPermit";
1706
+ readonly inputs: readonly [{
1707
+ readonly name: "permitData";
1708
+ readonly type: "tuple";
1709
+ readonly internalType: "struct Permit";
1710
+ readonly components: readonly [{
1711
+ readonly name: "deadline";
1712
+ readonly type: "uint256";
1713
+ readonly internalType: "uint256";
1714
+ }, {
1715
+ readonly name: "amount";
1716
+ readonly type: "uint256";
1717
+ readonly internalType: "uint256";
1718
+ }, {
1719
+ readonly name: "v";
1720
+ readonly type: "uint8";
1721
+ readonly internalType: "uint8";
1722
+ }, {
1723
+ readonly name: "r";
1724
+ readonly type: "bytes32";
1725
+ readonly internalType: "bytes32";
1726
+ }, {
1727
+ readonly name: "s";
1728
+ readonly type: "bytes32";
1729
+ readonly internalType: "bytes32";
1730
+ }];
1731
+ }, {
1732
+ readonly name: "recipient";
1733
+ readonly type: "address";
1734
+ readonly internalType: "address";
1735
+ }];
1736
+ readonly outputs: readonly [];
1737
+ readonly stateMutability: "nonpayable";
1738
+ }, {
1739
+ readonly type: "function";
1740
+ readonly name: "completeQueuedWithdrawal";
1741
+ readonly inputs: readonly [{
1742
+ readonly name: "withdrawalIdx";
1743
+ readonly type: "uint256";
1744
+ readonly internalType: "uint256";
1745
+ }];
1746
+ readonly outputs: readonly [];
1747
+ readonly stateMutability: "nonpayable";
1748
+ }], "completeQueuedWithdrawal", readonly [bigint], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [bigint], options: options) => Promise<import('viem').WriteContractReturnType>;
1749
+ };
1750
+ address: `0x${string}`;
1751
+ abi: readonly [{
1752
+ readonly type: "function";
1753
+ readonly name: "getWithdrawal";
1754
+ readonly inputs: readonly [{
1755
+ readonly name: "withdrawalIdx";
1756
+ readonly type: "uint256";
1757
+ readonly internalType: "uint256";
1758
+ }];
1759
+ readonly outputs: readonly [{
1760
+ readonly name: "";
1761
+ readonly type: "tuple";
1762
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
1763
+ readonly components: readonly [{
1764
+ readonly name: "pufETHAmount";
1765
+ readonly type: "uint128";
1766
+ readonly internalType: "uint128";
1767
+ }, {
1768
+ readonly name: "pufETHToETHExchangeRate";
1769
+ readonly type: "uint128";
1770
+ readonly internalType: "uint128";
1771
+ }, {
1772
+ readonly name: "recipient";
1773
+ readonly type: "address";
1774
+ readonly internalType: "address";
1775
+ }];
1776
+ }];
1777
+ readonly stateMutability: "view";
1778
+ }, {
1779
+ readonly type: "function";
1780
+ readonly name: "requestWithdrawal";
1781
+ readonly inputs: readonly [{
1782
+ readonly name: "pufETHAmount";
1783
+ readonly type: "uint128";
1784
+ readonly internalType: "uint128";
1785
+ }, {
1786
+ readonly name: "recipient";
1787
+ readonly type: "address";
1788
+ readonly internalType: "address";
1789
+ }];
1790
+ readonly outputs: readonly [];
1791
+ readonly stateMutability: "nonpayable";
1792
+ }, {
1793
+ readonly type: "function";
1794
+ readonly name: "requestWithdrawalWithPermit";
1795
+ readonly inputs: readonly [{
1796
+ readonly name: "permitData";
1797
+ readonly type: "tuple";
1798
+ readonly internalType: "struct Permit";
1799
+ readonly components: readonly [{
1800
+ readonly name: "deadline";
1801
+ readonly type: "uint256";
1802
+ readonly internalType: "uint256";
1803
+ }, {
1804
+ readonly name: "amount";
1805
+ readonly type: "uint256";
1806
+ readonly internalType: "uint256";
1807
+ }, {
1808
+ readonly name: "v";
1809
+ readonly type: "uint8";
1810
+ readonly internalType: "uint8";
1811
+ }, {
1812
+ readonly name: "r";
1813
+ readonly type: "bytes32";
1814
+ readonly internalType: "bytes32";
1815
+ }, {
1816
+ readonly name: "s";
1817
+ readonly type: "bytes32";
1818
+ readonly internalType: "bytes32";
1819
+ }];
1820
+ }, {
1821
+ readonly name: "recipient";
1822
+ readonly type: "address";
1823
+ readonly internalType: "address";
1824
+ }];
1825
+ readonly outputs: readonly [];
1826
+ readonly stateMutability: "nonpayable";
1827
+ }, {
1828
+ readonly type: "function";
1829
+ readonly name: "completeQueuedWithdrawal";
1830
+ readonly inputs: readonly [{
1831
+ readonly name: "withdrawalIdx";
1832
+ readonly type: "uint256";
1833
+ readonly internalType: "uint256";
1834
+ }];
1835
+ readonly outputs: readonly [];
1836
+ readonly stateMutability: "nonpayable";
1837
+ }];
1838
+ };
1839
+ /**
1840
+ * Request a withdrawal of the given amount to the given address, with a permit.
1841
+ *
1842
+ * @param walletAddress The account address to request the withdrawal for.
1843
+ * @param amount The pufETH amount to request the withdrawal for.
1844
+ * @returns The transaction hash of the withdrawal.
1845
+ */
1846
+ requestWithdrawal(walletAddress: Address, amount: bigint): Promise<{
1847
+ transact: () => Promise<`0x${string}`>;
1848
+ estimate: () => Promise<bigint>;
1849
+ }>;
1850
+ /**
1851
+ * Request a withdrawal of the given amount to the given address.
1852
+ *
1853
+ * @param walletAddress The account address to request the withdrawal for.
1854
+ * @param amount The pufETHamount to request the withdrawal for.
1855
+ * @returns The transaction hash of the withdrawal.
1856
+ */
1857
+ requestWithdrawalWithPermit(walletAddress: Address, amount: bigint): Promise<{
1858
+ transact: () => Promise<`0x${string}`>;
1859
+ estimate: () => Promise<bigint>;
1860
+ }>;
1861
+ /**
1862
+ * Complete a withdrawal from the queue.
1863
+ *
1864
+ * @param withdrawalIdx The index of the withdrawal to complete.
1865
+ * @returns The transaction hash of the withdrawal.
1866
+ */
1867
+ completeQueuedWithdrawal(walletAddress: Address, withdrawalIdx: bigint): Promise<{
1868
+ transact: () => Promise<`0x${string}`>;
1869
+ estimate: () => Promise<bigint>;
1870
+ }>;
1871
+ /**
1872
+ * Get the withdrawal at the given index.
1873
+ *
1874
+ * @param withdrawalIdx The index of the withdrawal to get.
1875
+ * @returns The withdrawal at the given index.
1876
+ */
1877
+ getWithdrawal(withdrawalIdx: bigint): Promise<{
1878
+ pufETHAmount: bigint;
1879
+ pufETHToETHExchangeRate: bigint;
1880
+ recipient: `0x${string}`;
1881
+ }>;
1882
+ }