@gitmyabi/merkleredeem 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/MerkleRedeem_json.d.ts +106 -251
- package/contracts/MerkleRedeem_json.js +126 -267
- package/contracts/MerkleRedeem_json.ts +129 -317
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Auto-generated TypeScript type bindings for **MerkleRedeem**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-merkleredeem-
|
|
5
|
+
- **Build ID**: `etherscan-merkleredeem-dbc3088d-1793764440865`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `c51ba44`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 1
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **MerkleRedeem**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/merkleredeem@1.0.
|
|
15
|
+
npm install @gitmyabi/merkleredeem@1.0.1
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -3,9 +3,9 @@ import type { Address, PublicClient, WalletClient } from 'viem';
|
|
|
3
3
|
* MerkleRedeem.Claim struct type
|
|
4
4
|
*/
|
|
5
5
|
export type MerkleRedeem_Claim = {
|
|
6
|
-
|
|
6
|
+
week: bigint;
|
|
7
7
|
balance: bigint;
|
|
8
|
-
|
|
8
|
+
merkleProof: `0x${string}`[];
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* MerkleRedeem_json ABI
|
|
@@ -15,15 +15,7 @@ export type MerkleRedeem_Claim = {
|
|
|
15
15
|
export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
16
16
|
readonly inputs: readonly [{
|
|
17
17
|
readonly internalType: "address";
|
|
18
|
-
readonly name: "
|
|
19
|
-
readonly type: "address";
|
|
20
|
-
}, {
|
|
21
|
-
readonly internalType: "contract IERC20";
|
|
22
|
-
readonly name: "_rewardsToken";
|
|
23
|
-
readonly type: "address";
|
|
24
|
-
}, {
|
|
25
|
-
readonly internalType: "address";
|
|
26
|
-
readonly name: "_emergencyRecipient";
|
|
18
|
+
readonly name: "_token";
|
|
27
19
|
readonly type: "address";
|
|
28
20
|
}];
|
|
29
21
|
readonly stateMutability: "nonpayable";
|
|
@@ -31,14 +23,14 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
31
23
|
}, {
|
|
32
24
|
readonly anonymous: false;
|
|
33
25
|
readonly inputs: readonly [{
|
|
34
|
-
readonly indexed:
|
|
26
|
+
readonly indexed: false;
|
|
35
27
|
readonly internalType: "address";
|
|
36
|
-
readonly name: "
|
|
28
|
+
readonly name: "_claimant";
|
|
37
29
|
readonly type: "address";
|
|
38
30
|
}, {
|
|
39
31
|
readonly indexed: false;
|
|
40
32
|
readonly internalType: "uint256";
|
|
41
|
-
readonly name: "
|
|
33
|
+
readonly name: "_balance";
|
|
42
34
|
readonly type: "uint256";
|
|
43
35
|
}];
|
|
44
36
|
readonly name: "Claimed";
|
|
@@ -48,7 +40,7 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
48
40
|
readonly inputs: readonly [{
|
|
49
41
|
readonly indexed: true;
|
|
50
42
|
readonly internalType: "address";
|
|
51
|
-
readonly name: "
|
|
43
|
+
readonly name: "previousOwner";
|
|
52
44
|
readonly type: "address";
|
|
53
45
|
}, {
|
|
54
46
|
readonly indexed: true;
|
|
@@ -56,55 +48,61 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
56
48
|
readonly name: "newOwner";
|
|
57
49
|
readonly type: "address";
|
|
58
50
|
}];
|
|
59
|
-
readonly name: "
|
|
51
|
+
readonly name: "OwnershipTransferred";
|
|
60
52
|
readonly type: "event";
|
|
61
53
|
}, {
|
|
62
|
-
readonly anonymous: false;
|
|
63
54
|
readonly inputs: readonly [{
|
|
64
|
-
readonly indexed: true;
|
|
65
55
|
readonly internalType: "address";
|
|
66
|
-
readonly name: "
|
|
56
|
+
readonly name: "_liquidityProvider";
|
|
67
57
|
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly internalType: "uint256";
|
|
60
|
+
readonly name: "_begin";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
}, {
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "_end";
|
|
65
|
+
readonly type: "uint256";
|
|
68
66
|
}];
|
|
69
|
-
readonly name: "
|
|
70
|
-
readonly
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
readonly stateMutability: "
|
|
67
|
+
readonly name: "claimStatus";
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly internalType: "bool[]";
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "bool[]";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
76
74
|
readonly type: "function";
|
|
77
75
|
}, {
|
|
78
76
|
readonly inputs: readonly [{
|
|
79
77
|
readonly internalType: "address";
|
|
80
|
-
readonly name: "
|
|
78
|
+
readonly name: "_liquidityProvider";
|
|
81
79
|
readonly type: "address";
|
|
82
80
|
}, {
|
|
83
81
|
readonly internalType: "uint256";
|
|
84
|
-
readonly name: "
|
|
82
|
+
readonly name: "_week";
|
|
85
83
|
readonly type: "uint256";
|
|
86
84
|
}, {
|
|
87
85
|
readonly internalType: "uint256";
|
|
88
|
-
readonly name: "
|
|
86
|
+
readonly name: "_claimedBalance";
|
|
89
87
|
readonly type: "uint256";
|
|
90
88
|
}, {
|
|
91
89
|
readonly internalType: "bytes32[]";
|
|
92
|
-
readonly name: "
|
|
90
|
+
readonly name: "_merkleProof";
|
|
93
91
|
readonly type: "bytes32[]";
|
|
94
92
|
}];
|
|
95
|
-
readonly name: "
|
|
93
|
+
readonly name: "claimWeek";
|
|
96
94
|
readonly outputs: readonly [];
|
|
97
95
|
readonly stateMutability: "nonpayable";
|
|
98
96
|
readonly type: "function";
|
|
99
97
|
}, {
|
|
100
98
|
readonly inputs: readonly [{
|
|
101
99
|
readonly internalType: "address";
|
|
102
|
-
readonly name: "
|
|
100
|
+
readonly name: "_liquidityProvider";
|
|
103
101
|
readonly type: "address";
|
|
104
102
|
}, {
|
|
105
103
|
readonly components: readonly [{
|
|
106
104
|
readonly internalType: "uint256";
|
|
107
|
-
readonly name: "
|
|
105
|
+
readonly name: "week";
|
|
108
106
|
readonly type: "uint256";
|
|
109
107
|
}, {
|
|
110
108
|
readonly internalType: "uint256";
|
|
@@ -112,39 +110,17 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
112
110
|
readonly type: "uint256";
|
|
113
111
|
}, {
|
|
114
112
|
readonly internalType: "bytes32[]";
|
|
115
|
-
readonly name: "
|
|
113
|
+
readonly name: "merkleProof";
|
|
116
114
|
readonly type: "bytes32[]";
|
|
117
115
|
}];
|
|
118
116
|
readonly internalType: "struct MerkleRedeem.Claim[]";
|
|
119
117
|
readonly name: "claims";
|
|
120
118
|
readonly type: "tuple[]";
|
|
121
119
|
}];
|
|
122
|
-
readonly name: "
|
|
120
|
+
readonly name: "claimWeeks";
|
|
123
121
|
readonly outputs: readonly [];
|
|
124
122
|
readonly stateMutability: "nonpayable";
|
|
125
123
|
readonly type: "function";
|
|
126
|
-
}, {
|
|
127
|
-
readonly inputs: readonly [{
|
|
128
|
-
readonly internalType: "address";
|
|
129
|
-
readonly name: "recipient";
|
|
130
|
-
readonly type: "address";
|
|
131
|
-
}, {
|
|
132
|
-
readonly internalType: "uint256";
|
|
133
|
-
readonly name: "begin";
|
|
134
|
-
readonly type: "uint256";
|
|
135
|
-
}, {
|
|
136
|
-
readonly internalType: "uint256";
|
|
137
|
-
readonly name: "end";
|
|
138
|
-
readonly type: "uint256";
|
|
139
|
-
}];
|
|
140
|
-
readonly name: "claimStatus";
|
|
141
|
-
readonly outputs: readonly [{
|
|
142
|
-
readonly internalType: "bool[]";
|
|
143
|
-
readonly name: "";
|
|
144
|
-
readonly type: "bool[]";
|
|
145
|
-
}];
|
|
146
|
-
readonly stateMutability: "view";
|
|
147
|
-
readonly type: "function";
|
|
148
124
|
}, {
|
|
149
125
|
readonly inputs: readonly [{
|
|
150
126
|
readonly internalType: "uint256";
|
|
@@ -163,34 +139,14 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
163
139
|
}];
|
|
164
140
|
readonly stateMutability: "view";
|
|
165
141
|
readonly type: "function";
|
|
166
|
-
}, {
|
|
167
|
-
readonly inputs: readonly [];
|
|
168
|
-
readonly name: "emergencyRecipient";
|
|
169
|
-
readonly outputs: readonly [{
|
|
170
|
-
readonly internalType: "address";
|
|
171
|
-
readonly name: "";
|
|
172
|
-
readonly type: "address";
|
|
173
|
-
}];
|
|
174
|
-
readonly stateMutability: "view";
|
|
175
|
-
readonly type: "function";
|
|
176
|
-
}, {
|
|
177
|
-
readonly inputs: readonly [{
|
|
178
|
-
readonly internalType: "contract IERC20";
|
|
179
|
-
readonly name: "token";
|
|
180
|
-
readonly type: "address";
|
|
181
|
-
}];
|
|
182
|
-
readonly name: "emergencyWithdraw";
|
|
183
|
-
readonly outputs: readonly [];
|
|
184
|
-
readonly stateMutability: "nonpayable";
|
|
185
|
-
readonly type: "function";
|
|
186
142
|
}, {
|
|
187
143
|
readonly inputs: readonly [{
|
|
188
144
|
readonly internalType: "uint256";
|
|
189
|
-
readonly name: "
|
|
145
|
+
readonly name: "_begin";
|
|
190
146
|
readonly type: "uint256";
|
|
191
147
|
}, {
|
|
192
148
|
readonly internalType: "uint256";
|
|
193
|
-
readonly name: "
|
|
149
|
+
readonly name: "_end";
|
|
194
150
|
readonly type: "uint256";
|
|
195
151
|
}];
|
|
196
152
|
readonly name: "merkleRoots";
|
|
@@ -201,19 +157,9 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
201
157
|
}];
|
|
202
158
|
readonly stateMutability: "view";
|
|
203
159
|
readonly type: "function";
|
|
204
|
-
}, {
|
|
205
|
-
readonly inputs: readonly [{
|
|
206
|
-
readonly internalType: "address";
|
|
207
|
-
readonly name: "newOwner";
|
|
208
|
-
readonly type: "address";
|
|
209
|
-
}];
|
|
210
|
-
readonly name: "nominateNewOwner";
|
|
211
|
-
readonly outputs: readonly [];
|
|
212
|
-
readonly stateMutability: "nonpayable";
|
|
213
|
-
readonly type: "function";
|
|
214
160
|
}, {
|
|
215
161
|
readonly inputs: readonly [];
|
|
216
|
-
readonly name: "
|
|
162
|
+
readonly name: "owner";
|
|
217
163
|
readonly outputs: readonly [{
|
|
218
164
|
readonly internalType: "address";
|
|
219
165
|
readonly name: "";
|
|
@@ -223,37 +169,31 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
223
169
|
readonly type: "function";
|
|
224
170
|
}, {
|
|
225
171
|
readonly inputs: readonly [];
|
|
226
|
-
readonly name: "
|
|
227
|
-
readonly outputs: readonly [
|
|
228
|
-
|
|
229
|
-
readonly name: "";
|
|
230
|
-
readonly type: "address";
|
|
231
|
-
}];
|
|
232
|
-
readonly stateMutability: "view";
|
|
172
|
+
readonly name: "renounceOwnership";
|
|
173
|
+
readonly outputs: readonly [];
|
|
174
|
+
readonly stateMutability: "nonpayable";
|
|
233
175
|
readonly type: "function";
|
|
234
176
|
}, {
|
|
235
177
|
readonly inputs: readonly [{
|
|
236
178
|
readonly internalType: "uint256";
|
|
237
|
-
readonly name: "";
|
|
179
|
+
readonly name: "_week";
|
|
238
180
|
readonly type: "uint256";
|
|
239
|
-
}
|
|
240
|
-
readonly name: "periodMerkleRoots";
|
|
241
|
-
readonly outputs: readonly [{
|
|
181
|
+
}, {
|
|
242
182
|
readonly internalType: "bytes32";
|
|
243
|
-
readonly name: "";
|
|
183
|
+
readonly name: "_merkleRoot";
|
|
244
184
|
readonly type: "bytes32";
|
|
185
|
+
}, {
|
|
186
|
+
readonly internalType: "uint256";
|
|
187
|
+
readonly name: "_totalAllocation";
|
|
188
|
+
readonly type: "uint256";
|
|
245
189
|
}];
|
|
246
|
-
readonly
|
|
247
|
-
readonly type: "function";
|
|
248
|
-
}, {
|
|
249
|
-
readonly inputs: readonly [];
|
|
250
|
-
readonly name: "renounceOwnership";
|
|
190
|
+
readonly name: "seedAllocations";
|
|
251
191
|
readonly outputs: readonly [];
|
|
252
192
|
readonly stateMutability: "nonpayable";
|
|
253
193
|
readonly type: "function";
|
|
254
194
|
}, {
|
|
255
195
|
readonly inputs: readonly [];
|
|
256
|
-
readonly name: "
|
|
196
|
+
readonly name: "token";
|
|
257
197
|
readonly outputs: readonly [{
|
|
258
198
|
readonly internalType: "contract IERC20";
|
|
259
199
|
readonly name: "";
|
|
@@ -263,48 +203,54 @@ export declare const MerkleRedeem_jsonAbi: readonly [{
|
|
|
263
203
|
readonly type: "function";
|
|
264
204
|
}, {
|
|
265
205
|
readonly inputs: readonly [{
|
|
266
|
-
readonly internalType: "
|
|
267
|
-
readonly name: "
|
|
268
|
-
readonly type: "
|
|
269
|
-
}, {
|
|
270
|
-
readonly internalType: "bytes32";
|
|
271
|
-
readonly name: "merkleRoot";
|
|
272
|
-
readonly type: "bytes32";
|
|
273
|
-
}, {
|
|
274
|
-
readonly internalType: "uint256";
|
|
275
|
-
readonly name: "totalAllocation";
|
|
276
|
-
readonly type: "uint256";
|
|
206
|
+
readonly internalType: "address";
|
|
207
|
+
readonly name: "newOwner";
|
|
208
|
+
readonly type: "address";
|
|
277
209
|
}];
|
|
278
|
-
readonly name: "
|
|
210
|
+
readonly name: "transferOwnership";
|
|
279
211
|
readonly outputs: readonly [];
|
|
280
212
|
readonly stateMutability: "nonpayable";
|
|
281
213
|
readonly type: "function";
|
|
282
214
|
}, {
|
|
283
215
|
readonly inputs: readonly [{
|
|
284
216
|
readonly internalType: "address";
|
|
285
|
-
readonly name: "
|
|
217
|
+
readonly name: "_liquidityProvider";
|
|
286
218
|
readonly type: "address";
|
|
287
219
|
}, {
|
|
288
220
|
readonly internalType: "uint256";
|
|
289
|
-
readonly name: "
|
|
221
|
+
readonly name: "_week";
|
|
290
222
|
readonly type: "uint256";
|
|
291
223
|
}, {
|
|
292
224
|
readonly internalType: "uint256";
|
|
293
|
-
readonly name: "
|
|
225
|
+
readonly name: "_claimedBalance";
|
|
294
226
|
readonly type: "uint256";
|
|
295
227
|
}, {
|
|
296
228
|
readonly internalType: "bytes32[]";
|
|
297
|
-
readonly name: "
|
|
229
|
+
readonly name: "_merkleProof";
|
|
298
230
|
readonly type: "bytes32[]";
|
|
299
231
|
}];
|
|
300
232
|
readonly name: "verifyClaim";
|
|
301
233
|
readonly outputs: readonly [{
|
|
302
234
|
readonly internalType: "bool";
|
|
303
|
-
readonly name: "";
|
|
235
|
+
readonly name: "valid";
|
|
304
236
|
readonly type: "bool";
|
|
305
237
|
}];
|
|
306
238
|
readonly stateMutability: "view";
|
|
307
239
|
readonly type: "function";
|
|
240
|
+
}, {
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly internalType: "uint256";
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "uint256";
|
|
245
|
+
}];
|
|
246
|
+
readonly name: "weekMerkleRoots";
|
|
247
|
+
readonly outputs: readonly [{
|
|
248
|
+
readonly internalType: "bytes32";
|
|
249
|
+
readonly name: "";
|
|
250
|
+
readonly type: "bytes32";
|
|
251
|
+
}];
|
|
252
|
+
readonly stateMutability: "view";
|
|
253
|
+
readonly type: "function";
|
|
308
254
|
}];
|
|
309
255
|
/**
|
|
310
256
|
* Type-safe ABI for MerkleRedeem_json
|
|
@@ -366,87 +312,43 @@ export declare class MerkleRedeem_json {
|
|
|
366
312
|
* claimStatus
|
|
367
313
|
* view
|
|
368
314
|
*/
|
|
369
|
-
claimStatus(
|
|
315
|
+
claimStatus(_liquidityProvider: `0x${string}`, _begin: bigint, _end: bigint): Promise<boolean[]>;
|
|
370
316
|
/**
|
|
371
317
|
* claimed
|
|
372
318
|
* view
|
|
373
319
|
*/
|
|
374
320
|
claimed(arg0: bigint, arg1: `0x${string}`): Promise<boolean>;
|
|
375
|
-
/**
|
|
376
|
-
* emergencyRecipient
|
|
377
|
-
* view
|
|
378
|
-
*/
|
|
379
|
-
emergencyRecipient(): Promise<`0x${string}`>;
|
|
380
321
|
/**
|
|
381
322
|
* merkleRoots
|
|
382
323
|
* view
|
|
383
324
|
*/
|
|
384
|
-
merkleRoots(
|
|
385
|
-
/**
|
|
386
|
-
* nominatedOwner
|
|
387
|
-
* view
|
|
388
|
-
*/
|
|
389
|
-
nominatedOwner(): Promise<`0x${string}`>;
|
|
325
|
+
merkleRoots(_begin: bigint, _end: bigint): Promise<`0x${string}`[]>;
|
|
390
326
|
/**
|
|
391
327
|
* owner
|
|
392
328
|
* view
|
|
393
329
|
*/
|
|
394
330
|
owner(): Promise<`0x${string}`>;
|
|
395
331
|
/**
|
|
396
|
-
*
|
|
397
|
-
* view
|
|
398
|
-
*/
|
|
399
|
-
periodMerkleRoots(arg0: bigint): Promise<`0x${string}`>;
|
|
400
|
-
/**
|
|
401
|
-
* rewardsToken
|
|
332
|
+
* token
|
|
402
333
|
* view
|
|
403
334
|
*/
|
|
404
|
-
|
|
335
|
+
token(): Promise<`0x${string}`>;
|
|
405
336
|
/**
|
|
406
337
|
* verifyClaim
|
|
407
338
|
* view
|
|
408
339
|
*/
|
|
409
|
-
verifyClaim(
|
|
410
|
-
/**
|
|
411
|
-
* acceptOwnership
|
|
412
|
-
* nonpayable
|
|
413
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
414
|
-
*/
|
|
415
|
-
acceptOwnership(options?: {
|
|
416
|
-
accessList?: import('viem').AccessList;
|
|
417
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
418
|
-
chain?: import('viem').Chain | null;
|
|
419
|
-
dataSuffix?: `0x${string}`;
|
|
420
|
-
gas?: bigint;
|
|
421
|
-
gasPrice?: bigint;
|
|
422
|
-
maxFeePerGas?: bigint;
|
|
423
|
-
maxPriorityFeePerGas?: bigint;
|
|
424
|
-
nonce?: number;
|
|
425
|
-
value?: bigint;
|
|
426
|
-
}): Promise<`0x${string}`>;
|
|
340
|
+
verifyClaim(_liquidityProvider: `0x${string}`, _week: bigint, _claimedBalance: bigint, _merkleProof: `0x${string}`[]): Promise<boolean>;
|
|
427
341
|
/**
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
342
|
+
* weekMerkleRoots
|
|
343
|
+
* view
|
|
431
344
|
*/
|
|
432
|
-
|
|
433
|
-
accessList?: import('viem').AccessList;
|
|
434
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
435
|
-
chain?: import('viem').Chain | null;
|
|
436
|
-
dataSuffix?: `0x${string}`;
|
|
437
|
-
gas?: bigint;
|
|
438
|
-
gasPrice?: bigint;
|
|
439
|
-
maxFeePerGas?: bigint;
|
|
440
|
-
maxPriorityFeePerGas?: bigint;
|
|
441
|
-
nonce?: number;
|
|
442
|
-
value?: bigint;
|
|
443
|
-
}): Promise<`0x${string}`>;
|
|
345
|
+
weekMerkleRoots(arg0: bigint): Promise<`0x${string}`>;
|
|
444
346
|
/**
|
|
445
|
-
*
|
|
347
|
+
* claimWeek
|
|
446
348
|
* nonpayable
|
|
447
349
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
448
350
|
*/
|
|
449
|
-
|
|
351
|
+
claimWeek(_liquidityProvider: `0x${string}`, _week: bigint, _claimedBalance: bigint, _merkleProof: `0x${string}`[], options?: {
|
|
450
352
|
accessList?: import('viem').AccessList;
|
|
451
353
|
authorizationList?: import('viem').AuthorizationList;
|
|
452
354
|
chain?: import('viem').Chain | null;
|
|
@@ -459,11 +361,11 @@ export declare class MerkleRedeem_json {
|
|
|
459
361
|
value?: bigint;
|
|
460
362
|
}): Promise<`0x${string}`>;
|
|
461
363
|
/**
|
|
462
|
-
*
|
|
364
|
+
* claimWeeks
|
|
463
365
|
* nonpayable
|
|
464
366
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
465
367
|
*/
|
|
466
|
-
|
|
368
|
+
claimWeeks(_liquidityProvider: `0x${string}`, claims: MerkleRedeem_Claim[], options?: {
|
|
467
369
|
accessList?: import('viem').AccessList;
|
|
468
370
|
authorizationList?: import('viem').AuthorizationList;
|
|
469
371
|
chain?: import('viem').Chain | null;
|
|
@@ -476,11 +378,11 @@ export declare class MerkleRedeem_json {
|
|
|
476
378
|
value?: bigint;
|
|
477
379
|
}): Promise<`0x${string}`>;
|
|
478
380
|
/**
|
|
479
|
-
*
|
|
381
|
+
* renounceOwnership
|
|
480
382
|
* nonpayable
|
|
481
383
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
482
384
|
*/
|
|
483
|
-
|
|
385
|
+
renounceOwnership(options?: {
|
|
484
386
|
accessList?: import('viem').AccessList;
|
|
485
387
|
authorizationList?: import('viem').AuthorizationList;
|
|
486
388
|
chain?: import('viem').Chain | null;
|
|
@@ -493,11 +395,11 @@ export declare class MerkleRedeem_json {
|
|
|
493
395
|
value?: bigint;
|
|
494
396
|
}): Promise<`0x${string}`>;
|
|
495
397
|
/**
|
|
496
|
-
*
|
|
398
|
+
* seedAllocations
|
|
497
399
|
* nonpayable
|
|
498
400
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
499
401
|
*/
|
|
500
|
-
|
|
402
|
+
seedAllocations(_week: bigint, _merkleRoot: `0x${string}`, _totalAllocation: bigint, options?: {
|
|
501
403
|
accessList?: import('viem').AccessList;
|
|
502
404
|
authorizationList?: import('viem').AuthorizationList;
|
|
503
405
|
chain?: import('viem').Chain | null;
|
|
@@ -510,11 +412,11 @@ export declare class MerkleRedeem_json {
|
|
|
510
412
|
value?: bigint;
|
|
511
413
|
}): Promise<`0x${string}`>;
|
|
512
414
|
/**
|
|
513
|
-
*
|
|
415
|
+
* transferOwnership
|
|
514
416
|
* nonpayable
|
|
515
417
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
516
418
|
*/
|
|
517
|
-
|
|
419
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
518
420
|
accessList?: import('viem').AccessList;
|
|
519
421
|
authorizationList?: import('viem').AuthorizationList;
|
|
520
422
|
chain?: import('viem').Chain | null;
|
|
@@ -536,45 +438,11 @@ export declare class MerkleRedeem_json {
|
|
|
536
438
|
*/
|
|
537
439
|
get simulate(): {
|
|
538
440
|
/**
|
|
539
|
-
* Simulate
|
|
540
|
-
* Returns gas estimate and result without sending transaction
|
|
541
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
542
|
-
*/
|
|
543
|
-
acceptOwnership(options?: {
|
|
544
|
-
accessList?: import("viem").AccessList;
|
|
545
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
546
|
-
chain?: import("viem").Chain | null;
|
|
547
|
-
dataSuffix?: `0x${string}`;
|
|
548
|
-
gas?: bigint;
|
|
549
|
-
gasPrice?: bigint;
|
|
550
|
-
maxFeePerGas?: bigint;
|
|
551
|
-
maxPriorityFeePerGas?: bigint;
|
|
552
|
-
nonce?: number;
|
|
553
|
-
value?: bigint;
|
|
554
|
-
}): Promise<void>;
|
|
555
|
-
/**
|
|
556
|
-
* Simulate claimPeriod
|
|
557
|
-
* Returns gas estimate and result without sending transaction
|
|
558
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
559
|
-
*/
|
|
560
|
-
claimPeriod(recipient: `0x${string}`, period: bigint, balance: bigint, proof: `0x${string}`[], options?: {
|
|
561
|
-
accessList?: import("viem").AccessList;
|
|
562
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
563
|
-
chain?: import("viem").Chain | null;
|
|
564
|
-
dataSuffix?: `0x${string}`;
|
|
565
|
-
gas?: bigint;
|
|
566
|
-
gasPrice?: bigint;
|
|
567
|
-
maxFeePerGas?: bigint;
|
|
568
|
-
maxPriorityFeePerGas?: bigint;
|
|
569
|
-
nonce?: number;
|
|
570
|
-
value?: bigint;
|
|
571
|
-
}): Promise<void>;
|
|
572
|
-
/**
|
|
573
|
-
* Simulate claimPeriods
|
|
441
|
+
* Simulate claimWeek
|
|
574
442
|
* Returns gas estimate and result without sending transaction
|
|
575
443
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
576
444
|
*/
|
|
577
|
-
|
|
445
|
+
claimWeek(_liquidityProvider: `0x${string}`, _week: bigint, _claimedBalance: bigint, _merkleProof: `0x${string}`[], options?: {
|
|
578
446
|
accessList?: import("viem").AccessList;
|
|
579
447
|
authorizationList?: import("viem").AuthorizationList;
|
|
580
448
|
chain?: import("viem").Chain | null;
|
|
@@ -587,11 +455,11 @@ export declare class MerkleRedeem_json {
|
|
|
587
455
|
value?: bigint;
|
|
588
456
|
}): Promise<void>;
|
|
589
457
|
/**
|
|
590
|
-
* Simulate
|
|
458
|
+
* Simulate claimWeeks
|
|
591
459
|
* Returns gas estimate and result without sending transaction
|
|
592
460
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
593
461
|
*/
|
|
594
|
-
|
|
462
|
+
claimWeeks(_liquidityProvider: `0x${string}`, claims: MerkleRedeem_Claim[], options?: {
|
|
595
463
|
accessList?: import("viem").AccessList;
|
|
596
464
|
authorizationList?: import("viem").AuthorizationList;
|
|
597
465
|
chain?: import("viem").Chain | null;
|
|
@@ -604,11 +472,11 @@ export declare class MerkleRedeem_json {
|
|
|
604
472
|
value?: bigint;
|
|
605
473
|
}): Promise<void>;
|
|
606
474
|
/**
|
|
607
|
-
* Simulate
|
|
475
|
+
* Simulate renounceOwnership
|
|
608
476
|
* Returns gas estimate and result without sending transaction
|
|
609
477
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
610
478
|
*/
|
|
611
|
-
|
|
479
|
+
renounceOwnership(options?: {
|
|
612
480
|
accessList?: import("viem").AccessList;
|
|
613
481
|
authorizationList?: import("viem").AuthorizationList;
|
|
614
482
|
chain?: import("viem").Chain | null;
|
|
@@ -621,11 +489,11 @@ export declare class MerkleRedeem_json {
|
|
|
621
489
|
value?: bigint;
|
|
622
490
|
}): Promise<void>;
|
|
623
491
|
/**
|
|
624
|
-
* Simulate
|
|
492
|
+
* Simulate seedAllocations
|
|
625
493
|
* Returns gas estimate and result without sending transaction
|
|
626
494
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
627
495
|
*/
|
|
628
|
-
|
|
496
|
+
seedAllocations(_week: bigint, _merkleRoot: `0x${string}`, _totalAllocation: bigint, options?: {
|
|
629
497
|
accessList?: import("viem").AccessList;
|
|
630
498
|
authorizationList?: import("viem").AuthorizationList;
|
|
631
499
|
chain?: import("viem").Chain | null;
|
|
@@ -638,11 +506,11 @@ export declare class MerkleRedeem_json {
|
|
|
638
506
|
value?: bigint;
|
|
639
507
|
}): Promise<void>;
|
|
640
508
|
/**
|
|
641
|
-
* Simulate
|
|
509
|
+
* Simulate transferOwnership
|
|
642
510
|
* Returns gas estimate and result without sending transaction
|
|
643
511
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
644
512
|
*/
|
|
645
|
-
|
|
513
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
646
514
|
accessList?: import("viem").AccessList;
|
|
647
515
|
authorizationList?: import("viem").AuthorizationList;
|
|
648
516
|
chain?: import("viem").Chain | null;
|
|
@@ -675,33 +543,20 @@ export declare class MerkleRedeem_json {
|
|
|
675
543
|
* @returns Unwatch function to stop listening
|
|
676
544
|
*/
|
|
677
545
|
Claimed: (callback: (event: {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
}) => void
|
|
681
|
-
recipient: `0x${string}`;
|
|
682
|
-
}) => () => void;
|
|
683
|
-
/**
|
|
684
|
-
* Watch OwnerChanged events
|
|
685
|
-
* @param callback Function to call when event is emitted
|
|
686
|
-
* @param filter Optional filter for indexed parameters
|
|
687
|
-
* @returns Unwatch function to stop listening
|
|
688
|
-
*/
|
|
689
|
-
OwnerChanged: (callback: (event: {
|
|
690
|
-
oldOwner: `0x${string}`;
|
|
691
|
-
newOwner: `0x${string}`;
|
|
692
|
-
}) => void, filter?: {
|
|
693
|
-
oldOwner: `0x${string}`;
|
|
694
|
-
newOwner: `0x${string}`;
|
|
695
|
-
}) => () => void;
|
|
546
|
+
_claimant: `0x${string}`;
|
|
547
|
+
_balance: bigint;
|
|
548
|
+
}) => void) => () => void;
|
|
696
549
|
/**
|
|
697
|
-
* Watch
|
|
550
|
+
* Watch OwnershipTransferred events
|
|
698
551
|
* @param callback Function to call when event is emitted
|
|
699
552
|
* @param filter Optional filter for indexed parameters
|
|
700
553
|
* @returns Unwatch function to stop listening
|
|
701
554
|
*/
|
|
702
|
-
|
|
555
|
+
OwnershipTransferred: (callback: (event: {
|
|
556
|
+
previousOwner: `0x${string}`;
|
|
703
557
|
newOwner: `0x${string}`;
|
|
704
558
|
}) => void, filter?: {
|
|
559
|
+
previousOwner: `0x${string}`;
|
|
705
560
|
newOwner: `0x${string}`;
|
|
706
561
|
}) => () => void;
|
|
707
562
|
};
|