@gitmyabi/stakingmanager 1.0.2 → 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-6475bdeb-1787503825123`
5
+ - **Build ID**: `etherscan-stakingmanager-b02bbf73-1787733973699`
6
6
  - **Build Number**: 1
7
- - **Commit**: `4b458ad`
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.2
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 { stakingManagerV3_jsonAbi, stakingManagerV3_json } from './stakingManagerV3_json';
4
- export type { stakingManagerV3_jsonAbi as stakingManagerV3_jsonAbiType, stakingManagerV3_jsonContract } from './stakingManagerV3_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.stakingManagerV3_json = exports.stakingManagerV3_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 stakingManagerV3_json_1 = require("./stakingManagerV3_json");
9
- Object.defineProperty(exports, "stakingManagerV3_jsonAbi", { enumerable: true, get: function () { return stakingManagerV3_json_1.stakingManagerV3_jsonAbi; } });
10
- Object.defineProperty(exports, "stakingManagerV3_json", { enumerable: true, get: function () { return stakingManagerV3_json_1.stakingManagerV3_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 { stakingManagerV3_jsonAbi, stakingManagerV3_json } from './stakingManagerV3_json';
5
- export type { stakingManagerV3_jsonAbi as stakingManagerV3_jsonAbiType, stakingManagerV3_jsonContract } from './stakingManagerV3_json';
4
+ export { stakingManagerV2_jsonAbi, stakingManagerV2_json } from './stakingManagerV2_json';
5
+ export type { stakingManagerV2_jsonAbi as stakingManagerV2_jsonAbiType, stakingManagerV2_jsonContract } from './stakingManagerV2_json';
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * stakingManagerV3_json ABI
3
+ * stakingManagerV2_json ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const stakingManagerV3_jsonAbi: readonly [{
7
+ export declare const stakingManagerV2_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [];
9
9
  readonly stateMutability: "nonpayable";
10
10
  readonly type: "constructor";
@@ -358,6 +358,20 @@ export declare const stakingManagerV3_jsonAbi: readonly [{
358
358
  }];
359
359
  readonly stateMutability: "view";
360
360
  readonly type: "function";
361
+ }, {
362
+ readonly inputs: readonly [{
363
+ readonly internalType: "address";
364
+ readonly name: "_token";
365
+ readonly type: "address";
366
+ }, {
367
+ readonly internalType: "uint256";
368
+ readonly name: "_amount";
369
+ readonly type: "uint256";
370
+ }];
371
+ readonly name: "tokenTransfer";
372
+ readonly outputs: readonly [];
373
+ readonly stateMutability: "nonpayable";
374
+ readonly type: "function";
361
375
  }, {
362
376
  readonly inputs: readonly [];
363
377
  readonly name: "tokensStaked";
@@ -408,27 +422,17 @@ export declare const stakingManagerV3_jsonAbi: readonly [{
408
422
  readonly outputs: readonly [];
409
423
  readonly stateMutability: "nonpayable";
410
424
  readonly type: "function";
411
- }, {
412
- readonly inputs: readonly [{
413
- readonly internalType: "uint256";
414
- readonly name: "_amount";
415
- readonly type: "uint256";
416
- }];
417
- readonly name: "withdrawToken";
418
- readonly outputs: readonly [];
419
- readonly stateMutability: "nonpayable";
420
- readonly type: "function";
421
425
  }];
422
426
  /**
423
- * Type-safe ABI for stakingManagerV3_json
427
+ * Type-safe ABI for stakingManagerV2_json
424
428
  */
425
- export type stakingManagerV3_jsonAbi = typeof stakingManagerV3_jsonAbi;
429
+ export type stakingManagerV2_jsonAbi = typeof stakingManagerV2_jsonAbi;
426
430
  /**
427
- * Contract instance type for stakingManagerV3_json
431
+ * Contract instance type for stakingManagerV2_json
428
432
  */
429
- export type stakingManagerV3_jsonContract = any;
433
+ export type stakingManagerV2_jsonContract = any;
430
434
  /**
431
- * stakingManagerV3_json Contract Class
435
+ * stakingManagerV2_json Contract Class
432
436
  *
433
437
  * Provides a class-based API similar to TypeChain for interacting with the contract.
434
438
  *
@@ -436,12 +440,12 @@ export type stakingManagerV3_jsonContract = any;
436
440
  * ```typescript
