@gitmyabi/stakingmanager 1.0.5 → 1.0.7
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 → stakingManager_json.d.ts} +231 -127
- package/contracts/{stakingManagerV4_json.js → stakingManager_json.js} +197 -166
- package/contracts/{stakingManagerV4_json.ts → stakingManager_json.ts} +293 -172
- 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-f0bae718-1790875925081`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `659a357`
|
|
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.7
|
|
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 { stakingManager_jsonAbi, stakingManager_json } from './stakingManager_json';
|
|
4
|
+
export type { stakingManager_jsonAbi as stakingManager_jsonAbiType, stakingManager_jsonContract } from './stakingManager_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.stakingManager_json = exports.stakingManager_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 stakingManager_json_1 = require("./stakingManager_json");
|
|
9
|
+
Object.defineProperty(exports, "stakingManager_jsonAbi", { enumerable: true, get: function () { return stakingManager_json_1.stakingManager_jsonAbi; } });
|
|
10
|
+
Object.defineProperty(exports, "stakingManager_json", { enumerable: true, get: function () { return stakingManager_json_1.stakingManager_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 { stakingManager_jsonAbi, stakingManager_json } from './stakingManager_json';
|
|
5
|
+
export type { stakingManager_jsonAbi as stakingManager_jsonAbiType, stakingManager_jsonContract } from './stakingManager_json';
|
|
@@ -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";
|
|
@@ -75,58 +75,34 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
75
75
|
readonly internalType: "uint256";
|
|
76
76
|
readonly name: "amount";
|
|
77
77
|
readonly type: "uint256";
|
|
78
|
-
}, {
|
|
79
|
-
readonly indexed: false;
|
|
80
|
-
readonly internalType: "uint256";
|
|
81
|
-
readonly name: "timestamp";
|
|
82
|
-
readonly type: "uint256";
|
|
83
78
|
}];
|
|
84
|
-
readonly name: "
|
|
79
|
+
readonly name: "Withdraw";
|
|
85
80
|
readonly type: "event";
|
|
86
81
|
}, {
|
|
87
|
-
readonly anonymous: false;
|
|
88
82
|
readonly inputs: readonly [{
|
|
89
|
-
readonly indexed: true;
|
|
90
83
|
readonly internalType: "address";
|
|
91
|
-
readonly name: "
|
|
84
|
+
readonly name: "_rewardTokenAddress";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}, {
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
readonly name: "_presale";
|
|
92
89
|
readonly type: "address";
|
|
93
90
|
}, {
|
|
94
|
-
readonly indexed: false;
|
|
95
91
|
readonly internalType: "uint256";
|
|
96
|
-
readonly name: "
|
|
92
|
+
readonly name: "_rewardTokensPerBlock";
|
|
97
93
|
readonly type: "uint256";
|
|
98
94
|
}, {
|
|
99
|
-
readonly indexed: false;
|
|
100
95
|
readonly internalType: "uint256";
|
|
101
|
-
readonly name: "
|
|
96
|
+
readonly name: "_lockTime";
|
|
102
97
|
readonly type: "uint256";
|
|
103
|
-
}];
|
|
104
|
-
readonly name: "RestakeRewards";
|
|
105
|
-
readonly type: "event";
|
|
106
|
-
}, {
|
|
107
|
-
readonly anonymous: false;
|
|
108
|
-
readonly inputs: readonly [{
|
|
109
|
-
readonly indexed: true;
|
|
110
|
-
readonly internalType: "address";
|
|
111
|
-
readonly name: "user";
|
|
112
|
-
readonly type: "address";
|
|
113
98
|
}, {
|
|
114
|
-
readonly indexed: false;
|
|
115
99
|
readonly internalType: "uint256";
|
|
116
|
-
readonly name: "
|
|
100
|
+
readonly name: "_endBlock";
|
|
117
101
|
readonly type: "uint256";
|
|
118
102
|
}];
|
|
119
|
-
readonly name: "
|
|
120
|
-
readonly
|
|
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";
|
|
103
|
+
readonly name: "__stakingManager_init";
|
|
104
|
+
readonly outputs: readonly [];
|
|
105
|
+
readonly stateMutability: "nonpayable";
|
|
130
106
|
readonly type: "function";
|
|
131
107
|
}, {
|
|
132
108
|
readonly inputs: readonly [{
|
|
@@ -148,6 +124,30 @@ export declare const stakingManagerV4_jsonAbi: readonly [{
|
|
|
148
124
|
}];
|
|
149
125
|
readonly stateMutability: "view";
|
|
150
126
|
readonly type: "function";
|
|
127
|
+
}, {
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "_amount";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "deposit";
|
|
134
|
+
readonly outputs: readonly [];
|
|
135
|
+
readonly stateMutability: "nonpayable";
|
|
136
|
+
readonly type: "function";
|
|
137
|
+
}, {
|
|
138
|
+
readonly inputs: readonly [{
|
|
139
|
+
readonly internalType: "address";
|
|
140
|
+
readonly name: "_user";
|
|
141
|
+
readonly type: "address";
|
|
142
|
+
}, {
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "_amount";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
readonly name: "depositByPresale";
|
|
148
|
+
readonly outputs: readonly [];
|
|
149
|
+
readonly stateMutability: "nonpayable";
|
|
150
|
+
readonly type: "function";
|
|
151
151
|
}, {
|
|
152
152
|
readonly inputs: readonly [];
|
|
153
153
|
readonly name: "endBlock";
|
|
@@ -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
|
|
@@ -541,6 +535,23 @@ export declare class stakingManagerV4_json {
|
|
|
541
535
|
* view
|
|
542
536
|
*/
|
|
543
537
|
userLockedRewards(arg0: `0x${string}`): Promise<bigint>;
|
|
538
|
+
/**
|
|
539
|
+
* __stakingManager_init
|
|
540
|
+
* nonpayable
|
|
541
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
542
|
+
*/
|
|
543
|
+
__stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, 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<`0x${string}`>;
|
|
544
555
|
/**
|
|
545
556
|
* blacklistUsers
|
|
546
557
|
* nonpayable
|
|
@@ -558,6 +569,40 @@ export declare class stakingManagerV4_json {
|
|
|
558
569
|
nonce?: number;
|
|
559
570
|
value?: bigint;
|
|
560
571
|
}): Promise<`0x${string}`>;
|
|
572
|
+
/**
|
|
573
|
+
* deposit
|
|
574
|
+
* nonpayable
|
|
575
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
576
|
+
*/
|
|
577
|
+
deposit(_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}`>;
|
|
589
|
+
/**
|
|
590
|
+
* depositByPresale
|
|
591
|
+
* nonpayable
|
|
592
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
593
|
+
*/
|
|
594
|
+
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
595
|
+
accessList?: import('viem').AccessList;
|
|
596
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
597
|
+
chain?: import('viem').Chain | null;
|
|
598
|
+
dataSuffix?: `0x${string}`;
|
|
599
|
+
gas?: bigint;
|
|
600
|
+
gasPrice?: bigint;
|
|
601
|
+
maxFeePerGas?: bigint;
|
|
602
|
+
maxPriorityFeePerGas?: bigint;
|
|
603
|
+
nonce?: number;
|
|
604
|
+
value?: bigint;
|
|
605
|
+
}): Promise<`0x${string}`>;
|
|
561
606
|
/**
|
|
562
607
|
* harvestRewards
|
|
563
608
|
* 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,11 @@ 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?: {
|
|
669
714
|
accessList?: import('viem').AccessList;
|
|
670
715
|
authorizationList?: import('viem').AuthorizationList;
|
|
671
716
|
chain?: import('viem').Chain | null;
|
|
@@ -678,11 +723,28 @@ export declare class stakingManagerV4_json {
|
|
|
678
723
|
value?: bigint;
|
|
679
724
|
}): Promise<`0x${string}`>;
|
|
680
725
|
/**
|
|
681
|
-
*
|
|
726
|
+
* setPresale
|
|
682
727
|
* nonpayable
|
|
683
728
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
684
729
|
*/
|
|
685
|
-
|
|
730
|
+
setPresale(_presale: `0x${string}`, options?: {
|
|
731
|
+
accessList?: import('viem').AccessList;
|
|
732
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
733
|
+
chain?: import('viem').Chain | null;
|
|
734
|
+
dataSuffix?: `0x${string}`;
|
|
735
|
+
gas?: bigint;
|
|
736
|
+
gasPrice?: bigint;
|
|
737
|
+
maxFeePerGas?: bigint;
|
|
738
|
+
maxPriorityFeePerGas?: bigint;
|
|
739
|
+
nonce?: number;
|
|
740
|
+
value?: bigint;
|
|
741
|
+
}): Promise<`0x${string}`>;
|
|
742
|
+
/**
|
|
743
|
+
* setStakeToken
|
|
744
|
+
* nonpayable
|
|
745
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
746
|
+
*/
|
|
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;
|
|
@@ -737,6 +799,23 @@ export declare class stakingManagerV4_json {
|
|
|
737
799
|
* console.log('Would succeed:', result.result);
|
|
738
800
|
*/
|
|
739
801
|
get simulate(): {
|
|
802
|
+
/**
|
|
803
|
+
* Simulate __stakingManager_init
|
|
804
|
+
* Returns gas estimate and result without sending transaction
|
|
805
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
806
|
+
*/
|
|
807
|
+
__stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
808
|
+
accessList?: import("viem").AccessList;
|
|
809
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
810
|
+
chain?: import("viem").Chain | null;
|
|
811
|
+
dataSuffix?: `0x${string}`;
|
|
812
|
+
gas?: bigint;
|
|
813
|
+
gasPrice?: bigint;
|
|
814
|
+
maxFeePerGas?: bigint;
|
|
815
|
+
maxPriorityFeePerGas?: bigint;
|
|
816
|
+
nonce?: number;
|
|
817
|
+
value?: bigint;
|
|
818
|
+
}): Promise<void>;
|
|
740
819
|
/**
|
|
741
820
|
* Simulate blacklistUsers
|
|
742
821
|
* Returns gas estimate and result without sending transaction
|
|
@@ -754,6 +833,40 @@ export declare class stakingManagerV4_json {
|
|
|
754
833
|
nonce?: number;
|
|
755
834
|
value?: bigint;
|
|
756
835
|
}): Promise<void>;
|
|
836
|
+
/**
|
|
837
|
+
* Simulate deposit
|
|
838
|
+
* Returns gas estimate and result without sending transaction
|
|
839
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
840
|
+
*/
|
|
841
|
+
deposit(_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>;
|
|
853
|
+
/**
|
|
854
|
+
* Simulate depositByPresale
|
|
855
|
+
* Returns gas estimate and result without sending transaction
|
|
856
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
|
+
*/
|
|
858
|
+
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
859
|
+
accessList?: import("viem").AccessList;
|
|
860
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
861
|
+
chain?: import("viem").Chain | null;
|
|
862
|
+
dataSuffix?: `0x${string}`;
|
|
863
|
+
gas?: bigint;
|
|
864
|
+
gasPrice?: bigint;
|
|
865
|
+
maxFeePerGas?: bigint;
|
|
866
|
+
maxPriorityFeePerGas?: bigint;
|
|
867
|
+
nonce?: number;
|
|
868
|
+
value?: bigint;
|
|
869
|
+
}): Promise<void>;
|
|
757
870
|
/**
|
|
758
871
|
* Simulate harvestRewards
|
|
759
872
|
* 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,28 @@ 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?: {
|
|
978
|
+
accessList?: import("viem").AccessList;
|
|
979
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
980
|
+
chain?: import("viem").Chain | null;
|
|
981
|
+
dataSuffix?: `0x${string}`;
|
|
982
|
+
gas?: bigint;
|
|
983
|
+
gasPrice?: bigint;
|
|
984
|
+
maxFeePerGas?: bigint;
|
|
985
|
+
maxPriorityFeePerGas?: bigint;
|
|
986
|
+
nonce?: number;
|
|
987
|
+
value?: bigint;
|
|
988
|
+
}): Promise<void>;
|
|
989
|
+
/**
|
|
990
|
+
* Simulate setPresale
|
|
991
|
+
* Returns gas estimate and result without sending transaction
|
|
992
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
993
|
+
*/
|
|
994
|
+
setPresale(_presale: `0x${string}`, options?: {
|
|
865
995
|
accessList?: import("viem").AccessList;
|
|
866
996
|
authorizationList?: import("viem").AuthorizationList;
|
|
867
997
|
chain?: import("viem").Chain | null;
|
|
@@ -874,11 +1004,11 @@ export declare class stakingManagerV4_json {
|
|
|
874
1004
|
value?: bigint;
|
|
875
1005
|
}): Promise<void>;
|
|
876
1006
|
/**
|
|
877
|
-
* Simulate
|
|
1007
|
+
* Simulate setStakeToken
|
|
878
1008
|
* Returns gas estimate and result without sending transaction
|
|
879
1009
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
880
1010
|
*/
|
|
881
|
-
|
|
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
|