@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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **stakingManager**
4
4
 
5
- - **Build ID**: `etherscan-stakingmanager-b8bc5c11-1787551874450`
5
+ - **Build ID**: `etherscan-stakingmanager-b02bbf73-1787733973699`
6
6
  - **Build Number**: 1
7
- - **Commit**: `e558ab8`
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.3
15
+ npm install @gitmyabi/stakingmanager@1.0.4
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 { stakingManagerV4_jsonAbi, stakingManagerV4_json } from './stakingManagerV4_json';
4
- export type { stakingManagerV4_jsonAbi as stakingManagerV4_jsonAbiType, stakingManagerV4_jsonContract } from './stakingManagerV4_json';
3
+ export { stakingManagerV2_jsonAbi, stakingManagerV2_json } from './stakingManagerV2_json';
4
+ export type { stakingManagerV2_jsonAbi as stakingManagerV2_jsonAbiType, stakingManagerV2_jsonContract } from './stakingManagerV2_json';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stakingManagerV4_json = exports.stakingManagerV4_jsonAbi = exports.TransparentUpgradeableProxy_json = exports.TransparentUpgradeableProxy_jsonAbi = void 0;
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 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; } });
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; } });
@@ -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 { stakingManagerV4_jsonAbi, stakingManagerV4_json } from './stakingManagerV4_json';
5
- export type { stakingManagerV4_jsonAbi as stakingManagerV4_jsonAbiType, stakingManagerV4_jsonContract } from './stakingManagerV4_json';
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
- * 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
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 stakingManagerV4_jsonAbi: readonly [{
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
- readonly name: "accShareOld";
94
- readonly outputs: readonly [{
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 stateMutability: "view";
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: "_user";
228
+ readonly name: "";
223
229
  readonly type: "address";
224
230
  }];
225
231
  readonly name: "poolStakers";
226
232
  readonly outputs: readonly [{
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";
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
- readonly name: "tokensStaked";
383
- readonly outputs: readonly [{
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 stateMutability: "view";
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: "tokensStakedByPresale";
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: "tokensStakedPrev";
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 stakingManagerV4_json
427
+ * Type-safe ABI for stakingManagerV2_json
491
428
  */
492
- export type stakingManagerV4_jsonAbi = typeof stakingManagerV4_jsonAbi;
429
+ export type stakingManagerV2_jsonAbi = typeof stakingManagerV2_jsonAbi;
493
430
  /**
494
- * Contract instance type for stakingManagerV4_json
431
+ * Contract instance type for stakingManagerV2_json
495
432
  */
496
- export type stakingManagerV4_jsonContract = any;
433
+ export type stakingManagerV2_jsonContract = any;
497
434
  /**
498
- * stakingManagerV4_json Contract Class
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 { stakingManagerV4_json } from 'stakingManagerV4_json';
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 stakingManagerV4_json('0x...', { publicClient, walletClient });
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 stakingManagerV4_json {
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(): stakingManagerV4_jsonContract;
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(_user: `0x${string}`): Promise<stakingManagerV4_PoolStaker>;
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
- * userVestingDetails
627
- * view
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
- vestingStartBlock(): Promise<bigint>;
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
- * 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
774
+ * tokenTransfer
868
775
  * nonpayable
869
776
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
870
777
  */
871
- setVestingDetails(_vestingEndTime: bigint, options?: {
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 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
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
- setVestingDetails(_vestingEndTime: bigint, options?: {
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;