@gitmyabi/stakingmanager 1.0.1 → 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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **stakingManager**
4
4
 
5
- - **Build ID**: `etherscan-stakingmanager-e555f27e-1786694254950`
5
+ - **Build ID**: `etherscan-stakingmanager-b8bc5c11-1787551874450`
6
6
  - **Build Number**: 1
7
- - **Commit**: `4028b21`
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.1
15
+ npm install @gitmyabi/stakingmanager@1.0.3
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -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 { stakingManagerV2_jsonAbi, stakingManagerV2_json } from './stakingManagerV2_json';
4
- export type { stakingManagerV2_jsonAbi as stakingManagerV2_jsonAbiType, stakingManagerV2_jsonContract } from './stakingManagerV2_json';
3
+ export { stakingManagerV4_jsonAbi, stakingManagerV4_json } from './stakingManagerV4_json';
4
+ export type { stakingManagerV4_jsonAbi as stakingManagerV4_jsonAbiType, stakingManagerV4_jsonContract } from './stakingManagerV4_json';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stakingManagerV2_json = exports.stakingManagerV2_jsonAbi = exports.TransparentUpgradeableProxy_json = exports.TransparentUpgradeableProxy_jsonAbi = void 0;
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 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; } });
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; } });
@@ -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 { stakingManagerV2_jsonAbi, stakingManagerV2_json } from './stakingManagerV2_json';
5
- export type { stakingManagerV2_jsonAbi as stakingManagerV2_jsonAbiType, stakingManagerV2_jsonContract } from './stakingManagerV2_json';
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
- * stakingManagerV2_json ABI
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 stakingManagerV2_jsonAbi: readonly [{
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 stakingManagerV2_jsonAbi: readonly [{
79
89
  readonly name: "Withdraw";
80
90
  readonly type: "event";
81
91
  }, {
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
- }, {
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: "_endBlock";
96
+ readonly name: "";
101
97
  readonly type: "uint256";
102
98
  }];
103
- readonly name: "__stakingManager_init";
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 stakingManagerV2_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 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";
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 stakingManagerV2_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";
@@ -359,22 +378,18 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
359
378
  readonly stateMutability: "view";
360
379
  readonly type: "function";
361
380
  }, {
362
- readonly inputs: readonly [{
363
- readonly internalType: "address";
364
- readonly name: "_token";
365
- readonly type: "address";
366
- }, {
381
+ readonly inputs: readonly [];
382
+ readonly name: "tokensStaked";
383
+ readonly outputs: readonly [{
367
384
  readonly internalType: "uint256";
368
- readonly name: "_amount";
385
+ readonly name: "";
369
386
  readonly type: "uint256";
370
387
  }];
371
- readonly name: "tokenTransfer";
372
- readonly outputs: readonly [];
373
- readonly stateMutability: "nonpayable";
388
+ readonly stateMutability: "view";
374
389
  readonly type: "function";
375
390
  }, {
376
391
  readonly inputs: readonly [];
377
- readonly name: "tokensStaked";
392
+ readonly name: "tokensStakedByPresale";
378
393
  readonly outputs: readonly [{
379
394
  readonly internalType: "uint256";
380
395
  readonly name: "";
@@ -384,7 +399,7 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
384
399
  readonly type: "function";
385
400
  }, {
386
401
  readonly inputs: readonly [];
387
- readonly name: "tokensStakedByPresale";
402
+ readonly name: "tokensStakedPrev";
388
403
  readonly outputs: readonly [{
389
404
  readonly internalType: "uint256";
390
405
  readonly name: "";
@@ -416,6 +431,54 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
416
431
  }];
417
432
  readonly stateMutability: "view";
418
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";
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";
419
482
  }, {
420
483
  readonly inputs: readonly [];
421
484
  readonly name: "withdraw";
@@ -424,15 +487,15 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
424
487
  readonly type: "function";
425
488
  }];
426
489
  /**
427
- * Type-safe ABI for stakingManagerV2_json
490
+ * Type-safe ABI for stakingManagerV4_json
428
491
  */
429
- export type stakingManagerV2_jsonAbi = typeof stakingManagerV2_jsonAbi;
492
+ export type stakingManagerV4_jsonAbi = typeof stakingManagerV4_jsonAbi;
430
493
  /**
431
- * Contract instance type for stakingManagerV2_json
494
+ * Contract instance type for stakingManagerV4_json
432
495
  */
433
- export type stakingManagerV2_jsonContract = any;
496
+ export type stakingManagerV4_jsonContract = any;
434
497
  /**
435
- * stakingManagerV2_json Contract Class
498
+ * stakingManagerV4_json Contract Class
436
499
  *
437
500
  * Provides a class-based API similar to TypeChain for interacting with the contract.
438
501
  *
@@ -440,12 +503,12 @@ export type stakingManagerV2_jsonContract = any;
440
503
  * ```typescript
441
504
  * import { createPublicClient, createWalletClient, http } from 'viem';
442
505
  * import { mainnet } from 'viem/chains';
443
- * import { stakingManagerV2_json } from 'stakingManagerV2_json';
506
+ * import { stakingManagerV4_json } from 'stakingManagerV4_json';
444
507
  *
445
508
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
446
509
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
447
510
  *
448
- * const contract = new stakingManagerV2_json('0x...', { publicClient, walletClient });
511
+ * const contract = new stakingManagerV4_json('0x...', { publicClient, walletClient });
449
512
  *
450
513
  * // Read functions
451
514
  * const result = await contract.balanceOf('0x...');
@@ -463,7 +526,7 @@ export type stakingManagerV2_jsonContract = any;
463
526
  * });
464
527
  * ```
465
528
  */
466
- export declare class stakingManagerV2_json {
529
+ export declare class stakingManagerV4_json {
467
530
  private contract;
468
531
  private contractAddress;
469
532
  private publicClient;
@@ -478,7 +541,12 @@ export declare class stakingManagerV2_json {
478
541
  /**
479
542
  * Get the underlying viem contract instance
480
543
  */
481
- getContract(): stakingManagerV2_jsonContract;
544
+ getContract(): stakingManagerV4_jsonContract;
545
+ /**
546
+ * accShareOld
547
+ * view
548
+ */
549
+ accShareOld(): Promise<bigint>;
482
550
  /**
483
551
  * claimStart
484
552
  * view
@@ -518,7 +586,7 @@ export declare class stakingManagerV2_json {
518
586
  * poolStakers
519
587
  * view
520
588
  */
521
- poolStakers(arg0: `0x${string}`): Promise<[bigint, bigint, bigint, bigint, bigint]>;
589
+ poolStakers(_user: `0x${string}`): Promise<stakingManagerV4_PoolStaker>;
522
590
  /**
523
591
  * presaleContract
524
592
  * view
@@ -544,28 +612,36 @@ export declare class stakingManagerV2_json {
544
612
  * view
545
613
  */
546
614
  tokensStakedByPresale(): Promise<bigint>;
615
+ /**
616
+ * tokensStakedPrev
617
+ * view
618
+ */
619
+ tokensStakedPrev(): Promise<bigint>;
547
620
  /**
548
621
  * userLockedRewards
549
622
  * view
550
623
  */
551
624
  userLockedRewards(arg0: `0x${string}`): Promise<bigint>;
552
625
  /**
553
- * __stakingManager_init
554
- * nonpayable
555
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
626
+ * userVestingDetails
627
+ * view
556
628
  */
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}`>;
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>;
569
645
  /**
570
646
  * blacklistUsers
571
647
  * nonpayable
@@ -771,11 +847,28 @@ export declare class stakingManagerV2_json {
771
847
  value?: bigint;
772
848
  }): Promise<`0x${string}`>;
773
849
  /**
774
- * tokenTransfer
850
+ * setVestLock
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
775
868
  * nonpayable
776
869
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
777
870
  */
778
- tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
871
+ setVestingDetails(_vestingEndTime: bigint, options?: {
779
872
  accessList?: import('viem').AccessList;
780
873
  authorizationList?: import('viem').AuthorizationList;
781
874
  chain?: import('viem').Chain | null;
@@ -830,23 +923,6 @@ export declare class stakingManagerV2_json {
830
923
  * console.log('Would succeed:', result.result);
831
924
  */
832
925
  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
926
  /**
851
927
  * Simulate blacklistUsers
852
928
  * Returns gas estimate and result without sending transaction
@@ -1052,11 +1128,28 @@ export declare class stakingManagerV2_json {
1052
1128
  value?: bigint;
1053
1129
  }): Promise<void>;
1054
1130
  /**
1055
- * Simulate tokenTransfer
1131
+ * Simulate setVestLock
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
1056
1149
  * Returns gas estimate and result without sending transaction
1057
1150
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1058
1151
  */
1059
- tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1152
+ setVestingDetails(_vestingEndTime: bigint, options?: {
1060
1153
  accessList?: import("viem").AccessList;
1061
1154
  authorizationList?: import("viem").AuthorizationList;
1062
1155
  chain?: import("viem").Chain | null;