@gitmyabi/stakingmanager 1.0.1 → 1.0.2

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