@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,2423 @@
1
+ import { Address, WalletClient, PublicClient } from 'viem';
2
+ import { ViemChain, Chain } from '../../chains/constants';
3
+ export type ClaimOrder = {
4
+ account: Address;
5
+ amount: bigint;
6
+ intervalId: Address;
7
+ isL1Contract: boolean;
8
+ merkleProof: Address[];
9
+ };
10
+ /**
11
+ * Handler for the `L2RewardManager` contract.
12
+ */
13
+ export declare class L2RewardManagerHandler {
14
+ private chain;
15
+ private walletClient;
16
+ private publicClient;
17
+ private viemChain;
18
+ /**
19
+ * Create the handler for the `L2RewardManager` contract exposing
20
+ * methods to interact with the contract.
21
+ *
22
+ * @param chain Chain to use for the client.
23
+ * @param walletClient The wallet client to use for wallet
24
+ * interactions.
25
+ * @param publicClient The public client to use for public
26
+ * interactions.
27
+ */
28
+ constructor(chain: Chain, walletClient: WalletClient, publicClient: PublicClient);
29
+ /**
30
+ * Get the contract. This is a method because the typings are complex
31
+ * and lost when trying to make it a member.
32
+ *
33
+ * @returns The viem contract.
34
+ */
35
+ getContract(): {
36
+ read: {
37
+ authority: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
38
+ readonly type: "function";
39
+ readonly name: "authority";
40
+ readonly inputs: readonly [];
41
+ readonly outputs: readonly [{
42
+ readonly name: "";
43
+ readonly type: "address";
44
+ readonly internalType: "address";
45
+ }];
46
+ readonly stateMutability: "view";
47
+ }, {
48
+ readonly type: "function";
49
+ readonly name: "getClaimingDelay";
50
+ readonly inputs: readonly [];
51
+ readonly outputs: readonly [{
52
+ readonly name: "";
53
+ readonly type: "uint256";
54
+ readonly internalType: "uint256";
55
+ }];
56
+ readonly stateMutability: "view";
57
+ }, {
58
+ readonly type: "function";
59
+ readonly name: "getEpochRecord";
60
+ readonly inputs: readonly [{
61
+ readonly name: "intervalId";
62
+ readonly type: "bytes32";
63
+ readonly internalType: "bytes32";
64
+ }];
65
+ readonly outputs: readonly [{
66
+ readonly name: "";
67
+ readonly type: "tuple";
68
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
69
+ readonly components: readonly [{
70
+ readonly name: "startEpoch";
71
+ readonly type: "uint104";
72
+ readonly internalType: "uint104";
73
+ }, {
74
+ readonly name: "endEpoch";
75
+ readonly type: "uint104";
76
+ readonly internalType: "uint104";
77
+ }, {
78
+ readonly name: "timeBridged";
79
+ readonly type: "uint48";
80
+ readonly internalType: "uint48";
81
+ }, {
82
+ readonly name: "pufETHAmount";
83
+ readonly type: "uint128";
84
+ readonly internalType: "uint128";
85
+ }, {
86
+ readonly name: "ethAmount";
87
+ readonly type: "uint128";
88
+ readonly internalType: "uint128";
89
+ }, {
90
+ readonly name: "ethToPufETHRate";
91
+ readonly type: "uint256";
92
+ readonly internalType: "uint256";
93
+ }, {
94
+ readonly name: "rewardRoot";
95
+ readonly type: "bytes32";
96
+ readonly internalType: "bytes32";
97
+ }];
98
+ }];
99
+ readonly stateMutability: "view";
100
+ }, {
101
+ readonly type: "function";
102
+ readonly name: "getIntervalId";
103
+ readonly inputs: readonly [{
104
+ readonly name: "startEpoch";
105
+ readonly type: "uint256";
106
+ readonly internalType: "uint256";
107
+ }, {
108
+ readonly name: "endEpoch";
109
+ readonly type: "uint256";
110
+ readonly internalType: "uint256";
111
+ }];
112
+ readonly outputs: readonly [{
113
+ readonly name: "";
114
+ readonly type: "bytes32";
115
+ readonly internalType: "bytes32";
116
+ }];
117
+ readonly stateMutability: "pure";
118
+ }, {
119
+ readonly type: "function";
120
+ readonly name: "getRewardsClaimer";
121
+ readonly inputs: readonly [{
122
+ readonly name: "account";
123
+ readonly type: "address";
124
+ readonly internalType: "address";
125
+ }];
126
+ readonly outputs: readonly [{
127
+ readonly name: "";
128
+ readonly type: "address";
129
+ readonly internalType: "address";
130
+ }];
131
+ readonly stateMutability: "view";
132
+ }, {
133
+ readonly type: "function";
134
+ readonly name: "isClaimed";
135
+ readonly inputs: readonly [{
136
+ readonly name: "intervalId";
137
+ readonly type: "bytes32";
138
+ readonly internalType: "bytes32";
139
+ }, {
140
+ readonly name: "account";
141
+ readonly type: "address";
142
+ readonly internalType: "address";
143
+ }];
144
+ readonly outputs: readonly [{
145
+ readonly name: "";
146
+ readonly type: "bool";
147
+ readonly internalType: "bool";
148
+ }];
149
+ readonly stateMutability: "view";
150
+ }, {
151
+ readonly type: "function";
152
+ readonly name: "isClaimingLocked";
153
+ readonly inputs: readonly [{
154
+ readonly name: "intervalId";
155
+ readonly type: "bytes32";
156
+ readonly internalType: "bytes32";
157
+ }];
158
+ readonly outputs: readonly [{
159
+ readonly name: "";
160
+ readonly type: "bool";
161
+ readonly internalType: "bool";
162
+ }];
163
+ readonly stateMutability: "view";
164
+ }, {
165
+ readonly type: "function";
166
+ readonly name: "claimRewards";
167
+ readonly inputs: readonly [{
168
+ readonly name: "claimOrders";
169
+ readonly type: "tuple[]";
170
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
171
+ readonly components: readonly [{
172
+ readonly name: "intervalId";
173
+ readonly type: "bytes32";
174
+ readonly internalType: "bytes32";
175
+ }, {
176
+ readonly name: "amount";
177
+ readonly type: "uint256";
178
+ readonly internalType: "uint256";
179
+ }, {
180
+ readonly name: "isL1Contract";
181
+ readonly type: "bool";
182
+ readonly internalType: "bool";
183
+ }, {
184
+ readonly name: "account";
185
+ readonly type: "address";
186
+ readonly internalType: "address";
187
+ }, {
188
+ readonly name: "merkleProof";
189
+ readonly type: "bytes32[]";
190
+ readonly internalType: "bytes32[]";
191
+ }];
192
+ }];
193
+ readonly outputs: readonly [];
194
+ readonly stateMutability: "nonpayable";
195
+ }], "authority", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<`0x${string}`>;
196
+ getClaimingDelay: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
197
+ readonly type: "function";
198
+ readonly name: "authority";
199
+ readonly inputs: readonly [];
200
+ readonly outputs: readonly [{
201
+ readonly name: "";
202
+ readonly type: "address";
203
+ readonly internalType: "address";
204
+ }];
205
+ readonly stateMutability: "view";
206
+ }, {
207
+ readonly type: "function";
208
+ readonly name: "getClaimingDelay";
209
+ readonly inputs: readonly [];
210
+ readonly outputs: readonly [{
211
+ readonly name: "";
212
+ readonly type: "uint256";
213
+ readonly internalType: "uint256";
214
+ }];
215
+ readonly stateMutability: "view";
216
+ }, {
217
+ readonly type: "function";
218
+ readonly name: "getEpochRecord";
219
+ readonly inputs: readonly [{
220
+ readonly name: "intervalId";
221
+ readonly type: "bytes32";
222
+ readonly internalType: "bytes32";
223
+ }];
224
+ readonly outputs: readonly [{
225
+ readonly name: "";
226
+ readonly type: "tuple";
227
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
228
+ readonly components: readonly [{
229
+ readonly name: "startEpoch";
230
+ readonly type: "uint104";
231
+ readonly internalType: "uint104";
232
+ }, {
233
+ readonly name: "endEpoch";
234
+ readonly type: "uint104";
235
+ readonly internalType: "uint104";
236
+ }, {
237
+ readonly name: "timeBridged";
238
+ readonly type: "uint48";
239
+ readonly internalType: "uint48";
240
+ }, {
241
+ readonly name: "pufETHAmount";
242
+ readonly type: "uint128";
243
+ readonly internalType: "uint128";
244
+ }, {
245
+ readonly name: "ethAmount";
246
+ readonly type: "uint128";
247
+ readonly internalType: "uint128";
248
+ }, {
249
+ readonly name: "ethToPufETHRate";
250
+ readonly type: "uint256";
251
+ readonly internalType: "uint256";
252
+ }, {
253
+ readonly name: "rewardRoot";
254
+ readonly type: "bytes32";
255
+ readonly internalType: "bytes32";
256
+ }];
257
+ }];
258
+ readonly stateMutability: "view";
259
+ }, {
260
+ readonly type: "function";
261
+ readonly name: "getIntervalId";
262
+ readonly inputs: readonly [{
263
+ readonly name: "startEpoch";
264
+ readonly type: "uint256";
265
+ readonly internalType: "uint256";
266
+ }, {
267
+ readonly name: "endEpoch";
268
+ readonly type: "uint256";
269
+ readonly internalType: "uint256";
270
+ }];
271
+ readonly outputs: readonly [{
272
+ readonly name: "";
273
+ readonly type: "bytes32";
274
+ readonly internalType: "bytes32";
275
+ }];
276
+ readonly stateMutability: "pure";
277
+ }, {
278
+ readonly type: "function";
279
+ readonly name: "getRewardsClaimer";
280
+ readonly inputs: readonly [{
281
+ readonly name: "account";
282
+ readonly type: "address";
283
+ readonly internalType: "address";
284
+ }];
285
+ readonly outputs: readonly [{
286
+ readonly name: "";
287
+ readonly type: "address";
288
+ readonly internalType: "address";
289
+ }];
290
+ readonly stateMutability: "view";
291
+ }, {
292
+ readonly type: "function";
293
+ readonly name: "isClaimed";
294
+ readonly inputs: readonly [{
295
+ readonly name: "intervalId";
296
+ readonly type: "bytes32";
297
+ readonly internalType: "bytes32";
298
+ }, {
299
+ readonly name: "account";
300
+ readonly type: "address";
301
+ readonly internalType: "address";
302
+ }];
303
+ readonly outputs: readonly [{
304
+ readonly name: "";
305
+ readonly type: "bool";
306
+ readonly internalType: "bool";
307
+ }];
308
+ readonly stateMutability: "view";
309
+ }, {
310
+ readonly type: "function";
311
+ readonly name: "isClaimingLocked";
312
+ readonly inputs: readonly [{
313
+ readonly name: "intervalId";
314
+ readonly type: "bytes32";
315
+ readonly internalType: "bytes32";
316
+ }];
317
+ readonly outputs: readonly [{
318
+ readonly name: "";
319
+ readonly type: "bool";
320
+ readonly internalType: "bool";
321
+ }];
322
+ readonly stateMutability: "view";
323
+ }, {
324
+ readonly type: "function";
325
+ readonly name: "claimRewards";
326
+ readonly inputs: readonly [{
327
+ readonly name: "claimOrders";
328
+ readonly type: "tuple[]";
329
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
330
+ readonly components: readonly [{
331
+ readonly name: "intervalId";
332
+ readonly type: "bytes32";
333
+ readonly internalType: "bytes32";
334
+ }, {
335
+ readonly name: "amount";
336
+ readonly type: "uint256";
337
+ readonly internalType: "uint256";
338
+ }, {
339
+ readonly name: "isL1Contract";
340
+ readonly type: "bool";
341
+ readonly internalType: "bool";
342
+ }, {
343
+ readonly name: "account";
344
+ readonly type: "address";
345
+ readonly internalType: "address";
346
+ }, {
347
+ readonly name: "merkleProof";
348
+ readonly type: "bytes32[]";
349
+ readonly internalType: "bytes32[]";
350
+ }];
351
+ }];
352
+ readonly outputs: readonly [];
353
+ readonly stateMutability: "nonpayable";
354
+ }], "getClaimingDelay", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
355
+ getEpochRecord: (args: readonly [`0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
356
+ readonly type: "function";
357
+ readonly name: "authority";
358
+ readonly inputs: readonly [];
359
+ readonly outputs: readonly [{
360
+ readonly name: "";
361
+ readonly type: "address";
362
+ readonly internalType: "address";
363
+ }];
364
+ readonly stateMutability: "view";
365
+ }, {
366
+ readonly type: "function";
367
+ readonly name: "getClaimingDelay";
368
+ readonly inputs: readonly [];
369
+ readonly outputs: readonly [{
370
+ readonly name: "";
371
+ readonly type: "uint256";
372
+ readonly internalType: "uint256";
373
+ }];
374
+ readonly stateMutability: "view";
375
+ }, {
376
+ readonly type: "function";
377
+ readonly name: "getEpochRecord";
378
+ readonly inputs: readonly [{
379
+ readonly name: "intervalId";
380
+ readonly type: "bytes32";
381
+ readonly internalType: "bytes32";
382
+ }];
383
+ readonly outputs: readonly [{
384
+ readonly name: "";
385
+ readonly type: "tuple";
386
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
387
+ readonly components: readonly [{
388
+ readonly name: "startEpoch";
389
+ readonly type: "uint104";
390
+ readonly internalType: "uint104";
391
+ }, {
392
+ readonly name: "endEpoch";
393
+ readonly type: "uint104";
394
+ readonly internalType: "uint104";
395
+ }, {
396
+ readonly name: "timeBridged";
397
+ readonly type: "uint48";
398
+ readonly internalType: "uint48";
399
+ }, {
400
+ readonly name: "pufETHAmount";
401
+ readonly type: "uint128";
402
+ readonly internalType: "uint128";
403
+ }, {
404
+ readonly name: "ethAmount";
405
+ readonly type: "uint128";
406
+ readonly internalType: "uint128";
407
+ }, {
408
+ readonly name: "ethToPufETHRate";
409
+ readonly type: "uint256";
410
+ readonly internalType: "uint256";
411
+ }, {
412
+ readonly name: "rewardRoot";
413
+ readonly type: "bytes32";
414
+ readonly internalType: "bytes32";
415
+ }];
416
+ }];
417
+ readonly stateMutability: "view";
418
+ }, {
419
+ readonly type: "function";
420
+ readonly name: "getIntervalId";
421
+ readonly inputs: readonly [{
422
+ readonly name: "startEpoch";
423
+ readonly type: "uint256";
424
+ readonly internalType: "uint256";
425
+ }, {
426
+ readonly name: "endEpoch";
427
+ readonly type: "uint256";
428
+ readonly internalType: "uint256";
429
+ }];
430
+ readonly outputs: readonly [{
431
+ readonly name: "";
432
+ readonly type: "bytes32";
433
+ readonly internalType: "bytes32";
434
+ }];
435
+ readonly stateMutability: "pure";
436
+ }, {
437
+ readonly type: "function";
438
+ readonly name: "getRewardsClaimer";
439
+ readonly inputs: readonly [{
440
+ readonly name: "account";
441
+ readonly type: "address";
442
+ readonly internalType: "address";
443
+ }];
444
+ readonly outputs: readonly [{
445
+ readonly name: "";
446
+ readonly type: "address";
447
+ readonly internalType: "address";
448
+ }];
449
+ readonly stateMutability: "view";
450
+ }, {
451
+ readonly type: "function";
452
+ readonly name: "isClaimed";
453
+ readonly inputs: readonly [{
454
+ readonly name: "intervalId";
455
+ readonly type: "bytes32";
456
+ readonly internalType: "bytes32";
457
+ }, {
458
+ readonly name: "account";
459
+ readonly type: "address";
460
+ readonly internalType: "address";
461
+ }];
462
+ readonly outputs: readonly [{
463
+ readonly name: "";
464
+ readonly type: "bool";
465
+ readonly internalType: "bool";
466
+ }];
467
+ readonly stateMutability: "view";
468
+ }, {
469
+ readonly type: "function";
470
+ readonly name: "isClaimingLocked";
471
+ readonly inputs: readonly [{
472
+ readonly name: "intervalId";
473
+ readonly type: "bytes32";
474
+ readonly internalType: "bytes32";
475
+ }];
476
+ readonly outputs: readonly [{
477
+ readonly name: "";
478
+ readonly type: "bool";
479
+ readonly internalType: "bool";
480
+ }];
481
+ readonly stateMutability: "view";
482
+ }, {
483
+ readonly type: "function";
484
+ readonly name: "claimRewards";
485
+ readonly inputs: readonly [{
486
+ readonly name: "claimOrders";
487
+ readonly type: "tuple[]";
488
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
489
+ readonly components: readonly [{
490
+ readonly name: "intervalId";
491
+ readonly type: "bytes32";
492
+ readonly internalType: "bytes32";
493
+ }, {
494
+ readonly name: "amount";
495
+ readonly type: "uint256";
496
+ readonly internalType: "uint256";
497
+ }, {
498
+ readonly name: "isL1Contract";
499
+ readonly type: "bool";
500
+ readonly internalType: "bool";
501
+ }, {
502
+ readonly name: "account";
503
+ readonly type: "address";
504
+ readonly internalType: "address";
505
+ }, {
506
+ readonly name: "merkleProof";
507
+ readonly type: "bytes32[]";
508
+ readonly internalType: "bytes32[]";
509
+ }];
510
+ }];
511
+ readonly outputs: readonly [];
512
+ readonly stateMutability: "nonpayable";
513
+ }], "getEpochRecord", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<{
514
+ startEpoch: bigint;
515
+ endEpoch: bigint;
516
+ timeBridged: number;
517
+ pufETHAmount: bigint;
518
+ ethAmount: bigint;
519
+ ethToPufETHRate: bigint;
520
+ rewardRoot: `0x${string}`;
521
+ }>;
522
+ getIntervalId: (args: readonly [bigint, bigint], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
523
+ readonly type: "function";
524
+ readonly name: "authority";
525
+ readonly inputs: readonly [];
526
+ readonly outputs: readonly [{
527
+ readonly name: "";
528
+ readonly type: "address";
529
+ readonly internalType: "address";
530
+ }];
531
+ readonly stateMutability: "view";
532
+ }, {
533
+ readonly type: "function";
534
+ readonly name: "getClaimingDelay";
535
+ readonly inputs: readonly [];
536
+ readonly outputs: readonly [{
537
+ readonly name: "";
538
+ readonly type: "uint256";
539
+ readonly internalType: "uint256";
540
+ }];
541
+ readonly stateMutability: "view";
542
+ }, {
543
+ readonly type: "function";
544
+ readonly name: "getEpochRecord";
545
+ readonly inputs: readonly [{
546
+ readonly name: "intervalId";
547
+ readonly type: "bytes32";
548
+ readonly internalType: "bytes32";
549
+ }];
550
+ readonly outputs: readonly [{
551
+ readonly name: "";
552
+ readonly type: "tuple";
553
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
554
+ readonly components: readonly [{
555
+ readonly name: "startEpoch";
556
+ readonly type: "uint104";
557
+ readonly internalType: "uint104";
558
+ }, {
559
+ readonly name: "endEpoch";
560
+ readonly type: "uint104";
561
+ readonly internalType: "uint104";
562
+ }, {
563
+ readonly name: "timeBridged";
564
+ readonly type: "uint48";
565
+ readonly internalType: "uint48";
566
+ }, {
567
+ readonly name: "pufETHAmount";
568
+ readonly type: "uint128";
569
+ readonly internalType: "uint128";
570
+ }, {
571
+ readonly name: "ethAmount";
572
+ readonly type: "uint128";
573
+ readonly internalType: "uint128";
574
+ }, {
575
+ readonly name: "ethToPufETHRate";
576
+ readonly type: "uint256";
577
+ readonly internalType: "uint256";
578
+ }, {
579
+ readonly name: "rewardRoot";
580
+ readonly type: "bytes32";
581
+ readonly internalType: "bytes32";
582
+ }];
583
+ }];
584
+ readonly stateMutability: "view";
585
+ }, {
586
+ readonly type: "function";
587
+ readonly name: "getIntervalId";
588
+ readonly inputs: readonly [{
589
+ readonly name: "startEpoch";
590
+ readonly type: "uint256";
591
+ readonly internalType: "uint256";
592
+ }, {
593
+ readonly name: "endEpoch";
594
+ readonly type: "uint256";
595
+ readonly internalType: "uint256";
596
+ }];
597
+ readonly outputs: readonly [{
598
+ readonly name: "";
599
+ readonly type: "bytes32";
600
+ readonly internalType: "bytes32";
601
+ }];
602
+ readonly stateMutability: "pure";
603
+ }, {
604
+ readonly type: "function";
605
+ readonly name: "getRewardsClaimer";
606
+ readonly inputs: readonly [{
607
+ readonly name: "account";
608
+ readonly type: "address";
609
+ readonly internalType: "address";
610
+ }];
611
+ readonly outputs: readonly [{
612
+ readonly name: "";
613
+ readonly type: "address";
614
+ readonly internalType: "address";
615
+ }];
616
+ readonly stateMutability: "view";
617
+ }, {
618
+ readonly type: "function";
619
+ readonly name: "isClaimed";
620
+ readonly inputs: readonly [{
621
+ readonly name: "intervalId";
622
+ readonly type: "bytes32";
623
+ readonly internalType: "bytes32";
624
+ }, {
625
+ readonly name: "account";
626
+ readonly type: "address";
627
+ readonly internalType: "address";
628
+ }];
629
+ readonly outputs: readonly [{
630
+ readonly name: "";
631
+ readonly type: "bool";
632
+ readonly internalType: "bool";
633
+ }];
634
+ readonly stateMutability: "view";
635
+ }, {
636
+ readonly type: "function";
637
+ readonly name: "isClaimingLocked";
638
+ readonly inputs: readonly [{
639
+ readonly name: "intervalId";
640
+ readonly type: "bytes32";
641
+ readonly internalType: "bytes32";
642
+ }];
643
+ readonly outputs: readonly [{
644
+ readonly name: "";
645
+ readonly type: "bool";
646
+ readonly internalType: "bool";
647
+ }];
648
+ readonly stateMutability: "view";
649
+ }, {
650
+ readonly type: "function";
651
+ readonly name: "claimRewards";
652
+ readonly inputs: readonly [{
653
+ readonly name: "claimOrders";
654
+ readonly type: "tuple[]";
655
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
656
+ readonly components: readonly [{
657
+ readonly name: "intervalId";
658
+ readonly type: "bytes32";
659
+ readonly internalType: "bytes32";
660
+ }, {
661
+ readonly name: "amount";
662
+ readonly type: "uint256";
663
+ readonly internalType: "uint256";
664
+ }, {
665
+ readonly name: "isL1Contract";
666
+ readonly type: "bool";
667
+ readonly internalType: "bool";
668
+ }, {
669
+ readonly name: "account";
670
+ readonly type: "address";
671
+ readonly internalType: "address";
672
+ }, {
673
+ readonly name: "merkleProof";
674
+ readonly type: "bytes32[]";
675
+ readonly internalType: "bytes32[]";
676
+ }];
677
+ }];
678
+ readonly outputs: readonly [];
679
+ readonly stateMutability: "nonpayable";
680
+ }], "getIntervalId", readonly [bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<`0x${string}`>;
681
+ getRewardsClaimer: (args: readonly [`0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
682
+ readonly type: "function";
683
+ readonly name: "authority";
684
+ readonly inputs: readonly [];
685
+ readonly outputs: readonly [{
686
+ readonly name: "";
687
+ readonly type: "address";
688
+ readonly internalType: "address";
689
+ }];
690
+ readonly stateMutability: "view";
691
+ }, {
692
+ readonly type: "function";
693
+ readonly name: "getClaimingDelay";
694
+ readonly inputs: readonly [];
695
+ readonly outputs: readonly [{
696
+ readonly name: "";
697
+ readonly type: "uint256";
698
+ readonly internalType: "uint256";
699
+ }];
700
+ readonly stateMutability: "view";
701
+ }, {
702
+ readonly type: "function";
703
+ readonly name: "getEpochRecord";
704
+ readonly inputs: readonly [{
705
+ readonly name: "intervalId";
706
+ readonly type: "bytes32";
707
+ readonly internalType: "bytes32";
708
+ }];
709
+ readonly outputs: readonly [{
710
+ readonly name: "";
711
+ readonly type: "tuple";
712
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
713
+ readonly components: readonly [{
714
+ readonly name: "startEpoch";
715
+ readonly type: "uint104";
716
+ readonly internalType: "uint104";
717
+ }, {
718
+ readonly name: "endEpoch";
719
+ readonly type: "uint104";
720
+ readonly internalType: "uint104";
721
+ }, {
722
+ readonly name: "timeBridged";
723
+ readonly type: "uint48";
724
+ readonly internalType: "uint48";
725
+ }, {
726
+ readonly name: "pufETHAmount";
727
+ readonly type: "uint128";
728
+ readonly internalType: "uint128";
729
+ }, {
730
+ readonly name: "ethAmount";
731
+ readonly type: "uint128";
732
+ readonly internalType: "uint128";
733
+ }, {
734
+ readonly name: "ethToPufETHRate";
735
+ readonly type: "uint256";
736
+ readonly internalType: "uint256";
737
+ }, {
738
+ readonly name: "rewardRoot";
739
+ readonly type: "bytes32";
740
+ readonly internalType: "bytes32";
741
+ }];
742
+ }];
743
+ readonly stateMutability: "view";
744
+ }, {
745
+ readonly type: "function";
746
+ readonly name: "getIntervalId";
747
+ readonly inputs: readonly [{
748
+ readonly name: "startEpoch";
749
+ readonly type: "uint256";
750
+ readonly internalType: "uint256";
751
+ }, {
752
+ readonly name: "endEpoch";
753
+ readonly type: "uint256";
754
+ readonly internalType: "uint256";
755
+ }];
756
+ readonly outputs: readonly [{
757
+ readonly name: "";
758
+ readonly type: "bytes32";
759
+ readonly internalType: "bytes32";
760
+ }];
761
+ readonly stateMutability: "pure";
762
+ }, {
763
+ readonly type: "function";
764
+ readonly name: "getRewardsClaimer";
765
+ readonly inputs: readonly [{
766
+ readonly name: "account";
767
+ readonly type: "address";
768
+ readonly internalType: "address";
769
+ }];
770
+ readonly outputs: readonly [{
771
+ readonly name: "";
772
+ readonly type: "address";
773
+ readonly internalType: "address";
774
+ }];
775
+ readonly stateMutability: "view";
776
+ }, {
777
+ readonly type: "function";
778
+ readonly name: "isClaimed";
779
+ readonly inputs: readonly [{
780
+ readonly name: "intervalId";
781
+ readonly type: "bytes32";
782
+ readonly internalType: "bytes32";
783
+ }, {
784
+ readonly name: "account";
785
+ readonly type: "address";
786
+ readonly internalType: "address";
787
+ }];
788
+ readonly outputs: readonly [{
789
+ readonly name: "";
790
+ readonly type: "bool";
791
+ readonly internalType: "bool";
792
+ }];
793
+ readonly stateMutability: "view";
794
+ }, {
795
+ readonly type: "function";
796
+ readonly name: "isClaimingLocked";
797
+ readonly inputs: readonly [{
798
+ readonly name: "intervalId";
799
+ readonly type: "bytes32";
800
+ readonly internalType: "bytes32";
801
+ }];
802
+ readonly outputs: readonly [{
803
+ readonly name: "";
804
+ readonly type: "bool";
805
+ readonly internalType: "bool";
806
+ }];
807
+ readonly stateMutability: "view";
808
+ }, {
809
+ readonly type: "function";
810
+ readonly name: "claimRewards";
811
+ readonly inputs: readonly [{
812
+ readonly name: "claimOrders";
813
+ readonly type: "tuple[]";
814
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
815
+ readonly components: readonly [{
816
+ readonly name: "intervalId";
817
+ readonly type: "bytes32";
818
+ readonly internalType: "bytes32";
819
+ }, {
820
+ readonly name: "amount";
821
+ readonly type: "uint256";
822
+ readonly internalType: "uint256";
823
+ }, {
824
+ readonly name: "isL1Contract";
825
+ readonly type: "bool";
826
+ readonly internalType: "bool";
827
+ }, {
828
+ readonly name: "account";
829
+ readonly type: "address";
830
+ readonly internalType: "address";
831
+ }, {
832
+ readonly name: "merkleProof";
833
+ readonly type: "bytes32[]";
834
+ readonly internalType: "bytes32[]";
835
+ }];
836
+ }];
837
+ readonly outputs: readonly [];
838
+ readonly stateMutability: "nonpayable";
839
+ }], "getRewardsClaimer", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<`0x${string}`>;
840
+ isClaimed: (args: readonly [`0x${string}`, `0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
841
+ readonly type: "function";
842
+ readonly name: "authority";
843
+ readonly inputs: readonly [];
844
+ readonly outputs: readonly [{
845
+ readonly name: "";
846
+ readonly type: "address";
847
+ readonly internalType: "address";
848
+ }];
849
+ readonly stateMutability: "view";
850
+ }, {
851
+ readonly type: "function";
852
+ readonly name: "getClaimingDelay";
853
+ readonly inputs: readonly [];
854
+ readonly outputs: readonly [{
855
+ readonly name: "";
856
+ readonly type: "uint256";
857
+ readonly internalType: "uint256";
858
+ }];
859
+ readonly stateMutability: "view";
860
+ }, {
861
+ readonly type: "function";
862
+ readonly name: "getEpochRecord";
863
+ readonly inputs: readonly [{
864
+ readonly name: "intervalId";
865
+ readonly type: "bytes32";
866
+ readonly internalType: "bytes32";
867
+ }];
868
+ readonly outputs: readonly [{
869
+ readonly name: "";
870
+ readonly type: "tuple";
871
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
872
+ readonly components: readonly [{
873
+ readonly name: "startEpoch";
874
+ readonly type: "uint104";
875
+ readonly internalType: "uint104";
876
+ }, {
877
+ readonly name: "endEpoch";
878
+ readonly type: "uint104";
879
+ readonly internalType: "uint104";
880
+ }, {
881
+ readonly name: "timeBridged";
882
+ readonly type: "uint48";
883
+ readonly internalType: "uint48";
884
+ }, {
885
+ readonly name: "pufETHAmount";
886
+ readonly type: "uint128";
887
+ readonly internalType: "uint128";
888
+ }, {
889
+ readonly name: "ethAmount";
890
+ readonly type: "uint128";
891
+ readonly internalType: "uint128";
892
+ }, {
893
+ readonly name: "ethToPufETHRate";
894
+ readonly type: "uint256";
895
+ readonly internalType: "uint256";
896
+ }, {
897
+ readonly name: "rewardRoot";
898
+ readonly type: "bytes32";
899
+ readonly internalType: "bytes32";
900
+ }];
901
+ }];
902
+ readonly stateMutability: "view";
903
+ }, {
904
+ readonly type: "function";
905
+ readonly name: "getIntervalId";
906
+ readonly inputs: readonly [{
907
+ readonly name: "startEpoch";
908
+ readonly type: "uint256";
909
+ readonly internalType: "uint256";
910
+ }, {
911
+ readonly name: "endEpoch";
912
+ readonly type: "uint256";
913
+ readonly internalType: "uint256";
914
+ }];
915
+ readonly outputs: readonly [{
916
+ readonly name: "";
917
+ readonly type: "bytes32";
918
+ readonly internalType: "bytes32";
919
+ }];
920
+ readonly stateMutability: "pure";
921
+ }, {
922
+ readonly type: "function";
923
+ readonly name: "getRewardsClaimer";
924
+ readonly inputs: readonly [{
925
+ readonly name: "account";
926
+ readonly type: "address";
927
+ readonly internalType: "address";
928
+ }];
929
+ readonly outputs: readonly [{
930
+ readonly name: "";
931
+ readonly type: "address";
932
+ readonly internalType: "address";
933
+ }];
934
+ readonly stateMutability: "view";
935
+ }, {
936
+ readonly type: "function";
937
+ readonly name: "isClaimed";
938
+ readonly inputs: readonly [{
939
+ readonly name: "intervalId";
940
+ readonly type: "bytes32";
941
+ readonly internalType: "bytes32";
942
+ }, {
943
+ readonly name: "account";
944
+ readonly type: "address";
945
+ readonly internalType: "address";
946
+ }];
947
+ readonly outputs: readonly [{
948
+ readonly name: "";
949
+ readonly type: "bool";
950
+ readonly internalType: "bool";
951
+ }];
952
+ readonly stateMutability: "view";
953
+ }, {
954
+ readonly type: "function";
955
+ readonly name: "isClaimingLocked";
956
+ readonly inputs: readonly [{
957
+ readonly name: "intervalId";
958
+ readonly type: "bytes32";
959
+ readonly internalType: "bytes32";
960
+ }];
961
+ readonly outputs: readonly [{
962
+ readonly name: "";
963
+ readonly type: "bool";
964
+ readonly internalType: "bool";
965
+ }];
966
+ readonly stateMutability: "view";
967
+ }, {
968
+ readonly type: "function";
969
+ readonly name: "claimRewards";
970
+ readonly inputs: readonly [{
971
+ readonly name: "claimOrders";
972
+ readonly type: "tuple[]";
973
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
974
+ readonly components: readonly [{
975
+ readonly name: "intervalId";
976
+ readonly type: "bytes32";
977
+ readonly internalType: "bytes32";
978
+ }, {
979
+ readonly name: "amount";
980
+ readonly type: "uint256";
981
+ readonly internalType: "uint256";
982
+ }, {
983
+ readonly name: "isL1Contract";
984
+ readonly type: "bool";
985
+ readonly internalType: "bool";
986
+ }, {
987
+ readonly name: "account";
988
+ readonly type: "address";
989
+ readonly internalType: "address";
990
+ }, {
991
+ readonly name: "merkleProof";
992
+ readonly type: "bytes32[]";
993
+ readonly internalType: "bytes32[]";
994
+ }];
995
+ }];
996
+ readonly outputs: readonly [];
997
+ readonly stateMutability: "nonpayable";
998
+ }], "isClaimed", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<boolean>;
999
+ isClaimingLocked: (args: readonly [`0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
1000
+ readonly type: "function";
1001
+ readonly name: "authority";
1002
+ readonly inputs: readonly [];
1003
+ readonly outputs: readonly [{
1004
+ readonly name: "";
1005
+ readonly type: "address";
1006
+ readonly internalType: "address";
1007
+ }];
1008
+ readonly stateMutability: "view";
1009
+ }, {
1010
+ readonly type: "function";
1011
+ readonly name: "getClaimingDelay";
1012
+ readonly inputs: readonly [];
1013
+ readonly outputs: readonly [{
1014
+ readonly name: "";
1015
+ readonly type: "uint256";
1016
+ readonly internalType: "uint256";
1017
+ }];
1018
+ readonly stateMutability: "view";
1019
+ }, {
1020
+ readonly type: "function";
1021
+ readonly name: "getEpochRecord";
1022
+ readonly inputs: readonly [{
1023
+ readonly name: "intervalId";
1024
+ readonly type: "bytes32";
1025
+ readonly internalType: "bytes32";
1026
+ }];
1027
+ readonly outputs: readonly [{
1028
+ readonly name: "";
1029
+ readonly type: "tuple";
1030
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
1031
+ readonly components: readonly [{
1032
+ readonly name: "startEpoch";
1033
+ readonly type: "uint104";
1034
+ readonly internalType: "uint104";
1035
+ }, {
1036
+ readonly name: "endEpoch";
1037
+ readonly type: "uint104";
1038
+ readonly internalType: "uint104";
1039
+ }, {
1040
+ readonly name: "timeBridged";
1041
+ readonly type: "uint48";
1042
+ readonly internalType: "uint48";
1043
+ }, {
1044
+ readonly name: "pufETHAmount";
1045
+ readonly type: "uint128";
1046
+ readonly internalType: "uint128";
1047
+ }, {
1048
+ readonly name: "ethAmount";
1049
+ readonly type: "uint128";
1050
+ readonly internalType: "uint128";
1051
+ }, {
1052
+ readonly name: "ethToPufETHRate";
1053
+ readonly type: "uint256";
1054
+ readonly internalType: "uint256";
1055
+ }, {
1056
+ readonly name: "rewardRoot";
1057
+ readonly type: "bytes32";
1058
+ readonly internalType: "bytes32";
1059
+ }];
1060
+ }];
1061
+ readonly stateMutability: "view";
1062
+ }, {
1063
+ readonly type: "function";
1064
+ readonly name: "getIntervalId";
1065
+ readonly inputs: readonly [{
1066
+ readonly name: "startEpoch";
1067
+ readonly type: "uint256";
1068
+ readonly internalType: "uint256";
1069
+ }, {
1070
+ readonly name: "endEpoch";
1071
+ readonly type: "uint256";
1072
+ readonly internalType: "uint256";
1073
+ }];
1074
+ readonly outputs: readonly [{
1075
+ readonly name: "";
1076
+ readonly type: "bytes32";
1077
+ readonly internalType: "bytes32";
1078
+ }];
1079
+ readonly stateMutability: "pure";
1080
+ }, {
1081
+ readonly type: "function";
1082
+ readonly name: "getRewardsClaimer";
1083
+ readonly inputs: readonly [{
1084
+ readonly name: "account";
1085
+ readonly type: "address";
1086
+ readonly internalType: "address";
1087
+ }];
1088
+ readonly outputs: readonly [{
1089
+ readonly name: "";
1090
+ readonly type: "address";
1091
+ readonly internalType: "address";
1092
+ }];
1093
+ readonly stateMutability: "view";
1094
+ }, {
1095
+ readonly type: "function";
1096
+ readonly name: "isClaimed";
1097
+ readonly inputs: readonly [{
1098
+ readonly name: "intervalId";
1099
+ readonly type: "bytes32";
1100
+ readonly internalType: "bytes32";
1101
+ }, {
1102
+ readonly name: "account";
1103
+ readonly type: "address";
1104
+ readonly internalType: "address";
1105
+ }];
1106
+ readonly outputs: readonly [{
1107
+ readonly name: "";
1108
+ readonly type: "bool";
1109
+ readonly internalType: "bool";
1110
+ }];
1111
+ readonly stateMutability: "view";
1112
+ }, {
1113
+ readonly type: "function";
1114
+ readonly name: "isClaimingLocked";
1115
+ readonly inputs: readonly [{
1116
+ readonly name: "intervalId";
1117
+ readonly type: "bytes32";
1118
+ readonly internalType: "bytes32";
1119
+ }];
1120
+ readonly outputs: readonly [{
1121
+ readonly name: "";
1122
+ readonly type: "bool";
1123
+ readonly internalType: "bool";
1124
+ }];
1125
+ readonly stateMutability: "view";
1126
+ }, {
1127
+ readonly type: "function";
1128
+ readonly name: "claimRewards";
1129
+ readonly inputs: readonly [{
1130
+ readonly name: "claimOrders";
1131
+ readonly type: "tuple[]";
1132
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
1133
+ readonly components: readonly [{
1134
+ readonly name: "intervalId";
1135
+ readonly type: "bytes32";
1136
+ readonly internalType: "bytes32";
1137
+ }, {
1138
+ readonly name: "amount";
1139
+ readonly type: "uint256";
1140
+ readonly internalType: "uint256";
1141
+ }, {
1142
+ readonly name: "isL1Contract";
1143
+ readonly type: "bool";
1144
+ readonly internalType: "bool";
1145
+ }, {
1146
+ readonly name: "account";
1147
+ readonly type: "address";
1148
+ readonly internalType: "address";
1149
+ }, {
1150
+ readonly name: "merkleProof";
1151
+ readonly type: "bytes32[]";
1152
+ readonly internalType: "bytes32[]";
1153
+ }];
1154
+ }];
1155
+ readonly outputs: readonly [];
1156
+ readonly stateMutability: "nonpayable";
1157
+ }], "isClaimingLocked", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<boolean>;
1158
+ };
1159
+ estimateGas: {
1160
+ claimRewards: (args: readonly [readonly {
1161
+ intervalId: `0x${string}`;
1162
+ amount: bigint;
1163
+ isL1Contract: boolean;
1164
+ account: `0x${string}`;
1165
+ merkleProof: readonly `0x${string}`[];
1166
+ }[]], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
1167
+ readonly type: "function";
1168
+ readonly name: "authority";
1169
+ readonly inputs: readonly [];
1170
+ readonly outputs: readonly [{
1171
+ readonly name: "";
1172
+ readonly type: "address";
1173
+ readonly internalType: "address";
1174
+ }];
1175
+ readonly stateMutability: "view";
1176
+ }, {
1177
+ readonly type: "function";
1178
+ readonly name: "getClaimingDelay";
1179
+ readonly inputs: readonly [];
1180
+ readonly outputs: readonly [{
1181
+ readonly name: "";
1182
+ readonly type: "uint256";
1183
+ readonly internalType: "uint256";
1184
+ }];
1185
+ readonly stateMutability: "view";
1186
+ }, {
1187
+ readonly type: "function";
1188
+ readonly name: "getEpochRecord";
1189
+ readonly inputs: readonly [{
1190
+ readonly name: "intervalId";
1191
+ readonly type: "bytes32";
1192
+ readonly internalType: "bytes32";
1193
+ }];
1194
+ readonly outputs: readonly [{
1195
+ readonly name: "";
1196
+ readonly type: "tuple";
1197
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
1198
+ readonly components: readonly [{
1199
+ readonly name: "startEpoch";
1200
+ readonly type: "uint104";
1201
+ readonly internalType: "uint104";
1202
+ }, {
1203
+ readonly name: "endEpoch";
1204
+ readonly type: "uint104";
1205
+ readonly internalType: "uint104";
1206
+ }, {
1207
+ readonly name: "timeBridged";
1208
+ readonly type: "uint48";
1209
+ readonly internalType: "uint48";
1210
+ }, {
1211
+ readonly name: "pufETHAmount";
1212
+ readonly type: "uint128";
1213
+ readonly internalType: "uint128";
1214
+ }, {
1215
+ readonly name: "ethAmount";
1216
+ readonly type: "uint128";
1217
+ readonly internalType: "uint128";
1218
+ }, {
1219
+ readonly name: "ethToPufETHRate";
1220
+ readonly type: "uint256";
1221
+ readonly internalType: "uint256";
1222
+ }, {
1223
+ readonly name: "rewardRoot";
1224
+ readonly type: "bytes32";
1225
+ readonly internalType: "bytes32";
1226
+ }];
1227
+ }];
1228
+ readonly stateMutability: "view";
1229
+ }, {
1230
+ readonly type: "function";
1231
+ readonly name: "getIntervalId";
1232
+ readonly inputs: readonly [{
1233
+ readonly name: "startEpoch";
1234
+ readonly type: "uint256";
1235
+ readonly internalType: "uint256";
1236
+ }, {
1237
+ readonly name: "endEpoch";
1238
+ readonly type: "uint256";
1239
+ readonly internalType: "uint256";
1240
+ }];
1241
+ readonly outputs: readonly [{
1242
+ readonly name: "";
1243
+ readonly type: "bytes32";
1244
+ readonly internalType: "bytes32";
1245
+ }];
1246
+ readonly stateMutability: "pure";
1247
+ }, {
1248
+ readonly type: "function";
1249
+ readonly name: "getRewardsClaimer";
1250
+ readonly inputs: readonly [{
1251
+ readonly name: "account";
1252
+ readonly type: "address";
1253
+ readonly internalType: "address";
1254
+ }];
1255
+ readonly outputs: readonly [{
1256
+ readonly name: "";
1257
+ readonly type: "address";
1258
+ readonly internalType: "address";
1259
+ }];
1260
+ readonly stateMutability: "view";
1261
+ }, {
1262
+ readonly type: "function";
1263
+ readonly name: "isClaimed";
1264
+ readonly inputs: readonly [{
1265
+ readonly name: "intervalId";
1266
+ readonly type: "bytes32";
1267
+ readonly internalType: "bytes32";
1268
+ }, {
1269
+ readonly name: "account";
1270
+ readonly type: "address";
1271
+ readonly internalType: "address";
1272
+ }];
1273
+ readonly outputs: readonly [{
1274
+ readonly name: "";
1275
+ readonly type: "bool";
1276
+ readonly internalType: "bool";
1277
+ }];
1278
+ readonly stateMutability: "view";
1279
+ }, {
1280
+ readonly type: "function";
1281
+ readonly name: "isClaimingLocked";
1282
+ readonly inputs: readonly [{
1283
+ readonly name: "intervalId";
1284
+ readonly type: "bytes32";
1285
+ readonly internalType: "bytes32";
1286
+ }];
1287
+ readonly outputs: readonly [{
1288
+ readonly name: "";
1289
+ readonly type: "bool";
1290
+ readonly internalType: "bool";
1291
+ }];
1292
+ readonly stateMutability: "view";
1293
+ }, {
1294
+ readonly type: "function";
1295
+ readonly name: "claimRewards";
1296
+ readonly inputs: readonly [{
1297
+ readonly name: "claimOrders";
1298
+ readonly type: "tuple[]";
1299
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
1300
+ readonly components: readonly [{
1301
+ readonly name: "intervalId";
1302
+ readonly type: "bytes32";
1303
+ readonly internalType: "bytes32";
1304
+ }, {
1305
+ readonly name: "amount";
1306
+ readonly type: "uint256";
1307
+ readonly internalType: "uint256";
1308
+ }, {
1309
+ readonly name: "isL1Contract";
1310
+ readonly type: "bool";
1311
+ readonly internalType: "bool";
1312
+ }, {
1313
+ readonly name: "account";
1314
+ readonly type: "address";
1315
+ readonly internalType: "address";
1316
+ }, {
1317
+ readonly name: "merkleProof";
1318
+ readonly type: "bytes32[]";
1319
+ readonly internalType: "bytes32[]";
1320
+ }];
1321
+ }];
1322
+ readonly outputs: readonly [];
1323
+ readonly stateMutability: "nonpayable";
1324
+ }], "claimRewards", readonly [readonly {
1325
+ intervalId: `0x${string}`;
1326
+ amount: bigint;
1327
+ isL1Contract: boolean;
1328
+ account: `0x${string}`;
1329
+ merkleProof: readonly `0x${string}`[];
1330
+ }[]], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
1331
+ } & {
1332
+ claimRewards: (args: readonly [readonly {
1333
+ intervalId: `0x${string}`;
1334
+ amount: bigint;
1335
+ isL1Contract: boolean;
1336
+ account: `0x${string}`;
1337
+ merkleProof: readonly `0x${string}`[];
1338
+ }[]], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
1339
+ readonly type: "function";
1340
+ readonly name: "authority";
1341
+ readonly inputs: readonly [];
1342
+ readonly outputs: readonly [{
1343
+ readonly name: "";
1344
+ readonly type: "address";
1345
+ readonly internalType: "address";
1346
+ }];
1347
+ readonly stateMutability: "view";
1348
+ }, {
1349
+ readonly type: "function";
1350
+ readonly name: "getClaimingDelay";
1351
+ readonly inputs: readonly [];
1352
+ readonly outputs: readonly [{
1353
+ readonly name: "";
1354
+ readonly type: "uint256";
1355
+ readonly internalType: "uint256";
1356
+ }];
1357
+ readonly stateMutability: "view";
1358
+ }, {
1359
+ readonly type: "function";
1360
+ readonly name: "getEpochRecord";
1361
+ readonly inputs: readonly [{
1362
+ readonly name: "intervalId";
1363
+ readonly type: "bytes32";
1364
+ readonly internalType: "bytes32";
1365
+ }];
1366
+ readonly outputs: readonly [{
1367
+ readonly name: "";
1368
+ readonly type: "tuple";
1369
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
1370
+ readonly components: readonly [{
1371
+ readonly name: "startEpoch";
1372
+ readonly type: "uint104";
1373
+ readonly internalType: "uint104";
1374
+ }, {
1375
+ readonly name: "endEpoch";
1376
+ readonly type: "uint104";
1377
+ readonly internalType: "uint104";
1378
+ }, {
1379
+ readonly name: "timeBridged";
1380
+ readonly type: "uint48";
1381
+ readonly internalType: "uint48";
1382
+ }, {
1383
+ readonly name: "pufETHAmount";
1384
+ readonly type: "uint128";
1385
+ readonly internalType: "uint128";
1386
+ }, {
1387
+ readonly name: "ethAmount";
1388
+ readonly type: "uint128";
1389
+ readonly internalType: "uint128";
1390
+ }, {
1391
+ readonly name: "ethToPufETHRate";
1392
+ readonly type: "uint256";
1393
+ readonly internalType: "uint256";
1394
+ }, {
1395
+ readonly name: "rewardRoot";
1396
+ readonly type: "bytes32";
1397
+ readonly internalType: "bytes32";
1398
+ }];
1399
+ }];
1400
+ readonly stateMutability: "view";
1401
+ }, {
1402
+ readonly type: "function";
1403
+ readonly name: "getIntervalId";
1404
+ readonly inputs: readonly [{
1405
+ readonly name: "startEpoch";
1406
+ readonly type: "uint256";
1407
+ readonly internalType: "uint256";
1408
+ }, {
1409
+ readonly name: "endEpoch";
1410
+ readonly type: "uint256";
1411
+ readonly internalType: "uint256";
1412
+ }];
1413
+ readonly outputs: readonly [{
1414
+ readonly name: "";
1415
+ readonly type: "bytes32";
1416
+ readonly internalType: "bytes32";
1417
+ }];
1418
+ readonly stateMutability: "pure";
1419
+ }, {
1420
+ readonly type: "function";
1421
+ readonly name: "getRewardsClaimer";
1422
+ readonly inputs: readonly [{
1423
+ readonly name: "account";
1424
+ readonly type: "address";
1425
+ readonly internalType: "address";
1426
+ }];
1427
+ readonly outputs: readonly [{
1428
+ readonly name: "";
1429
+ readonly type: "address";
1430
+ readonly internalType: "address";
1431
+ }];
1432
+ readonly stateMutability: "view";
1433
+ }, {
1434
+ readonly type: "function";
1435
+ readonly name: "isClaimed";
1436
+ readonly inputs: readonly [{
1437
+ readonly name: "intervalId";
1438
+ readonly type: "bytes32";
1439
+ readonly internalType: "bytes32";
1440
+ }, {
1441
+ readonly name: "account";
1442
+ readonly type: "address";
1443
+ readonly internalType: "address";
1444
+ }];
1445
+ readonly outputs: readonly [{
1446
+ readonly name: "";
1447
+ readonly type: "bool";
1448
+ readonly internalType: "bool";
1449
+ }];
1450
+ readonly stateMutability: "view";
1451
+ }, {
1452
+ readonly type: "function";
1453
+ readonly name: "isClaimingLocked";
1454
+ readonly inputs: readonly [{
1455
+ readonly name: "intervalId";
1456
+ readonly type: "bytes32";
1457
+ readonly internalType: "bytes32";
1458
+ }];
1459
+ readonly outputs: readonly [{
1460
+ readonly name: "";
1461
+ readonly type: "bool";
1462
+ readonly internalType: "bool";
1463
+ }];
1464
+ readonly stateMutability: "view";
1465
+ }, {
1466
+ readonly type: "function";
1467
+ readonly name: "claimRewards";
1468
+ readonly inputs: readonly [{
1469
+ readonly name: "claimOrders";
1470
+ readonly type: "tuple[]";
1471
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
1472
+ readonly components: readonly [{
1473
+ readonly name: "intervalId";
1474
+ readonly type: "bytes32";
1475
+ readonly internalType: "bytes32";
1476
+ }, {
1477
+ readonly name: "amount";
1478
+ readonly type: "uint256";
1479
+ readonly internalType: "uint256";
1480
+ }, {
1481
+ readonly name: "isL1Contract";
1482
+ readonly type: "bool";
1483
+ readonly internalType: "bool";
1484
+ }, {
1485
+ readonly name: "account";
1486
+ readonly type: "address";
1487
+ readonly internalType: "address";
1488
+ }, {
1489
+ readonly name: "merkleProof";
1490
+ readonly type: "bytes32[]";
1491
+ readonly internalType: "bytes32[]";
1492
+ }];
1493
+ }];
1494
+ readonly outputs: readonly [];
1495
+ readonly stateMutability: "nonpayable";
1496
+ }], "claimRewards", readonly [readonly {
1497
+ intervalId: `0x${string}`;
1498
+ amount: bigint;
1499
+ isL1Contract: boolean;
1500
+ account: `0x${string}`;
1501
+ merkleProof: readonly `0x${string}`[];
1502
+ }[]], ViemChain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
1503
+ };
1504
+ simulate: {
1505
+ claimRewards: <chainOverride extends ViemChain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [readonly {
1506
+ intervalId: `0x${string}`;
1507
+ amount: bigint;
1508
+ isL1Contract: boolean;
1509
+ account: `0x${string}`;
1510
+ merkleProof: readonly `0x${string}`[];
1511
+ }[]], options?: Omit<import('viem').SimulateContractParameters<readonly [{
1512
+ readonly type: "function";
1513
+ readonly name: "authority";
1514
+ readonly inputs: readonly [];
1515
+ readonly outputs: readonly [{
1516
+ readonly name: "";
1517
+ readonly type: "address";
1518
+ readonly internalType: "address";
1519
+ }];
1520
+ readonly stateMutability: "view";
1521
+ }, {
1522
+ readonly type: "function";
1523
+ readonly name: "getClaimingDelay";
1524
+ readonly inputs: readonly [];
1525
+ readonly outputs: readonly [{
1526
+ readonly name: "";
1527
+ readonly type: "uint256";
1528
+ readonly internalType: "uint256";
1529
+ }];
1530
+ readonly stateMutability: "view";
1531
+ }, {
1532
+ readonly type: "function";
1533
+ readonly name: "getEpochRecord";
1534
+ readonly inputs: readonly [{
1535
+ readonly name: "intervalId";
1536
+ readonly type: "bytes32";
1537
+ readonly internalType: "bytes32";
1538
+ }];
1539
+ readonly outputs: readonly [{
1540
+ readonly name: "";
1541
+ readonly type: "tuple";
1542
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
1543
+ readonly components: readonly [{
1544
+ readonly name: "startEpoch";
1545
+ readonly type: "uint104";
1546
+ readonly internalType: "uint104";
1547
+ }, {
1548
+ readonly name: "endEpoch";
1549
+ readonly type: "uint104";
1550
+ readonly internalType: "uint104";
1551
+ }, {
1552
+ readonly name: "timeBridged";
1553
+ readonly type: "uint48";
1554
+ readonly internalType: "uint48";
1555
+ }, {
1556
+ readonly name: "pufETHAmount";
1557
+ readonly type: "uint128";
1558
+ readonly internalType: "uint128";
1559
+ }, {
1560
+ readonly name: "ethAmount";
1561
+ readonly type: "uint128";
1562
+ readonly internalType: "uint128";
1563
+ }, {
1564
+ readonly name: "ethToPufETHRate";
1565
+ readonly type: "uint256";
1566
+ readonly internalType: "uint256";
1567
+ }, {
1568
+ readonly name: "rewardRoot";
1569
+ readonly type: "bytes32";
1570
+ readonly internalType: "bytes32";
1571
+ }];
1572
+ }];
1573
+ readonly stateMutability: "view";
1574
+ }, {
1575
+ readonly type: "function";
1576
+ readonly name: "getIntervalId";
1577
+ readonly inputs: readonly [{
1578
+ readonly name: "startEpoch";
1579
+ readonly type: "uint256";
1580
+ readonly internalType: "uint256";
1581
+ }, {
1582
+ readonly name: "endEpoch";
1583
+ readonly type: "uint256";
1584
+ readonly internalType: "uint256";
1585
+ }];
1586
+ readonly outputs: readonly [{
1587
+ readonly name: "";
1588
+ readonly type: "bytes32";
1589
+ readonly internalType: "bytes32";
1590
+ }];
1591
+ readonly stateMutability: "pure";
1592
+ }, {
1593
+ readonly type: "function";
1594
+ readonly name: "getRewardsClaimer";
1595
+ readonly inputs: readonly [{
1596
+ readonly name: "account";
1597
+ readonly type: "address";
1598
+ readonly internalType: "address";
1599
+ }];
1600
+ readonly outputs: readonly [{
1601
+ readonly name: "";
1602
+ readonly type: "address";
1603
+ readonly internalType: "address";
1604
+ }];
1605
+ readonly stateMutability: "view";
1606
+ }, {
1607
+ readonly type: "function";
1608
+ readonly name: "isClaimed";
1609
+ readonly inputs: readonly [{
1610
+ readonly name: "intervalId";
1611
+ readonly type: "bytes32";
1612
+ readonly internalType: "bytes32";
1613
+ }, {
1614
+ readonly name: "account";
1615
+ readonly type: "address";
1616
+ readonly internalType: "address";
1617
+ }];
1618
+ readonly outputs: readonly [{
1619
+ readonly name: "";
1620
+ readonly type: "bool";
1621
+ readonly internalType: "bool";
1622
+ }];
1623
+ readonly stateMutability: "view";
1624
+ }, {
1625
+ readonly type: "function";
1626
+ readonly name: "isClaimingLocked";
1627
+ readonly inputs: readonly [{
1628
+ readonly name: "intervalId";
1629
+ readonly type: "bytes32";
1630
+ readonly internalType: "bytes32";
1631
+ }];
1632
+ readonly outputs: readonly [{
1633
+ readonly name: "";
1634
+ readonly type: "bool";
1635
+ readonly internalType: "bool";
1636
+ }];
1637
+ readonly stateMutability: "view";
1638
+ }, {
1639
+ readonly type: "function";
1640
+ readonly name: "claimRewards";
1641
+ readonly inputs: readonly [{
1642
+ readonly name: "claimOrders";
1643
+ readonly type: "tuple[]";
1644
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
1645
+ readonly components: readonly [{
1646
+ readonly name: "intervalId";
1647
+ readonly type: "bytes32";
1648
+ readonly internalType: "bytes32";
1649
+ }, {
1650
+ readonly name: "amount";
1651
+ readonly type: "uint256";
1652
+ readonly internalType: "uint256";
1653
+ }, {
1654
+ readonly name: "isL1Contract";
1655
+ readonly type: "bool";
1656
+ readonly internalType: "bool";
1657
+ }, {
1658
+ readonly name: "account";
1659
+ readonly type: "address";
1660
+ readonly internalType: "address";
1661
+ }, {
1662
+ readonly name: "merkleProof";
1663
+ readonly type: "bytes32[]";
1664
+ readonly internalType: "bytes32[]";
1665
+ }];
1666
+ }];
1667
+ readonly outputs: readonly [];
1668
+ readonly stateMutability: "nonpayable";
1669
+ }], "claimRewards", readonly [readonly {
1670
+ intervalId: `0x${string}`;
1671
+ amount: bigint;
1672
+ isL1Contract: boolean;
1673
+ account: `0x${string}`;
1674
+ merkleProof: readonly `0x${string}`[];
1675
+ }[]], ViemChain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
1676
+ readonly type: "function";
1677
+ readonly name: "authority";
1678
+ readonly inputs: readonly [];
1679
+ readonly outputs: readonly [{
1680
+ readonly name: "";
1681
+ readonly type: "address";
1682
+ readonly internalType: "address";
1683
+ }];
1684
+ readonly stateMutability: "view";
1685
+ }, {
1686
+ readonly type: "function";
1687
+ readonly name: "getClaimingDelay";
1688
+ readonly inputs: readonly [];
1689
+ readonly outputs: readonly [{
1690
+ readonly name: "";
1691
+ readonly type: "uint256";
1692
+ readonly internalType: "uint256";
1693
+ }];
1694
+ readonly stateMutability: "view";
1695
+ }, {
1696
+ readonly type: "function";
1697
+ readonly name: "getEpochRecord";
1698
+ readonly inputs: readonly [{
1699
+ readonly name: "intervalId";
1700
+ readonly type: "bytes32";
1701
+ readonly internalType: "bytes32";
1702
+ }];
1703
+ readonly outputs: readonly [{
1704
+ readonly name: "";
1705
+ readonly type: "tuple";
1706
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
1707
+ readonly components: readonly [{
1708
+ readonly name: "startEpoch";
1709
+ readonly type: "uint104";
1710
+ readonly internalType: "uint104";
1711
+ }, {
1712
+ readonly name: "endEpoch";
1713
+ readonly type: "uint104";
1714
+ readonly internalType: "uint104";
1715
+ }, {
1716
+ readonly name: "timeBridged";
1717
+ readonly type: "uint48";
1718
+ readonly internalType: "uint48";
1719
+ }, {
1720
+ readonly name: "pufETHAmount";
1721
+ readonly type: "uint128";
1722
+ readonly internalType: "uint128";
1723
+ }, {
1724
+ readonly name: "ethAmount";
1725
+ readonly type: "uint128";
1726
+ readonly internalType: "uint128";
1727
+ }, {
1728
+ readonly name: "ethToPufETHRate";
1729
+ readonly type: "uint256";
1730
+ readonly internalType: "uint256";
1731
+ }, {
1732
+ readonly name: "rewardRoot";
1733
+ readonly type: "bytes32";
1734
+ readonly internalType: "bytes32";
1735
+ }];
1736
+ }];
1737
+ readonly stateMutability: "view";
1738
+ }, {
1739
+ readonly type: "function";
1740
+ readonly name: "getIntervalId";
1741
+ readonly inputs: readonly [{
1742
+ readonly name: "startEpoch";
1743
+ readonly type: "uint256";
1744
+ readonly internalType: "uint256";
1745
+ }, {
1746
+ readonly name: "endEpoch";
1747
+ readonly type: "uint256";
1748
+ readonly internalType: "uint256";
1749
+ }];
1750
+ readonly outputs: readonly [{
1751
+ readonly name: "";
1752
+ readonly type: "bytes32";
1753
+ readonly internalType: "bytes32";
1754
+ }];
1755
+ readonly stateMutability: "pure";
1756
+ }, {
1757
+ readonly type: "function";
1758
+ readonly name: "getRewardsClaimer";
1759
+ readonly inputs: readonly [{
1760
+ readonly name: "account";
1761
+ readonly type: "address";
1762
+ readonly internalType: "address";
1763
+ }];
1764
+ readonly outputs: readonly [{
1765
+ readonly name: "";
1766
+ readonly type: "address";
1767
+ readonly internalType: "address";
1768
+ }];
1769
+ readonly stateMutability: "view";
1770
+ }, {
1771
+ readonly type: "function";
1772
+ readonly name: "isClaimed";
1773
+ readonly inputs: readonly [{
1774
+ readonly name: "intervalId";
1775
+ readonly type: "bytes32";
1776
+ readonly internalType: "bytes32";
1777
+ }, {
1778
+ readonly name: "account";
1779
+ readonly type: "address";
1780
+ readonly internalType: "address";
1781
+ }];
1782
+ readonly outputs: readonly [{
1783
+ readonly name: "";
1784
+ readonly type: "bool";
1785
+ readonly internalType: "bool";
1786
+ }];
1787
+ readonly stateMutability: "view";
1788
+ }, {
1789
+ readonly type: "function";
1790
+ readonly name: "isClaimingLocked";
1791
+ readonly inputs: readonly [{
1792
+ readonly name: "intervalId";
1793
+ readonly type: "bytes32";
1794
+ readonly internalType: "bytes32";
1795
+ }];
1796
+ readonly outputs: readonly [{
1797
+ readonly name: "";
1798
+ readonly type: "bool";
1799
+ readonly internalType: "bool";
1800
+ }];
1801
+ readonly stateMutability: "view";
1802
+ }, {
1803
+ readonly type: "function";
1804
+ readonly name: "claimRewards";
1805
+ readonly inputs: readonly [{
1806
+ readonly name: "claimOrders";
1807
+ readonly type: "tuple[]";
1808
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
1809
+ readonly components: readonly [{
1810
+ readonly name: "intervalId";
1811
+ readonly type: "bytes32";
1812
+ readonly internalType: "bytes32";
1813
+ }, {
1814
+ readonly name: "amount";
1815
+ readonly type: "uint256";
1816
+ readonly internalType: "uint256";
1817
+ }, {
1818
+ readonly name: "isL1Contract";
1819
+ readonly type: "bool";
1820
+ readonly internalType: "bool";
1821
+ }, {
1822
+ readonly name: "account";
1823
+ readonly type: "address";
1824
+ readonly internalType: "address";
1825
+ }, {
1826
+ readonly name: "merkleProof";
1827
+ readonly type: "bytes32[]";
1828
+ readonly internalType: "bytes32[]";
1829
+ }];
1830
+ }];
1831
+ readonly outputs: readonly [];
1832
+ readonly stateMutability: "nonpayable";
1833
+ }], "claimRewards", readonly [readonly {
1834
+ intervalId: `0x${string}`;
1835
+ amount: bigint;
1836
+ isL1Contract: boolean;
1837
+ account: `0x${string}`;
1838
+ merkleProof: readonly `0x${string}`[];
1839
+ }[]], ViemChain | undefined, import('viem').Account | undefined, chainOverride, accountOverride>>;
1840
+ };
1841
+ write: {
1842
+ claimRewards: <chainOverride extends ViemChain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
1843
+ readonly type: "function";
1844
+ readonly name: "authority";
1845
+ readonly inputs: readonly [];
1846
+ readonly outputs: readonly [{
1847
+ readonly name: "";
1848
+ readonly type: "address";
1849
+ readonly internalType: "address";
1850
+ }];
1851
+ readonly stateMutability: "view";
1852
+ }, {
1853
+ readonly type: "function";
1854
+ readonly name: "getClaimingDelay";
1855
+ readonly inputs: readonly [];
1856
+ readonly outputs: readonly [{
1857
+ readonly name: "";
1858
+ readonly type: "uint256";
1859
+ readonly internalType: "uint256";
1860
+ }];
1861
+ readonly stateMutability: "view";
1862
+ }, {
1863
+ readonly type: "function";
1864
+ readonly name: "getEpochRecord";
1865
+ readonly inputs: readonly [{
1866
+ readonly name: "intervalId";
1867
+ readonly type: "bytes32";
1868
+ readonly internalType: "bytes32";
1869
+ }];
1870
+ readonly outputs: readonly [{
1871
+ readonly name: "";
1872
+ readonly type: "tuple";
1873
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
1874
+ readonly components: readonly [{
1875
+ readonly name: "startEpoch";
1876
+ readonly type: "uint104";
1877
+ readonly internalType: "uint104";
1878
+ }, {
1879
+ readonly name: "endEpoch";
1880
+ readonly type: "uint104";
1881
+ readonly internalType: "uint104";
1882
+ }, {
1883
+ readonly name: "timeBridged";
1884
+ readonly type: "uint48";
1885
+ readonly internalType: "uint48";
1886
+ }, {
1887
+ readonly name: "pufETHAmount";
1888
+ readonly type: "uint128";
1889
+ readonly internalType: "uint128";
1890
+ }, {
1891
+ readonly name: "ethAmount";
1892
+ readonly type: "uint128";
1893
+ readonly internalType: "uint128";
1894
+ }, {
1895
+ readonly name: "ethToPufETHRate";
1896
+ readonly type: "uint256";
1897
+ readonly internalType: "uint256";
1898
+ }, {
1899
+ readonly name: "rewardRoot";
1900
+ readonly type: "bytes32";
1901
+ readonly internalType: "bytes32";
1902
+ }];
1903
+ }];
1904
+ readonly stateMutability: "view";
1905
+ }, {
1906
+ readonly type: "function";
1907
+ readonly name: "getIntervalId";
1908
+ readonly inputs: readonly [{
1909
+ readonly name: "startEpoch";
1910
+ readonly type: "uint256";
1911
+ readonly internalType: "uint256";
1912
+ }, {
1913
+ readonly name: "endEpoch";
1914
+ readonly type: "uint256";
1915
+ readonly internalType: "uint256";
1916
+ }];
1917
+ readonly outputs: readonly [{
1918
+ readonly name: "";
1919
+ readonly type: "bytes32";
1920
+ readonly internalType: "bytes32";
1921
+ }];
1922
+ readonly stateMutability: "pure";
1923
+ }, {
1924
+ readonly type: "function";
1925
+ readonly name: "getRewardsClaimer";
1926
+ readonly inputs: readonly [{
1927
+ readonly name: "account";
1928
+ readonly type: "address";
1929
+ readonly internalType: "address";
1930
+ }];
1931
+ readonly outputs: readonly [{
1932
+ readonly name: "";
1933
+ readonly type: "address";
1934
+ readonly internalType: "address";
1935
+ }];
1936
+ readonly stateMutability: "view";
1937
+ }, {
1938
+ readonly type: "function";
1939
+ readonly name: "isClaimed";
1940
+ readonly inputs: readonly [{
1941
+ readonly name: "intervalId";
1942
+ readonly type: "bytes32";
1943
+ readonly internalType: "bytes32";
1944
+ }, {
1945
+ readonly name: "account";
1946
+ readonly type: "address";
1947
+ readonly internalType: "address";
1948
+ }];
1949
+ readonly outputs: readonly [{
1950
+ readonly name: "";
1951
+ readonly type: "bool";
1952
+ readonly internalType: "bool";
1953
+ }];
1954
+ readonly stateMutability: "view";
1955
+ }, {
1956
+ readonly type: "function";
1957
+ readonly name: "isClaimingLocked";
1958
+ readonly inputs: readonly [{
1959
+ readonly name: "intervalId";
1960
+ readonly type: "bytes32";
1961
+ readonly internalType: "bytes32";
1962
+ }];
1963
+ readonly outputs: readonly [{
1964
+ readonly name: "";
1965
+ readonly type: "bool";
1966
+ readonly internalType: "bool";
1967
+ }];
1968
+ readonly stateMutability: "view";
1969
+ }, {
1970
+ readonly type: "function";
1971
+ readonly name: "claimRewards";
1972
+ readonly inputs: readonly [{
1973
+ readonly name: "claimOrders";
1974
+ readonly type: "tuple[]";
1975
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
1976
+ readonly components: readonly [{
1977
+ readonly name: "intervalId";
1978
+ readonly type: "bytes32";
1979
+ readonly internalType: "bytes32";
1980
+ }, {
1981
+ readonly name: "amount";
1982
+ readonly type: "uint256";
1983
+ readonly internalType: "uint256";
1984
+ }, {
1985
+ readonly name: "isL1Contract";
1986
+ readonly type: "bool";
1987
+ readonly internalType: "bool";
1988
+ }, {
1989
+ readonly name: "account";
1990
+ readonly type: "address";
1991
+ readonly internalType: "address";
1992
+ }, {
1993
+ readonly name: "merkleProof";
1994
+ readonly type: "bytes32[]";
1995
+ readonly internalType: "bytes32[]";
1996
+ }];
1997
+ }];
1998
+ readonly outputs: readonly [];
1999
+ readonly stateMutability: "nonpayable";
2000
+ }], "claimRewards", readonly [readonly {
2001
+ intervalId: `0x${string}`;
2002
+ amount: bigint;
2003
+ isL1Contract: boolean;
2004
+ account: `0x${string}`;
2005
+ merkleProof: readonly `0x${string}`[];
2006
+ }[]], 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 [{
2007
+ readonly type: "function";
2008
+ readonly name: "authority";
2009
+ readonly inputs: readonly [];
2010
+ readonly outputs: readonly [{
2011
+ readonly name: "";
2012
+ readonly type: "address";
2013
+ readonly internalType: "address";
2014
+ }];
2015
+ readonly stateMutability: "view";
2016
+ }, {
2017
+ readonly type: "function";
2018
+ readonly name: "getClaimingDelay";
2019
+ readonly inputs: readonly [];
2020
+ readonly outputs: readonly [{
2021
+ readonly name: "";
2022
+ readonly type: "uint256";
2023
+ readonly internalType: "uint256";
2024
+ }];
2025
+ readonly stateMutability: "view";
2026
+ }, {
2027
+ readonly type: "function";
2028
+ readonly name: "getEpochRecord";
2029
+ readonly inputs: readonly [{
2030
+ readonly name: "intervalId";
2031
+ readonly type: "bytes32";
2032
+ readonly internalType: "bytes32";
2033
+ }];
2034
+ readonly outputs: readonly [{
2035
+ readonly name: "";
2036
+ readonly type: "tuple";
2037
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
2038
+ readonly components: readonly [{
2039
+ readonly name: "startEpoch";
2040
+ readonly type: "uint104";
2041
+ readonly internalType: "uint104";
2042
+ }, {
2043
+ readonly name: "endEpoch";
2044
+ readonly type: "uint104";
2045
+ readonly internalType: "uint104";
2046
+ }, {
2047
+ readonly name: "timeBridged";
2048
+ readonly type: "uint48";
2049
+ readonly internalType: "uint48";
2050
+ }, {
2051
+ readonly name: "pufETHAmount";
2052
+ readonly type: "uint128";
2053
+ readonly internalType: "uint128";
2054
+ }, {
2055
+ readonly name: "ethAmount";
2056
+ readonly type: "uint128";
2057
+ readonly internalType: "uint128";
2058
+ }, {
2059
+ readonly name: "ethToPufETHRate";
2060
+ readonly type: "uint256";
2061
+ readonly internalType: "uint256";
2062
+ }, {
2063
+ readonly name: "rewardRoot";
2064
+ readonly type: "bytes32";
2065
+ readonly internalType: "bytes32";
2066
+ }];
2067
+ }];
2068
+ readonly stateMutability: "view";
2069
+ }, {
2070
+ readonly type: "function";
2071
+ readonly name: "getIntervalId";
2072
+ readonly inputs: readonly [{
2073
+ readonly name: "startEpoch";
2074
+ readonly type: "uint256";
2075
+ readonly internalType: "uint256";
2076
+ }, {
2077
+ readonly name: "endEpoch";
2078
+ readonly type: "uint256";
2079
+ readonly internalType: "uint256";
2080
+ }];
2081
+ readonly outputs: readonly [{
2082
+ readonly name: "";
2083
+ readonly type: "bytes32";
2084
+ readonly internalType: "bytes32";
2085
+ }];
2086
+ readonly stateMutability: "pure";
2087
+ }, {
2088
+ readonly type: "function";
2089
+ readonly name: "getRewardsClaimer";
2090
+ readonly inputs: readonly [{
2091
+ readonly name: "account";
2092
+ readonly type: "address";
2093
+ readonly internalType: "address";
2094
+ }];
2095
+ readonly outputs: readonly [{
2096
+ readonly name: "";
2097
+ readonly type: "address";
2098
+ readonly internalType: "address";
2099
+ }];
2100
+ readonly stateMutability: "view";
2101
+ }, {
2102
+ readonly type: "function";
2103
+ readonly name: "isClaimed";
2104
+ readonly inputs: readonly [{
2105
+ readonly name: "intervalId";
2106
+ readonly type: "bytes32";
2107
+ readonly internalType: "bytes32";
2108
+ }, {
2109
+ readonly name: "account";
2110
+ readonly type: "address";
2111
+ readonly internalType: "address";
2112
+ }];
2113
+ readonly outputs: readonly [{
2114
+ readonly name: "";
2115
+ readonly type: "bool";
2116
+ readonly internalType: "bool";
2117
+ }];
2118
+ readonly stateMutability: "view";
2119
+ }, {
2120
+ readonly type: "function";
2121
+ readonly name: "isClaimingLocked";
2122
+ readonly inputs: readonly [{
2123
+ readonly name: "intervalId";
2124
+ readonly type: "bytes32";
2125
+ readonly internalType: "bytes32";
2126
+ }];
2127
+ readonly outputs: readonly [{
2128
+ readonly name: "";
2129
+ readonly type: "bool";
2130
+ readonly internalType: "bool";
2131
+ }];
2132
+ readonly stateMutability: "view";
2133
+ }, {
2134
+ readonly type: "function";
2135
+ readonly name: "claimRewards";
2136
+ readonly inputs: readonly [{
2137
+ readonly name: "claimOrders";
2138
+ readonly type: "tuple[]";
2139
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
2140
+ readonly components: readonly [{
2141
+ readonly name: "intervalId";
2142
+ readonly type: "bytes32";
2143
+ readonly internalType: "bytes32";
2144
+ }, {
2145
+ readonly name: "amount";
2146
+ readonly type: "uint256";
2147
+ readonly internalType: "uint256";
2148
+ }, {
2149
+ readonly name: "isL1Contract";
2150
+ readonly type: "bool";
2151
+ readonly internalType: "bool";
2152
+ }, {
2153
+ readonly name: "account";
2154
+ readonly type: "address";
2155
+ readonly internalType: "address";
2156
+ }, {
2157
+ readonly name: "merkleProof";
2158
+ readonly type: "bytes32[]";
2159
+ readonly internalType: "bytes32[]";
2160
+ }];
2161
+ }];
2162
+ readonly outputs: readonly [];
2163
+ readonly stateMutability: "nonpayable";
2164
+ }], "claimRewards", readonly [readonly {
2165
+ intervalId: `0x${string}`;
2166
+ amount: bigint;
2167
+ isL1Contract: boolean;
2168
+ account: `0x${string}`;
2169
+ merkleProof: readonly `0x${string}`[];
2170
+ }[]], ViemChain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [readonly {
2171
+ intervalId: `0x${string}`;
2172
+ amount: bigint;
2173
+ isL1Contract: boolean;
2174
+ account: `0x${string}`;
2175
+ merkleProof: readonly `0x${string}`[];
2176
+ }[]], options: options) => Promise<import('viem').WriteContractReturnType>;
2177
+ };
2178
+ address: `0x${string}`;
2179
+ abi: readonly [{
2180
+ readonly type: "function";
2181
+ readonly name: "authority";
2182
+ readonly inputs: readonly [];
2183
+ readonly outputs: readonly [{
2184
+ readonly name: "";
2185
+ readonly type: "address";
2186
+ readonly internalType: "address";
2187
+ }];
2188
+ readonly stateMutability: "view";
2189
+ }, {
2190
+ readonly type: "function";
2191
+ readonly name: "getClaimingDelay";
2192
+ readonly inputs: readonly [];
2193
+ readonly outputs: readonly [{
2194
+ readonly name: "";
2195
+ readonly type: "uint256";
2196
+ readonly internalType: "uint256";
2197
+ }];
2198
+ readonly stateMutability: "view";
2199
+ }, {
2200
+ readonly type: "function";
2201
+ readonly name: "getEpochRecord";
2202
+ readonly inputs: readonly [{
2203
+ readonly name: "intervalId";
2204
+ readonly type: "bytes32";
2205
+ readonly internalType: "bytes32";
2206
+ }];
2207
+ readonly outputs: readonly [{
2208
+ readonly name: "";
2209
+ readonly type: "tuple";
2210
+ readonly internalType: "struct L2RewardManagerStorage.EpochRecord";
2211
+ readonly components: readonly [{
2212
+ readonly name: "startEpoch";
2213
+ readonly type: "uint104";
2214
+ readonly internalType: "uint104";
2215
+ }, {
2216
+ readonly name: "endEpoch";
2217
+ readonly type: "uint104";
2218
+ readonly internalType: "uint104";
2219
+ }, {
2220
+ readonly name: "timeBridged";
2221
+ readonly type: "uint48";
2222
+ readonly internalType: "uint48";
2223
+ }, {
2224
+ readonly name: "pufETHAmount";
2225
+ readonly type: "uint128";
2226
+ readonly internalType: "uint128";
2227
+ }, {
2228
+ readonly name: "ethAmount";
2229
+ readonly type: "uint128";
2230
+ readonly internalType: "uint128";
2231
+ }, {
2232
+ readonly name: "ethToPufETHRate";
2233
+ readonly type: "uint256";
2234
+ readonly internalType: "uint256";
2235
+ }, {
2236
+ readonly name: "rewardRoot";
2237
+ readonly type: "bytes32";
2238
+ readonly internalType: "bytes32";
2239
+ }];
2240
+ }];
2241
+ readonly stateMutability: "view";
2242
+ }, {
2243
+ readonly type: "function";
2244
+ readonly name: "getIntervalId";
2245
+ readonly inputs: readonly [{
2246
+ readonly name: "startEpoch";
2247
+ readonly type: "uint256";
2248
+ readonly internalType: "uint256";
2249
+ }, {
2250
+ readonly name: "endEpoch";
2251
+ readonly type: "uint256";
2252
+ readonly internalType: "uint256";
2253
+ }];
2254
+ readonly outputs: readonly [{
2255
+ readonly name: "";
2256
+ readonly type: "bytes32";
2257
+ readonly internalType: "bytes32";
2258
+ }];
2259
+ readonly stateMutability: "pure";
2260
+ }, {
2261
+ readonly type: "function";
2262
+ readonly name: "getRewardsClaimer";
2263
+ readonly inputs: readonly [{
2264
+ readonly name: "account";
2265
+ readonly type: "address";
2266
+ readonly internalType: "address";
2267
+ }];
2268
+ readonly outputs: readonly [{
2269
+ readonly name: "";
2270
+ readonly type: "address";
2271
+ readonly internalType: "address";
2272
+ }];
2273
+ readonly stateMutability: "view";
2274
+ }, {
2275
+ readonly type: "function";
2276
+ readonly name: "isClaimed";
2277
+ readonly inputs: readonly [{
2278
+ readonly name: "intervalId";
2279
+ readonly type: "bytes32";
2280
+ readonly internalType: "bytes32";
2281
+ }, {
2282
+ readonly name: "account";
2283
+ readonly type: "address";
2284
+ readonly internalType: "address";
2285
+ }];
2286
+ readonly outputs: readonly [{
2287
+ readonly name: "";
2288
+ readonly type: "bool";
2289
+ readonly internalType: "bool";
2290
+ }];
2291
+ readonly stateMutability: "view";
2292
+ }, {
2293
+ readonly type: "function";
2294
+ readonly name: "isClaimingLocked";
2295
+ readonly inputs: readonly [{
2296
+ readonly name: "intervalId";
2297
+ readonly type: "bytes32";
2298
+ readonly internalType: "bytes32";
2299
+ }];
2300
+ readonly outputs: readonly [{
2301
+ readonly name: "";
2302
+ readonly type: "bool";
2303
+ readonly internalType: "bool";
2304
+ }];
2305
+ readonly stateMutability: "view";
2306
+ }, {
2307
+ readonly type: "function";
2308
+ readonly name: "claimRewards";
2309
+ readonly inputs: readonly [{
2310
+ readonly name: "claimOrders";
2311
+ readonly type: "tuple[]";
2312
+ readonly internalType: "struct IL2RewardManager.ClaimOrder[]";
2313
+ readonly components: readonly [{
2314
+ readonly name: "intervalId";
2315
+ readonly type: "bytes32";
2316
+ readonly internalType: "bytes32";
2317
+ }, {
2318
+ readonly name: "amount";
2319
+ readonly type: "uint256";
2320
+ readonly internalType: "uint256";
2321
+ }, {
2322
+ readonly name: "isL1Contract";
2323
+ readonly type: "bool";
2324
+ readonly internalType: "bool";
2325
+ }, {
2326
+ readonly name: "account";
2327
+ readonly type: "address";
2328
+ readonly internalType: "address";
2329
+ }, {
2330
+ readonly name: "merkleProof";
2331
+ readonly type: "bytes32[]";
2332
+ readonly internalType: "bytes32[]";
2333
+ }];
2334
+ }];
2335
+ readonly outputs: readonly [];
2336
+ readonly stateMutability: "nonpayable";
2337
+ }];
2338
+ };
2339
+ /**
2340
+ * Get the authority address.
2341
+ *
2342
+ * @returns The authority address.
2343
+ */
2344
+ authority(): Promise<`0x${string}`>;
2345
+ /**
2346
+ * Get the claiming delay.
2347
+ *
2348
+ * @returns The claiming delay.
2349
+ */
2350
+ getClaimingDelay(): Promise<bigint>;
2351
+ /**
2352
+ * Get the epoch record for a specific period.
2353
+ *
2354
+ * @param intervalId The interval ID for a given start and end epoch.
2355
+ * See `getInternvalId`.
2356
+ * @returns The epoch record of exchange rate and reward root.
2357
+ */
2358
+ getEpochRecord(intervalId: Address): Promise<{
2359
+ startEpoch: bigint;
2360
+ endEpoch: bigint;
2361
+ timeBridged: number;
2362
+ pufETHAmount: bigint;
2363
+ ethAmount: bigint;
2364
+ ethToPufETHRate: bigint;
2365
+ rewardRoot: `0x${string}`;
2366
+ }>;
2367
+ /**
2368
+ * Returns the interval ID for a given start and end epoch.
2369
+ *
2370
+ * @param startEpoch Start epoch of the interval.
2371
+ * @param endEpoch End epoch of the interval.
2372
+ * @returns Interval ID for the given start and end epoch.
2373
+ */
2374
+ getIntervalId(startEpoch: bigint, endEpoch: bigint): Promise<`0x${string}`>;
2375
+ /**
2376
+ * Get the rewards claimer for a specific `account`.
2377
+ *
2378
+ * @param account Account for which to get the rewards claimer.
2379
+ * @returns Rewards claimer address.
2380
+ */
2381
+ getRewardsClaimer(account: Address): Promise<`0x${string}`>;
2382
+ /**
2383
+ * Check if the reward has been claimed for an account and a specific
2384
+ * interval.
2385
+ *
2386
+ * @param account The address of the account to check.
2387
+ * @param intervalId The claiming interval ID. See `getIntervalId`.
2388
+ * @returns Whether the reward has been claimed.
2389
+ */
2390
+ isClaimed(account: Address, intervalId: Address): Promise<boolean>;
2391
+ /**
2392
+ * Check whether the claiming is locked for the given interval.
2393
+ *
2394
+ * @param intervalId The interval to check the claiming lock for. See
2395
+ * `getIntervalId`.
2396
+ * @returns Whether the claiming is locked for the given interval.
2397
+ */
2398
+ isClaimingLocked(intervalId: Address): Promise<boolean>;
2399
+ /**
2400
+ * Claims the rewards for a specific epoch range based on the
2401
+ * `ClaimOrder`.
2402
+ *
2403
+ * @param account The account using which to claim the rewards.
2404
+ * @param claimOrders One or more claim orders.
2405
+ * @param claimOrders[].account Account of the claim order.
2406
+ * @param claimOrders[].amount Amount of the claim order.
2407
+ * @param claimOrders[].intervalId Interval ID of the claim order. See
2408
+ * `getIntervalId`.
2409
+ * @param claimOrders[].isL1Contract Whether the claim order is for an
2410
+ * L1 contract.
2411
+ * @param claimOrders[].merkleProof Merkle proof of the claim order.
2412
+ * @returns `transact: () => Promise<Address>` - Used to make the
2413
+ * transaction.
2414
+ *
2415
+ * `estimate: () => Promise<bigint>` - Gas estimate of the
2416
+ * transaction.
2417
+ * @throws {InvalidInputError} If `claimOrders` is empty.
2418
+ */
2419
+ claimRewards(account: Address, claimOrders: ClaimOrder[]): {
2420
+ transact: () => Promise<`0x${string}`>;
2421
+ estimate: () => Promise<bigint>;
2422
+ };
2423
+ }