@gitmyabi/stakingmanager 1.0.6 → 1.0.7

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.
@@ -101,6 +101,39 @@ export const stakingManager_jsonAbi = [
101
101
  "name": "Withdraw",
102
102
  "type": "event"
103
103
  },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "address",
108
+ "name": "_rewardTokenAddress",
109
+ "type": "address"
110
+ },
111
+ {
112
+ "internalType": "address",
113
+ "name": "_presale",
114
+ "type": "address"
115
+ },
116
+ {
117
+ "internalType": "uint256",
118
+ "name": "_rewardTokensPerBlock",
119
+ "type": "uint256"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "_lockTime",
124
+ "type": "uint256"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "_endBlock",
129
+ "type": "uint256"
130
+ }
131
+ ],
132
+ "name": "__stakingManager_init",
133
+ "outputs": [],
134
+ "stateMutability": "nonpayable",
135
+ "type": "function"
136
+ },
104
137
  {
105
138
  "inputs": [
106
139
  {
@@ -210,39 +243,6 @@ export const stakingManager_jsonAbi = [
210
243
  "stateMutability": "nonpayable",
211
244
  "type": "function"
212
245
  },
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
- },
246
246
  {
247
247
  "inputs": [
248
248
  {
@@ -726,11 +726,11 @@ export class stakingManager_json {
726
726
  }
727
727
 
728
728
  /**
729
- * blacklistUsers
729
+ * __stakingManager_init
730
730
  * nonpayable
731
731
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
732
732
  */
733
- async blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
733
+ async __stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
734
734
  accessList?: import('viem').AccessList;
735
735
  authorizationList?: import('viem').AuthorizationList;
736
736
  chain?: import('viem').Chain | null;
@@ -745,15 +745,15 @@ export class stakingManager_json {
745
745
  if (!this.contract.write) {
746
746
  throw new Error('Wallet client is required for write operations');
747
747
  }
748
- return this.contract.write.blacklistUsers([_usersToBlacklist] as const, options) as Promise<`0x${string}`>;
748
+ return this.contract.write.__stakingManager_init([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<`0x${string}`>;
749
749
  }
750
750
 
751
751
  /**
752
- * deposit
752
+ * blacklistUsers
753
753
  * nonpayable
754
754
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
755
755
  */
756
- async deposit(_amount: bigint, options?: {
756
+ async blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
757
757
  accessList?: import('viem').AccessList;
758
758
  authorizationList?: import('viem').AuthorizationList;
759
759
  chain?: import('viem').Chain | null;
@@ -768,15 +768,15 @@ export class stakingManager_json {
768
768
  if (!this.contract.write) {
769
769
  throw new Error('Wallet client is required for write operations');
770
770
  }
771
- return this.contract.write.deposit([_amount] as const, options) as Promise<`0x${string}`>;
771
+ return this.contract.write.blacklistUsers([_usersToBlacklist] as const, options) as Promise<`0x${string}`>;
772
772
  }
773
773
 
774
774
  /**
775
- * depositByPresale
775
+ * deposit
776
776
  * nonpayable
777
777
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
778
778
  */
779
- async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
779
+ async deposit(_amount: bigint, options?: {
780
780
  accessList?: import('viem').AccessList;
781
781
  authorizationList?: import('viem').AuthorizationList;
782
782
  chain?: import('viem').Chain | null;
@@ -791,15 +791,15 @@ export class stakingManager_json {
791
791
  if (!this.contract.write) {
792
792
  throw new Error('Wallet client is required for write operations');
793
793
  }
794
- return this.contract.write.depositByPresale([_user, _amount] as const, options) as Promise<`0x${string}`>;
794
+ return this.contract.write.deposit([_amount] as const, options) as Promise<`0x${string}`>;
795
795
  }
796
796
 
797
797
  /**
798
- * harvestRewards
798
+ * depositByPresale
799
799
  * nonpayable
800
800
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
801
801
  */
802
- async harvestRewards(options?: {
802
+ async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
803
803
  accessList?: import('viem').AccessList;
804
804
  authorizationList?: import('viem').AuthorizationList;
805
805
  chain?: import('viem').Chain | null;
@@ -814,15 +814,15 @@ export class stakingManager_json {
814
814
  if (!this.contract.write) {
815
815
  throw new Error('Wallet client is required for write operations');
816
816
  }
817
- return this.contract.write.harvestRewards(options) as Promise<`0x${string}`>;
817
+ return this.contract.write.depositByPresale([_user, _amount] as const, options) as Promise<`0x${string}`>;
818
818
  }
819
819
 
820
820
  /**
821
- * initialize
821
+ * harvestRewards
822
822
  * nonpayable
823
823
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
824
824
  */
825
- async initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
825
+ async harvestRewards(options?: {
826
826
  accessList?: import('viem').AccessList;
827
827
  authorizationList?: import('viem').AuthorizationList;
828
828
  chain?: import('viem').Chain | null;
@@ -837,7 +837,7 @@ export class stakingManager_json {
837
837
  if (!this.contract.write) {
838
838
  throw new Error('Wallet client is required for write operations');
839
839
  }
840
- return this.contract.write.initialize([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<`0x${string}`>;
840
+ return this.contract.write.harvestRewards(options) as Promise<`0x${string}`>;
841
841
  }
842
842
 
843
843
  /**
@@ -1087,11 +1087,11 @@ export class stakingManager_json {
1087
1087
  }
1088
1088
  return {
1089
1089
  /**
1090
- * Simulate blacklistUsers
1090
+ * Simulate __stakingManager_init
1091
1091
  * Returns gas estimate and result without sending transaction
1092
1092
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1093
1093
  */
1094
- async blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
1094
+ async __stakingManager_init(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
1095
1095
  accessList?: import('viem').AccessList;
1096
1096
  authorizationList?: import('viem').AuthorizationList;
1097
1097
  chain?: import('viem').Chain | null;
@@ -1103,14 +1103,14 @@ export class stakingManager_json {
1103
1103
  nonce?: number;
1104
1104
  value?: bigint;
1105
1105
  }): Promise<void> {
1106
- return contract.simulate.blacklistUsers([_usersToBlacklist] as const, options) as Promise<void>;
1106
+ return contract.simulate.__stakingManager_init([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<void>;
1107
1107
  },
1108
1108
  /**
1109
- * Simulate deposit
1109
+ * Simulate blacklistUsers
1110
1110
  * Returns gas estimate and result without sending transaction
1111
1111
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1112
1112
  */
1113
- async deposit(_amount: bigint, options?: {
1113
+ async blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
1114
1114
  accessList?: import('viem').AccessList;
1115
1115
  authorizationList?: import('viem').AuthorizationList;
1116
1116
  chain?: import('viem').Chain | null;
@@ -1122,14 +1122,14 @@ export class stakingManager_json {
1122
1122
  nonce?: number;
1123
1123
  value?: bigint;
1124
1124
  }): Promise<void> {
1125
- return contract.simulate.deposit([_amount] as const, options) as Promise<void>;
1125
+ return contract.simulate.blacklistUsers([_usersToBlacklist] as const, options) as Promise<void>;
1126
1126
  },
1127
1127
  /**
1128
- * Simulate depositByPresale
1128
+ * Simulate deposit
1129
1129
  * Returns gas estimate and result without sending transaction
1130
1130
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1131
1131
  */
1132
- async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
1132
+ async deposit(_amount: bigint, options?: {
1133
1133
  accessList?: import('viem').AccessList;
1134
1134
  authorizationList?: import('viem').AuthorizationList;
1135
1135
  chain?: import('viem').Chain | null;
@@ -1141,14 +1141,14 @@ export class stakingManager_json {
1141
1141
  nonce?: number;
1142
1142
  value?: bigint;
1143
1143
  }): Promise<void> {
1144
- return contract.simulate.depositByPresale([_user, _amount] as const, options) as Promise<void>;
1144
+ return contract.simulate.deposit([_amount] as const, options) as Promise<void>;
1145
1145
  },
1146
1146
  /**
1147
- * Simulate harvestRewards
1147
+ * Simulate depositByPresale
1148
1148
  * Returns gas estimate and result without sending transaction
1149
1149
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1150
1150
  */
1151
- async harvestRewards(options?: {
1151
+ async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
1152
1152
  accessList?: import('viem').AccessList;
1153
1153
  authorizationList?: import('viem').AuthorizationList;
1154
1154
  chain?: import('viem').Chain | null;
@@ -1160,14 +1160,14 @@ export class stakingManager_json {
1160
1160
  nonce?: number;
1161
1161
  value?: bigint;
1162
1162
  }): Promise<void> {
1163
- return contract.simulate.harvestRewards(options) as Promise<void>;
1163
+ return contract.simulate.depositByPresale([_user, _amount] as const, options) as Promise<void>;
1164
1164
  },
1165
1165
  /**
1166
- * Simulate initialize
1166
+ * Simulate harvestRewards
1167
1167
  * Returns gas estimate and result without sending transaction
1168
1168
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1169
1169
  */
1170
- async initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
1170
+ async harvestRewards(options?: {
1171
1171
  accessList?: import('viem').AccessList;
1172
1172
  authorizationList?: import('viem').AuthorizationList;
1173
1173
  chain?: import('viem').Chain | null;
@@ -1179,7 +1179,7 @@ export class stakingManager_json {
1179
1179
  nonce?: number;
1180
1180
  value?: bigint;
1181
1181
  }): Promise<void> {
1182
- return contract.simulate.initialize([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<void>;
1182
+ return contract.simulate.harvestRewards(options) as Promise<void>;
1183
1183
  },
1184
1184
  /**
1185
1185
  * Simulate removeFromBlacklist
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/stakingmanager",
3
- "version": "1.0.6",
4
- "description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-efc5f77c-1790200234110, commit bacc3d3, branch etherscan)",
3
+ "version": "1.0.7",
4
+ "description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-f0bae718-1790875925081, commit 659a357, 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": "bacc3d3"
42
+ "shortHash": "659a357"
43
43
  }