@gitmyabi/stakingmanager 1.0.4 → 1.0.5
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/{stakingManagerV2_json.d.ts → stakingManagerV4_json.d.ts} +112 -264
- package/contracts/{stakingManagerV2_json.js → stakingManagerV4_json.js} +146 -214
- package/contracts/{stakingManagerV2_json.ts → stakingManagerV4_json.ts} +152 -333
- 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-72ade8fd-1789866557385`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `3a2ad16`
|
|
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.5
|
|
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,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* stakingManagerV4_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 stakingManagerV4_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [];
|
|
9
9
|
readonly stateMutability: "nonpayable";
|
|
10
10
|
readonly type: "constructor";
|
|
@@ -75,34 +75,58 @@ export declare const stakingManagerV2_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";
|
|
78
83
|
}];
|
|
79
|
-
readonly name: "
|
|
84
|
+
readonly name: "RestakePrincipal";
|
|
80
85
|
readonly type: "event";
|
|
81
86
|
}, {
|
|
87
|
+
readonly anonymous: false;
|
|
82
88
|
readonly inputs: readonly [{
|
|
89
|
+
readonly indexed: true;
|
|
83
90
|
readonly internalType: "address";
|
|
84
|
-
readonly name: "
|
|
85
|
-
readonly type: "address";
|
|
86
|
-
}, {
|
|
87
|
-
readonly internalType: "address";
|
|
88
|
-
readonly name: "_presale";
|
|
91
|
+
readonly name: "user";
|
|
89
92
|
readonly type: "address";
|
|
90
93
|
}, {
|
|
94
|
+
readonly indexed: false;
|
|
91
95
|
readonly internalType: "uint256";
|
|
92
|
-
readonly name: "
|
|
96
|
+
readonly name: "amount";
|
|
93
97
|
readonly type: "uint256";
|
|
94
98
|
}, {
|
|
99
|
+
readonly indexed: false;
|
|
95
100
|
readonly internalType: "uint256";
|
|
96
|
-
readonly name: "
|
|
101
|
+
readonly name: "timestamp";
|
|
97
102
|
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";
|
|
98
113
|
}, {
|
|
114
|
+
readonly indexed: false;
|
|
99
115
|
readonly internalType: "uint256";
|
|
100
|
-
readonly name: "
|
|
116
|
+
readonly name: "amount";
|
|
101
117
|
readonly type: "uint256";
|
|
102
118
|
}];
|
|
103
|
-
readonly name: "
|
|
104
|
-
readonly
|
|
105
|
-
|
|
119
|
+
readonly name: "Withdraw";
|
|
120
|
+
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";
|
|
106
130
|
readonly type: "function";
|
|
107
131
|
}, {
|
|
108
132
|
readonly inputs: readonly [{
|
|
@@ -124,30 +148,6 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
124
148
|
}];
|
|
125
149
|
readonly stateMutability: "view";
|
|
126
150
|
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,6 +212,16 @@ export declare const stakingManagerV2_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";
|
|
215
225
|
}, {
|
|
216
226
|
readonly inputs: readonly [];
|
|
217
227
|
readonly name: "owner";
|
|
@@ -278,6 +288,12 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
278
288
|
readonly outputs: readonly [];
|
|
279
289
|
readonly stateMutability: "nonpayable";
|
|
280
290
|
readonly type: "function";
|
|
291
|
+
}, {
|
|
292
|
+
readonly inputs: readonly [];
|
|
293
|
+
readonly name: "restakeNew";
|
|
294
|
+
readonly outputs: readonly [];
|
|
295
|
+
readonly stateMutability: "nonpayable";
|
|
296
|
+
readonly type: "function";
|
|
281
297
|
}, {
|
|
282
298
|
readonly inputs: readonly [];
|
|
283
299
|
readonly name: "rewardTokensPerBlock";
|
|
@@ -288,16 +304,6 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
288
304
|
}];
|
|
289
305
|
readonly stateMutability: "view";
|
|
290
306
|
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";
|
|
301
307
|
}, {
|
|
302
308
|
readonly inputs: readonly [{
|
|
303
309
|
readonly internalType: "uint256";
|
|
@@ -308,33 +314,13 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
308
314
|
readonly outputs: readonly [];
|
|
309
315
|
readonly stateMutability: "nonpayable";
|
|
310
316
|
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";
|
|
331
317
|
}, {
|
|
332
318
|
readonly inputs: readonly [{
|
|
333
319
|
readonly internalType: "address";
|
|
334
|
-
readonly name: "
|
|
320
|
+
readonly name: "_stakingContract";
|
|
335
321
|
readonly type: "address";
|
|
336
322
|
}];
|
|
337
|
-
readonly name: "
|
|
323
|
+
readonly name: "setNewStaking";
|
|
338
324
|
readonly outputs: readonly [];
|
|
339
325
|
readonly stateMutability: "nonpayable";
|
|
340
326
|
readonly type: "function";
|
|
@@ -360,12 +346,8 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
360
346
|
readonly type: "function";
|
|
361
347
|
}, {
|
|
362
348
|
readonly inputs: readonly [{
|
|
363
|
-
readonly internalType: "address";
|
|
364
|
-
readonly name: "_token";
|
|
365
|
-
readonly type: "address";
|
|
366
|
-
}, {
|
|
367
349
|
readonly internalType: "uint256";
|
|
368
|
-
readonly name: "
|
|
350
|
+
readonly name: "amount";
|
|
369
351
|
readonly type: "uint256";
|
|
370
352
|
}];
|
|
371
353
|
readonly name: "tokenTransfer";
|
|
@@ -424,15 +406,15 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
424
406
|
readonly type: "function";
|
|
425
407
|
}];
|
|
426
408
|
/**
|
|
427
|
-
* Type-safe ABI for
|
|
409
|
+
* Type-safe ABI for stakingManagerV4_json
|
|
428
410
|
*/
|
|
429
|
-
export type
|
|
411
|
+
export type stakingManagerV4_jsonAbi = typeof stakingManagerV4_jsonAbi;
|
|
430
412
|
/**
|
|
431
|
-
* Contract instance type for
|
|
413
|
+
* Contract instance type for stakingManagerV4_json
|
|
432
414
|
*/
|
|
433
|
-
export type
|
|
415
|
+
export type stakingManagerV4_jsonContract = any;
|
|
434
416
|
/**
|
|
435
|
-
*
|
|
417
|
+
* stakingManagerV4_json Contract Class
|
|
436
418
|
*
|
|
437
419
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
438
420
|
*
|
|
@@ -440,12 +422,12 @@ export type stakingManagerV2_jsonContract = any;
|
|
|
440
422
|
* ```typescript
|
|
441
423
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
442
424
|
* import { mainnet } from 'viem/chains';
|
|
443
|
-
* import {
|
|
425
|
+
* import { stakingManagerV4_json } from 'stakingManagerV4_json';
|
|
444
426
|
*
|
|
445
427
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
446
428
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
447
429
|
*
|
|
448
|
-
* const contract = new
|
|
430
|
+
* const contract = new stakingManagerV4_json('0x...', { publicClient, walletClient });
|
|
449
431
|
*
|
|
450
432
|
* // Read functions
|
|
451
433
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -463,7 +445,7 @@ export type stakingManagerV2_jsonContract = any;
|
|
|
463
445
|
* });
|
|
464
446
|
* ```
|
|
465
447
|
*/
|
|
466
|
-
export declare class
|
|
448
|
+
export declare class stakingManagerV4_json {
|
|
467
449
|
private contract;
|
|
468
450
|
private contractAddress;
|
|
469
451
|
private publicClient;
|
|
@@ -478,7 +460,12 @@ export declare class stakingManagerV2_json {
|
|
|
478
460
|
/**
|
|
479
461
|
* Get the underlying viem contract instance
|
|
480
462
|
*/
|
|
481
|
-
getContract():
|
|
463
|
+
getContract(): stakingManagerV4_jsonContract;
|
|
464
|
+
/**
|
|
465
|
+
* DEV_WALLET
|
|
466
|
+
* view
|
|
467
|
+
*/
|
|
468
|
+
DEV_WALLET(): Promise<`0x${string}`>;
|
|
482
469
|
/**
|
|
483
470
|
* claimStart
|
|
484
471
|
* view
|
|
@@ -509,6 +496,11 @@ export declare class stakingManagerV2_json {
|
|
|
509
496
|
* view
|
|
510
497
|
*/
|
|
511
498
|
lockedTime(): Promise<bigint>;
|
|
499
|
+
/**
|
|
500
|
+
* newStaking
|
|
501
|
+
* view
|
|
502
|
+
*/
|
|
503
|
+
newStaking(): Promise<`0x${string}`>;
|
|
512
504
|
/**
|
|
513
505
|
* owner
|
|
514
506
|
* view
|
|
@@ -549,23 +541,6 @@ export declare class stakingManagerV2_json {
|
|
|
549
541
|
* view
|
|
550
542
|
*/
|
|
551
543
|
userLockedRewards(arg0: `0x${string}`): Promise<bigint>;
|
|
552
|
-
/**
|
|
553
|
-
* __stakingManager_init
|
|
554
|
-
* nonpayable
|
|
555
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
556
|
-
*/
|
|
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}`>;
|
|
569
544
|
/**
|
|
570
545
|
* blacklistUsers
|
|
571
546
|
* nonpayable
|
|
@@ -583,40 +558,6 @@ export declare class stakingManagerV2_json {
|
|
|
583
558
|
nonce?: number;
|
|
584
559
|
value?: bigint;
|
|
585
560
|
}): Promise<`0x${string}`>;
|
|
586
|
-
/**
|
|
587
|
-
* deposit
|
|
588
|
-
* nonpayable
|
|
589
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
590
|
-
*/
|
|
591
|
-
deposit(_amount: bigint, options?: {
|
|
592
|
-
accessList?: import('viem').AccessList;
|
|
593
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
594
|
-
chain?: import('viem').Chain | null;
|
|
595
|
-
dataSuffix?: `0x${string}`;
|
|
596
|
-
gas?: bigint;
|
|
597
|
-
gasPrice?: bigint;
|
|
598
|
-
maxFeePerGas?: bigint;
|
|
599
|
-
maxPriorityFeePerGas?: bigint;
|
|
600
|
-
nonce?: number;
|
|
601
|
-
value?: bigint;
|
|
602
|
-
}): Promise<`0x${string}`>;
|
|
603
|
-
/**
|
|
604
|
-
* depositByPresale
|
|
605
|
-
* nonpayable
|
|
606
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
607
|
-
*/
|
|
608
|
-
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
609
|
-
accessList?: import('viem').AccessList;
|
|
610
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
611
|
-
chain?: import('viem').Chain | null;
|
|
612
|
-
dataSuffix?: `0x${string}`;
|
|
613
|
-
gas?: bigint;
|
|
614
|
-
gasPrice?: bigint;
|
|
615
|
-
maxFeePerGas?: bigint;
|
|
616
|
-
maxPriorityFeePerGas?: bigint;
|
|
617
|
-
nonce?: number;
|
|
618
|
-
value?: bigint;
|
|
619
|
-
}): Promise<`0x${string}`>;
|
|
620
561
|
/**
|
|
621
562
|
* harvestRewards
|
|
622
563
|
* nonpayable
|
|
@@ -669,11 +610,11 @@ export declare class stakingManagerV2_json {
|
|
|
669
610
|
value?: bigint;
|
|
670
611
|
}): Promise<`0x${string}`>;
|
|
671
612
|
/**
|
|
672
|
-
*
|
|
613
|
+
* restakeNew
|
|
673
614
|
* nonpayable
|
|
674
615
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
675
616
|
*/
|
|
676
|
-
|
|
617
|
+
restakeNew(options?: {
|
|
677
618
|
accessList?: import('viem').AccessList;
|
|
678
619
|
authorizationList?: import('viem').AuthorizationList;
|
|
679
620
|
chain?: import('viem').Chain | null;
|
|
@@ -703,45 +644,11 @@ export declare class stakingManagerV2_json {
|
|
|
703
644
|
value?: bigint;
|
|
704
645
|
}): Promise<`0x${string}`>;
|
|
705
646
|
/**
|
|
706
|
-
*
|
|
647
|
+
* setNewStaking
|
|
707
648
|
* nonpayable
|
|
708
649
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
709
650
|
*/
|
|
710
|
-
|
|
711
|
-
accessList?: import('viem').AccessList;
|
|
712
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
713
|
-
chain?: import('viem').Chain | null;
|
|
714
|
-
dataSuffix?: `0x${string}`;
|
|
715
|
-
gas?: bigint;
|
|
716
|
-
gasPrice?: bigint;
|
|
717
|
-
maxFeePerGas?: bigint;
|
|
718
|
-
maxPriorityFeePerGas?: bigint;
|
|
719
|
-
nonce?: number;
|
|
720
|
-
value?: bigint;
|
|
721
|
-
}): Promise<`0x${string}`>;
|
|
722
|
-
/**
|
|
723
|
-
* setLockedTime
|
|
724
|
-
* nonpayable
|
|
725
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
726
|
-
*/
|
|
727
|
-
setLockedTime(_time: bigint, options?: {
|
|
728
|
-
accessList?: import('viem').AccessList;
|
|
729
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
730
|
-
chain?: import('viem').Chain | null;
|
|
731
|
-
dataSuffix?: `0x${string}`;
|
|
732
|
-
gas?: bigint;
|
|
733
|
-
gasPrice?: bigint;
|
|
734
|
-
maxFeePerGas?: bigint;
|
|
735
|
-
maxPriorityFeePerGas?: bigint;
|
|
736
|
-
nonce?: number;
|
|
737
|
-
value?: bigint;
|
|
738
|
-
}): Promise<`0x${string}`>;
|
|
739
|
-
/**
|
|
740
|
-
* setPresale
|
|
741
|
-
* nonpayable
|
|
742
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
743
|
-
*/
|
|
744
|
-
setPresale(_presale: `0x${string}`, options?: {
|
|
651
|
+
setNewStaking(_stakingContract: `0x${string}`, options?: {
|
|
745
652
|
accessList?: import('viem').AccessList;
|
|
746
653
|
authorizationList?: import('viem').AuthorizationList;
|
|
747
654
|
chain?: import('viem').Chain | null;
|
|
@@ -775,7 +682,7 @@ export declare class stakingManagerV2_json {
|
|
|
775
682
|
* nonpayable
|
|
776
683
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
777
684
|
*/
|
|
778
|
-
tokenTransfer(
|
|
685
|
+
tokenTransfer(amount: bigint, options?: {
|
|
779
686
|
accessList?: import('viem').AccessList;
|
|
780
687
|
authorizationList?: import('viem').AuthorizationList;
|
|
781
688
|
chain?: import('viem').Chain | null;
|
|
@@ -830,23 +737,6 @@ export declare class stakingManagerV2_json {
|
|
|
830
737
|
* console.log('Would succeed:', result.result);
|
|
831
738
|
*/
|
|
832
739
|
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>;
|
|
850
740
|
/**
|
|
851
741
|
* Simulate blacklistUsers
|
|
852
742
|
* Returns gas estimate and result without sending transaction
|
|
@@ -864,40 +754,6 @@ export declare class stakingManagerV2_json {
|
|
|
864
754
|
nonce?: number;
|
|
865
755
|
value?: bigint;
|
|
866
756
|
}): Promise<void>;
|
|
867
|
-
/**
|
|
868
|
-
* Simulate deposit
|
|
869
|
-
* Returns gas estimate and result without sending transaction
|
|
870
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
871
|
-
*/
|
|
872
|
-
deposit(_amount: bigint, options?: {
|
|
873
|
-
accessList?: import("viem").AccessList;
|
|
874
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
875
|
-
chain?: import("viem").Chain | null;
|
|
876
|
-
dataSuffix?: `0x${string}`;
|
|
877
|
-
gas?: bigint;
|
|
878
|
-
gasPrice?: bigint;
|
|
879
|
-
maxFeePerGas?: bigint;
|
|
880
|
-
maxPriorityFeePerGas?: bigint;
|
|
881
|
-
nonce?: number;
|
|
882
|
-
value?: bigint;
|
|
883
|
-
}): Promise<void>;
|
|
884
|
-
/**
|
|
885
|
-
* Simulate depositByPresale
|
|
886
|
-
* Returns gas estimate and result without sending transaction
|
|
887
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
888
|
-
*/
|
|
889
|
-
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
890
|
-
accessList?: import("viem").AccessList;
|
|
891
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
892
|
-
chain?: import("viem").Chain | null;
|
|
893
|
-
dataSuffix?: `0x${string}`;
|
|
894
|
-
gas?: bigint;
|
|
895
|
-
gasPrice?: bigint;
|
|
896
|
-
maxFeePerGas?: bigint;
|
|
897
|
-
maxPriorityFeePerGas?: bigint;
|
|
898
|
-
nonce?: number;
|
|
899
|
-
value?: bigint;
|
|
900
|
-
}): Promise<void>;
|
|
901
757
|
/**
|
|
902
758
|
* Simulate harvestRewards
|
|
903
759
|
* Returns gas estimate and result without sending transaction
|
|
@@ -950,11 +806,11 @@ export declare class stakingManagerV2_json {
|
|
|
950
806
|
value?: bigint;
|
|
951
807
|
}): Promise<void>;
|
|
952
808
|
/**
|
|
953
|
-
* Simulate
|
|
809
|
+
* Simulate restakeNew
|
|
954
810
|
* Returns gas estimate and result without sending transaction
|
|
955
811
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
956
812
|
*/
|
|
957
|
-
|
|
813
|
+
restakeNew(options?: {
|
|
958
814
|
accessList?: import("viem").AccessList;
|
|
959
815
|
authorizationList?: import("viem").AuthorizationList;
|
|
960
816
|
chain?: import("viem").Chain | null;
|
|
@@ -984,45 +840,11 @@ export declare class stakingManagerV2_json {
|
|
|
984
840
|
value?: bigint;
|
|
985
841
|
}): Promise<void>;
|
|
986
842
|
/**
|
|
987
|
-
* Simulate
|
|
988
|
-
* Returns gas estimate and result without sending transaction
|
|
989
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
990
|
-
*/
|
|
991
|
-
setHarvestLock(_harvestlock: boolean, options?: {
|
|
992
|
-
accessList?: import("viem").AccessList;
|
|
993
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
994
|
-
chain?: import("viem").Chain | null;
|
|
995
|
-
dataSuffix?: `0x${string}`;
|
|
996
|
-
gas?: bigint;
|
|
997
|
-
gasPrice?: bigint;
|
|
998
|
-
maxFeePerGas?: bigint;
|
|
999
|
-
maxPriorityFeePerGas?: bigint;
|
|
1000
|
-
nonce?: number;
|
|
1001
|
-
value?: bigint;
|
|
1002
|
-
}): Promise<void>;
|
|
1003
|
-
/**
|
|
1004
|
-
* Simulate setLockedTime
|
|
1005
|
-
* Returns gas estimate and result without sending transaction
|
|
1006
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1007
|
-
*/
|
|
1008
|
-
setLockedTime(_time: bigint, options?: {
|
|
1009
|
-
accessList?: import("viem").AccessList;
|
|
1010
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1011
|
-
chain?: import("viem").Chain | null;
|
|
1012
|
-
dataSuffix?: `0x${string}`;
|
|
1013
|
-
gas?: bigint;
|
|
1014
|
-
gasPrice?: bigint;
|
|
1015
|
-
maxFeePerGas?: bigint;
|
|
1016
|
-
maxPriorityFeePerGas?: bigint;
|
|
1017
|
-
nonce?: number;
|
|
1018
|
-
value?: bigint;
|
|
1019
|
-
}): Promise<void>;
|
|
1020
|
-
/**
|
|
1021
|
-
* Simulate setPresale
|
|
843
|
+
* Simulate setNewStaking
|
|
1022
844
|
* Returns gas estimate and result without sending transaction
|
|
1023
845
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1024
846
|
*/
|
|
1025
|
-
|
|
847
|
+
setNewStaking(_stakingContract: `0x${string}`, options?: {
|
|
1026
848
|
accessList?: import("viem").AccessList;
|
|
1027
849
|
authorizationList?: import("viem").AuthorizationList;
|
|
1028
850
|
chain?: import("viem").Chain | null;
|
|
@@ -1056,7 +878,7 @@ export declare class stakingManagerV2_json {
|
|
|
1056
878
|
* Returns gas estimate and result without sending transaction
|
|
1057
879
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1058
880
|
*/
|
|
1059
|
-
tokenTransfer(
|
|
881
|
+
tokenTransfer(amount: bigint, options?: {
|
|
1060
882
|
accessList?: import("viem").AccessList;
|
|
1061
883
|
authorizationList?: import("viem").AuthorizationList;
|
|
1062
884
|
chain?: import("viem").Chain | null;
|
|
@@ -1162,6 +984,32 @@ export declare class stakingManagerV2_json {
|
|
|
1162
984
|
previousOwner: `0x${string}`;
|
|
1163
985
|
newOwner: `0x${string}`;
|
|
1164
986
|
}) => () => 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;
|
|
1165
1013
|
/**
|
|
1166
1014
|
* Watch Withdraw events
|
|
1167
1015
|
* @param callback Function to call when event is emitted
|