@gitmyabi/stakingmanager 1.0.2 → 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.
@@ -1,12 +1,23 @@
1
1
  import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
2
  import { getContract } from 'viem';
3
3
 
4
+
5
+ /**
6
+ * stakingManagerV4.PoolStaker struct type
7
+ */
8
+ export type stakingManagerV4_PoolStaker = {
9
+ amount: bigint;
10
+ stakedTime: bigint;
11
+ lastUpdatedBlock: bigint;
12
+ Harvestedrewards: bigint;
13
+ rewardDebt: bigint;
14
+ };
4
15
  /**
5
- * stakingManagerV3_json ABI
16
+ * stakingManagerV4_json ABI
6
17
  *
7
18
  * This ABI is typed using viem's type system for full type safety.
8
19
  */
9
- export const stakingManagerV3_jsonAbi = [
20
+ export const stakingManagerV4_jsonAbi = [
10
21
  {
11
22
  "inputs": [],
12
23
  "stateMutability": "nonpayable",
@@ -102,36 +113,16 @@ export const stakingManagerV3_jsonAbi = [
102
113
  "type": "event"
103
114
  },
104
115
  {
105
- "inputs": [
106
- {
107
- "internalType": "address",
108
- "name": "_rewardTokenAddress",
109
- "type": "address"
110
- },
111
- {
112
- "internalType": "address",
113
- "name": "_presale",
114
- "type": "address"
115
- },
116
- {
117
- "internalType": "uint256",
118
- "name": "_rewardTokensPerBlock",
119
- "type": "uint256"
120
- },
121
- {
122
- "internalType": "uint256",
123
- "name": "_lockTime",
124
- "type": "uint256"
125
- },
116
+ "inputs": [],
117
+ "name": "accShareOld",
118
+ "outputs": [
126
119
  {
127
120
  "internalType": "uint256",
128
- "name": "_endBlock",
121
+ "name": "",
129
122
  "type": "uint256"
130
123
  }
131
124
  ],
132
- "name": "__stakingManager_init",
133
- "outputs": [],
134
- "stateMutability": "nonpayable",
125
+ "stateMutability": "view",
135
126
  "type": "function"
136
127
  },
137
128
  {
@@ -292,36 +283,43 @@ export const stakingManagerV3_jsonAbi = [
292
283
  "inputs": [
293
284
  {
294
285
  "internalType": "address",
295
- "name": "",
286
+ "name": "_user",
296
287
  "type": "address"
297
288
  }
298
289
  ],
299
290
  "name": "poolStakers",
300
291
  "outputs": [
301
292
  {
302
- "internalType": "uint256",
303
- "name": "amount",
304
- "type": "uint256"
305
- },
306
- {
307
- "internalType": "uint256",
308
- "name": "stakedTime",
309
- "type": "uint256"
310
- },
311
- {
312
- "internalType": "uint256",
313
- "name": "lastUpdatedBlock",
314
- "type": "uint256"
315
- },
316
- {
317
- "internalType": "uint256",
318
- "name": "Harvestedrewards",
319
- "type": "uint256"
320
- },
321
- {
322
- "internalType": "uint256",
323
- "name": "rewardDebt",
324
- "type": "uint256"
293
+ "components": [
294
+ {
295
+ "internalType": "uint256",
296
+ "name": "amount",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "stakedTime",
302
+ "type": "uint256"
303
+ },
304
+ {
305
+ "internalType": "uint256",
306
+ "name": "lastUpdatedBlock",
307
+ "type": "uint256"
308
+ },
309
+ {
310
+ "internalType": "uint256",
311
+ "name": "Harvestedrewards",
312
+ "type": "uint256"
313
+ },
314
+ {
315
+ "internalType": "uint256",
316
+ "name": "rewardDebt",
317
+ "type": "uint256"
318
+ }
319
+ ],
320
+ "internalType": "struct stakingManagerV4.PoolStaker",
321
+ "name": "",
322
+ "type": "tuple"
325
323
  }
326
324
  ],
327
325
  "stateMutability": "view",
@@ -451,6 +449,32 @@ export const stakingManagerV3_jsonAbi = [
451
449
  "stateMutability": "nonpayable",
452
450
  "type": "function"
453
451
  },
452
+ {
453
+ "inputs": [
454
+ {
455
+ "internalType": "bool",
456
+ "name": "_vestLock",
457
+ "type": "bool"
458
+ }
459
+ ],
460
+ "name": "setVestLock",
461
+ "outputs": [],
462
+ "stateMutability": "nonpayable",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "uint256",
469
+ "name": "_vestingEndTime",
470
+ "type": "uint256"
471
+ }
472
+ ],
473
+ "name": "setVestingDetails",
474
+ "outputs": [],
475
+ "stateMutability": "nonpayable",
476
+ "type": "function"
477
+ },
454
478
  {
455
479
  "inputs": [],
456
480
  "name": "stakeToken",
@@ -490,6 +514,19 @@ export const stakingManagerV3_jsonAbi = [
490
514
  "stateMutability": "view",
491
515
  "type": "function"
492
516
  },
517
+ {
518
+ "inputs": [],
519
+ "name": "tokensStakedPrev",
520
+ "outputs": [
521
+ {
522
+ "internalType": "uint256",
523
+ "name": "",
524
+ "type": "uint256"
525
+ }
526
+ ],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
493
530
  {
494
531
  "inputs": [
495
532
  {
@@ -522,22 +559,72 @@ export const stakingManagerV3_jsonAbi = [
522
559
  "stateMutability": "view",
523
560
  "type": "function"
524
561
  },
562
+ {
563
+ "inputs": [
564
+ {
565
+ "internalType": "address",
566
+ "name": "",
567
+ "type": "address"
568
+ }
569
+ ],
570
+ "name": "userVestingDetails",
571
+ "outputs": [
572
+ {
573
+ "internalType": "uint256",
574
+ "name": "totalVestedAmount",
575
+ "type": "uint256"
576
+ },
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "totalAmountGivenOut",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "stateMutability": "view",
584
+ "type": "function"
585
+ },
525
586
  {
526
587
  "inputs": [],
527
- "name": "withdraw",
528
- "outputs": [],
529
- "stateMutability": "nonpayable",
588
+ "name": "vestLock",
589
+ "outputs": [
590
+ {
591
+ "internalType": "bool",
592
+ "name": "",
593
+ "type": "bool"
594
+ }
595
+ ],
596
+ "stateMutability": "view",
530
597
  "type": "function"
531
598
  },
532
599
  {
533
- "inputs": [
600
+ "inputs": [],
601
+ "name": "vestingEndTime",
602
+ "outputs": [
534
603
  {
535
604
  "internalType": "uint256",
536
- "name": "_amount",
605
+ "name": "",
537
606
  "type": "uint256"
538
607
  }
539
608
  ],
540
- "name": "withdrawToken",
609
+ "stateMutability": "view",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [],
614
+ "name": "vestingStartBlock",
615
+ "outputs": [
616
+ {
617
+ "internalType": "uint256",
618
+ "name": "",
619
+ "type": "uint256"
620
+ }
621
+ ],
622
+ "stateMutability": "view",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [],
627
+ "name": "withdraw",
541
628
  "outputs": [],
542
629
  "stateMutability": "nonpayable",
543
630
  "type": "function"
@@ -545,19 +632,19 @@ export const stakingManagerV3_jsonAbi = [
545
632
  ] as const satisfies Abi;
546
633
 
547
634
  /**
548
- * Type-safe ABI for stakingManagerV3_json
635
+ * Type-safe ABI for stakingManagerV4_json
549
636
  */
550
- export type stakingManagerV3_jsonAbi = typeof stakingManagerV3_jsonAbi;
637
+ export type stakingManagerV4_jsonAbi = typeof stakingManagerV4_jsonAbi;
551
638
 
552
639
  /**
553
- * Contract instance type for stakingManagerV3_json
640
+ * Contract instance type for stakingManagerV4_json
554
641
  */
555
642
  // Use any for contract type to avoid complex viem type issues
556
643
  // The runtime behavior is type-safe through viem's ABI typing
557
- export type stakingManagerV3_jsonContract = any;
644
+ export type stakingManagerV4_jsonContract = any;
558
645
 
559
646
  /**
560
- * stakingManagerV3_json Contract Class
647
+ * stakingManagerV4_json Contract Class
561
648
  *
562
649
  * Provides a class-based API similar to TypeChain for interacting with the contract.
563
650
  *
@@ -565,12 +652,12 @@ export type stakingManagerV3_jsonContract = any;
565
652
  * ```typescript
566
653
  * import { createPublicClient, createWalletClient, http } from 'viem';
567
654
  * import { mainnet } from 'viem/chains';
568
- * import { stakingManagerV3_json } from 'stakingManagerV3_json';
655
+ * import { stakingManagerV4_json } from 'stakingManagerV4_json';
569
656
  *
570
657
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
571
658
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
572
659
  *
573
- * const contract = new stakingManagerV3_json('0x...', { publicClient, walletClient });
660
+ * const contract = new stakingManagerV4_json('0x...', { publicClient, walletClient });
574
661
  *
575
662
  * // Read functions
576
663
  * const result = await contract.balanceOf('0x...');
@@ -588,8 +675,8 @@ export type stakingManagerV3_jsonContract = any;
588
675
  * });
589
676
  * ```
590
677
  */
591
- export class stakingManagerV3_json {
592
- private contract: stakingManagerV3_jsonContract;
678
+ export class stakingManagerV4_json {
679
+ private contract: stakingManagerV4_jsonContract;
593
680
  private contractAddress: Address;
594
681
  private publicClient: PublicClient;
595
682
 
@@ -604,7 +691,7 @@ export class stakingManagerV3_json {
604
691
  this.publicClient = clients.publicClient;
605
692
  this.contract = getContract({
606
693
  address,
607
- abi: stakingManagerV3_jsonAbi,
694
+ abi: stakingManagerV4_jsonAbi,
608
695
  client: {
609
696
  public: clients.publicClient,
610
697
  wallet: clients.walletClient,
@@ -622,10 +709,18 @@ export class stakingManagerV3_json {
622
709
  /**
623
710
  * Get the underlying viem contract instance
624
711
  */
625
- getContract(): stakingManagerV3_jsonContract {
712
+ getContract(): stakingManagerV4_jsonContract {
626
713
  return this.contract;
627
714
  }
628
715
 
716
+ /**
717
+ * accShareOld
718
+ * view
719
+ */
720
+ async accShareOld(): Promise<bigint> {
721
+ return this.contract.read.accShareOld() as Promise<bigint>;
722
+ }
723
+
629
724
  /**
630
725
  * claimStart
631
726
  * view
@@ -686,8 +781,8 @@ export class stakingManagerV3_json {
686
781
  * poolStakers
687
782
  * view
688
783
  */
689
- async poolStakers(arg0: `0x${string}`): Promise<[bigint, bigint, bigint, bigint, bigint]> {
690
- return this.contract.read.poolStakers([arg0] as const) as Promise<[bigint, bigint, bigint, bigint, bigint]>;
784
+ async poolStakers(_user: `0x${string}`): Promise<stakingManagerV4_PoolStaker> {
785
+ return this.contract.read.poolStakers([_user] as const) as Promise<stakingManagerV4_PoolStaker>;
691
786
  }
692
787
 
693
788
  /**
@@ -730,6 +825,14 @@ export class stakingManagerV3_json {
730
825
  return this.contract.read.tokensStakedByPresale() as Promise<bigint>;
731
826
  }
732
827
 
828
+ /**
829
+ * tokensStakedPrev
830
+ * view
831
+ */
832
+ async tokensStakedPrev(): Promise<bigint> {
833
+ return this.contract.read.tokensStakedPrev() as Promise<bigint>;
834
+ }
835
+
733
836
  /**
734
837
  * userLockedRewards
735
838
  * view
@@ -739,26 +842,35 @@ export class stakingManagerV3_json {
739
842
  }
740
843
 
741
844
  /**
742
- * __stakingManager_init
743
- * nonpayable
744
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
845
+ * userVestingDetails
846
+ * view
745
847
  */
746
- async __stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
747
- accessList?: import('viem').AccessList;
748
- authorizationList?: import('viem').AuthorizationList;
749
- chain?: import('viem').Chain | null;
750
- dataSuffix?: `0x${string}`;
751
- gas?: bigint;
752
- gasPrice?: bigint;
753
- maxFeePerGas?: bigint;
754
- maxPriorityFeePerGas?: bigint;
755
- nonce?: number;
756
- value?: bigint;
757
- }): Promise<`0x${string}`> {
758
- if (!this.contract.write) {
759
- throw new Error('Wallet client is required for write operations');
760
- }
761
- return this.contract.write.__stakingManager_init([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<`0x${string}`>;
848
+ async userVestingDetails(arg0: `0x${string}`): Promise<[bigint, bigint]> {
849
+ return this.contract.read.userVestingDetails([arg0] as const) as Promise<[bigint, bigint]>;
850
+ }
851
+
852
+ /**
853
+ * vestLock
854
+ * view
855
+ */
856
+ async vestLock(): Promise<boolean> {
857
+ return this.contract.read.vestLock() as Promise<boolean>;
858
+ }
859
+
860
+ /**
861
+ * vestingEndTime
862
+ * view
863
+ */
864
+ async vestingEndTime(): Promise<bigint> {
865
+ return this.contract.read.vestingEndTime() as Promise<bigint>;
866
+ }
867
+
868
+ /**
869
+ * vestingStartBlock
870
+ * view
871
+ */
872
+ async vestingStartBlock(): Promise<bigint> {
873
+ return this.contract.read.vestingStartBlock() as Promise<bigint>;
762
874
  }
763
875
 
764
876
  /**
@@ -1038,11 +1150,11 @@ export class stakingManagerV3_json {
1038
1150
  }
1039
1151
 
1040
1152
  /**
1041
- * transferOwnership
1153
+ * setVestLock
1042
1154
  * nonpayable
1043
1155
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1044
1156
  */
1045
- async transferOwnership(newOwner: `0x${string}`, options?: {
1157
+ async setVestLock(_vestLock: boolean, options?: {
1046
1158
  accessList?: import('viem').AccessList;
1047
1159
  authorizationList?: import('viem').AuthorizationList;
1048
1160
  chain?: import('viem').Chain | null;
@@ -1057,15 +1169,15 @@ export class stakingManagerV3_json {
1057
1169
  if (!this.contract.write) {
1058
1170
  throw new Error('Wallet client is required for write operations');
1059
1171
  }
1060
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1172
+ return this.contract.write.setVestLock([_vestLock] as const, options) as Promise<`0x${string}`>;
1061
1173
  }
1062
1174
 
1063
1175
  /**
1064
- * withdraw
1176
+ * setVestingDetails
1065
1177
  * nonpayable
1066
1178
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1067
1179
  */
1068
- async withdraw(options?: {
1180
+ async setVestingDetails(_vestingEndTime: bigint, options?: {
1069
1181
  accessList?: import('viem').AccessList;
1070
1182
  authorizationList?: import('viem').AuthorizationList;
1071
1183
  chain?: import('viem').Chain | null;
@@ -1080,15 +1192,38 @@ export class stakingManagerV3_json {
1080
1192
  if (!this.contract.write) {
1081
1193
  throw new Error('Wallet client is required for write operations');
1082
1194
  }
1083
- return this.contract.write.withdraw(options) as Promise<`0x${string}`>;
1195
+ return this.contract.write.setVestingDetails([_vestingEndTime] as const, options) as Promise<`0x${string}`>;
1196
+ }
1197
+
1198
+ /**
1199
+ * transferOwnership
1200
+ * nonpayable
1201
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1202
+ */
1203
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1204
+ accessList?: import('viem').AccessList;
1205
+ authorizationList?: import('viem').AuthorizationList;
1206
+ chain?: import('viem').Chain | null;
1207
+ dataSuffix?: `0x${string}`;
1208
+ gas?: bigint;
1209
+ gasPrice?: bigint;
1210
+ maxFeePerGas?: bigint;
1211
+ maxPriorityFeePerGas?: bigint;
1212
+ nonce?: number;
1213
+ value?: bigint;
1214
+ }): Promise<`0x${string}`> {
1215
+ if (!this.contract.write) {
1216
+ throw new Error('Wallet client is required for write operations');
1217
+ }
1218
+ return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1084
1219
  }
1085
1220
 
1086
1221
  /**
1087
- * withdrawToken
1222
+ * withdraw
1088
1223
  * nonpayable
1089
1224
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1090
1225
  */
1091
- async withdrawToken(_amount: bigint, options?: {
1226
+ async withdraw(options?: {
1092
1227
  accessList?: import('viem').AccessList;
1093
1228
  authorizationList?: import('viem').AuthorizationList;
1094
1229
  chain?: import('viem').Chain | null;
@@ -1103,7 +1238,7 @@ export class stakingManagerV3_json {
1103
1238
  if (!this.contract.write) {
1104
1239
  throw new Error('Wallet client is required for write operations');
1105
1240
  }
1106
- return this.contract.write.withdrawToken([_amount] as const, options) as Promise<`0x${string}`>;
1241
+ return this.contract.write.withdraw(options) as Promise<`0x${string}`>;
1107
1242
  }
1108
1243
 
1109
1244
 
@@ -1122,25 +1257,6 @@ export class stakingManagerV3_json {
1122
1257
  throw new Error('Public client is required for simulation');
1123
1258
  }
1124
1259
  return {
1125
- /**
1126
- * Simulate __stakingManager_init
1127
- * Returns gas estimate and result without sending transaction
1128
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1129
- */
1130
- async __stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
1131
- accessList?: import('viem').AccessList;
1132
- authorizationList?: import('viem').AuthorizationList;
1133
- chain?: import('viem').Chain | null;
1134
- dataSuffix?: `0x${string}`;
1135
- gas?: bigint;
1136
- gasPrice?: bigint;
1137
- maxFeePerGas?: bigint;
1138
- maxPriorityFeePerGas?: bigint;
1139
- nonce?: number;
1140
- value?: bigint;
1141
- }): Promise<void> {
1142
- return contract.simulate.__stakingManager_init([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<void>;
1143
- },
1144
1260
  /**
1145
1261
  * Simulate blacklistUsers
1146
1262
  * Returns gas estimate and result without sending transaction
@@ -1370,11 +1486,11 @@ export class stakingManagerV3_json {
1370
1486
  return contract.simulate.setStakeToken([_stakeToken] as const, options) as Promise<void>;
1371
1487
  },
1372
1488
  /**
1373
- * Simulate transferOwnership
1489
+ * Simulate setVestLock
1374
1490
  * Returns gas estimate and result without sending transaction
1375
1491
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1376
1492
  */
1377
- async transferOwnership(newOwner: `0x${string}`, options?: {
1493
+ async setVestLock(_vestLock: boolean, options?: {
1378
1494
  accessList?: import('viem').AccessList;
1379
1495
  authorizationList?: import('viem').AuthorizationList;
1380
1496
  chain?: import('viem').Chain | null;
@@ -1386,14 +1502,14 @@ export class stakingManagerV3_json {
1386
1502
  nonce?: number;
1387
1503
  value?: bigint;
1388
1504
  }): Promise<void> {
1389
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1505
+ return contract.simulate.setVestLock([_vestLock] as const, options) as Promise<void>;
1390
1506
  },
1391
1507
  /**
1392
- * Simulate withdraw
1508
+ * Simulate setVestingDetails
1393
1509
  * Returns gas estimate and result without sending transaction
1394
1510
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1395
1511
  */
1396
- async withdraw(options?: {
1512
+ async setVestingDetails(_vestingEndTime: bigint, options?: {
1397
1513
  accessList?: import('viem').AccessList;
1398
1514
  authorizationList?: import('viem').AuthorizationList;
1399
1515
  chain?: import('viem').Chain | null;
@@ -1405,14 +1521,33 @@ export class stakingManagerV3_json {
1405
1521
  nonce?: number;
1406
1522
  value?: bigint;
1407
1523
  }): Promise<void> {
1408
- return contract.simulate.withdraw(options) as Promise<void>;
1524
+ return contract.simulate.setVestingDetails([_vestingEndTime] as const, options) as Promise<void>;
1525
+ },
1526
+ /**
1527
+ * Simulate transferOwnership
1528
+ * Returns gas estimate and result without sending transaction
1529
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1530
+ */
1531
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1532
+ accessList?: import('viem').AccessList;
1533
+ authorizationList?: import('viem').AuthorizationList;
1534
+ chain?: import('viem').Chain | null;
1535
+ dataSuffix?: `0x${string}`;
1536
+ gas?: bigint;
1537
+ gasPrice?: bigint;
1538
+ maxFeePerGas?: bigint;
1539
+ maxPriorityFeePerGas?: bigint;
1540
+ nonce?: number;
1541
+ value?: bigint;
1542
+ }): Promise<void> {
1543
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1409
1544
  },
1410
1545
  /**
1411
- * Simulate withdrawToken
1546
+ * Simulate withdraw
1412
1547
  * Returns gas estimate and result without sending transaction
1413
1548
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1414
1549
  */
1415
- async withdrawToken(_amount: bigint, options?: {
1550
+ async withdraw(options?: {
1416
1551
  accessList?: import('viem').AccessList;
1417
1552
  authorizationList?: import('viem').AuthorizationList;
1418
1553
  chain?: import('viem').Chain | null;
@@ -1424,7 +1559,7 @@ export class stakingManagerV3_json {
1424
1559
  nonce?: number;
1425
1560
  value?: bigint;
1426
1561
  }): Promise<void> {
1427
- return contract.simulate.withdrawToken([_amount] as const, options) as Promise<void>;
1562
+ return contract.simulate.withdraw(options) as Promise<void>;
1428
1563
  }
1429
1564
  };
1430
1565
  }
@@ -1452,7 +1587,7 @@ export class stakingManagerV3_json {
1452
1587
  Deposit: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1453
1588
  return this.publicClient.watchContractEvent({
1454
1589
  address: this.contractAddress,
1455
- abi: stakingManagerV3_jsonAbi,
1590
+ abi: stakingManagerV4_jsonAbi,
1456
1591
  eventName: 'Deposit',
1457
1592
  args: filter,
1458
1593
  onLogs: (logs: any[]) => {
@@ -1471,7 +1606,7 @@ export class stakingManagerV3_json {
1471
1606
  HarvestRewards: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1472
1607
  return this.publicClient.watchContractEvent({
1473
1608
  address: this.contractAddress,
1474
- abi: stakingManagerV3_jsonAbi,
1609
+ abi: stakingManagerV4_jsonAbi,
1475
1610
  eventName: 'HarvestRewards',
1476
1611
  args: filter,
1477
1612
  onLogs: (logs: any[]) => {
@@ -1490,7 +1625,7 @@ export class stakingManagerV3_json {
1490
1625
  Initialized: (callback: (event: { version: bigint }) => void) => {
1491
1626
  return this.publicClient.watchContractEvent({
1492
1627
  address: this.contractAddress,
1493
- abi: stakingManagerV3_jsonAbi,
1628
+ abi: stakingManagerV4_jsonAbi,
1494
1629
  eventName: 'Initialized',
1495
1630
 
1496
1631
  onLogs: (logs: any[]) => {
@@ -1509,7 +1644,7 @@ export class stakingManagerV3_json {
1509
1644
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1510
1645
  return this.publicClient.watchContractEvent({
1511
1646
  address: this.contractAddress,
1512
- abi: stakingManagerV3_jsonAbi,
1647
+ abi: stakingManagerV4_jsonAbi,
1513
1648
  eventName: 'OwnershipTransferred',
1514
1649
  args: filter,
1515
1650
  onLogs: (logs: any[]) => {
@@ -1528,7 +1663,7 @@ export class stakingManagerV3_json {
1528
1663
  Withdraw: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1529
1664
  return this.publicClient.watchContractEvent({
1530
1665
  address: this.contractAddress,
1531
- abi: stakingManagerV3_jsonAbi,
1666
+ abi: stakingManagerV4_jsonAbi,
1532
1667
  eventName: 'Withdraw',
1533
1668
  args: filter,
1534
1669
  onLogs: (logs: any[]) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/stakingmanager",
3
- "version": "1.0.2",
4
- "description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-6475bdeb-1787503825123, commit 4b458ad, branch etherscan)",
3
+ "version": "1.0.3",
4
+ "description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-b8bc5c11-1787551874450, commit e558ab8, branch etherscan)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "exports": {
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/etherscan/stakingmanager"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "4b458ad"
42
+ "shortHash": "e558ab8"
43
43
  }