437
441
  * import { createPublicClient, createWalletClient, http } from 'viem';
438
442
  * import { mainnet } from 'viem/chains';
439
- * import { stakingManagerV3_json } from 'stakingManagerV3_json';
443
+ * import { stakingManagerV2_json } from 'stakingManagerV2_json';
440
444
  *
441
445
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
442
446
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
443
447
  *
444
- * const contract = new stakingManagerV3_json('0x...', { publicClient, walletClient });
448
+ * const contract = new stakingManagerV2_json('0x...', { publicClient, walletClient });
445
449
  *
446
450
  * // Read functions
447
451
  * const result = await contract.balanceOf('0x...');
@@ -459,7 +463,7 @@ export type stakingManagerV3_jsonContract = any;
459
463
  * });
460
464
  * ```
461
465
  */
462
- export declare class stakingManagerV3_json {
466
+ export declare class stakingManagerV2_json {
463
467
  private contract;
464
468
  private contractAddress;
465
469
  private publicClient;
@@ -474,7 +478,7 @@ export declare class stakingManagerV3_json {
474
478
  /**
475
479
  * Get the underlying viem contract instance
476
480
  */
477
- getContract(): stakingManagerV3_jsonContract;
481
+ getContract(): stakingManagerV2_jsonContract;
478
482
  /**
479
483
  * claimStart
480
484
  * view
@@ -767,11 +771,11 @@ export declare class stakingManagerV3_json {
767
771
  value?: bigint;
768
772
  }): Promise<`0x${string}`>;
769
773
  /**
770
- * transferOwnership
774
+ * tokenTransfer
771
775
  * nonpayable
772
776
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
773
777
  */
774
- transferOwnership(newOwner: `0x${string}`, options?: {
778
+ tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
775
779
  accessList?: import('viem').AccessList;
776
780
  authorizationList?: import('viem').AuthorizationList;
777
781
  chain?: import('viem').Chain | null;
@@ -784,11 +788,11 @@ export declare class stakingManagerV3_json {
784
788
  value?: bigint;
785
789
  }): Promise<`0x${string}`>;
786
790
  /**
787
- * withdraw
791
+ * transferOwnership
788
792
  * nonpayable
789
793
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
790
794
  */
791
- withdraw(options?: {
795
+ transferOwnership(newOwner: `0x${string}`, options?: {
792
796
  accessList?: import('viem').AccessList;
793
797
  authorizationList?: import('viem').AuthorizationList;
794
798
  chain?: import('viem').Chain | null;
@@ -801,11 +805,11 @@ export declare class stakingManagerV3_json {
801
805
  value?: bigint;
802
806
  }): Promise<`0x${string}`>;
803
807
  /**
804
- * withdrawToken
808
+ * withdraw
805
809
  * nonpayable
806
810
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
807
811
  */
808
- withdrawToken(_amount: bigint, options?: {
812
+ withdraw(options?: {
809
813
  accessList?: import('viem').AccessList;
810
814
  authorizationList?: import('viem').AuthorizationList;
811
815
  chain?: import('viem').Chain | null;
@@ -1048,11 +1052,11 @@ export declare class stakingManagerV3_json {
1048
1052
  value?: bigint;
1049
1053
  }): Promise<void>;
1050
1054
  /**
1051
- * Simulate transferOwnership
1055
+ * Simulate tokenTransfer
1052
1056
  * Returns gas estimate and result without sending transaction
1053
1057
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1054
1058
  */
1055
- transferOwnership(newOwner: `0x${string}`, options?: {
1059
+ tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1056
1060
  accessList?: import("viem").AccessList;
1057
1061
  authorizationList?: import("viem").AuthorizationList;
1058
1062
  chain?: import("viem").Chain | null;
@@ -1065,11 +1069,11 @@ export declare class stakingManagerV3_json {
1065
1069
  value?: bigint;
1066
1070
  }): Promise<void>;
1067
1071
  /**
1068
- * Simulate withdraw
1072
+ * Simulate transferOwnership
1069
1073
  * Returns gas estimate and result without sending transaction
1070
1074
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1071
1075
  */
1072
- withdraw(options?: {
1076
+ transferOwnership(newOwner: `0x${string}`, options?: {
1073
1077
  accessList?: import("viem").AccessList;
1074
1078
  authorizationList?: import("viem").AuthorizationList;
1075
1079
  chain?: import("viem").Chain | null;
@@ -1082,11 +1086,11 @@ export declare class stakingManagerV3_json {
1082
1086
  value?: bigint;
1083
1087
  }): Promise<void>;
1084
1088
  /**
1085
- * Simulate withdrawToken
1089
+ * Simulate withdraw
1086
1090
  * Returns gas estimate and result without sending transaction
1087
1091
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1088
1092
  */
1089
- withdrawToken(_amount: bigint, options?: {
1093
+ withdraw(options?: {
1090
1094
  accessList?: import("viem").AccessList;
1091
1095
  authorizationList?: import("viem").AuthorizationList;
1092
1096
  chain?: import("viem").Chain | null;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stakingManagerV3_json = exports.stakingManagerV3_jsonAbi = void 0;
3
+ exports.stakingManagerV2_json = exports.stakingManagerV2_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * stakingManagerV3_json ABI
6
+ * stakingManagerV2_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.stakingManagerV3_jsonAbi = [
10
+ exports.stakingManagerV2_jsonAbi = [
11
11
  {
12
12
  "inputs": [],
13
13
  "stateMutability": "nonpayable",
@@ -465,6 +465,24 @@ exports.stakingManagerV3_jsonAbi = [
465
465
  "stateMutability": "view",
466
466
  "type": "function"
467
467
  },
468
+ {
469
+ "inputs": [
470
+ {
471
+ "internalType": "address",
472
+ "name": "_token",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "_amount",
478
+ "type": "uint256"
479
+ }
480
+ ],
481
+ "name": "tokenTransfer",
482
+ "outputs": [],
483
+ "stateMutability": "nonpayable",
484
+ "type": "function"
485
+ },
468
486
  {
469
487
  "inputs": [],
470
488
  "name": "tokensStaked",
@@ -529,23 +547,10 @@ exports.stakingManagerV3_jsonAbi = [
529
547
  "outputs": [],
530
548
  "stateMutability": "nonpayable",
531
549
  "type": "function"
532
- },
533
- {
534
- "inputs": [
535
- {
536
- "internalType": "uint256",
537
- "name": "_amount",
538
- "type": "uint256"
539
- }
540
- ],
541
- "name": "withdrawToken",
542
- "outputs": [],
543
- "stateMutability": "nonpayable",
544
- "type": "function"
545
550
  }
546
551
  ];
547
552
  /**
548
- * stakingManagerV3_json Contract Class
553
+ * stakingManagerV2_json Contract Class
549
554
  *
550
555
  * Provides a class-based API similar to TypeChain for interacting with the contract.
551
556
  *
@@ -553,12 +558,12 @@ exports.stakingManagerV3_jsonAbi = [
553
558
  * ```typescript
