@pufferfinance/puffer-sdk 1.13.0 → 1.13.1

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 (143) 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 +70 -65
  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-BO_b9tFc.cjs → ccip-C0xwQhXU.cjs} +2 -2
  8. package/dist/ccip-C0xwQhXU.cjs.map +1 -0
  9. package/dist/{ccip-DLDO0_x2.js → ccip-K-z2PL4P.js} +3 -3
  10. package/dist/ccip-K-z2PL4P.js.map +1 -0
  11. package/dist/chains/constants.cjs +1 -1
  12. package/dist/chains/constants.js +1 -1
  13. package/dist/constants-BcPRVxdH.cjs +9 -0
  14. package/dist/constants-BcPRVxdH.cjs.map +1 -0
  15. package/dist/{constants-BjRNQpT2.js → constants-CH7Tz5jz.js} +745 -694
  16. package/dist/constants-CH7Tz5jz.js.map +1 -0
  17. package/dist/contracts/abis/l1-reward-manager-abis.cjs +1 -1
  18. package/dist/contracts/abis/l1-reward-manager-abis.d.ts +527 -1
  19. package/dist/contracts/abis/l1-reward-manager-abis.js +1 -1
  20. package/dist/contracts/abis/l2-reward-manager-abis.cjs +1 -1
  21. package/dist/contracts/abis/l2-reward-manager-abis.d.ts +1416 -1
  22. package/dist/contracts/abis/l2-reward-manager-abis.js +1 -1
  23. package/dist/contracts/abis/nucleus-accountant-abis.cjs +1 -1
  24. package/dist/contracts/abis/nucleus-accountant-abis.d.ts +2 -1
  25. package/dist/contracts/abis/nucleus-accountant-abis.js +1 -1
  26. package/dist/contracts/abis/nucleus-atomic-queue-abis.cjs +1 -1
  27. package/dist/contracts/abis/nucleus-atomic-queue-abis.d.ts +2 -1
  28. package/dist/contracts/abis/nucleus-atomic-queue-abis.js +1 -1
  29. package/dist/contracts/abis/nucleus-boring-vault-abis.cjs +1 -1
  30. package/dist/contracts/abis/nucleus-boring-vault-abis.d.ts +2 -1
  31. package/dist/contracts/abis/nucleus-boring-vault-abis.js +1 -1
  32. package/dist/contracts/abis/nucleus-teller-abis.cjs +1 -1
  33. package/dist/contracts/abis/nucleus-teller-abis.d.ts +2 -1
  34. package/dist/contracts/abis/nucleus-teller-abis.js +1 -1
  35. package/dist/contracts/abis/puf-locker-abis.cjs +1 -1
  36. package/dist/contracts/abis/puf-locker-abis.d.ts +484 -1
  37. package/dist/contracts/abis/puf-locker-abis.js +1 -1
  38. package/dist/contracts/abis/puffer-depositor-abis.cjs +1 -1
  39. package/dist/contracts/abis/puffer-depositor-abis.d.ts +663 -2
  40. package/dist/contracts/abis/puffer-depositor-abis.js +1 -1
  41. package/dist/contracts/abis/puffer-vault-abis.cjs +1 -1
  42. package/dist/contracts/abis/puffer-vault-abis.d.ts +4 -2
  43. package/dist/contracts/abis/puffer-vault-abis.js +1 -1
  44. package/dist/contracts/abis/puffer-withdrawal-manager-abis.cjs +1 -1
  45. package/dist/contracts/abis/puffer-withdrawal-manager-abis.d.ts +514 -1
  46. package/dist/contracts/abis/puffer-withdrawal-manager-abis.js +1 -1
  47. package/dist/contracts/addresses.cjs +1 -1
  48. package/dist/contracts/addresses.d.ts +6 -15
  49. package/dist/contracts/addresses.js +1 -1
  50. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  51. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  52. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  53. package/dist/contracts/handlers/distributor-handler.js +2 -2
  54. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  55. package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
  56. package/dist/contracts/handlers/erc20-permit-handler.d.ts +17101 -14898
  57. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  58. package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
  59. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  60. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  61. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  62. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  63. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  64. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  65. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  66. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  67. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  68. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs.map +1 -1
  69. package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +7619 -14812
  70. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  71. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js.map +1 -1
  72. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  73. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  74. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  75. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  76. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  77. package/dist/contracts/handlers/puf-locker-handler.cjs.map +1 -1
  78. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  79. package/dist/contracts/handlers/puf-locker-handler.js.map +1 -1
  80. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  81. package/dist/contracts/handlers/puffer-depositor-handler.d.ts +11215 -14794
  82. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  83. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  84. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  85. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  86. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  87. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  88. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  89. package/dist/contracts/tokens.cjs +1 -1
  90. package/dist/contracts/tokens.js +1 -1
  91. package/dist/contracts/vaults-addresses.cjs +1 -1
  92. package/dist/contracts/vaults-addresses.d.ts +5 -4
  93. package/dist/contracts/vaults-addresses.js +1 -1
  94. package/dist/createWalletClient-DNLhBkOd.js +3289 -0
  95. package/dist/createWalletClient-DNLhBkOd.js.map +1 -0
  96. package/dist/createWalletClient-Di5of07E.cjs +6 -0
  97. package/dist/createWalletClient-Di5of07E.cjs.map +1 -0
  98. package/dist/{getContract-CezEyDf-.js → getContract-6ajhFbP2.js} +2 -2
  99. package/dist/getContract-6ajhFbP2.js.map +1 -0
  100. package/dist/{getContract-3QbyfZBF.cjs → getContract-ChPFzc5y.cjs} +2 -2
  101. package/dist/{getContract-CezEyDf-.js.map → getContract-ChPFzc5y.cjs.map} +1 -1
  102. package/dist/main.cjs +1 -1
  103. package/dist/main.js +1 -1
  104. package/dist/secp256k1-B8plqpXf.cjs +2 -0
  105. package/dist/secp256k1-B8plqpXf.cjs.map +1 -0
  106. package/dist/secp256k1-Ev0s9Yr6.js +1340 -0
  107. package/dist/secp256k1-Ev0s9Yr6.js.map +1 -0
  108. package/dist/utils/version.cjs +1 -1
  109. package/dist/utils/version.js +1 -1
  110. package/dist/writeContract-BatuNuTe.cjs +32 -0
  111. package/dist/writeContract-BatuNuTe.cjs.map +1 -0
  112. package/dist/{writeContract-ChuHpJLC.js → writeContract-CjcOEtWX.js} +822 -763
  113. package/dist/writeContract-CjcOEtWX.js.map +1 -0
  114. package/package.json +15 -15
  115. package/dist/ccip-BO_b9tFc.cjs.map +0 -1
  116. package/dist/ccip-DLDO0_x2.js.map +0 -1
  117. package/dist/constants-BjRNQpT2.js.map +0 -1
  118. package/dist/constants-DA2xUb9r.cjs +0 -9
  119. package/dist/constants-DA2xUb9r.cjs.map +0 -1
  120. package/dist/contracts/handlers/carrot-staking-handler.d.ts +0 -15063
  121. package/dist/contracts/handlers/distributor-handler.d.ts +0 -15369
  122. package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +0 -15107
  123. package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +0 -15353
  124. package/dist/contracts/handlers/mtw-carrot-handler.d.ts +0 -15293
  125. package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +0 -15126
  126. package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +0 -15284
  127. package/dist/contracts/handlers/nucleus-teller-handler.d.ts +0 -15201
  128. package/dist/contracts/handlers/puf-locker-handler.d.ts +0 -15116
  129. package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +0 -14969
  130. package/dist/contracts/handlers/puffer-vault-handler.d.ts +0 -17452
  131. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +0 -15111
  132. package/dist/createWalletClient-BuLYysrp.cjs +0 -4
  133. package/dist/createWalletClient-BuLYysrp.cjs.map +0 -1
  134. package/dist/createWalletClient-DNcW-ENe.js +0 -2028
  135. package/dist/createWalletClient-DNcW-ENe.js.map +0 -1
  136. package/dist/getContract-3QbyfZBF.cjs.map +0 -1
  137. package/dist/secp256k1-3OC5y4qp.js +0 -1579
  138. package/dist/secp256k1-3OC5y4qp.js.map +0 -1
  139. package/dist/secp256k1-bcahnPX9.cjs +0 -2
  140. package/dist/secp256k1-bcahnPX9.cjs.map +0 -1
  141. package/dist/writeContract-ChuHpJLC.js.map +0 -1
  142. package/dist/writeContract-D97dSJQe.cjs +0 -32
  143. package/dist/writeContract-D97dSJQe.cjs.map +0 -1
