@gitmyabi/stakingmanager 1.0.5 → 1.0.6

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.
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * stakingManagerV4_json ABI
5
+ * stakingManager_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const stakingManagerV4_jsonAbi = [
9
+ export const stakingManager_jsonAbi = [
10
10
  {
11
11
  "inputs": [],
12
12
  "stateMutability": "nonpayable",
@@ -96,69 +96,32 @@ export const stakingManagerV4_jsonAbi = [
96
96
  "internalType": "uint256",
97
97
  "name": "amount",
98
98
  "type": "uint256"
99
- },
100
- {
101
- "indexed": false,
102
- "internalType": "uint256",
103
- "name": "timestamp",
104
- "type": "uint256"
105
99
  }
106
100
  ],
107
- "name": "RestakePrincipal",
108
- "type": "event"
109
- },
110
- {
111
- "anonymous": false,
112
- "inputs": [
113
- {
114
- "indexed": true,
115
- "internalType": "address",
116
- "name": "user",
117
- "type": "address"
118
- },
119
- {
120
- "indexed": false,
121
- "internalType": "uint256",
122
- "name": "amount",
123
- "type": "uint256"
124
- },
125
- {
126
- "indexed": false,
127
- "internalType": "uint256",
128
- "name": "timestamp",
129
- "type": "uint256"
130
- }
131
- ],
132
- "name": "RestakeRewards",
101
+ "name": "Withdraw",
133
102
  "type": "event"
134
103
  },
135
104
  {
136
- "anonymous": false,
137
105
  "inputs": [
138
106
  {
139
- "indexed": true,
140
- "internalType": "address",
141
- "name": "user",
142
- "type": "address"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "uint256",
147
- "name": "amount",
148
- "type": "uint256"
107
+ "internalType": "address[]",
108
+ "name": "_usersToBlacklist",
109
+ "type": "address[]"
149
110
  }
150
111
  ],
151
- "name": "Withdraw",
152
- "type": "event"
112
+ "name": "blacklistUsers",
113
+ "outputs": [],
114
+ "stateMutability": "nonpayable",
115
+ "type": "function"
153
116
  },
154
117
  {
155
118
  "inputs": [],
156
- "name": "DEV_WALLET",
119
+ "name": "claimStart",
157
120
  "outputs": [
158
121
  {
159
- "internalType": "address",
122
+ "internalType": "uint256",
160
123
  "name": "",
161
- "type": "address"
124
+ "type": "uint256"
162
125
  }
163
126
  ],
164
127
  "stateMutability": "view",
@@ -167,27 +130,32 @@ export const stakingManagerV4_jsonAbi = [
167
130
  {
168
131
  "inputs": [
169
132
  {
170
- "internalType": "address[]",
171
- "name": "_usersToBlacklist",
172
- "type": "address[]"
133
+ "internalType": "uint256",
134
+ "name": "_amount",
135
+ "type": "uint256"
173
136
  }
174
137
  ],
175
- "name": "blacklistUsers",
138
+ "name": "deposit",
176
139
  "outputs": [],
177
140
  "stateMutability": "nonpayable",
178
141
  "type": "function"
179
142
  },
180
143
  {
181
- "inputs": [],
182
- "name": "claimStart",
183
- "outputs": [
144
+ "inputs": [
145
+ {
146
+ "internalType": "address",
147
+ "name": "_user",
148
+ "type": "address"
149
+ },
184
150
  {
185
151
  "internalType": "uint256",
186
- "name": "",
152
+ "name": "_amount",
187
153
  "type": "uint256"
188
154
  }
189
155
  ],
190
- "stateMutability": "view",
156
+ "name": "depositByPresale",
157
+ "outputs": [],
158
+ "stateMutability": "nonpayable",
191
159
  "type": "function"
192
160
  },
193
161
  {
@@ -242,6 +210,39 @@ export const stakingManagerV4_jsonAbi = [
242
210
  "stateMutability": "nonpayable",
243
211
  "type": "function"
244
212
  },
213
+ {
214
+ "inputs": [
215
+ {
216
+ "internalType": "address",
217
+ "name": "_rewardTokenAddress",
218
+ "type": "address"
219
+ },
220
+ {
221
+ "internalType": "address",
222
+ "name": "_presale",
223
+ "type": "address"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "_rewardTokensPerBlock",
228
+ "type": "uint256"
229
+ },
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "_lockTime",
233
+ "type": "uint256"
234
+ },
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "_endBlock",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "name": "initialize",
242
+ "outputs": [],
243
+ "stateMutability": "nonpayable",
244
+ "type": "function"
245
+ },
245
246
  {
246
247
  "inputs": [
247
248
  {
@@ -274,19 +275,6 @@ export const stakingManagerV4_jsonAbi = [
274
275
  "stateMutability": "view",
275
276
  "type": "function"
276
277
  },
277
- {
278
- "inputs": [],
279
- "name": "newStaking",
280
- "outputs": [
281
- {
282
- "internalType": "contract INewStaking",
283
- "name": "",
284
- "type": "address"
285
- }
286
- ],
287
- "stateMutability": "view",
288
- "type": "function"
289
- },
290
278
  {
291
279
  "inputs": [],
292
280
  "name": "owner",
@@ -372,13 +360,6 @@ export const stakingManagerV4_jsonAbi = [
372
360
  "stateMutability": "nonpayable",
373
361
  "type": "function"
374
362
  },
375
- {
376
- "inputs": [],
377
- "name": "restakeNew",
378
- "outputs": [],
379
- "stateMutability": "nonpayable",
380
- "type": "function"
381
- },
382
363
  {
383
364
  "inputs": [],
384
365
  "name": "rewardTokensPerBlock",
@@ -392,6 +373,19 @@ export const stakingManagerV4_jsonAbi = [
392
373
  "stateMutability": "view",
393
374
  "type": "function"
394
375
  },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "_claimStart",
381
+ "type": "uint256"
382
+ }
383
+ ],
384
+ "name": "setClaimStart",
385
+ "outputs": [],
386
+ "stateMutability": "nonpayable",
387
+ "type": "function"
388
+ },
395
389
  {
396
390
  "inputs": [
397
391
  {
@@ -405,15 +399,41 @@ export const stakingManagerV4_jsonAbi = [
405
399
  "stateMutability": "nonpayable",
406
400
  "type": "function"
407
401
  },
402
+ {
403
+ "inputs": [
404
+ {
405
+ "internalType": "bool",
406
+ "name": "_harvestlock",
407
+ "type": "bool"
408
+ }
409
+ ],
410
+ "name": "setHarvestLock",
411
+ "outputs": [],
412
+ "stateMutability": "nonpayable",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "_time",
420
+ "type": "uint256"
421
+ }
422
+ ],
423
+ "name": "setLockedTime",
424
+ "outputs": [],
425
+ "stateMutability": "nonpayable",
426
+ "type": "function"
427
+ },
408
428
  {
409
429
  "inputs": [
410
430
  {
411
431
  "internalType": "address",
412
- "name": "_stakingContract",
432
+ "name": "_presale",
413
433
  "type": "address"
414
434
  }
415
435
  ],
416
- "name": "setNewStaking",
436
+ "name": "setPresale",
417
437
  "outputs": [],
418
438
  "stateMutability": "nonpayable",
419
439
  "type": "function"
@@ -444,19 +464,6 @@ export const stakingManagerV4_jsonAbi = [
444
464
  "stateMutability": "view",
445
465
  "type": "function"
446
466
  },
447
- {
448
- "inputs": [
449
- {
450
- "internalType": "uint256",
451
- "name": "amount",
452
- "type": "uint256"
453
- }
454
- ],
455
- "name": "tokenTransfer",
456
- "outputs": [],
457
- "stateMutability": "nonpayable",
458
- "type": "function"
459
- },
460
467
  {
461
468
  "inputs": [],
462
469
  "name": "tokensStaked",
@@ -525,19 +532,19 @@ export const stakingManagerV4_jsonAbi = [
525
532
  ] as const satisfies Abi;
526
533
 
527
534
  /**
528
- * Type-safe ABI for stakingManagerV4_json
535
+ * Type-safe ABI for stakingManager_json
529
536
  */
530
- export type stakingManagerV4_jsonAbi = typeof stakingManagerV4_jsonAbi;
537
+ export type stakingManager_jsonAbi = typeof stakingManager_jsonAbi;
531
538
 
532
539
  /**
533
- * Contract instance type for stakingManagerV4_json
540
+ * Contract instance type for stakingManager_json
534
541
  */
535
542
  // Use any for contract type to avoid complex viem type issues
536
543
  // The runtime behavior is type-safe through viem's ABI typing
537
- export type stakingManagerV4_jsonContract = any;
544
+ export type stakingManager_jsonContract = any;
538
545
 
539
546
  /**
540
- * stakingManagerV4_json Contract Class
547
+ * stakingManager_json Contract Class
541
548
  *
542
549
  * Provides a class-based API similar to TypeChain for interacting with the contract.
543
550
  *
@@ -545,12 +552,12 @@ export type stakingManagerV4_jsonContract = any;
545
552
  * ```typescript
546
553
  * import { createPublicClient, createWalletClient, http } from 'viem';
547
554
  * import { mainnet } from 'viem/chains';
548
- * import { stakingManagerV4_json } from 'stakingManagerV4_json';
555
+ * import { stakingManager_json } from 'stakingManager_json';
549
556
  *
550
557
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
551
558
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
552
559
  *
553
- * const contract = new stakingManagerV4_json('0x...', { publicClient, walletClient });
560
+ * const contract = new stakingManager_json('0x...', { publicClient, walletClient });
554
561
  *
555
562
  * // Read functions
556
563
  * const result = await contract.balanceOf('0x...');
@@ -568,8 +575,8 @@ export type stakingManagerV4_jsonContract = any;
568
575
  * });
569
576
  * ```
570
577
  */
571
- export class stakingManagerV4_json {
572
- private contract: stakingManagerV4_jsonContract;
578
+ export class stakingManager_json {
579
+ private contract: stakingManager_jsonContract;
573
580
  private contractAddress: Address;
574
581
  private publicClient: PublicClient;
575
582
 
@@ -584,7 +591,7 @@ export class stakingManagerV4_json {
584
591
  this.publicClient = clients.publicClient;
585
592
  this.contract = getContract({
586
593
  address,
587
- abi: stakingManagerV4_jsonAbi,
594
+ abi: stakingManager_jsonAbi,
588
595
  client: {
589
596
  public: clients.publicClient,
590
597
  wallet: clients.walletClient,
@@ -602,18 +609,10 @@ export class stakingManagerV4_json {
602
609
  /**
603
610
  * Get the underlying viem contract instance
604
611
  */
605
- getContract(): stakingManagerV4_jsonContract {
612
+ getContract(): stakingManager_jsonContract {
606
613
  return this.contract;
607
614
  }
608
615
 
609
- /**
610
- * DEV_WALLET
611
- * view
612
- */
613
- async DEV_WALLET(): Promise<`0x${string}`> {
614
- return this.contract.read.DEV_WALLET() as Promise<`0x${string}`>;
615
- }
616
-
617
616
  /**
618
617
  * claimStart
619
618
  * view
@@ -662,14 +661,6 @@ export class stakingManagerV4_json {
662
661
  return this.contract.read.lockedTime() as Promise<bigint>;
663
662
  }
664
663
 
665
- /**
666
- * newStaking
667
- * view
668
- */
669
- async newStaking(): Promise<`0x${string}`> {
670
- return this.contract.read.newStaking() as Promise<`0x${string}`>;
671
- }
672
-
673
664
  /**
674
665
  * owner
675
666
  * view
@@ -757,6 +748,52 @@ export class stakingManagerV4_json {
757
748
  return this.contract.write.blacklistUsers([_usersToBlacklist] as const, options) as Promise<`0x${string}`>;
758
749
  }
759
750
 
751
+ /**
752
+ * deposit
753
+ * nonpayable
754
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
755
+ */
756
+ async deposit(_amount: bigint, options?: {
757
+ accessList?: import('viem').AccessList;
758
+ authorizationList?: import('viem').AuthorizationList;
759
+ chain?: import('viem').Chain | null;
760
+ dataSuffix?: `0x${string}`;
761
+ gas?: bigint;
762
+ gasPrice?: bigint;
763
+ maxFeePerGas?: bigint;
764
+ maxPriorityFeePerGas?: bigint;
765
+ nonce?: number;
766
+ value?: bigint;
767
+ }): Promise<`0x${string}`> {
768
+ if (!this.contract.write) {
769
+ throw new Error('Wallet client is required for write operations');
770
+ }
771
+ return this.contract.write.deposit([_amount] as const, options) as Promise<`0x${string}`>;
772
+ }
773
+
774
+ /**
775
+ * depositByPresale
776
+ * nonpayable
777
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
778
+ */
779
+ async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
780
+ accessList?: import('viem').AccessList;
781
+ authorizationList?: import('viem').AuthorizationList;
782
+ chain?: import('viem').Chain | null;
783
+ dataSuffix?: `0x${string}`;
784
+ gas?: bigint;
785
+ gasPrice?: bigint;
786
+ maxFeePerGas?: bigint;
787
+ maxPriorityFeePerGas?: bigint;
788
+ nonce?: number;
789
+ value?: bigint;
790
+ }): Promise<`0x${string}`> {
791
+ if (!this.contract.write) {
792
+ throw new Error('Wallet client is required for write operations');
793
+ }
794
+ return this.contract.write.depositByPresale([_user, _amount] as const, options) as Promise<`0x${string}`>;
795
+ }
796
+
760
797
  /**
761
798
  * harvestRewards
762
799
  * nonpayable
@@ -780,6 +817,29 @@ export class stakingManagerV4_json {
780
817
  return this.contract.write.harvestRewards(options) as Promise<`0x${string}`>;
781
818
  }
782
819
 
820
+ /**
821
+ * initialize
822
+ * nonpayable
823
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
824
+ */
825
+ async initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
826
+ accessList?: import('viem').AccessList;
827
+ authorizationList?: import('viem').AuthorizationList;
828
+ chain?: import('viem').Chain | null;
829
+ dataSuffix?: `0x${string}`;
830
+ gas?: bigint;
831
+ gasPrice?: bigint;
832
+ maxFeePerGas?: bigint;
833
+ maxPriorityFeePerGas?: bigint;
834
+ nonce?: number;
835
+ value?: bigint;
836
+ }): Promise<`0x${string}`> {
837
+ if (!this.contract.write) {
838
+ throw new Error('Wallet client is required for write operations');
839
+ }
840
+ return this.contract.write.initialize([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<`0x${string}`>;
841
+ }
842
+
783
843
  /**
784
844
  * removeFromBlacklist
785
845
  * nonpayable
@@ -827,11 +887,11 @@ export class stakingManagerV4_json {
827
887
  }
828
888
 
829
889
  /**
830
- * restakeNew
890
+ * setClaimStart
831
891
  * nonpayable
832
892
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
833
893
  */
834
- async restakeNew(options?: {
894
+ async setClaimStart(_claimStart: bigint, options?: {
835
895
  accessList?: import('viem').AccessList;
836
896
  authorizationList?: import('viem').AuthorizationList;
837
897
  chain?: import('viem').Chain | null;
@@ -846,7 +906,7 @@ export class stakingManagerV4_json {
846
906
  if (!this.contract.write) {
847
907
  throw new Error('Wallet client is required for write operations');
848
908
  }
849
- return this.contract.write.restakeNew(options) as Promise<`0x${string}`>;
909
+ return this.contract.write.setClaimStart([_claimStart] as const, options) as Promise<`0x${string}`>;
850
910
  }
851
911
 
852
912
  /**
@@ -873,11 +933,11 @@ export class stakingManagerV4_json {
873
933
  }
874
934
 
875
935
  /**
876
- * setNewStaking
936
+ * setHarvestLock
877
937
  * nonpayable
878
938
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
879
939
  */
880
- async setNewStaking(_stakingContract: `0x${string}`, options?: {
940
+ async setHarvestLock(_harvestlock: boolean, options?: {
881
941
  accessList?: import('viem').AccessList;
882
942
  authorizationList?: import('viem').AuthorizationList;
883
943
  chain?: import('viem').Chain | null;
@@ -892,15 +952,15 @@ export class stakingManagerV4_json {
892
952
  if (!this.contract.write) {
893
953
  throw new Error('Wallet client is required for write operations');
894
954
  }
895
- return this.contract.write.setNewStaking([_stakingContract] as const, options) as Promise<`0x${string}`>;
955
+ return this.contract.write.setHarvestLock([_harvestlock] as const, options) as Promise<`0x${string}`>;
896
956
  }
897
957
 
898
958
  /**
899
- * setStakeToken
959
+ * setLockedTime
900
960
  * nonpayable
901
961
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
902
962
  */
903
- async setStakeToken(_stakeToken: `0x${string}`, options?: {
963
+ async setLockedTime(_time: bigint, options?: {
904
964
  accessList?: import('viem').AccessList;
905
965
  authorizationList?: import('viem').AuthorizationList;
906
966
  chain?: import('viem').Chain | null;
@@ -915,15 +975,15 @@ export class stakingManagerV4_json {
915
975
  if (!this.contract.write) {
916
976
  throw new Error('Wallet client is required for write operations');
917
977
  }
918
- return this.contract.write.setStakeToken([_stakeToken] as const, options) as Promise<`0x${string}`>;
978
+ return this.contract.write.setLockedTime([_time] as const, options) as Promise<`0x${string}`>;
919
979
  }
920
980
 
921
981
  /**
922
- * tokenTransfer
982
+ * setPresale
923
983
  * nonpayable
924
984
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
925
985
  */
926
- async tokenTransfer(amount: bigint, options?: {
986
+ async setPresale(_presale: `0x${string}`, options?: {
927
987
  accessList?: import('viem').AccessList;
928
988
  authorizationList?: import('viem').AuthorizationList;
929
989
  chain?: import('viem').Chain | null;
@@ -938,7 +998,30 @@ export class stakingManagerV4_json {
938
998
  if (!this.contract.write) {
939
999
  throw new Error('Wallet client is required for write operations');
940
1000
  }
941
- return this.contract.write.tokenTransfer([amount] as const, options) as Promise<`0x${string}`>;
1001
+ return this.contract.write.setPresale([_presale] as const, options) as Promise<`0x${string}`>;
1002
+ }
1003
+
1004
+ /**
1005
+ * setStakeToken
1006
+ * nonpayable
1007
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1008
+ */
1009
+ async setStakeToken(_stakeToken: `0x${string}`, options?: {
1010
+ accessList?: import('viem').AccessList;
1011
+ authorizationList?: import('viem').AuthorizationList;
1012
+ chain?: import('viem').Chain | null;
1013
+ dataSuffix?: `0x${string}`;
1014
+ gas?: bigint;
1015
+ gasPrice?: bigint;
1016
+ maxFeePerGas?: bigint;
1017
+ maxPriorityFeePerGas?: bigint;
1018
+ nonce?: number;
1019
+ value?: bigint;
1020
+ }): Promise<`0x${string}`> {
1021
+ if (!this.contract.write) {
1022
+ throw new Error('Wallet client is required for write operations');
1023
+ }
1024
+ return this.contract.write.setStakeToken([_stakeToken] as const, options) as Promise<`0x${string}`>;
942
1025
  }
943
1026
 
944
1027
  /**
@@ -1022,6 +1105,44 @@ export class stakingManagerV4_json {
1022
1105
  }): Promise<void> {
1023
1106
  return contract.simulate.blacklistUsers([_usersToBlacklist] as const, options) as Promise<void>;
1024
1107
  },
1108
+ /**
1109
+ * Simulate deposit
1110
+ * Returns gas estimate and result without sending transaction
1111
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1112
+ */
1113
+ async deposit(_amount: bigint, options?: {
1114
+ accessList?: import('viem').AccessList;
1115
+ authorizationList?: import('viem').AuthorizationList;
1116
+ chain?: import('viem').Chain | null;
1117
+ dataSuffix?: `0x${string}`;
1118
+ gas?: bigint;
1119
+ gasPrice?: bigint;
1120
+ maxFeePerGas?: bigint;
1121
+ maxPriorityFeePerGas?: bigint;
1122
+ nonce?: number;
1123
+ value?: bigint;
1124
+ }): Promise<void> {
1125
+ return contract.simulate.deposit([_amount] as const, options) as Promise<void>;
1126
+ },
1127
+ /**
1128
+ * Simulate depositByPresale
1129
+ * Returns gas estimate and result without sending transaction
1130
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1131
+ */
1132
+ async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
1133
+ accessList?: import('viem').AccessList;
1134
+ authorizationList?: import('viem').AuthorizationList;
1135
+ chain?: import('viem').Chain | null;
1136
+ dataSuffix?: `0x${string}`;
1137
+ gas?: bigint;
1138
+ gasPrice?: bigint;
1139
+ maxFeePerGas?: bigint;
1140
+ maxPriorityFeePerGas?: bigint;
1141
+ nonce?: number;
1142
+ value?: bigint;
1143
+ }): Promise<void> {
1144
+ return contract.simulate.depositByPresale([_user, _amount] as const, options) as Promise<void>;
1145
+ },
1025
1146
  /**
1026
1147
  * Simulate harvestRewards
1027
1148
  * Returns gas estimate and result without sending transaction
@@ -1041,6 +1162,25 @@ export class stakingManagerV4_json {
1041
1162
  }): Promise<void> {
1042
1163
  return contract.simulate.harvestRewards(options) as Promise<void>;
1043
1164
  },
1165
+ /**
1166
+ * Simulate initialize
1167
+ * Returns gas estimate and result without sending transaction
1168
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1169
+ */
1170
+ async initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
1171
+ accessList?: import('viem').AccessList;
1172
+ authorizationList?: import('viem').AuthorizationList;
1173
+ chain?: import('viem').Chain | null;
1174
+ dataSuffix?: `0x${string}`;
1175
+ gas?: bigint;
1176
+ gasPrice?: bigint;
1177
+ maxFeePerGas?: bigint;
1178
+ maxPriorityFeePerGas?: bigint;
1179
+ nonce?: number;
1180
+ value?: bigint;
1181
+ }): Promise<void> {
1182
+ return contract.simulate.initialize([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<void>;
1183
+ },
1044
1184
  /**
1045
1185
  * Simulate removeFromBlacklist
1046
1186
  * Returns gas estimate and result without sending transaction
@@ -1080,11 +1220,11 @@ export class stakingManagerV4_json {
1080
1220
  return contract.simulate.renounceOwnership(options) as Promise<void>;
1081
1221
  },
1082
1222
  /**
1083
- * Simulate restakeNew
1223
+ * Simulate setClaimStart
1084
1224
  * Returns gas estimate and result without sending transaction
1085
1225
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1086
1226
  */
1087
- async restakeNew(options?: {
1227
+ async setClaimStart(_claimStart: bigint, options?: {
1088
1228
  accessList?: import('viem').AccessList;
1089
1229
  authorizationList?: import('viem').AuthorizationList;
1090
1230
  chain?: import('viem').Chain | null;
@@ -1096,7 +1236,7 @@ export class stakingManagerV4_json {
1096
1236
  nonce?: number;
1097
1237
  value?: bigint;
1098
1238
  }): Promise<void> {
1099
- return contract.simulate.restakeNew(options) as Promise<void>;
1239
+ return contract.simulate.setClaimStart([_claimStart] as const, options) as Promise<void>;
1100
1240
  },
1101
1241
  /**
1102
1242
  * Simulate setEndBlock
@@ -1118,11 +1258,11 @@ export class stakingManagerV4_json {
1118
1258
  return contract.simulate.setEndBlock([_endBlock] as const, options) as Promise<void>;
1119
1259
  },
1120
1260
  /**
1121
- * Simulate setNewStaking
1261
+ * Simulate setHarvestLock
1122
1262
  * Returns gas estimate and result without sending transaction
1123
1263
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1124
1264
  */
1125
- async setNewStaking(_stakingContract: `0x${string}`, options?: {
1265
+ async setHarvestLock(_harvestlock: boolean, options?: {
1126
1266
  accessList?: import('viem').AccessList;
1127
1267
  authorizationList?: import('viem').AuthorizationList;
1128
1268
  chain?: import('viem').Chain | null;
@@ -1134,14 +1274,14 @@ export class stakingManagerV4_json {
1134
1274
  nonce?: number;
1135
1275
  value?: bigint;
1136
1276
  }): Promise<void> {
1137
- return contract.simulate.setNewStaking([_stakingContract] as const, options) as Promise<void>;
1277
+ return contract.simulate.setHarvestLock([_harvestlock] as const, options) as Promise<void>;
1138
1278
  },
1139
1279
  /**
1140
- * Simulate setStakeToken
1280
+ * Simulate setLockedTime
1141
1281
  * Returns gas estimate and result without sending transaction
1142
1282
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1143
1283
  */
1144
- async setStakeToken(_stakeToken: `0x${string}`, options?: {
1284
+ async setLockedTime(_time: bigint, options?: {
1145
1285
  accessList?: import('viem').AccessList;
1146
1286
  authorizationList?: import('viem').AuthorizationList;
1147
1287
  chain?: import('viem').Chain | null;
@@ -1153,14 +1293,14 @@ export class stakingManagerV4_json {
1153
1293
  nonce?: number;
1154
1294
  value?: bigint;
1155
1295
  }): Promise<void> {
1156
- return contract.simulate.setStakeToken([_stakeToken] as const, options) as Promise<void>;
1296
+ return contract.simulate.setLockedTime([_time] as const, options) as Promise<void>;
1157
1297
  },
1158
1298
  /**
1159
- * Simulate tokenTransfer
1299
+ * Simulate setPresale
1160
1300
  * Returns gas estimate and result without sending transaction
1161
1301
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1162
1302
  */
1163
- async tokenTransfer(amount: bigint, options?: {
1303
+ async setPresale(_presale: `0x${string}`, options?: {
1164
1304
  accessList?: import('viem').AccessList;
1165
1305
  authorizationList?: import('viem').AuthorizationList;
1166
1306
  chain?: import('viem').Chain | null;
@@ -1172,7 +1312,26 @@ export class stakingManagerV4_json {
1172
1312
  nonce?: number;
1173
1313
  value?: bigint;
1174
1314
  }): Promise<void> {
1175
- return contract.simulate.tokenTransfer([amount] as const, options) as Promise<void>;
1315
+ return contract.simulate.setPresale([_presale] as const, options) as Promise<void>;
1316
+ },
1317
+ /**
1318
+ * Simulate setStakeToken
1319
+ * Returns gas estimate and result without sending transaction
1320
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1321
+ */
1322
+ async setStakeToken(_stakeToken: `0x${string}`, options?: {
1323
+ accessList?: import('viem').AccessList;
1324
+ authorizationList?: import('viem').AuthorizationList;
1325
+ chain?: import('viem').Chain | null;
1326
+ dataSuffix?: `0x${string}`;
1327
+ gas?: bigint;
1328
+ gasPrice?: bigint;
1329
+ maxFeePerGas?: bigint;
1330
+ maxPriorityFeePerGas?: bigint;
1331
+ nonce?: number;
1332
+ value?: bigint;
1333
+ }): Promise<void> {
1334
+ return contract.simulate.setStakeToken([_stakeToken] as const, options) as Promise<void>;
1176
1335
  },
1177
1336
  /**
1178
1337
  * Simulate transferOwnership
@@ -1238,7 +1397,7 @@ export class stakingManagerV4_json {
1238
1397
  Deposit: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1239
1398
  return this.publicClient.watchContractEvent({
1240
1399
  address: this.contractAddress,
1241
- abi: stakingManagerV4_jsonAbi,
1400
+ abi: stakingManager_jsonAbi,
1242
1401
  eventName: 'Deposit',
1243
1402
  args: filter,
1244
1403
  onLogs: (logs: any[]) => {
@@ -1257,7 +1416,7 @@ export class stakingManagerV4_json {
1257
1416
  HarvestRewards: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1258
1417
  return this.publicClient.watchContractEvent({
1259
1418
  address: this.contractAddress,
1260
- abi: stakingManagerV4_jsonAbi,
1419
+ abi: stakingManager_jsonAbi,
1261
1420
  eventName: 'HarvestRewards',
1262
1421
  args: filter,
1263
1422
  onLogs: (logs: any[]) => {
@@ -1276,7 +1435,7 @@ export class stakingManagerV4_json {
1276
1435
  Initialized: (callback: (event: { version: bigint }) => void) => {
1277
1436
  return this.publicClient.watchContractEvent({
1278
1437
  address: this.contractAddress,
1279
- abi: stakingManagerV4_jsonAbi,
1438
+ abi: stakingManager_jsonAbi,
1280
1439
  eventName: 'Initialized',
1281
1440
 
1282
1441
  onLogs: (logs: any[]) => {
@@ -1295,7 +1454,7 @@ export class stakingManagerV4_json {
1295
1454
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1296
1455
  return this.publicClient.watchContractEvent({
1297
1456
  address: this.contractAddress,
1298
- abi: stakingManagerV4_jsonAbi,
1457
+ abi: stakingManager_jsonAbi,
1299
1458
  eventName: 'OwnershipTransferred',
1300
1459
  args: filter,
1301
1460
  onLogs: (logs: any[]) => {
@@ -1305,44 +1464,6 @@ export class stakingManagerV4_json {
1305
1464
  },
1306
1465
  }) as () => void;
1307
1466
  },
1308
- /**
1309
- * Watch RestakePrincipal events
1310
- * @param callback Function to call when event is emitted
1311
- * @param filter Optional filter for indexed parameters
1312
- * @returns Unwatch function to stop listening
1313
- */
1314
- RestakePrincipal: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
1315
- return this.publicClient.watchContractEvent({
1316
- address: this.contractAddress,
1317
- abi: stakingManagerV4_jsonAbi,
1318
- eventName: 'RestakePrincipal',
1319
- args: filter,
1320
- onLogs: (logs: any[]) => {
1321
- logs.forEach((log: any) => {
1322
- callback(log.args as any);
1323
- });
1324
- },
1325
- }) as () => void;
1326
- },
1327
- /**
1328
- * Watch RestakeRewards events
1329
- * @param callback Function to call when event is emitted
1330
- * @param filter Optional filter for indexed parameters
1331
- * @returns Unwatch function to stop listening
1332
- */
1333
- RestakeRewards: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
1334
- return this.publicClient.watchContractEvent({
1335
- address: this.contractAddress,
1336
- abi: stakingManagerV4_jsonAbi,
1337
- eventName: 'RestakeRewards',
1338
- args: filter,
1339
- onLogs: (logs: any[]) => {
1340
- logs.forEach((log: any) => {
1341
- callback(log.args as any);
1342
- });
1343
- },
1344
- }) as () => void;
1345
- },
1346
1467
  /**
1347
1468
  * Watch Withdraw events
1348
1469
  * @param callback Function to call when event is emitted
@@ -1352,7 +1473,7 @@ export class stakingManagerV4_json {
1352
1473
  Withdraw: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1353
1474
  return this.publicClient.watchContractEvent({
1354
1475
  address: this.contractAddress,
1355
- abi: stakingManagerV4_jsonAbi,
1476
+ abi: stakingManager_jsonAbi,
1356
1477
  eventName: 'Withdraw',
1357
1478
  args: filter,
1358
1479
  onLogs: (logs: any[]) => {