554
559
  * import { createPublicClient, createWalletClient, http } from 'viem';
555
560
  * import { mainnet } from 'viem/chains';
556
- * import { stakingManagerV3_json } from 'stakingManagerV3_json';
561
+ * import { stakingManagerV2_json } from 'stakingManagerV2_json';
557
562
  *
558
563
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
559
564
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
560
565
  *
561
- * const contract = new stakingManagerV3_json('0x...', { publicClient, walletClient });
566
+ * const contract = new stakingManagerV2_json('0x...', { publicClient, walletClient });
562
567
  *
563
568
  * // Read functions
564
569
  * const result = await contract.balanceOf('0x...');
@@ -576,13 +581,13 @@ exports.stakingManagerV3_jsonAbi = [
576
581
  * });
577
582
  * ```
578
583
  */
579
- class stakingManagerV3_json {
584
+ class stakingManagerV2_json {
580
585
  constructor(address, clients) {
581
586
  this.contractAddress = address;
582
587
  this.publicClient = clients.publicClient;
583
588
  this.contract = (0, viem_1.getContract)({
584
589
  address,
585
- abi: exports.stakingManagerV3_jsonAbi,
590
+ abi: exports.stakingManagerV2_jsonAbi,
586
591
  client: {
587
592
  public: clients.publicClient,
588
593
  wallet: clients.walletClient,
@@ -843,37 +848,37 @@ class stakingManagerV3_json {
843
848
  return this.contract.write.setStakeToken([_stakeToken], options);
844
849
  }
845
850
  /**
846
- * transferOwnership
851
+ * tokenTransfer
847
852
  * nonpayable
848
853
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
849
854
  */
850
- async transferOwnership(newOwner, options) {
855
+ async tokenTransfer(_token, _amount, options) {
851
856
  if (!this.contract.write) {
852
857
  throw new Error('Wallet client is required for write operations');
853
858
  }
854
- return this.contract.write.transferOwnership([newOwner], options);
859
+ return this.contract.write.tokenTransfer([_token, _amount], options);
855
860
  }
856
861
  /**
857
- * withdraw
862
+ * transferOwnership
858
863
  * nonpayable
859
864
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
860
865
  */
861
- async withdraw(options) {
866
+ async transferOwnership(newOwner, options) {
862
867
  if (!this.contract.write) {
863
868
  throw new Error('Wallet client is required for write operations');
864
869
  }
865
- return this.contract.write.withdraw(options);
870
+ return this.contract.write.transferOwnership([newOwner], options);
866
871
  }
867
872
  /**
868
- * withdrawToken
873
+ * withdraw
869
874
  * nonpayable
870
875
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
871
876
  */
872
- async withdrawToken(_amount, options) {
877
+ async withdraw(options) {
873
878
  if (!this.contract.write) {
874
879
  throw new Error('Wallet client is required for write operations');
875
880
  }
876
- return this.contract.write.withdrawToken([_amount], options);
881
+ return this.contract.write.withdraw(options);
877
882
  }
878
883
  /**
879
884
  * Simulate contract write operations (dry-run without sending transaction)
@@ -993,6 +998,14 @@ class stakingManagerV3_json {
993
998
  async setStakeToken(_stakeToken, options) {
994
999
  return contract.simulate.setStakeToken([_stakeToken], options);
995
1000
  },
1001
+ /**
1002
+ * Simulate tokenTransfer
1003
+ * Returns gas estimate and result without sending transaction
1004
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1005
+ */
1006
+ async tokenTransfer(_token, _amount, options) {
1007
+ return contract.simulate.tokenTransfer([_token, _amount], options);
1008
+ },
996
1009
  /**
997
1010
  * Simulate transferOwnership
998
1011
  * Returns gas estimate and result without sending transaction
@@ -1008,14 +1021,6 @@ class stakingManagerV3_json {
1008
1021
  */
1009
1022
  async withdraw(options) {
1010
1023
  return contract.simulate.withdraw(options);
1011
- },
1012
- /**
1013
- * Simulate withdrawToken
1014
- * Returns gas estimate and result without sending transaction
1015
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1016
- */
1017
- async withdrawToken(_amount, options) {
1018
- return contract.simulate.withdrawToken([_amount], options);
1019
1024
  }
1020
1025
  };
1021
1026
  }
@@ -1042,7 +1047,7 @@ class stakingManagerV3_json {
1042
1047
  Deposit: (callback, filter) => {
1043
1048
  return this.publicClient.watchContractEvent({
1044
1049
  address: this.contractAddress,
1045
- abi: exports.stakingManagerV3_jsonAbi,
1050
+ abi: exports.stakingManagerV2_jsonAbi,
1046
1051
  eventName: 'Deposit',
1047
1052
  args: filter,
1048
1053
  onLogs: (logs) => {
@@ -1061,7 +1066,7 @@ class stakingManagerV3_json {
1061
1066
  HarvestRewards: (callback, filter) => {
1062
1067
  return this.publicClient.watchContractEvent({
1063
1068
  address: this.contractAddress,
1064
- abi: exports.stakingManagerV3_jsonAbi,
1069
+ abi: exports.stakingManagerV2_jsonAbi,
1065
1070
  eventName: 'HarvestRewards',
1066
1071
  args: filter,
1067
1072
  onLogs: (logs) => {
@@ -1080,7 +1085,7 @@ class stakingManagerV3_json {
1080
1085
  Initialized: (callback) => {
1081
1086
  return this.publicClient.watchContractEvent({
1082
1087
  address: this.contractAddress,
1083
- abi: exports.stakingManagerV3_jsonAbi,
1088
+ abi: exports.stakingManagerV2_jsonAbi,
1084
1089
  eventName: 'Initialized',
1085
1090
  onLogs: (logs) => {
1086
1091
  logs.forEach((log) => {
@@ -1098,7 +1103,7 @@ class stakingManagerV3_json {
1098
1103
  OwnershipTransferred: (callback, filter) => {
1099
1104
  return this.publicClient.watchContractEvent({
1100
1105
  address: this.contractAddress,
1101
- abi: exports.stakingManagerV3_jsonAbi,
1106
+ abi: exports.stakingManagerV2_jsonAbi,
1102
1107
  eventName: 'OwnershipTransferred',
1103
1108
  args: filter,
1104
1109
  onLogs: (logs) => {
@@ -1117,7 +1122,7 @@ class stakingManagerV3_json {
1117
1122
  Withdraw: (callback, filter) => {
1118
1123
  return this.publicClient.watchContractEvent({
1119
1124
  address: this.contractAddress,
1120
- abi: exports.stakingManagerV3_jsonAbi,
1125
+ abi: exports.stakingManagerV2_jsonAbi,
1121
1126
  eventName: 'Withdraw',
1122
1127
  args: filter,
1123
1128
  onLogs: (logs) => {
@@ -1130,4 +1135,4 @@ class stakingManagerV3_json {
1130
1135
  };
1131
1136
  }
1132
1137
  }
1133
- exports.stakingManagerV3_json = stakingManagerV3_json;
1138
+ exports.stakingManagerV2_json = stakingManagerV2_json;
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * stakingManagerV3_json ABI
5
+ * stakingManagerV2_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const stakingManagerV3_jsonAbi = [
9
+ export const stakingManagerV2_jsonAbi = [
10
10
  {
11
11
  "inputs": [],
12
12
  "stateMutability": "nonpayable",
@@ -464,6 +464,24 @@ export const stakingManagerV3_jsonAbi = [
464
464
  "stateMutability": "view",
465
465
  "type": "function"
466
466
  },
467
+ {
468
+ "inputs": [
469
+ {
470
+ "internalType": "address",
471
+ "name": "_token",
472
+ "type": "address"
473
+ },
474
+ {
475
+ "internalType": "uint256",
476
+ "name": "_amount",
477
+ "type": "uint256"
478
+ }
479
+ ],
480
+ "name": "tokenTransfer",
481
+ "outputs": [],
482
+ "stateMutability": "nonpayable",
483
+ "type": "function"
484
+ },
467
485
  {
468
486
  "inputs": [],
469
487
  "name": "tokensStaked",
@@ -528,36 +546,23 @@ export const stakingManagerV3_jsonAbi = [
528
546
  "outputs": [],
529
547
  "stateMutability": "nonpayable",
530
548
  "type": "function"
531
- },
532
- {
533
- "inputs": [
534
- {
535
- "internalType": "uint256",
536
- "name": "_amount",
537
- "type": "uint256"
538
- }
539
- ],
540
- "name": "withdrawToken",
541
- "outputs": [],
542
- "stateMutability": "nonpayable",
543
- "type": "function"
544
549
  }
545
550
  ] as const satisfies Abi;
546
551
 
547
552
  /**
548
- * Type-safe ABI for stakingManagerV3_json
553
+ * Type-safe ABI for stakingManagerV2_json
549
554
  */
550
- export type stakingManagerV3_jsonAbi = typeof stakingManagerV3_jsonAbi;
555
+ export type stakingManagerV2_jsonAbi = typeof stakingManagerV2_jsonAbi;
551
556
 
552
557
  /**
553
- * Contract instance type for stakingManagerV3_json
558
+ * Contract instance type for stakingManagerV2_json
554
559
  */
555
560
  // Use any for contract type to avoid complex viem type issues
556
561
  // The runtime behavior is type-safe through viem's ABI typing
557
- export type stakingManagerV3_jsonContract = any;
562
+ export type stakingManagerV2_jsonContract = any;
558
563
 
559
564
  /**
560
- * stakingManagerV3_json Contract Class
565
+ * stakingManagerV2_json Contract Class
561
566
  *
562
567
  * Provides a class-based API similar to TypeChain for interacting with the contract.
563
568
  *
@@ -565,12 +570,12 @@ export type stakingManagerV3_jsonContract = any;
565
570
  * ```typescript
