@gitmyabi/stakingmanager 1.0.5 → 1.0.6
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/TransparentUpgradeableProxy_json.d.ts +230 -2
- package/contracts/TransparentUpgradeableProxy_json.js +175 -3
- package/contracts/TransparentUpgradeableProxy_json.ts +289 -3
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/contracts/{stakingManagerV4_json.d.ts → stakingManager_json.d.ts} +245 -141
- package/contracts/{stakingManagerV4_json.js → stakingManager_json.js} +213 -182
- package/contracts/{stakingManagerV4_json.ts → stakingManager_json.ts} +309 -188
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* stakingManager_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const stakingManager_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [];
|
|
9
9
|
readonly stateMutability: "nonpayable";
|
|
10
10
|
readonly type: "constructor";
|
|
@@ -63,46 +63,6 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
63
63
|
}];
|
|
64
64
|
readonly name: "OwnershipTransferred";
|
|
65
65
|
readonly type: "event";
|
|
66
|
-
}, {
|
|
67
|
-
readonly anonymous: false;
|
|
68
|
-
readonly inputs: readonly [{
|
|
69
|
-
readonly indexed: true;
|
|
70
|
-
readonly internalType: "address";
|
|
71
|
-
readonly name: "user";
|
|
72
|
-
readonly type: "address";
|
|
73
|
-
}, {
|
|
74
|
-
readonly indexed: false;
|
|
75
|
-
readonly internalType: "uint256";
|
|
76
|
-
readonly name: "amount";
|
|
77
|
-
readonly type: "uint256";
|
|
78
|
-
}, {
|
|
79
|
-
readonly indexed: false;
|
|
80
|
-
readonly internalType: "uint256";
|
|
81
|
-
readonly name: "timestamp";
|
|
82
|
-
readonly type: "uint256";
|
|
83
|
-
}];
|
|
84
|
-
readonly name: "RestakePrincipal";
|
|
85
|
-
readonly type: "event";
|
|
86
|
-
}, {
|
|
87
|
-
readonly anonymous: false;
|
|
88
|
-
readonly inputs: readonly [{
|
|
89
|
-
readonly indexed: true;
|
|
90
|
-
readonly internalType: "address";
|
|
91
|
-
readonly name: "user";
|
|
92
|
-
readonly type: "address";
|
|
93
|
-
}, {
|
|
94
|
-
readonly indexed: false;
|
|
95
|
-
readonly internalType: "uint256";
|
|
96
|
-
readonly name: "amount";
|
|
97
|
-
readonly type: "uint256";
|
|
98
|
-
}, {
|
|
99
|
-
readonly indexed: false;
|
|
100
|
-
readonly internalType: "uint256";
|
|
101
|
-
readonly name: "timestamp";
|
|
102
|
-
readonly type: "uint256";
|
|
103
|
-
}];
|
|
104
|
-
readonly name: "RestakeRewards";
|
|
105
|
-
readonly type: "event";
|
|
106
66
|
}, {
|
|
107
67
|
readonly anonymous: false;
|
|
108
68
|
readonly inputs: readonly [{
|
|
@@ -118,16 +78,6 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
118
78
|
}];
|
|
119
79
|
readonly name: "Withdraw";
|
|
120
80
|
readonly type: "event";
|
|
121
|
-
}, {
|
|
122
|
-
readonly inputs: readonly [];
|
|
123
|
-
readonly name: "DEV_WALLET";
|
|
124
|
-
readonly outputs: readonly [{
|
|
125
|
-
readonly internalType: "address";
|
|
126
|
-
readonly name: "";
|
|
127
|
-
readonly type: "address";
|
|
128
|
-
}];
|
|
129
|
-
readonly stateMutability: "view";
|
|
130
|
-
readonly type: "function";
|
|
131
81
|
}, {
|
|
132
82
|
readonly inputs: readonly [{
|
|
133
83
|
readonly internalType: "address[]";
|
|
@@ -148,6 +98,30 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
148
98
|
}];
|
|
149
99
|
readonly stateMutability: "view";
|
|
150
100
|
readonly type: "function";
|
|
101
|
+
}, {
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly name: "_amount";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
readonly name: "deposit";
|
|
108
|
+
readonly outputs: readonly [];
|
|
109
|
+
readonly stateMutability: "nonpayable";
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly name: "_user";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
readonly name: "_amount";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
}];
|
|
121
|
+
readonly name: "depositByPresale";
|
|
122
|
+
readonly outputs: readonly [];
|
|
123
|
+
readonly stateMutability: "nonpayable";
|
|
124
|
+
readonly type: "function";
|
|
151
125
|
}, {
|
|
152
126
|
readonly inputs: readonly [];
|
|
153
127
|
readonly name: "endBlock";
|
|
@@ -188,6 +162,32 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
188
162
|
readonly outputs: readonly [];
|
|
189
163
|
readonly stateMutability: "nonpayable";
|
|
190
164
|
readonly type: "function";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly name: "_rewardTokenAddress";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
}, {
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
readonly name: "_presale";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
readonly name: "_rewardTokensPerBlock";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
readonly name: "_lockTime";
|
|
181
|
+
readonly type: "uint256";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "_endBlock";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly name: "initialize";
|
|
188
|
+
readonly outputs: readonly [];
|
|
189
|
+
readonly stateMutability: "nonpayable";
|
|
190
|
+
readonly type: "function";
|
|
191
191
|
}, {
|
|
192
192
|
readonly inputs: readonly [{
|
|
193
193
|
readonly internalType: "address";
|
|
@@ -212,16 +212,6 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
212
212
|
}];
|
|
213
213
|
readonly stateMutability: "view";
|
|
214
214
|
readonly type: "function";
|
|
215
|
-
}, {
|
|
216
|
-
readonly inputs: readonly [];
|
|
217
|
-
readonly name: "newStaking";
|
|
218
|
-
readonly outputs: readonly [{
|
|
219
|
-
readonly internalType: "contract INewStaking";
|
|
220
|
-
readonly name: "";
|
|
221
|
-
readonly type: "address";
|
|
222
|
-
}];
|
|
223
|
-
readonly stateMutability: "view";
|
|
224
|
-
readonly type: "function";
|
|
225
215
|
}, {
|
|
226
216
|
readonly inputs: readonly [];
|
|
227
217
|
readonly name: "owner";
|
|
@@ -288,12 +278,6 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
288
278
|
readonly outputs: readonly [];
|
|
289
279
|
readonly stateMutability: "nonpayable";
|
|
290
280
|
readonly type: "function";
|
|
291
|
-
}, {
|
|
292
|
-
readonly inputs: readonly [];
|
|
293
|
-
readonly name: "restakeNew";
|
|
294
|
-
readonly outputs: readonly [];
|
|
295
|
-
readonly stateMutability: "nonpayable";
|
|
296
|
-
readonly type: "function";
|
|
297
281
|
}, {
|
|
298
282
|
readonly inputs: readonly [];
|
|
299
283
|
readonly name: "rewardTokensPerBlock";
|
|
@@ -304,6 +288,16 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
304
288
|
}];
|
|
305
289
|
readonly stateMutability: "view";
|
|
306
290
|
readonly type: "function";
|
|
291
|
+
}, {
|
|
292
|
+
readonly inputs: readonly [{
|
|
293
|
+
readonly internalType: "uint256";
|
|
294
|
+
readonly name: "_claimStart";
|
|
295
|
+
readonly type: "uint256";
|
|
296
|
+
}];
|
|
297
|
+
readonly name: "setClaimStart";
|
|
298
|
+
readonly outputs: readonly [];
|
|
299
|
+
readonly stateMutability: "nonpayable";
|
|
300
|
+
readonly type: "function";
|
|
307
301
|
}, {
|
|
308
302
|
readonly inputs: readonly [{
|
|
309
303
|
readonly internalType: "uint256";
|
|
@@ -314,13 +308,33 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
314
308
|
readonly outputs: readonly [];
|
|
315
309
|
readonly stateMutability: "nonpayable";
|
|
316
310
|
readonly type: "function";
|
|
311
|
+
}, {
|
|
312
|
+
readonly inputs: readonly [{
|
|
313
|
+
readonly internalType: "bool";
|
|
314
|
+
readonly name: "_harvestlock";
|
|
315
|
+
readonly type: "bool";
|
|
316
|
+
}];
|
|
317
|
+
readonly name: "setHarvestLock";
|
|
318
|
+
readonly outputs: readonly [];
|
|
319
|
+
readonly stateMutability: "nonpayable";
|
|
320
|
+
readonly type: "function";
|
|
321
|
+
}, {
|
|
322
|
+
readonly inputs: readonly [{
|
|
323
|
+
readonly internalType: "uint256";
|
|
324
|
+
readonly name: "_time";
|
|
325
|
+
readonly type: "uint256";
|
|
326
|
+
}];
|
|
327
|
+
readonly name: "setLockedTime";
|
|
328
|
+
readonly outputs: readonly [];
|
|
329
|
+
readonly stateMutability: "nonpayable";
|
|
330
|
+
readonly type: "function";
|
|
317
331
|
}, {
|
|
318
332
|
readonly inputs: readonly [{
|
|
319
333
|
readonly internalType: "address";
|
|
320
|
-
readonly name: "
|
|
334
|
+
readonly name: "_presale";
|
|
321
335
|
readonly type: "address";
|
|
322
336
|
}];
|
|
323
|
-
readonly name: "
|
|
337
|
+
readonly name: "setPresale";
|
|
324
338
|
readonly outputs: readonly [];
|
|
325
339
|
readonly stateMutability: "nonpayable";
|
|
326
340
|
readonly type: "function";
|
|
@@ -344,16 +358,6 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
344
358
|
}];
|
|
345
359
|
readonly stateMutability: "view";
|
|
346
360
|
readonly type: "function";
|
|
347
|
-
}, {
|
|
348
|
-
readonly inputs: readonly [{
|
|
349
|
-
readonly internalType: "uint256";
|
|
350
|
-
readonly name: "amount";
|
|
351
|
-
readonly type: "uint256";
|
|
352
|
-
}];
|
|
353
|
-
readonly name: "tokenTransfer";
|
|
354
|
-
readonly outputs: readonly [];
|
|
355
|
-
readonly stateMutability: "nonpayable";
|
|
356
|
-
readonly type: "function";
|
|
357
361
|
}, {
|
|
358
362
|
readonly inputs: readonly [];
|
|
359
363
|
readonly name: "tokensStaked";
|
|
@@ -406,15 +410,15 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
406
410
|
readonly type: "function";
|
|
407
411
|
}];
|
|
408
412
|
/**
|
|
409
|
-
* Type-safe ABI for
|
|
413
|
+
* Type-safe ABI for stakingManager_json
|
|
410
414
|
*/
|
|
411
|
-
export type
|
|
415
|
+
export type stakingManager_jsonAbi = typeof stakingManager_jsonAbi;
|
|
412
416
|
/**
|
|
413
|
-
* Contract instance type for
|
|
417
|
+
* Contract instance type for stakingManager_json
|
|
414
418
|
*/
|
|
415
|
-
export type
|
|
419
|
+
export type stakingManager_jsonContract = any;
|
|
416
420
|
/**
|
|
417
|
-
*
|
|
421
|
+
* stakingManager_json Contract Class
|
|
418
422
|
*
|
|
419
423
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
420
424
|
*
|
|
@@ -422,12 +426,12 @@ export type stakingManagerV4_jsonContract = any;
|
|
|
422
426
|
* ```typescript
|
|
423
427
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
424
428
|
* import { mainnet } from 'viem/chains';
|
|
425
|
-
* import {
|
|
429
|
+
* import { stakingManager_json } from 'stakingManager_json';
|
|
426
430
|
*
|
|
427
431
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
428
432
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
429
433
|
*
|
|
430
|
-
* const contract = new
|
|
434
|
+
* const contract = new stakingManager_json('0x...', { publicClient, walletClient });
|
|
431
435
|
*
|
|
432
436
|
* // Read functions
|
|
433
437
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -445,7 +449,7 @@ export type stakingManagerV4_jsonContract = any;
|
|
|
445
449
|
* });
|
|
446
450
|
* ```
|
|
447
451
|
*/
|
|
448
|
-
export declare class
|
|
452
|
+
export declare class stakingManager_json {
|
|
449
453
|
private contract;
|
|
450
454
|
private contractAddress;
|
|
451
455
|
private publicClient;
|
|
@@ -460,12 +464,7 @@ export declare class stakingManagerV4_json {
|
|
|
460
464
|
/**
|
|
461
465
|
* Get the underlying viem contract instance
|
|
462
466
|
*/
|
|
463
|
-
getContract():
|
|
464
|
-
/**
|
|
465
|
-
* DEV_WALLET
|
|
466
|
-
* view
|
|
467
|
-
*/
|
|
468
|
-
DEV_WALLET(): Promise<`0x${string}`>;
|
|
467
|
+
getContract(): stakingManager_jsonContract;
|
|
469
468
|
/**
|
|
470
469
|
* claimStart
|
|
471
470
|
* view
|
|
@@ -496,11 +495,6 @@ export declare class stakingManagerV4_json {
|
|
|
496
495
|
* view
|
|
497
496
|
*/
|
|
498
497
|
lockedTime(): Promise<bigint>;
|
|
499
|
-
/**
|
|
500
|
-
* newStaking
|
|
501
|
-
* view
|
|
502
|
-
*/
|
|
503
|
-
newStaking(): Promise<`0x${string}`>;
|
|
504
498
|
/**
|
|
505
499
|
* owner
|
|
506
500
|
* view
|
|
@@ -558,6 +552,40 @@ export declare class stakingManagerV4_json {
|
|
|
558
552
|
nonce?: number;
|
|
559
553
|
value?: bigint;
|
|
560
554
|
}): Promise<`0x${string}`>;
|
|
555
|
+
/**
|
|
556
|
+
* deposit
|
|
557
|
+
* nonpayable
|
|
558
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
559
|
+
*/
|
|
560
|
+
deposit(_amount: bigint, 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<`0x${string}`>;
|
|
572
|
+
/**
|
|
573
|
+
* depositByPresale
|
|
574
|
+
* nonpayable
|
|
575
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
576
|
+
*/
|
|
577
|
+
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
578
|
+
accessList?: import('viem').AccessList;
|
|
579
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
580
|
+
chain?: import('viem').Chain | null;
|
|
581
|
+
dataSuffix?: `0x${string}`;
|
|
582
|
+
gas?: bigint;
|
|
583
|
+
gasPrice?: bigint;
|
|
584
|
+
maxFeePerGas?: bigint;
|
|
585
|
+
maxPriorityFeePerGas?: bigint;
|
|
586
|
+
nonce?: number;
|
|
587
|
+
value?: bigint;
|
|
588
|
+
}): Promise<`0x${string}`>;
|
|
561
589
|
/**
|
|
562
590
|
* harvestRewards
|
|
563
591
|
* nonpayable
|
|
@@ -575,6 +603,23 @@ export declare class stakingManagerV4_json {
|
|
|
575
603
|
nonce?: number;
|
|
576
604
|
value?: bigint;
|
|
577
605
|
}): Promise<`0x${string}`>;
|
|
606
|
+
/**
|
|
607
|
+
* initialize
|
|
608
|
+
* nonpayable
|
|
609
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
610
|
+
*/
|
|
611
|
+
initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
612
|
+
accessList?: import('viem').AccessList;
|
|
613
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
614
|
+
chain?: import('viem').Chain | null;
|
|
615
|
+
dataSuffix?: `0x${string}`;
|
|
616
|
+
gas?: bigint;
|
|
617
|
+
gasPrice?: bigint;
|
|
618
|
+
maxFeePerGas?: bigint;
|
|
619
|
+
maxPriorityFeePerGas?: bigint;
|
|
620
|
+
nonce?: number;
|
|
621
|
+
value?: bigint;
|
|
622
|
+
}): Promise<`0x${string}`>;
|
|
578
623
|
/**
|
|
579
624
|
* removeFromBlacklist
|
|
580
625
|
* nonpayable
|
|
@@ -610,11 +655,11 @@ export declare class stakingManagerV4_json {
|
|
|
610
655
|
value?: bigint;
|
|
611
656
|
}): Promise<`0x${string}`>;
|
|
612
657
|
/**
|
|
613
|
-
*
|
|
658
|
+
* setClaimStart
|
|
614
659
|
* nonpayable
|
|
615
660
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
616
661
|
*/
|
|
617
|
-
|
|
662
|
+
setClaimStart(_claimStart: bigint, options?: {
|
|
618
663
|
accessList?: import('viem').AccessList;
|
|
619
664
|
authorizationList?: import('viem').AuthorizationList;
|
|
620
665
|
chain?: import('viem').Chain | null;
|
|
@@ -644,11 +689,11 @@ export declare class stakingManagerV4_json {
|
|
|
644
689
|
value?: bigint;
|
|
645
690
|
}): Promise<`0x${string}`>;
|
|
646
691
|
/**
|
|
647
|
-
*
|
|
692
|
+
* setHarvestLock
|
|
648
693
|
* nonpayable
|
|
649
694
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
650
695
|
*/
|
|
651
|
-
|
|
696
|
+
setHarvestLock(_harvestlock: boolean, options?: {
|
|
652
697
|
accessList?: import('viem').AccessList;
|
|
653
698
|
authorizationList?: import('viem').AuthorizationList;
|
|
654
699
|
chain?: import('viem').Chain | null;
|
|
@@ -661,11 +706,28 @@ export declare class stakingManagerV4_json {
|
|
|
661
706
|
value?: bigint;
|
|
662
707
|
}): Promise<`0x${string}`>;
|
|
663
708
|
/**
|
|
664
|
-
*
|
|
709
|
+
* setLockedTime
|
|
665
710
|
* nonpayable
|
|
666
711
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
667
712
|
*/
|
|
668
|
-
|
|
713
|
+
setLockedTime(_time: bigint, options?: {
|
|
714
|
+
accessList?: import('viem').AccessList;
|
|
715
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
716
|
+
chain?: import('viem').Chain | null;
|
|
717
|
+
dataSuffix?: `0x${string}`;
|
|
718
|
+
gas?: bigint;
|
|
719
|
+
gasPrice?: bigint;
|
|
720
|
+
maxFeePerGas?: bigint;
|
|
721
|
+
maxPriorityFeePerGas?: bigint;
|
|
722
|
+
nonce?: number;
|
|
723
|
+
value?: bigint;
|
|
724
|
+
}): Promise<`0x${string}`>;
|
|
725
|
+
/**
|
|
726
|
+
* setPresale
|
|
727
|
+
* nonpayable
|
|
728
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
729
|
+
*/
|
|
730
|
+
setPresale(_presale: `0x${string}`, options?: {
|
|
669
731
|
accessList?: import('viem').AccessList;
|
|
670
732
|
authorizationList?: import('viem').AuthorizationList;
|
|
671
733
|
chain?: import('viem').Chain | null;
|
|
@@ -678,11 +740,11 @@ export declare class stakingManagerV4_json {
|
|
|
678
740
|
value?: bigint;
|
|
679
741
|
}): Promise<`0x${string}`>;
|
|
680
742
|
/**
|
|
681
|
-
*
|
|
743
|
+
* setStakeToken
|
|
682
744
|
* nonpayable
|
|
683
745
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
684
746
|
*/
|
|
685
|
-
|
|
747
|
+
setStakeToken(_stakeToken: `0x${string}`, options?: {
|
|
686
748
|
accessList?: import('viem').AccessList;
|
|
687
749
|
authorizationList?: import('viem').AuthorizationList;
|
|
688
750
|
chain?: import('viem').Chain | null;
|
|
@@ -754,6 +816,40 @@ export declare class stakingManagerV4_json {
|
|
|
754
816
|
nonce?: number;
|
|
755
817
|
value?: bigint;
|
|
756
818
|
}): Promise<void>;
|
|
819
|
+
/**
|
|
820
|
+
* Simulate deposit
|
|
821
|
+
* Returns gas estimate and result without sending transaction
|
|
822
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
823
|
+
*/
|
|
824
|
+
deposit(_amount: bigint, options?: {
|
|
825
|
+
accessList?: import("viem").AccessList;
|
|
826
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
827
|
+
chain?: import("viem").Chain | null;
|
|
828
|
+
dataSuffix?: `0x${string}`;
|
|
829
|
+
gas?: bigint;
|
|
830
|
+
gasPrice?: bigint;
|
|
831
|
+
maxFeePerGas?: bigint;
|
|
832
|
+
maxPriorityFeePerGas?: bigint;
|
|
833
|
+
nonce?: number;
|
|
834
|
+
value?: bigint;
|
|
835
|
+
}): Promise<void>;
|
|
836
|
+
/**
|
|
837
|
+
* Simulate depositByPresale
|
|
838
|
+
* Returns gas estimate and result without sending transaction
|
|
839
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
840
|
+
*/
|
|
841
|
+
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
842
|
+
accessList?: import("viem").AccessList;
|
|
843
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
844
|
+
chain?: import("viem").Chain | null;
|
|
845
|
+
dataSuffix?: `0x${string}`;
|
|
846
|
+
gas?: bigint;
|
|
847
|
+
gasPrice?: bigint;
|
|
848
|
+
maxFeePerGas?: bigint;
|
|
849
|
+
maxPriorityFeePerGas?: bigint;
|
|
850
|
+
nonce?: number;
|
|
851
|
+
value?: bigint;
|
|
852
|
+
}): Promise<void>;
|
|
757
853
|
/**
|
|
758
854
|
* Simulate harvestRewards
|
|
759
855
|
* Returns gas estimate and result without sending transaction
|
|
@@ -771,6 +867,23 @@ export declare class stakingManagerV4_json {
|
|
|
771
867
|
nonce?: number;
|
|
772
868
|
value?: bigint;
|
|
773
869
|
}): Promise<void>;
|
|
870
|
+
/**
|
|
871
|
+
* Simulate initialize
|
|
872
|
+
* Returns gas estimate and result without sending transaction
|
|
873
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
874
|
+
*/
|
|
875
|
+
initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
876
|
+
accessList?: import("viem").AccessList;
|
|
877
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
878
|
+
chain?: import("viem").Chain | null;
|
|
879
|
+
dataSuffix?: `0x${string}`;
|
|
880
|
+
gas?: bigint;
|
|
881
|
+
gasPrice?: bigint;
|
|
882
|
+
maxFeePerGas?: bigint;
|
|
883
|
+
maxPriorityFeePerGas?: bigint;
|
|
884
|
+
nonce?: number;
|
|
885
|
+
value?: bigint;
|
|
886
|
+
}): Promise<void>;
|
|
774
887
|
/**
|
|
775
888
|
* Simulate removeFromBlacklist
|
|
776
889
|
* Returns gas estimate and result without sending transaction
|
|
@@ -806,11 +919,11 @@ export declare class stakingManagerV4_json {
|
|
|
806
919
|
value?: bigint;
|
|
807
920
|
}): Promise<void>;
|
|
808
921
|
/**
|
|
809
|
-
* Simulate
|
|
922
|
+
* Simulate setClaimStart
|
|
810
923
|
* Returns gas estimate and result without sending transaction
|
|
811
924
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
812
925
|
*/
|
|
813
|
-
|
|
926
|
+
setClaimStart(_claimStart: bigint, options?: {
|
|
814
927
|
accessList?: import("viem").AccessList;
|
|
815
928
|
authorizationList?: import("viem").AuthorizationList;
|
|
816
929
|
chain?: import("viem").Chain | null;
|
|
@@ -840,11 +953,11 @@ export declare class stakingManagerV4_json {
|
|
|
840
953
|
value?: bigint;
|
|
841
954
|
}): Promise<void>;
|
|
842
955
|
/**
|
|
843
|
-
* Simulate
|
|
956
|
+
* Simulate setHarvestLock
|
|
844
957
|
* Returns gas estimate and result without sending transaction
|
|
845
958
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
846
959
|
*/
|
|
847
|
-
|
|
960
|
+
setHarvestLock(_harvestlock: boolean, options?: {
|
|
848
961
|
accessList?: import("viem").AccessList;
|
|
849
962
|
authorizationList?: import("viem").AuthorizationList;
|
|
850
963
|
chain?: import("viem").Chain | null;
|
|
@@ -857,11 +970,11 @@ export declare class stakingManagerV4_json {
|
|
|
857
970
|
value?: bigint;
|
|
858
971
|
}): Promise<void>;
|
|
859
972
|
/**
|
|
860
|
-
* Simulate
|
|
973
|
+
* Simulate setLockedTime
|
|
861
974
|
* Returns gas estimate and result without sending transaction
|
|
862
975
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
863
976
|
*/
|
|
864
|
-
|
|
977
|
+
setLockedTime(_time: bigint, options?: {
|
|
865
978
|
accessList?: import("viem").AccessList;
|
|
866
979
|
authorizationList?: import("viem").AuthorizationList;
|
|
867
980
|
chain?: import("viem").Chain | null;
|
|
@@ -874,11 +987,28 @@ export declare class stakingManagerV4_json {
|
|
|
874
987
|
value?: bigint;
|
|
875
988
|
}): Promise<void>;
|
|
876
989
|
/**
|
|
877
|
-
* Simulate
|
|
990
|
+
* Simulate setPresale
|
|
878
991
|
* Returns gas estimate and result without sending transaction
|
|
879
992
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
880
993
|
*/
|
|
881
|
-
|
|
994
|
+
setPresale(_presale: `0x${string}`, options?: {
|
|
995
|
+
accessList?: import("viem").AccessList;
|
|
996
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
997
|
+
chain?: import("viem").Chain | null;
|
|
998
|
+
dataSuffix?: `0x${string}`;
|
|
999
|
+
gas?: bigint;
|
|
1000
|
+
gasPrice?: bigint;
|
|
1001
|
+
maxFeePerGas?: bigint;
|
|
1002
|
+
maxPriorityFeePerGas?: bigint;
|
|
1003
|
+
nonce?: number;
|
|
1004
|
+
value?: bigint;
|
|
1005
|
+
}): Promise<void>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Simulate setStakeToken
|
|
1008
|
+
* Returns gas estimate and result without sending transaction
|
|
1009
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1010
|
+
*/
|
|
1011
|
+
setStakeToken(_stakeToken: `0x${string}`, options?: {
|
|
882
1012
|
accessList?: import("viem").AccessList;
|
|
883
1013
|
authorizationList?: import("viem").AuthorizationList;
|
|
884
1014
|
chain?: import("viem").Chain | null;
|
|
@@ -984,32 +1114,6 @@ export declare class stakingManagerV4_json {
|
|
|
984
1114
|
previousOwner: `0x${string}`;
|
|
985
1115
|
newOwner: `0x${string}`;
|
|
986
1116
|
}) => () => void;
|
|
987
|
-
/**
|
|
988
|
-
* Watch RestakePrincipal events
|
|
989
|
-
* @param callback Function to call when event is emitted
|
|
990
|
-
* @param filter Optional filter for indexed parameters
|
|
991
|
-
* @returns Unwatch function to stop listening
|
|
992
|
-
*/
|
|
993
|
-
RestakePrincipal: (callback: (event: {
|
|
994
|
-
user: `0x${string}`;
|
|
995
|
-
amount: bigint;
|
|
996
|
-
timestamp: bigint;
|
|
997
|
-
}) => void, filter?: {
|
|
998
|
-
user: `0x${string}`;
|
|
999
|
-
}) => () => void;
|
|
1000
|
-
/**
|
|
1001
|
-
* Watch RestakeRewards events
|
|
1002
|
-
* @param callback Function to call when event is emitted
|
|
1003
|
-
* @param filter Optional filter for indexed parameters
|
|
1004
|
-
* @returns Unwatch function to stop listening
|
|
1005
|
-
*/
|
|
1006
|
-
RestakeRewards: (callback: (event: {
|
|
1007
|
-
user: `0x${string}`;
|
|
1008
|
-
amount: bigint;
|
|
1009
|
-
timestamp: bigint;
|
|
1010
|
-
}) => void, filter?: {
|
|
1011
|
-
user: `0x${string}`;
|
|
1012
|
-
}) => () => void;
|
|
1013
1117
|
/**
|
|
1014
1118
|
* Watch Withdraw events
|
|
1015
1119
|
* @param callback Function to call when event is emitted
|