@gitmyabi/stakingmanager 1.0.0 → 1.0.1

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-0cf168a0-1785714461386`
5
+ - **Build ID**: `etherscan-stakingmanager-e555f27e-1786694254950`
6
6
  - **Build Number**: 1
7
- - **Commit**: `ec25bac`
7
+ - **Commit**: `4028b21`
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.0
15
+ npm install @gitmyabi/stakingmanager@1.0.1
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -114,20 +114,6 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
114
114
  readonly outputs: readonly [];
115
115
  readonly stateMutability: "nonpayable";
116
116
  readonly type: "function";
117
- }, {
118
- readonly inputs: readonly [{
119
- readonly internalType: "uint256";
120
- readonly name: "_rewardTokensPerBlock";
121
- readonly type: "uint256";
122
- }, {
123
- readonly internalType: "uint256";
124
- readonly name: "_endBlock";
125
- readonly type: "uint256";
126
- }];
127
- readonly name: "changeRewardTokensPerBlock";
128
- readonly outputs: readonly [];
129
- readonly stateMutability: "nonpayable";
130
- readonly type: "function";
131
117
  }, {
132
118
  readonly inputs: readonly [];
133
119
  readonly name: "claimStart";
@@ -372,6 +358,20 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
372
358
  }];
373
359
  readonly stateMutability: "view";
374
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
375
  }, {
376
376
  readonly inputs: readonly [];
377
377
  readonly name: "tokensStaked";
@@ -583,23 +583,6 @@ export declare class stakingManagerV2_json {
583
583
  nonce?: number;
584
584
  value?: bigint;
585
585
  }): Promise<`0x${string}`>;
586
- /**
587
- * changeRewardTokensPerBlock
588
- * nonpayable
589
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
590
- */
591
- changeRewardTokensPerBlock(_rewardTokensPerBlock: bigint, _endBlock: bigint, options?: {
592
- accessList?: import('viem').AccessList;
593
- authorizationList?: import('viem').AuthorizationList;
594
- chain?: import('viem').Chain | null;
595
- dataSuffix?: `0x${string}`;
596
- gas?: bigint;
597
- gasPrice?: bigint;
598
- maxFeePerGas?: bigint;
599
- maxPriorityFeePerGas?: bigint;
600
- nonce?: number;
601
- value?: bigint;
602
- }): Promise<`0x${string}`>;
603
586
  /**
604
587
  * deposit
605
588
  * nonpayable
@@ -787,6 +770,23 @@ export declare class stakingManagerV2_json {
787
770
  nonce?: number;
788
771
  value?: bigint;
789
772
  }): Promise<`0x${string}`>;
773
+ /**
774
+ * tokenTransfer
775
+ * nonpayable
776
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
777
+ */
778
+ tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
779
+ accessList?: import('viem').AccessList;
780
+ authorizationList?: import('viem').AuthorizationList;
781
+ chain?: import('viem').Chain | null;
782
+ dataSuffix?: `0x${string}`;
783
+ gas?: bigint;
784
+ gasPrice?: bigint;
785
+ maxFeePerGas?: bigint;
786
+ maxPriorityFeePerGas?: bigint;
787
+ nonce?: number;
788
+ value?: bigint;
789
+ }): Promise<`0x${string}`>;
790
790
  /**
791
791
  * transferOwnership
792
792
  * nonpayable
@@ -864,23 +864,6 @@ export declare class stakingManagerV2_json {
864
864
  nonce?: number;
865
865
  value?: bigint;
866
866
  }): Promise<void>;
867
- /**
868
- * Simulate changeRewardTokensPerBlock
869
- * Returns gas estimate and result without sending transaction
870
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
871
- */
872
- changeRewardTokensPerBlock(_rewardTokensPerBlock: bigint, _endBlock: bigint, options?: {
873
- accessList?: import("viem").AccessList;
874
- authorizationList?: import("viem").AuthorizationList;
875
- chain?: import("viem").Chain | null;
876
- dataSuffix?: `0x${string}`;
877
- gas?: bigint;
878
- gasPrice?: bigint;
879
- maxFeePerGas?: bigint;
880
- maxPriorityFeePerGas?: bigint;
881
- nonce?: number;
882
- value?: bigint;
883
- }): Promise<void>;
884
867
  /**
885
868
  * Simulate deposit
886
869
  * Returns gas estimate and result without sending transaction
@@ -1068,6 +1051,23 @@ export declare class stakingManagerV2_json {
1068
1051
  nonce?: number;
1069
1052
  value?: bigint;
1070
1053
  }): Promise<void>;
1054
+ /**
1055
+ * Simulate tokenTransfer
1056
+ * Returns gas estimate and result without sending transaction
1057
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1058
+ */
1059
+ tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1060
+ accessList?: import("viem").AccessList;
1061
+ authorizationList?: import("viem").AuthorizationList;
1062
+ chain?: import("viem").Chain | null;
1063
+ dataSuffix?: `0x${string}`;
1064
+ gas?: bigint;
1065
+ gasPrice?: bigint;
1066
+ maxFeePerGas?: bigint;
1067
+ maxPriorityFeePerGas?: bigint;
1068
+ nonce?: number;
1069
+ value?: bigint;
1070
+ }): Promise<void>;
1071
1071
  /**
1072
1072
  * Simulate transferOwnership
1073
1073
  * Returns gas estimate and result without sending transaction
@@ -148,24 +148,6 @@ exports.stakingManagerV2_jsonAbi = [
148
148
  "stateMutability": "nonpayable",
149
149
  "type": "function"
150
150
  },
151
- {
152
- "inputs": [
153
- {
154
- "internalType": "uint256",
155
- "name": "_rewardTokensPerBlock",
156
- "type": "uint256"
157
- },
158
- {
159
- "internalType": "uint256",
160
- "name": "_endBlock",
161
- "type": "uint256"
162
- }
163
- ],
164
- "name": "changeRewardTokensPerBlock",
165
- "outputs": [],
166
- "stateMutability": "nonpayable",
167
- "type": "function"
168
- },
169
151
  {
170
152
  "inputs": [],
171
153
  "name": "claimStart",
@@ -483,6 +465,24 @@ exports.stakingManagerV2_jsonAbi = [
483
465
  "stateMutability": "view",
484
466
  "type": "function"
485
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
486
  {
487
487
  "inputs": [],
488
488
  "name": "tokensStaked",
@@ -726,17 +726,6 @@ class stakingManagerV2_json {
726
726
  }
727
727
  return this.contract.write.blacklistUsers([_usersToBlacklist], options);
728
728
  }
729
- /**
730
- * changeRewardTokensPerBlock
731
- * nonpayable
732
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
733
- */
734
- async changeRewardTokensPerBlock(_rewardTokensPerBlock, _endBlock, options) {
735
- if (!this.contract.write) {
736
- throw new Error('Wallet client is required for write operations');
737
- }
738
- return this.contract.write.changeRewardTokensPerBlock([_rewardTokensPerBlock, _endBlock], options);
739
- }
740
729
  /**
741
730
  * deposit
742
731
  * nonpayable
@@ -858,6 +847,17 @@ class stakingManagerV2_json {
858
847
  }
859
848
  return this.contract.write.setStakeToken([_stakeToken], options);
860
849
  }
850
+ /**
851
+ * tokenTransfer
852
+ * nonpayable
853
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
854
+ */
855
+ async tokenTransfer(_token, _amount, options) {
856
+ if (!this.contract.write) {
857
+ throw new Error('Wallet client is required for write operations');
858
+ }
859
+ return this.contract.write.tokenTransfer([_token, _amount], options);
860
+ }
861
861
  /**
862
862
  * transferOwnership
863
863
  * nonpayable
@@ -910,14 +910,6 @@ class stakingManagerV2_json {
910
910
  async blacklistUsers(_usersToBlacklist, options) {
911
911
  return contract.simulate.blacklistUsers([_usersToBlacklist], options);
912
912
  },
913
- /**
914
- * Simulate changeRewardTokensPerBlock
915
- * Returns gas estimate and result without sending transaction
916
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
917
- */
918
- async changeRewardTokensPerBlock(_rewardTokensPerBlock, _endBlock, options) {
919
- return contract.simulate.changeRewardTokensPerBlock([_rewardTokensPerBlock, _endBlock], options);
920
- },
921
913
  /**
922
914
  * Simulate deposit
923
915
  * Returns gas estimate and result without sending transaction
@@ -1006,6 +998,14 @@ class stakingManagerV2_json {
1006
998
  async setStakeToken(_stakeToken, options) {
1007
999
  return contract.simulate.setStakeToken([_stakeToken], options);
1008
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
+ },
1009
1009
  /**
1010
1010
  * Simulate transferOwnership
1011
1011
  * Returns gas estimate and result without sending transaction
@@ -147,24 +147,6 @@ export const stakingManagerV2_jsonAbi = [
147
147
  "stateMutability": "nonpayable",
148
148
  "type": "function"
149
149
  },
150
- {
151
- "inputs": [
152
- {
153
- "internalType": "uint256",
154
- "name": "_rewardTokensPerBlock",
155
- "type": "uint256"
156
- },
157
- {
158
- "internalType": "uint256",
159
- "name": "_endBlock",
160
- "type": "uint256"
161
- }
162
- ],
163
- "name": "changeRewardTokensPerBlock",
164
- "outputs": [],
165
- "stateMutability": "nonpayable",
166
- "type": "function"
167
- },
168
150
  {
169
151
  "inputs": [],
170
152
  "name": "claimStart",
@@ -482,6 +464,24 @@ export const stakingManagerV2_jsonAbi = [
482
464
  "stateMutability": "view",
483
465
  "type": "function"
484
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
485
  {
486
486
  "inputs": [],
487
487
  "name": "tokensStaked",
@@ -789,29 +789,6 @@ export class stakingManagerV2_json {
789
789
  return this.contract.write.blacklistUsers([_usersToBlacklist] as const, options) as Promise<`0x${string}`>;
790
790
  }
791
791
 
792
- /**
793
- * changeRewardTokensPerBlock
794
- * nonpayable
795
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
796
- */
797
- async changeRewardTokensPerBlock(_rewardTokensPerBlock: bigint, _endBlock: bigint, options?: {
798
- accessList?: import('viem').AccessList;
799
- authorizationList?: import('viem').AuthorizationList;
800
- chain?: import('viem').Chain | null;
801
- dataSuffix?: `0x${string}`;
802
- gas?: bigint;
803
- gasPrice?: bigint;
804
- maxFeePerGas?: bigint;
805
- maxPriorityFeePerGas?: bigint;
806
- nonce?: number;
807
- value?: bigint;
808
- }): Promise<`0x${string}`> {
809
- if (!this.contract.write) {
810
- throw new Error('Wallet client is required for write operations');
811
- }
812
- return this.contract.write.changeRewardTokensPerBlock([_rewardTokensPerBlock, _endBlock] as const, options) as Promise<`0x${string}`>;
813
- }
814
-
815
792
  /**
816
793
  * deposit
817
794
  * nonpayable
@@ -1065,6 +1042,29 @@ export class stakingManagerV2_json {
1065
1042
  return this.contract.write.setStakeToken([_stakeToken] as const, options) as Promise<`0x${string}`>;
1066
1043
  }
1067
1044
 
1045
+ /**
1046
+ * tokenTransfer
1047
+ * nonpayable
1048
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1049
+ */
1050
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1051
+ accessList?: import('viem').AccessList;
1052
+ authorizationList?: import('viem').AuthorizationList;
1053
+ chain?: import('viem').Chain | null;
1054
+ dataSuffix?: `0x${string}`;
1055
+ gas?: bigint;
1056
+ gasPrice?: bigint;
1057
+ maxFeePerGas?: bigint;
1058
+ maxPriorityFeePerGas?: bigint;
1059
+ nonce?: number;
1060
+ value?: bigint;
1061
+ }): Promise<`0x${string}`> {
1062
+ if (!this.contract.write) {
1063
+ throw new Error('Wallet client is required for write operations');
1064
+ }
1065
+ return this.contract.write.tokenTransfer([_token, _amount] as const, options) as Promise<`0x${string}`>;
1066
+ }
1067
+
1068
1068
  /**
1069
1069
  * transferOwnership
1070
1070
  * nonpayable
@@ -1165,25 +1165,6 @@ export class stakingManagerV2_json {
1165
1165
  }): Promise<void> {
1166
1166
  return contract.simulate.blacklistUsers([_usersToBlacklist] as const, options) as Promise<void>;
1167
1167
  },
1168
- /**
1169
- * Simulate changeRewardTokensPerBlock
1170
- * Returns gas estimate and result without sending transaction
1171
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1172
- */
1173
- async changeRewardTokensPerBlock(_rewardTokensPerBlock: bigint, _endBlock: bigint, options?: {
1174
- accessList?: import('viem').AccessList;
1175
- authorizationList?: import('viem').AuthorizationList;
1176
- chain?: import('viem').Chain | null;
1177
- dataSuffix?: `0x${string}`;
1178
- gas?: bigint;
1179
- gasPrice?: bigint;
1180
- maxFeePerGas?: bigint;
1181
- maxPriorityFeePerGas?: bigint;
1182
- nonce?: number;
1183
- value?: bigint;
1184
- }): Promise<void> {
1185
- return contract.simulate.changeRewardTokensPerBlock([_rewardTokensPerBlock, _endBlock] as const, options) as Promise<void>;
1186
- },
1187
1168
  /**
1188
1169
  * Simulate deposit
1189
1170
  * Returns gas estimate and result without sending transaction
@@ -1393,6 +1374,25 @@ export class stakingManagerV2_json {
1393
1374
  }): Promise<void> {
1394
1375
  return contract.simulate.setStakeToken([_stakeToken] as const, options) as Promise<void>;
1395
1376
  },
1377
+ /**
1378
+ * Simulate tokenTransfer
1379
+ * Returns gas estimate and result without sending transaction
1380
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1381
+ */
1382
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1383
+ accessList?: import('viem').AccessList;
1384
+ authorizationList?: import('viem').AuthorizationList;
1385
+ chain?: import('viem').Chain | null;
1386
+ dataSuffix?: `0x${string}`;
1387
+ gas?: bigint;
1388
+ gasPrice?: bigint;
1389
+ maxFeePerGas?: bigint;
1390
+ maxPriorityFeePerGas?: bigint;
1391
+ nonce?: number;
1392
+ value?: bigint;
1393
+ }): Promise<void> {
1394
+ return contract.simulate.tokenTransfer([_token, _amount] as const, options) as Promise<void>;
1395
+ },
1396
1396
  /**
1397
1397
  * Simulate transferOwnership
1398
1398
  * Returns gas estimate and result without sending transaction
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/stakingmanager",
3
- "version": "1.0.0",
4
- "description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-0cf168a0-1785714461386, commit ec25bac, branch etherscan)",
3
+ "version": "1.0.1",
4
+ "description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-e555f27e-1786694254950, commit 4028b21, 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": "ec25bac"
42
+ "shortHash": "4028b21"
43
43
  }