@gitmyabi/stakingmanager 1.0.2 → 1.0.3
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/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/contracts/{stakingManagerV3_json.d.ts → stakingManagerV4_json.d.ts} +200 -103
- package/contracts/{stakingManagerV3_json.js → stakingManagerV4_json.js} +222 -104
- package/contracts/{stakingManagerV3_json.ts → stakingManagerV4_json.ts} +266 -131
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Auto-generated TypeScript type bindings for **stakingManager**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-stakingmanager-
|
|
5
|
+
- **Build ID**: `etherscan-stakingmanager-b8bc5c11-1787551874450`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `e558ab8`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 2
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **stakingManager**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/stakingmanager@1.0.
|
|
15
|
+
npm install @gitmyabi/stakingmanager@1.0.3
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { TransparentUpgradeableProxy_jsonAbi, TransparentUpgradeableProxy_json } from './TransparentUpgradeableProxy_json';
|
|
2
2
|
export type { TransparentUpgradeableProxy_jsonAbi as TransparentUpgradeableProxy_jsonAbiType, TransparentUpgradeableProxy_jsonContract } from './TransparentUpgradeableProxy_json';
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
3
|
+
export { stakingManagerV4_jsonAbi, stakingManagerV4_json } from './stakingManagerV4_json';
|
|
4
|
+
export type { stakingManagerV4_jsonAbi as stakingManagerV4_jsonAbiType, stakingManagerV4_jsonContract } from './stakingManagerV4_json';
|
package/contracts/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.stakingManagerV4_json = exports.stakingManagerV4_jsonAbi = exports.TransparentUpgradeableProxy_json = exports.TransparentUpgradeableProxy_jsonAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
5
|
var TransparentUpgradeableProxy_json_1 = require("./TransparentUpgradeableProxy_json");
|
|
6
6
|
Object.defineProperty(exports, "TransparentUpgradeableProxy_jsonAbi", { enumerable: true, get: function () { return TransparentUpgradeableProxy_json_1.TransparentUpgradeableProxy_jsonAbi; } });
|
|
7
7
|
Object.defineProperty(exports, "TransparentUpgradeableProxy_json", { enumerable: true, get: function () { return TransparentUpgradeableProxy_json_1.TransparentUpgradeableProxy_json; } });
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
8
|
+
var stakingManagerV4_json_1 = require("./stakingManagerV4_json");
|
|
9
|
+
Object.defineProperty(exports, "stakingManagerV4_jsonAbi", { enumerable: true, get: function () { return stakingManagerV4_json_1.stakingManagerV4_jsonAbi; } });
|
|
10
|
+
Object.defineProperty(exports, "stakingManagerV4_json", { enumerable: true, get: function () { return stakingManagerV4_json_1.stakingManagerV4_json; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
2
|
export { TransparentUpgradeableProxy_jsonAbi, TransparentUpgradeableProxy_json } from './TransparentUpgradeableProxy_json';
|
|
3
3
|
export type { TransparentUpgradeableProxy_jsonAbi as TransparentUpgradeableProxy_jsonAbiType, TransparentUpgradeableProxy_jsonContract } from './TransparentUpgradeableProxy_json';
|
|
4
|
-
export {
|
|
5
|
-
export type {
|
|
4
|
+
export { stakingManagerV4_jsonAbi, stakingManagerV4_json } from './stakingManagerV4_json';
|
|
5
|
+
export type { stakingManagerV4_jsonAbi as stakingManagerV4_jsonAbiType, stakingManagerV4_jsonContract } from './stakingManagerV4_json';
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* stakingManagerV4.PoolStaker struct type
|
|
4
|
+
*/
|
|
5
|
+
export type stakingManagerV4_PoolStaker = {
|
|
6
|
+
amount: bigint;
|
|
7
|
+
stakedTime: bigint;
|
|
8
|
+
lastUpdatedBlock: bigint;
|
|
9
|
+
Harvestedrewards: bigint;
|
|
10
|
+
rewardDebt: bigint;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* stakingManagerV4_json ABI
|
|
4
14
|
*
|
|
5
15
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
16
|
*/
|
|
7
|
-
export declare const
|
|
17
|
+
export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
8
18
|
readonly inputs: readonly [];
|
|
9
19
|
readonly stateMutability: "nonpayable";
|
|
10
20
|
readonly type: "constructor";
|
|
@@ -79,30 +89,14 @@ export declare const stakingManagerV3_jsonAbi: readonly [{
|
|
|
79
89
|
readonly name: "Withdraw";
|
|
80
90
|
readonly type: "event";
|
|
81
91
|
}, {
|
|
82
|
-
readonly inputs: readonly [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
readonly type: "address";
|
|
86
|
-
}, {
|
|
87
|
-
readonly internalType: "address";
|
|
88
|
-
readonly name: "_presale";
|
|
89
|
-
readonly type: "address";
|
|
90
|
-
}, {
|
|
91
|
-
readonly internalType: "uint256";
|
|
92
|
-
readonly name: "_rewardTokensPerBlock";
|
|
93
|
-
readonly type: "uint256";
|
|
94
|
-
}, {
|
|
95
|
-
readonly internalType: "uint256";
|
|
96
|
-
readonly name: "_lockTime";
|
|
97
|
-
readonly type: "uint256";
|
|
98
|
-
}, {
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "accShareOld";
|
|
94
|
+
readonly outputs: readonly [{
|
|
99
95
|
readonly internalType: "uint256";
|
|
100
|
-
readonly name: "
|
|
96
|
+
readonly name: "";
|
|
101
97
|
readonly type: "uint256";
|
|
102
98
|
}];
|
|
103
|
-
readonly
|
|
104
|
-
readonly outputs: readonly [];
|
|
105
|
-
readonly stateMutability: "nonpayable";
|
|
99
|
+
readonly stateMutability: "view";
|
|
106
100
|
readonly type: "function";
|
|
107
101
|
}, {
|
|
108
102
|
readonly inputs: readonly [{
|
|
@@ -225,30 +219,35 @@ export declare const stakingManagerV3_jsonAbi: readonly [{
|
|
|
225
219
|
}, {
|
|
226
220
|
readonly inputs: readonly [{
|
|
227
221
|
readonly internalType: "address";
|
|
228
|
-
readonly name: "";
|
|
222
|
+
readonly name: "_user";
|
|
229
223
|
readonly type: "address";
|
|
230
224
|
}];
|
|
231
225
|
readonly name: "poolStakers";
|
|
232
226
|
readonly outputs: readonly [{
|
|
233
|
-
readonly
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
227
|
+
readonly components: readonly [{
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly name: "amount";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
}, {
|
|
232
|
+
readonly internalType: "uint256";
|
|
233
|
+
readonly name: "stakedTime";
|
|
234
|
+
readonly type: "uint256";
|
|
235
|
+
}, {
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
readonly name: "lastUpdatedBlock";
|
|
238
|
+
readonly type: "uint256";
|
|
239
|
+
}, {
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
readonly name: "Harvestedrewards";
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
readonly name: "rewardDebt";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}];
|
|
248
|
+
readonly internalType: "struct stakingManagerV4.PoolStaker";
|
|
249
|
+
readonly name: "";
|
|
250
|
+
readonly type: "tuple";
|
|
252
251
|
}];
|
|
253
252
|
readonly stateMutability: "view";
|
|
254
253
|
readonly type: "function";
|
|
@@ -348,6 +347,26 @@ export declare const stakingManagerV3_jsonAbi: readonly [{
|
|
|
348
347
|
readonly outputs: readonly [];
|
|
349
348
|
readonly stateMutability: "nonpayable";
|
|
350
349
|
readonly type: "function";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly internalType: "bool";
|
|
353
|
+
readonly name: "_vestLock";
|
|
354
|
+
readonly type: "bool";
|
|
355
|
+
}];
|
|
356
|
+
readonly name: "setVestLock";
|
|
357
|
+
readonly outputs: readonly [];
|
|
358
|
+
readonly stateMutability: "nonpayable";
|
|
359
|
+
readonly type: "function";
|
|
360
|
+
}, {
|
|
361
|
+
readonly inputs: readonly [{
|
|
362
|
+
readonly internalType: "uint256";
|
|
363
|
+
readonly name: "_vestingEndTime";
|
|
364
|
+
readonly type: "uint256";
|
|
365
|
+
}];
|
|
366
|
+
readonly name: "setVestingDetails";
|
|
367
|
+
readonly outputs: readonly [];
|
|
368
|
+
readonly stateMutability: "nonpayable";
|
|
369
|
+
readonly type: "function";
|
|
351
370
|
}, {
|
|
352
371
|
readonly inputs: readonly [];
|
|
353
372
|
readonly name: "stakeToken";
|
|
@@ -378,6 +397,16 @@ export declare const stakingManagerV3_jsonAbi: readonly [{
|
|
|
378
397
|
}];
|
|
379
398
|
readonly stateMutability: "view";
|
|
380
399
|
readonly type: "function";
|
|
400
|
+
}, {
|
|
401
|
+
readonly inputs: readonly [];
|
|
402
|
+
readonly name: "tokensStakedPrev";
|
|
403
|
+
readonly outputs: readonly [{
|
|
404
|
+
readonly internalType: "uint256";
|
|
405
|
+
readonly name: "";
|
|
406
|
+
readonly type: "uint256";
|
|
407
|
+
}];
|
|
408
|
+
readonly stateMutability: "view";
|
|
409
|
+
readonly type: "function";
|
|
381
410
|
}, {
|
|
382
411
|
readonly inputs: readonly [{
|
|
383
412
|
readonly internalType: "address";
|
|
@@ -402,33 +431,71 @@ export declare const stakingManagerV3_jsonAbi: readonly [{
|
|
|
402
431
|
}];
|
|
403
432
|
readonly stateMutability: "view";
|
|
404
433
|
readonly type: "function";
|
|
434
|
+
}, {
|
|
435
|
+
readonly inputs: readonly [{
|
|
436
|
+
readonly internalType: "address";
|
|
437
|
+
readonly name: "";
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
}];
|
|
440
|
+
readonly name: "userVestingDetails";
|
|
441
|
+
readonly outputs: readonly [{
|
|
442
|
+
readonly internalType: "uint256";
|
|
443
|
+
readonly name: "totalVestedAmount";
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
}, {
|
|
446
|
+
readonly internalType: "uint256";
|
|
447
|
+
readonly name: "totalAmountGivenOut";
|
|
448
|
+
readonly type: "uint256";
|
|
449
|
+
}];
|
|
450
|
+
readonly stateMutability: "view";
|
|
451
|
+
readonly type: "function";
|
|
405
452
|
}, {
|
|
406
453
|
readonly inputs: readonly [];
|
|
407
|
-
readonly name: "
|
|
408
|
-
readonly outputs: readonly [
|
|
409
|
-
|
|
454
|
+
readonly name: "vestLock";
|
|
455
|
+
readonly outputs: readonly [{
|
|
456
|
+
readonly internalType: "bool";
|
|
457
|
+
readonly name: "";
|
|
458
|
+
readonly type: "bool";
|
|
459
|
+
}];
|
|
460
|
+
readonly stateMutability: "view";
|
|
410
461
|
readonly type: "function";
|
|
411
462
|
}, {
|
|
412
|
-
readonly inputs: readonly [
|
|
463
|
+
readonly inputs: readonly [];
|
|
464
|
+
readonly name: "vestingEndTime";
|
|
465
|
+
readonly outputs: readonly [{
|
|
413
466
|
readonly internalType: "uint256";
|
|
414
|
-
readonly name: "
|
|
467
|
+
readonly name: "";
|
|
415
468
|
readonly type: "uint256";
|
|
416
469
|
}];
|
|
417
|
-
readonly
|
|
470
|
+
readonly stateMutability: "view";
|
|
471
|
+
readonly type: "function";
|
|
472
|
+
}, {
|
|
473
|
+
readonly inputs: readonly [];
|
|
474
|
+
readonly name: "vestingStartBlock";
|
|
475
|
+
readonly outputs: readonly [{
|
|
476
|
+
readonly internalType: "uint256";
|
|
477
|
+
readonly name: "";
|
|
478
|
+
readonly type: "uint256";
|
|
479
|
+
}];
|
|
480
|
+
readonly stateMutability: "view";
|
|
481
|
+
readonly type: "function";
|
|
482
|
+
}, {
|
|
483
|
+
readonly inputs: readonly [];
|
|
484
|
+
readonly name: "withdraw";
|
|
418
485
|
readonly outputs: readonly [];
|
|
419
486
|
readonly stateMutability: "nonpayable";
|
|
420
487
|
readonly type: "function";
|
|
421
488
|
}];
|
|
422
489
|
/**
|
|
423
|
-
* Type-safe ABI for
|
|
490
|
+
* Type-safe ABI for stakingManagerV4_json
|
|
424
491
|
*/
|
|
425
|
-
export type
|
|
492
|
+
export type stakingManagerV4_jsonAbi = typeof stakingManagerV4_jsonAbi;
|
|
426
493
|
/**
|
|
427
|
-
* Contract instance type for
|
|
494
|
+
* Contract instance type for stakingManagerV4_json
|
|
428
495
|
*/
|
|
429
|
-
export type
|
|
496
|
+
export type stakingManagerV4_jsonContract = any;
|
|
430
497
|
/**
|
|
431
|
-
*
|
|
498
|
+
* stakingManagerV4_json Contract Class
|
|
432
499
|
*
|
|
433
500
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
434
501
|
*
|
|
@@ -436,12 +503,12 @@ export type stakingManagerV3_jsonContract = any;
|
|
|
436
503
|
* ```typescript
|
|
437
504
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
438
505
|
* import { mainnet } from 'viem/chains';
|
|
439
|
-
* import {
|
|
506
|
+
* import { stakingManagerV4_json } from 'stakingManagerV4_json';
|
|
440
507
|
*
|
|
441
508
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
442
509
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
443
510
|
*
|
|
444
|
-
* const contract = new
|
|
511
|
+
* const contract = new stakingManagerV4_json('0x...', { publicClient, walletClient });
|
|
445
512
|
*
|
|
446
513
|
* // Read functions
|
|
447
514
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -459,7 +526,7 @@ export type stakingManagerV3_jsonContract = any;
|
|
|
459
526
|
* });
|
|
460
527
|
* ```
|
|
461
528
|
*/
|
|
462
|
-
export declare class
|
|
529
|
+
export declare class stakingManagerV4_json {
|
|
463
530
|
private contract;
|
|
464
531
|
private contractAddress;
|
|
465
532
|
private publicClient;
|
|
@@ -474,7 +541,12 @@ export declare class stakingManagerV3_json {
|
|
|
474
541
|
/**
|
|
475
542
|
* Get the underlying viem contract instance
|
|
476
543
|
*/
|
|
477
|
-
getContract():
|
|
544
|
+
getContract(): stakingManagerV4_jsonContract;
|
|
545
|
+
/**
|
|
546
|
+
* accShareOld
|
|
547
|
+
* view
|
|
548
|
+
*/
|
|
549
|
+
accShareOld(): Promise<bigint>;
|
|
478
550
|
/**
|
|
479
551
|
* claimStart
|
|
480
552
|
* view
|
|
@@ -514,7 +586,7 @@ export declare class stakingManagerV3_json {
|
|
|
514
586
|
* poolStakers
|
|
515
587
|
* view
|
|
516
588
|
*/
|
|
517
|
-
poolStakers(
|
|
589
|
+
poolStakers(_user: `0x${string}`): Promise<stakingManagerV4_PoolStaker>;
|
|
518
590
|
/**
|
|
519
591
|
* presaleContract
|
|
520
592
|
* view
|
|
@@ -540,28 +612,36 @@ export declare class stakingManagerV3_json {
|
|
|
540
612
|
* view
|
|
541
613
|
*/
|
|
542
614
|
tokensStakedByPresale(): Promise<bigint>;
|
|
615
|
+
/**
|
|
616
|
+
* tokensStakedPrev
|
|
617
|
+
* view
|
|
618
|
+
*/
|
|
619
|
+
tokensStakedPrev(): Promise<bigint>;
|
|
543
620
|
/**
|
|
544
621
|
* userLockedRewards
|
|
545
622
|
* view
|
|
546
623
|
*/
|
|
547
624
|
userLockedRewards(arg0: `0x${string}`): Promise<bigint>;
|
|
548
625
|
/**
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
626
|
+
* userVestingDetails
|
|
627
|
+
* view
|
|
552
628
|
*/
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
629
|
+
userVestingDetails(arg0: `0x${string}`): Promise<[bigint, bigint]>;
|
|
630
|
+
/**
|
|
631
|
+
* vestLock
|
|
632
|
+
* view
|
|
633
|
+
*/
|
|
634
|
+
vestLock(): Promise<boolean>;
|
|
635
|
+
/**
|
|
636
|
+
* vestingEndTime
|
|
637
|
+
* view
|
|
638
|
+
*/
|
|
639
|
+
vestingEndTime(): Promise<bigint>;
|
|
640
|
+
/**
|
|
641
|
+
* vestingStartBlock
|
|
642
|
+
* view
|
|
643
|
+
*/
|
|
644
|
+
vestingStartBlock(): Promise<bigint>;
|
|
565
645
|
/**
|
|
566
646
|
* blacklistUsers
|
|
567
647
|
* nonpayable
|
|
@@ -767,11 +847,11 @@ export declare class stakingManagerV3_json {
|
|
|
767
847
|
value?: bigint;
|
|
768
848
|
}): Promise<`0x${string}`>;
|
|
769
849
|
/**
|
|
770
|
-
*
|
|
850
|
+
* setVestLock
|
|
771
851
|
* nonpayable
|
|
772
852
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
773
853
|
*/
|
|
774
|
-
|
|
854
|
+
setVestLock(_vestLock: boolean, options?: {
|
|
775
855
|
accessList?: import('viem').AccessList;
|
|
776
856
|
authorizationList?: import('viem').AuthorizationList;
|
|
777
857
|
chain?: import('viem').Chain | null;
|
|
@@ -784,11 +864,11 @@ export declare class stakingManagerV3_json {
|
|
|
784
864
|
value?: bigint;
|
|
785
865
|
}): Promise<`0x${string}`>;
|
|
786
866
|
/**
|
|
787
|
-
*
|
|
867
|
+
* setVestingDetails
|
|
788
868
|
* nonpayable
|
|
789
869
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
790
870
|
*/
|
|
791
|
-
|
|
871
|
+
setVestingDetails(_vestingEndTime: bigint, options?: {
|
|
792
872
|
accessList?: import('viem').AccessList;
|
|
793
873
|
authorizationList?: import('viem').AuthorizationList;
|
|
794
874
|
chain?: import('viem').Chain | null;
|
|
@@ -801,11 +881,28 @@ export declare class stakingManagerV3_json {
|
|
|
801
881
|
value?: bigint;
|
|
802
882
|
}): Promise<`0x${string}`>;
|
|
803
883
|
/**
|
|
804
|
-
*
|
|
884
|
+
* transferOwnership
|
|
805
885
|
* nonpayable
|
|
806
886
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
807
887
|
*/
|
|
808
|
-
|
|
888
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
889
|
+
accessList?: import('viem').AccessList;
|
|
890
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
891
|
+
chain?: import('viem').Chain | null;
|
|
892
|
+
dataSuffix?: `0x${string}`;
|
|
893
|
+
gas?: bigint;
|
|
894
|
+
gasPrice?: bigint;
|
|
895
|
+
maxFeePerGas?: bigint;
|
|
896
|
+
maxPriorityFeePerGas?: bigint;
|
|
897
|
+
nonce?: number;
|
|
898
|
+
value?: bigint;
|
|
899
|
+
}): Promise<`0x${string}`>;
|
|
900
|
+
/**
|
|
901
|
+
* withdraw
|
|
902
|
+
* nonpayable
|
|
903
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
904
|
+
*/
|
|
905
|
+
withdraw(options?: {
|
|
809
906
|
accessList?: import('viem').AccessList;
|
|
810
907
|
authorizationList?: import('viem').AuthorizationList;
|
|
811
908
|
chain?: import('viem').Chain | null;
|
|
@@ -826,23 +923,6 @@ export declare class stakingManagerV3_json {
|
|
|
826
923
|
* console.log('Would succeed:', result.result);
|
|
827
924
|
*/
|
|
828
925
|
get simulate(): {
|
|
829
|
-
/**
|
|
830
|
-
* Simulate __stakingManager_init
|
|
831
|
-
* Returns gas estimate and result without sending transaction
|
|
832
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
833
|
-
*/
|
|
834
|
-
__stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
835
|
-
accessList?: import("viem").AccessList;
|
|
836
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
837
|
-
chain?: import("viem").Chain | null;
|
|
838
|
-
dataSuffix?: `0x${string}`;
|
|
839
|
-
gas?: bigint;
|
|
840
|
-
gasPrice?: bigint;
|
|
841
|
-
maxFeePerGas?: bigint;
|
|
842
|
-
maxPriorityFeePerGas?: bigint;
|
|
843
|
-
nonce?: number;
|
|
844
|
-
value?: bigint;
|
|
845
|
-
}): Promise<void>;
|
|
846
926
|
/**
|
|
847
927
|
* Simulate blacklistUsers
|
|
848
928
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1048,11 +1128,11 @@ export declare class stakingManagerV3_json {
|
|
|
1048
1128
|
value?: bigint;
|
|
1049
1129
|
}): Promise<void>;
|
|
1050
1130
|
/**
|
|
1051
|
-
* Simulate
|
|
1131
|
+
* Simulate setVestLock
|
|
1052
1132
|
* Returns gas estimate and result without sending transaction
|
|
1053
1133
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1054
1134
|
*/
|
|
1055
|
-
|
|
1135
|
+
setVestLock(_vestLock: boolean, options?: {
|
|
1056
1136
|
accessList?: import("viem").AccessList;
|
|
1057
1137
|
authorizationList?: import("viem").AuthorizationList;
|
|
1058
1138
|
chain?: import("viem").Chain | null;
|
|
@@ -1065,11 +1145,28 @@ export declare class stakingManagerV3_json {
|
|
|
1065
1145
|
value?: bigint;
|
|
1066
1146
|
}): Promise<void>;
|
|
1067
1147
|
/**
|
|
1068
|
-
* Simulate
|
|
1148
|
+
* Simulate setVestingDetails
|
|
1069
1149
|
* Returns gas estimate and result without sending transaction
|
|
1070
1150
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1071
1151
|
*/
|
|
1072
|
-
|
|
1152
|
+
setVestingDetails(_vestingEndTime: bigint, options?: {
|
|
1153
|
+
accessList?: import("viem").AccessList;
|
|
1154
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1155
|
+
chain?: import("viem").Chain | null;
|
|
1156
|
+
dataSuffix?: `0x${string}`;
|
|
1157
|
+
gas?: bigint;
|
|
1158
|
+
gasPrice?: bigint;
|
|
1159
|
+
maxFeePerGas?: bigint;
|
|
1160
|
+
maxPriorityFeePerGas?: bigint;
|
|
1161
|
+
nonce?: number;
|
|
1162
|
+
value?: bigint;
|
|
1163
|
+
}): Promise<void>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Simulate transferOwnership
|
|
1166
|
+
* Returns gas estimate and result without sending transaction
|
|
1167
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1168
|
+
*/
|
|
1169
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1073
1170
|
accessList?: import("viem").AccessList;
|
|
1074
1171
|
authorizationList?: import("viem").AuthorizationList;
|
|
1075
1172
|
chain?: import("viem").Chain | null;
|
|
@@ -1082,11 +1179,11 @@ export declare class stakingManagerV3_json {
|
|
|
1082
1179
|
value?: bigint;
|
|
1083
1180
|
}): Promise<void>;
|
|
1084
1181
|
/**
|
|
1085
|
-
* Simulate
|
|
1182
|
+
* Simulate withdraw
|
|
1086
1183
|
* Returns gas estimate and result without sending transaction
|
|
1087
1184
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1088
1185
|
*/
|
|
1089
|
-
|
|
1186
|
+
withdraw(options?: {
|
|
1090
1187
|
accessList?: import("viem").AccessList;
|
|
1091
1188
|
authorizationList?: import("viem").AuthorizationList;
|
|
1092
1189
|
chain?: import("viem").Chain | null;
|