@gitmyabi/stakingmanager 1.0.3 → 1.0.4
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/{stakingManagerV4_json.d.ts → stakingManagerV2_json.d.ts} +100 -193
- package/contracts/{stakingManagerV4_json.js → stakingManagerV2_json.js} +99 -212
- package/contracts/{stakingManagerV4_json.ts → stakingManagerV2_json.ts} +125 -255
- 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-b02bbf73-1787733973699`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `14fbc7d`
|
|
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.4
|
|
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 { stakingManagerV2_jsonAbi, stakingManagerV2_json } from './stakingManagerV2_json';
|
|
4
|
+
export type { stakingManagerV2_jsonAbi as stakingManagerV2_jsonAbiType, stakingManagerV2_jsonContract } from './stakingManagerV2_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.stakingManagerV2_json = exports.stakingManagerV2_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 stakingManagerV2_json_1 = require("./stakingManagerV2_json");
|
|
9
|
+
Object.defineProperty(exports, "stakingManagerV2_jsonAbi", { enumerable: true, get: function () { return stakingManagerV2_json_1.stakingManagerV2_jsonAbi; } });
|
|
10
|
+
Object.defineProperty(exports, "stakingManagerV2_json", { enumerable: true, get: function () { return stakingManagerV2_json_1.stakingManagerV2_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 { stakingManagerV2_jsonAbi, stakingManagerV2_json } from './stakingManagerV2_json';
|
|
5
|
+
export type { stakingManagerV2_jsonAbi as stakingManagerV2_jsonAbiType, stakingManagerV2_jsonContract } from './stakingManagerV2_json';
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
3
|
+
* stakingManagerV2_json ABI
|
|
14
4
|
*
|
|
15
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
16
6
|
*/
|
|
17
|
-
export declare const
|
|
7
|
+
export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
18
8
|
readonly inputs: readonly [];
|
|
19
9
|
readonly stateMutability: "nonpayable";
|
|
20
10
|
readonly type: "constructor";
|
|
@@ -89,14 +79,30 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
89
79
|
readonly name: "Withdraw";
|
|
90
80
|
readonly type: "event";
|
|
91
81
|
}, {
|
|
92
|
-
readonly inputs: readonly [
|
|
93
|
-
|
|
94
|
-
|
|
82
|
+
readonly inputs: readonly [{
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
readonly name: "_rewardTokenAddress";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}, {
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
readonly name: "_presale";
|
|
89
|
+
readonly type: "address";
|
|
90
|
+
}, {
|
|
95
91
|
readonly internalType: "uint256";
|
|
96
|
-
readonly name: "";
|
|
92
|
+
readonly name: "_rewardTokensPerBlock";
|
|
93
|
+
readonly type: "uint256";
|
|
94
|
+
}, {
|
|
95
|
+
readonly internalType: "uint256";
|
|
96
|
+
readonly name: "_lockTime";
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
}, {
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
readonly name: "_endBlock";
|
|
97
101
|
readonly type: "uint256";
|
|
98
102
|
}];
|
|
99
|
-
readonly
|
|
103
|
+
readonly name: "__stakingManager_init";
|
|
104
|
+
readonly outputs: readonly [];
|
|
105
|
+
readonly stateMutability: "nonpayable";
|
|
100
106
|
readonly type: "function";
|
|
101
107
|
}, {
|
|
102
108
|
readonly inputs: readonly [{
|
|
@@ -219,35 +225,30 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
219
225
|
}, {
|
|
220
226
|
readonly inputs: readonly [{
|
|
221
227
|
readonly internalType: "address";
|
|
222
|
-
readonly name: "
|
|
228
|
+
readonly name: "";
|
|
223
229
|
readonly type: "address";
|
|
224
230
|
}];
|
|
225
231
|
readonly name: "poolStakers";
|
|
226
232
|
readonly outputs: readonly [{
|
|
227
|
-
readonly
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
readonly type: "uint256";
|
|
247
|
-
}];
|
|
248
|
-
readonly internalType: "struct stakingManagerV4.PoolStaker";
|
|
249
|
-
readonly name: "";
|
|
250
|
-
readonly type: "tuple";
|
|
233
|
+
readonly internalType: "uint256";
|
|
234
|
+
readonly name: "amount";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
readonly name: "stakedTime";
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
}, {
|
|
241
|
+
readonly internalType: "uint256";
|
|
242
|
+
readonly name: "lastUpdatedBlock";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
}, {
|
|
245
|
+
readonly internalType: "uint256";
|
|
246
|
+
readonly name: "Harvestedrewards";
|
|
247
|
+
readonly type: "uint256";
|
|
248
|
+
}, {
|
|
249
|
+
readonly internalType: "uint256";
|
|
250
|
+
readonly name: "rewardDebt";
|
|
251
|
+
readonly type: "uint256";
|
|
251
252
|
}];
|
|
252
253
|
readonly stateMutability: "view";
|
|
253
254
|
readonly type: "function";
|
|
@@ -347,26 +348,6 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
347
348
|
readonly outputs: readonly [];
|
|
348
349
|
readonly stateMutability: "nonpayable";
|
|
349
350
|
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";
|
|
370
351
|
}, {
|
|
371
352
|
readonly inputs: readonly [];
|
|
372
353
|
readonly name: "stakeToken";
|
|
@@ -378,18 +359,22 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
378
359
|
readonly stateMutability: "view";
|
|
379
360
|
readonly type: "function";
|
|
380
361
|
}, {
|
|
381
|
-
readonly inputs: readonly [
|
|
382
|
-
|
|
383
|
-
|
|
362
|
+
readonly inputs: readonly [{
|
|
363
|
+
readonly internalType: "address";
|
|
364
|
+
readonly name: "_token";
|
|
365
|
+
readonly type: "address";
|
|
366
|
+
}, {
|
|
384
367
|
readonly internalType: "uint256";
|
|
385
|
-
readonly name: "";
|
|
368
|
+
readonly name: "_amount";
|
|
386
369
|
readonly type: "uint256";
|
|
387
370
|
}];
|
|
388
|
-
readonly
|
|
371
|
+
readonly name: "tokenTransfer";
|
|
372
|
+
readonly outputs: readonly [];
|
|
373
|
+
readonly stateMutability: "nonpayable";
|
|
389
374
|
readonly type: "function";
|
|
390
375
|
}, {
|
|
391
376
|
readonly inputs: readonly [];
|
|
392
|
-
readonly name: "
|
|
377
|
+
readonly name: "tokensStaked";
|
|
393
378
|
readonly outputs: readonly [{
|
|
394
379
|
readonly internalType: "uint256";
|
|
395
380
|
readonly name: "";
|
|
@@ -399,7 +384,7 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
399
384
|
readonly type: "function";
|
|
400
385
|
}, {
|
|
401
386
|
readonly inputs: readonly [];
|
|
402
|
-
readonly name: "
|
|
387
|
+
readonly name: "tokensStakedByPresale";
|
|
403
388
|
readonly outputs: readonly [{
|
|
404
389
|
readonly internalType: "uint256";
|
|
405
390
|
readonly name: "";
|
|
@@ -431,54 +416,6 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
431
416
|
}];
|
|
432
417
|
readonly stateMutability: "view";
|
|
433
418
|
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";
|
|
452
|
-
}, {
|
|
453
|
-
readonly inputs: readonly [];
|
|
454
|
-
readonly name: "vestLock";
|
|
455
|
-
readonly outputs: readonly [{
|
|
456
|
-
readonly internalType: "bool";
|
|
457
|
-
readonly name: "";
|
|
458
|
-
readonly type: "bool";
|
|
459
|
-
}];
|
|
460
|
-
readonly stateMutability: "view";
|
|
461
|
-
readonly type: "function";
|
|
462
|
-
}, {
|
|
463
|
-
readonly inputs: readonly [];
|
|
464
|
-
readonly name: "vestingEndTime";
|
|
465
|
-
readonly outputs: readonly [{
|
|
466
|
-
readonly internalType: "uint256";
|
|
467
|
-
readonly name: "";
|
|
468
|
-
readonly type: "uint256";
|
|
469
|
-
}];
|
|
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
419
|
}, {
|
|
483
420
|
readonly inputs: readonly [];
|
|
484
421
|
readonly name: "withdraw";
|
|
@@ -487,15 +424,15 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
487
424
|
readonly type: "function";
|
|
488
425
|
}];
|
|
489
426
|
/**
|
|
490
|
-
* Type-safe ABI for
|
|
427
|
+
* Type-safe ABI for stakingManagerV2_json
|
|
491
428
|
*/
|
|
492
|
-
export type
|
|
429
|
+
export type stakingManagerV2_jsonAbi = typeof stakingManagerV2_jsonAbi;
|
|
493
430
|
/**
|
|
494
|
-
* Contract instance type for
|
|
431
|
+
* Contract instance type for stakingManagerV2_json
|
|
495
432
|
*/
|
|
496
|
-
export type
|
|
433
|
+
export type stakingManagerV2_jsonContract = any;
|
|
497
434
|
/**
|
|
498
|
-
*
|
|
435
|
+
* stakingManagerV2_json Contract Class
|
|
499
436
|
*
|
|
500
437
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
501
438
|
*
|
|
@@ -503,12 +440,12 @@ export type stakingManagerV4_jsonContract = any;
|
|
|
503
440
|
* ```typescript
|
|
504
441
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
505
442
|
* import { mainnet } from 'viem/chains';
|
|
506
|
-
* import {
|
|
443
|
+
* import { stakingManagerV2_json } from 'stakingManagerV2_json';
|
|
507
444
|
*
|
|
508
445
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
509
446
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
510
447
|
*
|
|
511
|
-
* const contract = new
|
|
448
|
+
* const contract = new stakingManagerV2_json('0x...', { publicClient, walletClient });
|
|
512
449
|
*
|
|
513
450
|
* // Read functions
|
|
514
451
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -526,7 +463,7 @@ export type stakingManagerV4_jsonContract = any;
|
|
|
526
463
|
* });
|
|
527
464
|
* ```
|
|
528
465
|
*/
|
|
529
|
-
export declare class
|
|
466
|
+
export declare class stakingManagerV2_json {
|
|
530
467
|
private contract;
|
|
531
468
|
private contractAddress;
|
|
532
469
|
private publicClient;
|
|
@@ -541,12 +478,7 @@ export declare class stakingManagerV4_json {
|
|
|
541
478
|
/**
|
|
542
479
|
* Get the underlying viem contract instance
|
|
543
480
|
*/
|
|
544
|
-
getContract():
|
|
545
|
-
/**
|
|
546
|
-
* accShareOld
|
|
547
|
-
* view
|
|
548
|
-
*/
|
|
549
|
-
accShareOld(): Promise<bigint>;
|
|
481
|
+
getContract(): stakingManagerV2_jsonContract;
|
|
550
482
|
/**
|
|
551
483
|
* claimStart
|
|
552
484
|
* view
|
|
@@ -586,7 +518,7 @@ export declare class stakingManagerV4_json {
|
|
|
586
518
|
* poolStakers
|
|
587
519
|
* view
|
|
588
520
|
*/
|
|
589
|
-
poolStakers(
|
|
521
|
+
poolStakers(arg0: `0x${string}`): Promise<[bigint, bigint, bigint, bigint, bigint]>;
|
|
590
522
|
/**
|
|
591
523
|
* presaleContract
|
|
592
524
|
* view
|
|
@@ -612,36 +544,28 @@ export declare class stakingManagerV4_json {
|
|
|
612
544
|
* view
|
|
613
545
|
*/
|
|
614
546
|
tokensStakedByPresale(): Promise<bigint>;
|
|
615
|
-
/**
|
|
616
|
-
* tokensStakedPrev
|
|
617
|
-
* view
|
|
618
|
-
*/
|
|
619
|
-
tokensStakedPrev(): Promise<bigint>;
|
|
620
547
|
/**
|
|
621
548
|
* userLockedRewards
|
|
622
549
|
* view
|
|
623
550
|
*/
|
|
624
551
|
userLockedRewards(arg0: `0x${string}`): Promise<bigint>;
|
|
625
552
|
/**
|
|
626
|
-
*
|
|
627
|
-
*
|
|
628
|
-
|
|
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
|
|
553
|
+
* __stakingManager_init
|
|
554
|
+
* nonpayable
|
|
555
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
643
556
|
*/
|
|
644
|
-
|
|
557
|
+
__stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
558
|
+
accessList?: import('viem').AccessList;
|
|
559
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
560
|
+
chain?: import('viem').Chain | null;
|
|
561
|
+
dataSuffix?: `0x${string}`;
|
|
562
|
+
gas?: bigint;
|
|
563
|
+
gasPrice?: bigint;
|
|
564
|
+
maxFeePerGas?: bigint;
|
|
565
|
+
maxPriorityFeePerGas?: bigint;
|
|
566
|
+
nonce?: number;
|
|
567
|
+
value?: bigint;
|
|
568
|
+
}): Promise<`0x${string}`>;
|
|
645
569
|
/**
|
|
646
570
|
* blacklistUsers
|
|
647
571
|
* nonpayable
|
|
@@ -847,28 +771,11 @@ export declare class stakingManagerV4_json {
|
|
|
847
771
|
value?: bigint;
|
|
848
772
|
}): Promise<`0x${string}`>;
|
|
849
773
|
/**
|
|
850
|
-
*
|
|
851
|
-
* nonpayable
|
|
852
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
853
|
-
*/
|
|
854
|
-
setVestLock(_vestLock: boolean, options?: {
|
|
855
|
-
accessList?: import('viem').AccessList;
|
|
856
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
857
|
-
chain?: import('viem').Chain | null;
|
|
858
|
-
dataSuffix?: `0x${string}`;
|
|
859
|
-
gas?: bigint;
|
|
860
|
-
gasPrice?: bigint;
|
|
861
|
-
maxFeePerGas?: bigint;
|
|
862
|
-
maxPriorityFeePerGas?: bigint;
|
|
863
|
-
nonce?: number;
|
|
864
|
-
value?: bigint;
|
|
865
|
-
}): Promise<`0x${string}`>;
|
|
866
|
-
/**
|
|
867
|
-
* setVestingDetails
|
|
774
|
+
* tokenTransfer
|
|
868
775
|
* nonpayable
|
|
869
776
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
870
777
|
*/
|
|
871
|
-
|
|
778
|
+
tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
|
|
872
779
|
accessList?: import('viem').AccessList;
|
|
873
780
|
authorizationList?: import('viem').AuthorizationList;
|
|
874
781
|
chain?: import('viem').Chain | null;
|
|
@@ -923,6 +830,23 @@ export declare class stakingManagerV4_json {
|
|
|
923
830
|
* console.log('Would succeed:', result.result);
|
|
924
831
|
*/
|
|
925
832
|
get simulate(): {
|
|
833
|
+
/**
|
|
834
|
+
* Simulate __stakingManager_init
|
|
835
|
+
* Returns gas estimate and result without sending transaction
|
|
836
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
837
|
+
*/
|
|
838
|
+
__stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
839
|
+
accessList?: import("viem").AccessList;
|
|
840
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
841
|
+
chain?: import("viem").Chain | null;
|
|
842
|
+
dataSuffix?: `0x${string}`;
|
|
843
|
+
gas?: bigint;
|
|
844
|
+
gasPrice?: bigint;
|
|
845
|
+
maxFeePerGas?: bigint;
|
|
846
|
+
maxPriorityFeePerGas?: bigint;
|
|
847
|
+
nonce?: number;
|
|
848
|
+
value?: bigint;
|
|
849
|
+
}): Promise<void>;
|
|
926
850
|
/**
|
|
927
851
|
* Simulate blacklistUsers
|
|
928
852
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1128,28 +1052,11 @@ export declare class stakingManagerV4_json {
|
|
|
1128
1052
|
value?: bigint;
|
|
1129
1053
|
}): Promise<void>;
|
|
1130
1054
|
/**
|
|
1131
|
-
* Simulate
|
|
1132
|
-
* Returns gas estimate and result without sending transaction
|
|
1133
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1134
|
-
*/
|
|
1135
|
-
setVestLock(_vestLock: boolean, options?: {
|
|
1136
|
-
accessList?: import("viem").AccessList;
|
|
1137
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1138
|
-
chain?: import("viem").Chain | null;
|
|
1139
|
-
dataSuffix?: `0x${string}`;
|
|
1140
|
-
gas?: bigint;
|
|
1141
|
-
gasPrice?: bigint;
|
|
1142
|
-
maxFeePerGas?: bigint;
|
|
1143
|
-
maxPriorityFeePerGas?: bigint;
|
|
1144
|
-
nonce?: number;
|
|
1145
|
-
value?: bigint;
|
|
1146
|
-
}): Promise<void>;
|
|
1147
|
-
/**
|
|
1148
|
-
* Simulate setVestingDetails
|
|
1055
|
+
* Simulate tokenTransfer
|
|
1149
1056
|
* Returns gas estimate and result without sending transaction
|
|
1150
1057
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1151
1058
|
*/
|
|
1152
|
-
|
|
1059
|
+
tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
|
|
1153
1060
|
accessList?: import("viem").AccessList;
|
|
1154
1061
|
authorizationList?: import("viem").AuthorizationList;
|
|
1155
1062
|
chain?: import("viem").Chain | null;
|