566
571
  * import { createPublicClient, createWalletClient, http } from 'viem';
567
572
  * import { mainnet } from 'viem/chains';
568
- * import { stakingManagerV3_json } from 'stakingManagerV3_json';
573
+ * import { stakingManagerV2_json } from 'stakingManagerV2_json';
569
574
  *
570
575
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
571
576
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
572
577
  *
573
- * const contract = new stakingManagerV3_json('0x...', { publicClient, walletClient });
578
+ * const contract = new stakingManagerV2_json('0x...', { publicClient, walletClient });
574
579
  *
575
580
  * // Read functions
576
581
  * const result = await contract.balanceOf('0x...');
@@ -588,8 +593,8 @@ export type stakingManagerV3_jsonContract = any;
588
593
  * });
589
594
  * ```
590
595
  */
591
- export class stakingManagerV3_json {
592
- private contract: stakingManagerV3_jsonContract;
596
+ export class stakingManagerV2_json {
597
+ private contract: stakingManagerV2_jsonContract;
593
598
  private contractAddress: Address;
594
599
  private publicClient: PublicClient;
595
600
 
@@ -604,7 +609,7 @@ export class stakingManagerV3_json {
604
609
  this.publicClient = clients.publicClient;
605
610
  this.contract = getContract({
606
611
  address,
607
- abi: stakingManagerV3_jsonAbi,
612
+ abi: stakingManagerV2_jsonAbi,
608
613
  client: {
609
614
  public: clients.publicClient,
610
615
  wallet: clients.walletClient,
@@ -622,7 +627,7 @@ export class stakingManagerV3_json {
622
627
  /**
623
628
  * Get the underlying viem contract instance
624
629
  */
625
- getContract(): stakingManagerV3_jsonContract {
630
+ getContract(): stakingManagerV2_jsonContract {
626
631
  return this.contract;
627
632
  }
628
633
 
@@ -1038,11 +1043,11 @@ export class stakingManagerV3_json {
1038
1043
  }
1039
1044
 
1040
1045
  /**
1041
- * transferOwnership
1046
+ * tokenTransfer
1042
1047
  * nonpayable
1043
1048
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1044
1049
  */
1045
- async transferOwnership(newOwner: `0x${string}`, options?: {
1050
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1046
1051
  accessList?: import('viem').AccessList;
1047
1052
  authorizationList?: import('viem').AuthorizationList;
1048
1053
  chain?: import('viem').Chain | null;
@@ -1057,15 +1062,15 @@ export class stakingManagerV3_json {
1057
1062
  if (!this.contract.write) {
1058
1063
  throw new Error('Wallet client is required for write operations');
1059
1064
  }
1060
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1065
+ return this.contract.write.tokenTransfer([_token, _amount] as const, options) as Promise<`0x${string}`>;
1061
1066
  }
1062
1067
 
1063
1068
  /**
1064
- * withdraw
1069
+ * transferOwnership
1065
1070
  * nonpayable
1066
1071
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1067
1072
  */
1068
- async withdraw(options?: {
1073
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1069
1074
  accessList?: import('viem').AccessList;
1070
1075
  authorizationList?: import('viem').AuthorizationList;
1071
1076
  chain?: import('viem').Chain | null;
@@ -1080,15 +1085,15 @@ export class stakingManagerV3_json {
1080
1085
  if (!this.contract.write) {
1081
1086
  throw new Error('Wallet client is required for write operations');
1082
1087
  }
1083
- return this.contract.write.withdraw(options) as Promise<`0x${string}`>;
1088
+ return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1084
1089
  }
1085
1090
 
1086
1091
  /**
1087
- * withdrawToken
1092
+ * withdraw
1088
1093
  * nonpayable
1089
1094
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1090
1095
  */
1091
- async withdrawToken(_amount: bigint, options?: {
1096
+ async withdraw(options?: {
1092
1097
  accessList?: import('viem').AccessList;
1093
1098
  authorizationList?: import('viem').AuthorizationList;
1094
1099
  chain?: import('viem').Chain | null;
@@ -1103,7 +1108,7 @@ export class stakingManagerV3_json {
1103
1108
  if (!this.contract.write) {
1104
1109
  throw new Error('Wallet client is required for write operations');
1105
1110
  }
1106
- return this.contract.write.withdrawToken([_amount] as const, options) as Promise<`0x${string}`>;
1111
+ return this.contract.write.withdraw(options) as Promise<`0x${string}`>;
1107
1112
  }
1108
1113
 
1109
1114
 
@@ -1370,11 +1375,11 @@ export class stakingManagerV3_json {
1370
1375
  return contract.simulate.setStakeToken([_stakeToken] as const, options) as Promise<void>;
1371
1376
  },
1372
1377
  /**
1373
- * Simulate transferOwnership
1378
+ * Simulate tokenTransfer
1374
1379
  * Returns gas estimate and result without sending transaction
1375
1380
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1376
1381
  */
1377
- async transferOwnership(newOwner: `0x${string}`, options?: {
1382
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1378
1383
  accessList?: import('viem').AccessList;
1379
1384
  authorizationList?: import('viem').AuthorizationList;
1380
1385
  chain?: import('viem').Chain | null;
@@ -1386,14 +1391,14 @@ export class stakingManagerV3_json {
1386
1391
  nonce?: number;
1387
1392
  value?: bigint;
1388
1393
  }): Promise<void> {
1389
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1394
+ return contract.simulate.tokenTransfer([_token, _amount] as const, options) as Promise<void>;
1390
1395
  },
1391
1396
  /**
1392
- * Simulate withdraw
1397
+ * Simulate transferOwnership
1393
1398
  * Returns gas estimate and result without sending transaction
1394
1399
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1395
1400
  */
1396
- async withdraw(options?: {
1401
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1397
1402
  accessList?: import('viem').AccessList;
1398
1403
  authorizationList?: import('viem').AuthorizationList;
1399
1404
  chain?: import('viem').Chain | null;
@@ -1405,14 +1410,14 @@ export class stakingManagerV3_json {
1405
1410
  nonce?: number;
1406
1411
  value?: bigint;
1407
1412
  }): Promise<void> {
1408
- return contract.simulate.withdraw(options) as Promise<void>;
1413
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1409
1414
  },
1410
1415
  /**
1411
- * Simulate withdrawToken
1416
+ * Simulate withdraw
1412
1417
  * Returns gas estimate and result without sending transaction
1413
1418
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1414
1419
  */
1415
- async withdrawToken(_amount: bigint, options?: {
1420
+ async withdraw(options?: {
1416
1421
  accessList?: import('viem').AccessList;
1417
1422
  authorizationList?: import('viem').AuthorizationList;
1418
1423
  chain?: import('viem').Chain | null;
@@ -1424,7 +1429,7 @@ export class stakingManagerV3_json {
1424
1429
  nonce?: number;
1425
1430
  value?: bigint;
1426
1431
  }): Promise<void> {
1427
- return contract.simulate.withdrawToken([_amount] as const, options) as Promise<void>;
1432
+ return contract.simulate.withdraw(options) as Promise<void>;
1428
1433
  }
1429
1434
  };
1430
1435
  }
@@ -1452,7 +1457,7 @@ export class stakingManagerV3_json {
1452
1457
  Deposit: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1453
1458
  return this.publicClient.watchContractEvent({
1454
1459
  address: this.contractAddress,
1455
- abi: stakingManagerV3_jsonAbi,
1460
+ abi: stakingManagerV2_jsonAbi,
1456
1461
  eventName: 'Deposit',
1457
1462
  args: filter,
1458
1463
  onLogs: (logs: any[]) => {
@@ -1471,7 +1476,7 @@ export class stakingManagerV3_json {
1471
1476
  HarvestRewards: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1472
1477
  return this.publicClient.watchContractEvent({
1473
1478
  address: this.contractAddress,
1474
- abi: stakingManagerV3_jsonAbi,
1479
+ abi: stakingManagerV2_jsonAbi,
1475
1480
  eventName: 'HarvestRewards',
1476
1481
  args: filter,
1477
1482
  onLogs: (logs: any[]) => {
@@ -1490,7 +1495,7 @@ export class stakingManagerV3_json {
1490
1495
  Initialized: (callback: (event: { version: bigint }) => void) => {
1491
1496
  return this.publicClient.watchContractEvent({
1492
1497
  address: this.contractAddress,
1493
- abi: stakingManagerV3_jsonAbi,
1498
+ abi: stakingManagerV2_jsonAbi,
1494
1499
  eventName: 'Initialized',
1495
1500
 
1496
1501
  onLogs: (logs: any[]) => {
@@ -1509,7 +1514,7 @@ export class stakingManagerV3_json {
1509
1514
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1510
1515
  return this.publicClient.watchContractEvent({
1511
1516
  address: this.contractAddress,
1512
- abi: stakingManagerV3_jsonAbi,
1517
+ abi: stakingManagerV2_jsonAbi,
1513
1518
  eventName: 'OwnershipTransferred',
1514
1519
  args: filter,
1515
1520
  onLogs: (logs: any[]) => {
@@ -1528,7 +1533,7 @@ export class stakingManagerV3_json {
1528
1533
  Withdraw: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
1529
1534
  return this.publicClient.watchContractEvent({
1530
1535
  address: this.contractAddress,
1531
- abi: stakingManagerV3_jsonAbi,
1536
+ abi: stakingManagerV2_jsonAbi,
1532
1537
  eventName: 'Withdraw',
1533
1538
  args: filter,
1534
1539
  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.4",
4
+ "description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-b02bbf73-1787733973699, commit 14fbc7d, 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": "14fbc7d"
43
43
  }