@@ -1,5 +1,6 @@
1
+ import { Chain } from '../../chains/constants';
1
2
  export declare const PUFFER_VAULT_ABIS: {
2
- [x: number]: {
3
+ [Chain.Mainnet]: {
3
4
  PufferVaultV2: readonly [{
4
5
  readonly type: "constructor";
5
6
  readonly inputs: readonly [{
@@ -1421,7 +1422,8 @@ export declare const PUFFER_VAULT_ABIS: {
1421
1422
  readonly name: "WithdrawalsAreDisabled";
1422
1423
  readonly inputs: readonly [];
1423
1424
  }];
1424
- } | {
1425
+ };
1426
+ [Chain.Holesky]: {
1425
1427
  PufferVaultV2: readonly [{
1426
1428
  readonly type: "constructor";
1427
1429
  readonly inputs: readonly [{
@@ -1,4 +1,4 @@
1
- import { C as f } from "../../constants-BjRNQpT2.js";
1
+ import { C as f } from "../../constants-CH7Tz5jz.js";
2
2
  import { PufferVaultV2 as r } from "./mainnet/PufferVaultV2.js";
3
3
  import { PufferVaultV2 as t } from "./holesky/PufferVaultV2.js";
4
4
  const o = {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-DA2xUb9r.cjs"),e=require("./mainnet/PufferWithdrawalManager.cjs"),r={[a.Chain.Mainnet]:{PufferWithdrawalManager:e.PufferWithdrawalManager},[a.Chain.Holesky]:{PufferWithdrawalManager:e.PufferWithdrawalManager}};exports.PUFFER_WITHDRAWAL_MANAGER_ABIS=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-BcPRVxdH.cjs"),e=require("./mainnet/PufferWithdrawalManager.cjs"),r={[a.Chain.Mainnet]:{PufferWithdrawalManager:e.PufferWithdrawalManager},[a.Chain.Holesky]:{PufferWithdrawalManager:e.PufferWithdrawalManager}};exports.PUFFER_WITHDRAWAL_MANAGER_ABIS=r;
2
2
  //# sourceMappingURL=puffer-withdrawal-manager-abis.cjs.map
@@ -1,5 +1,518 @@
1
+ import { Chain } from '../../chains/constants';
1
2
  export declare const PUFFER_WITHDRAWAL_MANAGER_ABIS: {
2
- [x: number]: {
3
+ [Chain.Mainnet]: {
4
+ PufferWithdrawalManager: readonly [{
5
+ readonly type: "constructor";
6
+ readonly inputs: readonly [{
7
+ readonly name: "batchSize";
8
+ readonly type: "uint256";
9
+ readonly internalType: "uint256";
10
+ }, {
11
+ readonly name: "pufferVault";
12
+ readonly type: "address";
13
+ readonly internalType: "contract PufferVaultV3";
14
+ }, {
15
+ readonly name: "weth";
16
+ readonly type: "address";
17
+ readonly internalType: "contract IWETH";
18
+ }];
19
+ readonly stateMutability: "nonpayable";
20
+ }, {
21
+ readonly type: "receive";
22
+ readonly stateMutability: "payable";
23
+ }, {
24
+ readonly type: "function";
25
+ readonly name: "BATCH_SIZE";
26
+ readonly inputs: readonly [];
27
+ readonly outputs: readonly [{
28
+ readonly name: "";
29
+ readonly type: "uint256";
30
+ readonly internalType: "uint256";
31
+ }];
32
+ readonly stateMutability: "view";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "MIN_WITHDRAWAL_AMOUNT";
36
+ readonly inputs: readonly [];
37
+ readonly outputs: readonly [{
38
+ readonly name: "";
39
+ readonly type: "uint256";
40
+ readonly internalType: "uint256";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ }, {
44
+ readonly type: "function";
45
+ readonly name: "PUFFER_VAULT";
46
+ readonly inputs: readonly [];
47
+ readonly outputs: readonly [{
48
+ readonly name: "";
49
+ readonly type: "address";
50
+ readonly internalType: "contract PufferVaultV3";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly name: "UPGRADE_INTERFACE_VERSION";
56
+ readonly inputs: readonly [];
57
+ readonly outputs: readonly [{
58
+ readonly name: "";
59
+ readonly type: "string";
60
+ readonly internalType: "string";
61
+ }];
62
+ readonly stateMutability: "view";
63
+ }, {
64
+ readonly type: "function";
65
+ readonly name: "WETH";
66
+ readonly inputs: readonly [];
67
+ readonly outputs: readonly [{
68
+ readonly name: "";
69
+ readonly type: "address";
70
+ readonly internalType: "contract IWETH";
71
+ }];
72
+ readonly stateMutability: "view";
73
+ }, {
74
+ readonly type: "function";
75
+ readonly name: "authority";
76
+ readonly inputs: readonly [];
77
+ readonly outputs: readonly [{
78
+ readonly name: "";
79
+ readonly type: "address";
80
+ readonly internalType: "address";
81
+ }];
82
+ readonly stateMutability: "view";
83
+ }, {
84
+ readonly type: "function";
85
+ readonly name: "changeMaxWithdrawalAmount";
86
+ readonly inputs: readonly [{
87
+ readonly name: "newMaxWithdrawalAmount";
88
+ readonly type: "uint256";
89
+ readonly internalType: "uint256";
90
+ }];
91
+ readonly outputs: readonly [];
92
+ readonly stateMutability: "nonpayable";
93
+ }, {
94
+ readonly type: "function";
95
+ readonly name: "completeQueuedWithdrawal";
96
+ readonly inputs: readonly [{
97
+ readonly name: "withdrawalIdx";
98
+ readonly type: "uint256";
99
+ readonly internalType: "uint256";
100
+ }];
101
+ readonly outputs: readonly [];
102
+ readonly stateMutability: "nonpayable";
103
+ }, {
104
+ readonly type: "function";
105
+ readonly name: "finalizeWithdrawals";
106
+ readonly inputs: readonly [{
107
+ readonly name: "withdrawalBatchIndex";
108
+ readonly type: "uint256";
109
+ readonly internalType: "uint256";
110
+ }];
111
+ readonly outputs: readonly [];
112
+ readonly stateMutability: "nonpayable";
113
+ }, {
114
+ readonly type: "function";
115
+ readonly name: "getFinalizedWithdrawalBatch";
116
+ readonly inputs: readonly [];
117
+ readonly outputs: readonly [{
118
+ readonly name: "";
119
+ readonly type: "uint256";
120
+ readonly internalType: "uint256";
121
+ }];
122
+ readonly stateMutability: "view";
123
+ }, {
124
+ readonly type: "function";
125
+ readonly name: "getMaxWithdrawalAmount";
126
+ readonly inputs: readonly [];
127
+ readonly outputs: readonly [{
128
+ readonly name: "";
129
+ readonly type: "uint256";
130
+ readonly internalType: "uint256";
131
+ }];
132
+ readonly stateMutability: "view";
133
+ }, {
134
+ readonly type: "function";
135
+ readonly name: "getWithdrawal";
136
+ readonly inputs: readonly [{
137
+ readonly name: "withdrawalIdx";
138
+ readonly type: "uint256";
139
+ readonly internalType: "uint256";
140
+ }];
141
+ readonly outputs: readonly [{
142
+ readonly name: "";
143
+ readonly type: "tuple";
144
+ readonly internalType: "struct PufferWithdrawalManagerStorage.Withdrawal";
145
+ readonly components: readonly [{
146
+ readonly name: "pufETHAmount";
147
+ readonly type: "uint128";
148
+ readonly internalType: "uint128";
149
+ }, {
150
+ readonly name: "pufETHToETHExchangeRate";
151
+ readonly type: "uint128";
152
+ readonly internalType: "uint128";
153
+ }, {
154
+ readonly name: "recipient";
155
+ readonly type: "address";
156
+ readonly internalType: "address";
157
+ }];
158
+ }];
159
+ readonly stateMutability: "view";
160
+ }, {
161
+ readonly type: "function";
162
+ readonly name: "getWithdrawalsLength";
163
+ readonly inputs: readonly [];
164
+ readonly outputs: readonly [{
165
+ readonly name: "";
166
+ readonly type: "uint256";
167
+ readonly internalType: "uint256";
168
+ }];
169
+ readonly stateMutability: "view";
170
+ }, {
171
+ readonly type: "function";
172
+ readonly name: "initialize";
173
+ readonly inputs: readonly [{
174
+ readonly name: "accessManager";
175
+ readonly type: "address";
176
+ readonly internalType: "address";
177
+ }];
178
+ readonly outputs: readonly [];
179
+ readonly stateMutability: "nonpayable";
180
+ }, {
181
+ readonly type: "function";
182
+ readonly name: "isConsumingScheduledOp";
183
+ readonly inputs: readonly [];
184
+ readonly outputs: readonly [{
185
+ readonly name: "";
186
+ readonly type: "bytes4";
187
+ readonly internalType: "bytes4";
188
+ }];
189
+ readonly stateMutability: "view";
190
+ }, {
191
+ readonly type: "function";
192
+ readonly name: "proxiableUUID";
193
+ readonly inputs: readonly [];
194
+ readonly outputs: readonly [{
195
+ readonly name: "";
196
+ readonly type: "bytes32";
197
+ readonly internalType: "bytes32";
198
+ }];
199
+ readonly stateMutability: "view";
200
+ }, {
201
+ readonly type: "function";
202
+ readonly name: "requestWithdrawal";
203
+ readonly inputs: readonly [{
204
+ readonly name: "pufETHAmount";
205
+ readonly type: "uint128";
206
+ readonly internalType: "uint128";
207
+ }, {
208
+ readonly name: "recipient";
209
+ readonly type: "address";
210
+ readonly internalType: "address";
211
+ }];
212
+ readonly outputs: readonly [];
213
+ readonly stateMutability: "nonpayable";
214
+ }, {
215
+ readonly type: "function";
216
+ readonly name: "requestWithdrawalWithPermit";
217
+ readonly inputs: readonly [{
218
+ readonly name: "permitData";
219
+ readonly type: "tuple";
220
+ readonly internalType: "struct Permit";
221
+ readonly components: readonly [{
222
+ readonly name: "deadline";
223
+ readonly type: "uint256";
224
+ readonly internalType: "uint256";
225
+ }, {
226
+ readonly name: "amount";
227
+ readonly type: "uint256";
228
+ readonly internalType: "uint256";
229
+ }, {
230
+ readonly name: "v";
231
+ readonly type: "uint8";
232
+ readonly internalType: "uint8";
233
+ }, {
234
+ readonly name: "r";
235
+ readonly type: "bytes32";
236
+ readonly internalType: "bytes32";
237
+ }, {
238
+ readonly name: "s";
239
+ readonly type: "bytes32";
240
+ readonly internalType: "bytes32";
241
+ }];
242
+ }, {
243
+ readonly name: "recipient";
244
+ readonly type: "address";
245
+ readonly internalType: "address";
246
+ }];
247
+ readonly outputs: readonly [];
248
+ readonly stateMutability: "nonpayable";
249
+ }, {
250
+ readonly type: "function";
251
+ readonly name: "setAuthority";
252
+ readonly inputs: readonly [{
253
+ readonly name: "newAuthority";
254
+ readonly type: "address";
255
+ readonly internalType: "address";
256
+ }];
257
+ readonly outputs: readonly [];
258
+ readonly stateMutability: "nonpayable";
259
+ }, {
260
+ readonly type: "function";
261
+ readonly name: "upgradeToAndCall";
262
+ readonly inputs: readonly [{
263
+ readonly name: "newImplementation";
264
+ readonly type: "address";
265
+ readonly internalType: "address";
266
+ }, {
267
+ readonly name: "data";
268
+ readonly type: "bytes";
269
+ readonly internalType: "bytes";
270
+ }];
271
+ readonly outputs: readonly [];
272
+ readonly stateMutability: "payable";
273
+ }, {
274
+ readonly type: "event";
275
+ readonly name: "AuthorityUpdated";
276
+ readonly inputs: readonly [{
277
+ readonly name: "authority";
278
+ readonly type: "address";
279
+ readonly indexed: false;
280
+ readonly internalType: "address";
281
+ }];
282
+ readonly anonymous: false;
283
+ }, {
284
+ readonly type: "event";
285
+ readonly name: "BatchFinalized";
286
+ readonly inputs: readonly [{
287
+ readonly name: "batchIdx";
288
+ readonly type: "uint256";
289
+ readonly indexed: true;
290
+ readonly internalType: "uint256";
291
+ }, {
292
+ readonly name: "expectedETHAmount";
293
+ readonly type: "uint256";
294
+ readonly indexed: false;
295
+ readonly internalType: "uint256";
296
+ }, {
297
+ readonly name: "actualEthAmount";
298
+ readonly type: "uint256";
299
+ readonly indexed: false;
300
+ readonly internalType: "uint256";
301
+ }, {
302
+ readonly name: "pufETHBurnAmount";
303
+ readonly type: "uint256";
304
+ readonly indexed: false;
305
+ readonly internalType: "uint256";
306
+ }];
307
+ readonly anonymous: false;
308
+ }, {
309
+ readonly type: "event";
310
+ readonly name: "Initialized";
311
+ readonly inputs: readonly [{
312
+ readonly name: "version";
313
+ readonly type: "uint64";
314
+ readonly indexed: false;
315
+ readonly internalType: "uint64";
316
+ }];
317
+ readonly anonymous: false;
318
+ }, {
319
+ readonly type: "event";
320
+ readonly name: "MaxWithdrawalAmountChanged";
321
+ readonly inputs: readonly [{
322
+ readonly name: "oldMaxWithdrawalAmount";
323
+ readonly type: "uint256";
324
+ readonly indexed: false;
325
+ readonly internalType: "uint256";
326
+ }, {
327
+ readonly name: "newMaxWithdrawalAmount";
328
+ readonly type: "uint256";
329
+ readonly indexed: false;
330
+ readonly internalType: "uint256";
331
+ }];
332
+ readonly anonymous: false;
333
+ }, {
334
+ readonly type: "event";
335
+ readonly name: "Upgraded";
336
+ readonly inputs: readonly [{
337
+ readonly name: "implementation";
338
+ readonly type: "address";
339
+ readonly indexed: true;
340
+ readonly internalType: "address";
341
+ }];
342
+ readonly anonymous: false;
343
+ }, {
344
+ readonly type: "event";
345
+ readonly name: "WithdrawalCompleted";
346
+ readonly inputs: readonly [{
347
+ readonly name: "withdrawalIdx";
348
+ readonly type: "uint256";
349
+ readonly indexed: true;
350
+ readonly internalType: "uint256";
351
+ }, {
352
+ readonly name: "ethPayoutAmount";
353
+ readonly type: "uint256";
354
+ readonly indexed: false;
355
+ readonly internalType: "uint256";
356
+ }, {
357
+ readonly name: "payoutExchangeRate";
358
+ readonly type: "uint256";
359
+ readonly indexed: false;
360
+ readonly internalType: "uint256";
361
+ }, {
362
+ readonly name: "recipient";
363
+ readonly type: "address";
364
+ readonly indexed: true;
365
+ readonly internalType: "address";
366
+ }];
367
+ readonly anonymous: false;
368
+ }, {
369
+ readonly type: "event";
370
+ readonly name: "WithdrawalRequested";
371
+ readonly inputs: readonly [{
372
+ readonly name: "withdrawalIdx";
373
+ readonly type: "uint256";
374
+ readonly indexed: true;
375
+ readonly internalType: "uint256";
376
+ }, {
377
+ readonly name: "batchIdx";
378
+ readonly type: "uint256";
379
+ readonly indexed: true;
380
+ readonly internalType: "uint256";
381
+ }, {
382
+ readonly name: "pufETHAmount";
383
+ readonly type: "uint256";
384
+ readonly indexed: false;
385
+ readonly internalType: "uint256";
386
+ }, {
387
+ readonly name: "recipient";
388
+ readonly type: "address";
389
+ readonly indexed: true;
390
+ readonly internalType: "address";
391
+ }];
392
+ readonly anonymous: false;
393
+ }, {
394
+ readonly type: "error";
395
+ readonly name: "AccessManagedInvalidAuthority";
396
+ readonly inputs: readonly [{
397
+ readonly name: "authority";
398
+ readonly type: "address";
399
+ readonly internalType: "address";
400
+ }];
401
+ }, {
402
+ readonly type: "error";
403
+ readonly name: "AccessManagedRequiredDelay";
404
+ readonly inputs: readonly [{
405
+ readonly name: "caller";
406
+ readonly type: "address";
407
+ readonly internalType: "address";
408
+ }, {
409
+ readonly name: "delay";
410
+ readonly type: "uint32";
411
+ readonly internalType: "uint32";
412
+ }];
413
+ }, {
414
+ readonly type: "error";
415
+ readonly name: "AccessManagedUnauthorized";
416
+ readonly inputs: readonly [{
417
+ readonly name: "caller";
418
+ readonly type: "address";
419
+ readonly internalType: "address";
420
+ }];
421
+ }, {
422
+ readonly type: "error";
423
+ readonly name: "AddressEmptyCode";
424
+ readonly inputs: readonly [{
425
+ readonly name: "target";
426
+ readonly type: "address";
427
+ readonly internalType: "address";
428
+ }];
429
+ }, {
430
+ readonly type: "error";
431
+ readonly name: "BatchAlreadyFinalized";
432
+ readonly inputs: readonly [{
433
+ readonly name: "batchIndex";
434
+ readonly type: "uint256";
435
+ readonly internalType: "uint256";
436
+ }];
437
+ }, {
438
+ readonly type: "error";
439
+ readonly name: "BatchSizeCannotChange";
440
+ readonly inputs: readonly [];
441
+ }, {
442
+ readonly type: "error";
443
+ readonly name: "BatchesAreNotFull";
444
+ readonly inputs: readonly [];
445
+ }, {
446
+ readonly type: "error";
447
+ readonly name: "ERC1967InvalidImplementation";
448
+ readonly inputs: readonly [{
449
+ readonly name: "implementation";
450
+ readonly type: "address";
451
+ readonly internalType: "address";
452
+ }];
453
+ }, {
454
+ readonly type: "error";
455
+ readonly name: "ERC1967NonPayable";
456
+ readonly inputs: readonly [];
457
+ }, {
458
+ readonly type: "error";
459
+ readonly name: "FailedInnerCall";
460
+ readonly inputs: readonly [];
461
+ }, {
462
+ readonly type: "error";
463
+ readonly name: "InvalidInitialization";
464
+ readonly inputs: readonly [];
465
+ }, {
466
+ readonly type: "error";
467
+ readonly name: "MultipleWithdrawalsAreForbidden";
468
+ readonly inputs: readonly [];
469
+ }, {
470
+ readonly type: "error";
471
+ readonly name: "NotFinalized";
472
+ readonly inputs: readonly [];
473
+ }, {
474
+ readonly type: "error";
475
+ readonly name: "NotInitializing";
476
+ readonly inputs: readonly [];
477
+ }, {
478
+ readonly type: "error";
479
+ readonly name: "SafeCastOverflowedUintDowncast";
480
+ readonly inputs: readonly [{
481
+ readonly name: "bits";
482
+ readonly type: "uint8";
483
+ readonly internalType: "uint8";
484
+ }, {
485
+ readonly name: "value";
486
+ readonly type: "uint256";
487
+ readonly internalType: "uint256";
488
+ }];
489
+ }, {
490
+ readonly type: "error";
491
+ readonly name: "UUPSUnauthorizedCallContext";
492
+ readonly inputs: readonly [];
493
+ }, {
494
+ readonly type: "error";
495
+ readonly name: "UUPSUnsupportedProxiableUUID";
496
+ readonly inputs: readonly [{
497
+ readonly name: "slot";
498
+ readonly type: "bytes32";
499
+ readonly internalType: "bytes32";
500
+ }];
501
+ }, {
502
+ readonly type: "error";
503
+ readonly name: "WithdrawalAlreadyCompleted";
504
+ readonly inputs: readonly [];
505
+ }, {
506
+ readonly type: "error";
507
+ readonly name: "WithdrawalAmountTooHigh";
508
+ readonly inputs: readonly [];
509
+ }, {
510
+ readonly type: "error";
511
+ readonly name: "WithdrawalAmountTooLow";
512
+ readonly inputs: readonly [];
513
+ }];
514
+ };
515
+ [Chain.Holesky]: {
3
516
  PufferWithdrawalManager: readonly [{
4
517
  readonly type: "constructor";
5
518
  readonly inputs: readonly [{
@@ -1,4 +1,4 @@
1
- import { C as r } from "../../constants-BjRNQpT2.js";
1
+ import { C as r } from "../../constants-CH7Tz5jz.js";
2
2
  import { PufferWithdrawalManager as a } from "./mainnet/PufferWithdrawalManager.js";
3
3
  const e = {
4
4
  [r.Mainnet]: { PufferWithdrawalManager: a },
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-DA2xUb9r.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0x228c44bb4885c6633f4b6c83f14622f37d5112e5",CarrotStaker:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",Distributor:"0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-BcPRVxdH.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0x228c44bb4885c6633f4b6c83f14622f37d5112e5",CarrotStaker:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",Distributor:"0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
2
2
  //# sourceMappingURL=addresses.cjs.map
@@ -1,5 +1,6 @@
1
+ import { Chain } from '../chains/constants';
1
2
  export declare const CONTRACT_ADDRESSES: {
2
- [x: number]: {
3
+ [Chain.Mainnet]: {
3
4
  PufferVault: string;
4
5
  PufferDepositor: string;
5
6
  PufferL2Depositor: string;
@@ -10,7 +11,8 @@ export declare const CONTRACT_ADDRESSES: {
10
11
  NucleusAtomicQueue: string;
11
12
  CarrotStaker: string;
12
13
  Distributor: string;
13
- } | {
14
+ };
15
+ [Chain.Holesky]: {
14
16
  PufferVault: string;
15
17
  PufferDepositor: string;
16
18
  PufferL2Depositor: string;
@@ -18,19 +20,8 @@ export declare const CONTRACT_ADDRESSES: {
18
20
  L1RewardManager: string;
19
21
  L2RewardManager: string;
20
22
  PufferWithdrawalManager: string;
21
- NucleusAtomicQueue?: undefined;
22
- CarrotStaker?: undefined;
23
- Distributor?: undefined;
24
- } | {
23
+ };
24
+ [Chain.Base]: {
25
25
  L2RewardManager: string;
26
- PufferVault?: undefined;
27
- PufferDepositor?: undefined;
28
- PufferL2Depositor?: undefined;
29
- PufLocker?: undefined;
30
- L1RewardManager?: undefined;
31
- PufferWithdrawalManager?: undefined;
32
- NucleusAtomicQueue?: undefined;
33
- CarrotStaker?: undefined;
34
- Distributor?: undefined;
35
26
  };
36
27
  };
@@ -1,4 +1,4 @@
1
- import { C as e } from "../constants-BjRNQpT2.js";
1
+ import { C as e } from "../constants-CH7Tz5jz.js";
2
2
  const c = {
3
3
  [e.Mainnet]: {
4
4
  PufferVault: "0xD9A442856C234a39a81a089C06451EBAa4306a72",
@@ -1,2 +1,2 @@
1
- "use strict";var s=Object.defineProperty;var c=(a,t,e)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var r=(a,t,e)=>c(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-DA2xUb9r.cjs"),i=require("../tokens.cjs"),l=require("../abis/mainnet/CarrotStaker.cjs"),h=require("../../getContract-3QbyfZBF.cjs");class C{constructor(t,e,n){r(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t]}getContract(){const t=i.TOKENS_ADDRESSES[i.Token.sCARROT][this.chain],e=l.CarrotStaker,n={public:this.publicClient,wallet:this.walletClient};return h.getContract({address:t,abi:e,client:n})}allowance(t,e){return this.getContract().read.allowance([t,e])}balanceOf(t){return this.getContract().read.balanceOf([t])}decimals(){return this.getContract().read.decimals()}isUnstakingAllowed(){return this.getContract().read.isUnstakingAllowed()}totalSupply(){return this.getContract().read.totalSupply()}stake(t,e){return this.getContract().write.stake([e],{account:t,chain:this.viemChain})}unstake(t,e,n){return this.getContract().write.unstake([e,n],{account:t,chain:this.viemChain})}}exports.CarrotStakingHandler=C;
1
+ "use strict";var s=Object.defineProperty;var c=(a,t,e)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var r=(a,t,e)=>c(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-BcPRVxdH.cjs"),i=require("../tokens.cjs"),l=require("../abis/mainnet/CarrotStaker.cjs"),h=require("../../getContract-ChPFzc5y.cjs");class C{constructor(t,e,n){r(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t]}getContract(){const t=i.TOKENS_ADDRESSES[i.Token.sCARROT][this.chain],e=l.CarrotStaker,n={public:this.publicClient,wallet:this.walletClient};return h.getContract({address:t,abi:e,client:n})}allowance(t,e){return this.getContract().read.allowance([t,e])}balanceOf(t){return this.getContract().read.balanceOf([t])}decimals(){return this.getContract().read.decimals()}isUnstakingAllowed(){return this.getContract().read.isUnstakingAllowed()}totalSupply(){return this.getContract().read.totalSupply()}stake(t,e){return this.getContract().write.stake([e],{account:t,chain:this.viemChain})}unstake(t,e,n){return this.getContract().write.unstake([e,n],{account:t,chain:this.viemChain})}}exports.CarrotStakingHandler=C;
2
2
  //# sourceMappingURL=carrot-staking-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var n = Object.defineProperty;
2
2
  var s = (a, t, e) => t in a ? n(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var i = (a, t, e) => s(a, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as l } from "../../constants-BjRNQpT2.js";
4
+ import { V as l } from "../../constants-CH7Tz5jz.js";
5
5
  import { TOKENS_ADDRESSES as o, Token as c } from "../tokens.js";
6
6
  import { CarrotStaker as h } from "../abis/mainnet/CarrotStaker.js";
7
- import { g as C } from "../../getContract-CezEyDf-.js";
7
+ import { g as C } from "../../getContract-6ajhFbP2.js";
8
8
  class k {
9
9
  /**
10
10
  * Create the handler for the `CarrotStaker` contract exposing
@@ -1,2 +1,2 @@
1
- "use strict";var o=Object.defineProperty;var c=(i,t,e)=>t in i?o(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var s=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../constants-DA2xUb9r.cjs"),u=require("../addresses.cjs"),C=require("../abis/mainnet/Distributor.cjs"),l=require("../../getContract-3QbyfZBF.cjs");class d{constructor(t,e,r){s(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=h.VIEM_CHAINS[t]}getContract(){const t=u.CONTRACT_ADDRESSES[this.chain].Distributor,e=C.Distributor,r={public:this.publicClient,wallet:this.walletClient};return l.getContract({address:t,abi:e,client:r})}canUpdateMerkleRoot(t){return this.getContract().read.canUpdateMerkleRoot([t])}claim(t,{users:e,tokens:r,amounts:n,proofs:a}){return this.getContract().write.claim([e,r,n,a],{account:t,chain:this.viemChain})}async claimed(t,e){const[r,n,a]=await this.getContract().read.claimed([t,e]);return{amount:r,timestamp:BigInt(n),merkleRoot:a}}core(){return this.getContract().read.core()}disputeAmount(){return this.getContract().read.disputeAmount()}disputePeriod(){return this.getContract().read.disputePeriod()}disputeToken(){return this.getContract().read.disputeToken()}disputeTree(t,e){return this.getContract().write.disputeTree([e],{account:t,chain:this.viemChain})}disputer(){return this.getContract().read.disputer()}endOfDisputePeriod(){return this.getContract().read.endOfDisputePeriod()}getMerkleRoot(){return this.getContract().read.getMerkleRoot()}async lastTree(){const[t,e]=await this.getContract().read.lastTree();return{merkleRoot:t,ipfsHash:e}}onlyOperatorCanClaim(t){return this.getContract().read.onlyOperatorCanClaim([t])}operators(t,e){return this.getContract().read.operators([t,e])}recoverERC20(t,e,r,n){return this.getContract().write.recoverERC20([e,r,n],{account:t,chain:this.viemChain})}resolveDispute(t,e){return this.getContract().write.resolveDispute([e],{account:t,chain:this.viemChain})}revokeTree(t){return this.getContract().write.revokeTree({account:t,chain:this.viemChain})}setDisputeAmount(t,e){return this.getContract().write.setDisputeAmount([e],{account:t,chain:this.viemChain})}setDisputePeriod(t,e){return this.getContract().write.setDisputePeriod([e],{account:t,chain:this.viemChain})}setDisputeToken(t,e){return this.getContract().write.setDisputeToken([e],{account:t,chain:this.viemChain})}toggleOnlyOperatorCanClaim(t,e){return this.getContract().write.toggleOnlyOperatorCanClaim([e],{account:t,chain:this.viemChain})}toggleOperator(t,e,r){return this.getContract().write.toggleOperator([e,r],{account:t,chain:this.viemChain})}toggleTrusted(t,e){return this.getContract().write.toggleTrusted([e],{account:t,chain:this.viemChain})}async tree(){const[t,e]=await this.getContract().read.tree();return{merkleRoot:t,ipfsHash:e}}updateTree(t,e){return this.getContract().write.updateTree([e],{account:t,chain:this.viemChain})}}exports.DistributorHandler=d;
1
+ "use strict";var o=Object.defineProperty;var c=(i,t,e)=>t in i?o(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var s=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../constants-BcPRVxdH.cjs"),u=require("../addresses.cjs"),C=require("../abis/mainnet/Distributor.cjs"),l=require("../../getContract-ChPFzc5y.cjs");class d{constructor(t,e,r){s(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=h.VIEM_CHAINS[t]}getContract(){const t=u.CONTRACT_ADDRESSES[this.chain].Distributor,e=C.Distributor,r={public:this.publicClient,wallet:this.walletClient};return l.getContract({address:t,abi:e,client:r})}canUpdateMerkleRoot(t){return this.getContract().read.canUpdateMerkleRoot([t])}claim(t,{users:e,tokens:r,amounts:n,proofs:a}){return this.getContract().write.claim([e,r,n,a],{account:t,chain:this.viemChain})}async claimed(t,e){const[r,n,a]=await this.getContract().read.claimed([t,e]);return{amount:r,timestamp:BigInt(n),merkleRoot:a}}core(){return this.getContract().read.core()}disputeAmount(){return this.getContract().read.disputeAmount()}disputePeriod(){return this.getContract().read.disputePeriod()}disputeToken(){return this.getContract().read.disputeToken()}disputeTree(t,e){return this.getContract().write.disputeTree([e],{account:t,chain:this.viemChain})}disputer(){return this.getContract().read.disputer()}endOfDisputePeriod(){return this.getContract().read.endOfDisputePeriod()}getMerkleRoot(){return this.getContract().read.getMerkleRoot()}async lastTree(){const[t,e]=await this.getContract().read.lastTree();return{merkleRoot:t,ipfsHash:e}}onlyOperatorCanClaim(t){return this.getContract().read.onlyOperatorCanClaim([t])}operators(t,e){return this.getContract().read.operators([t,e])}recoverERC20(t,e,r,n){return this.getContract().write.recoverERC20([e,r,n],{account:t,chain:this.viemChain})}resolveDispute(t,e){return this.getContract().write.resolveDispute([e],{account:t,chain:this.viemChain})}revokeTree(t){return this.getContract().write.revokeTree({account:t,chain:this.viemChain})}setDisputeAmount(t,e){return this.getContract().write.setDisputeAmount([e],{account:t,chain:this.viemChain})}setDisputePeriod(t,e){return this.getContract().write.setDisputePeriod([e],{account:t,chain:this.viemChain})}setDisputeToken(t,e){return this.getContract().write.setDisputeToken([e],{account:t,chain:this.viemChain})}toggleOnlyOperatorCanClaim(t,e){return this.getContract().write.toggleOnlyOperatorCanClaim([e],{account:t,chain:this.viemChain})}toggleOperator(t,e,r){return this.getContract().write.toggleOperator([e,r],{account:t,chain:this.viemChain})}toggleTrusted(t,e){return this.getContract().write.toggleTrusted([e],{account:t,chain:this.viemChain})}async tree(){const[t,e]=await this.getContract().read.tree();return{merkleRoot:t,ipfsHash:e}}updateTree(t,e){return this.getContract().write.updateTree([e],{account:t,chain:this.viemChain})}}exports.DistributorHandler=d;
2
2
  //# sourceMappingURL=distributor-handler.cjs.map
@@ -1,10 +1,10 @@
1
1
  var o = Object.defineProperty;
2
2
  var h = (i, t, e) => t in i ? o(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var s = (i, t, e) => h(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { V as c } from "../../constants-BjRNQpT2.js";
4
+ import { V as c } from "../../constants-CH7Tz5jz.js";
5
5
  import { CONTRACT_ADDRESSES as u } from "../addresses.js";
6
6
  import { Distributor as C } from "../abis/mainnet/Distributor.js";
7
- import { g as l } from "../../getContract-CezEyDf-.js";
7
+ import { g as l } from "../../getContract-6ajhFbP2.js";
8
8
  class w {
9
9
  /**
10
10
  * Create the handler for the Distributor contract exposing