@gitmyabi/stakingmanager 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/TransparentUpgradeableProxy_json.d.ts +230 -2
- package/contracts/TransparentUpgradeableProxy_json.js +175 -3
- package/contracts/TransparentUpgradeableProxy_json.ts +289 -3
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/contracts/{stakingManagerV2_json.d.ts → stakingManager_json.d.ts} +57 -105
- package/contracts/{stakingManagerV2_json.js → stakingManager_json.js} +66 -103
- package/contracts/{stakingManagerV2_json.ts → stakingManager_json.ts} +81 -141
- package/package.json +3 -3
|
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* stakingManager_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const stakingManager_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [],
|
|
12
12
|
"stateMutability": "nonpayable",
|
|
@@ -101,39 +101,6 @@ export const stakingManagerV2_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
|
-
},
|
|
137
104
|
{
|
|
138
105
|
"inputs": [
|
|
139
106
|
{
|
|
@@ -243,6 +210,39 @@ export const stakingManagerV2_jsonAbi = [
|
|
|
243
210
|
"stateMutability": "nonpayable",
|
|
244
211
|
"type": "function"
|
|
245
212
|
},
|
|
213
|
+
{
|
|
214
|
+
"inputs": [
|
|
215
|
+
{
|
|
216
|
+
"internalType": "address",
|
|
217
|
+
"name": "_rewardTokenAddress",
|
|
218
|
+
"type": "address"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"internalType": "address",
|
|
222
|
+
"name": "_presale",
|
|
223
|
+
"type": "address"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"internalType": "uint256",
|
|
227
|
+
"name": "_rewardTokensPerBlock",
|
|
228
|
+
"type": "uint256"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"internalType": "uint256",
|
|
232
|
+
"name": "_lockTime",
|
|
233
|
+
"type": "uint256"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"internalType": "uint256",
|
|
237
|
+
"name": "_endBlock",
|
|
238
|
+
"type": "uint256"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"name": "initialize",
|
|
242
|
+
"outputs": [],
|
|
243
|
+
"stateMutability": "nonpayable",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
246
246
|
{
|
|
247
247
|
"inputs": [
|
|
248
248
|
{
|
|
@@ -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",
|
|
@@ -550,19 +532,19 @@ export const stakingManagerV2_jsonAbi = [
|
|
|
550
532
|
] as const satisfies Abi;
|
|
551
533
|
|
|
552
534
|
/**
|
|
553
|
-
* Type-safe ABI for
|
|
535
|
+
* Type-safe ABI for stakingManager_json
|
|
554
536
|
*/
|
|
555
|
-
export type
|
|
537
|
+
export type stakingManager_jsonAbi = typeof stakingManager_jsonAbi;
|
|
556
538
|
|
|
557
539
|
/**
|
|
558
|
-
* Contract instance type for
|
|
540
|
+
* Contract instance type for stakingManager_json
|
|
559
541
|
*/
|
|
560
542
|
// Use any for contract type to avoid complex viem type issues
|
|
561
543
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
562
|
-
export type
|
|
544
|
+
export type stakingManager_jsonContract = any;
|
|
563
545
|
|
|
564
546
|
/**
|
|
565
|
-
*
|
|
547
|
+
* stakingManager_json Contract Class
|
|
566
548
|
*
|
|
567
549
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
568
550
|
*
|
|
@@ -570,12 +552,12 @@ export type stakingManagerV2_jsonContract = any;
|
|
|
570
552
|
* ```typescript
|
|
571
553
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
572
554
|
* import { mainnet } from 'viem/chains';
|
|
573
|
-
* import {
|
|
555
|
+
* import { stakingManager_json } from 'stakingManager_json';
|
|
574
556
|
*
|
|
575
557
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
576
558
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
577
559
|
*
|
|
578
|
-
* const contract = new
|
|
560
|
+
* const contract = new stakingManager_json('0x...', { publicClient, walletClient });
|
|
579
561
|
*
|
|
580
562
|
* // Read functions
|
|
581
563
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -593,8 +575,8 @@ export type stakingManagerV2_jsonContract = any;
|
|
|
593
575
|
* });
|
|
594
576
|
* ```
|
|
595
577
|
*/
|
|
596
|
-
export class
|
|
597
|
-
private contract:
|
|
578
|
+
export class stakingManager_json {
|
|
579
|
+
private contract: stakingManager_jsonContract;
|
|
598
580
|
private contractAddress: Address;
|
|
599
581
|
private publicClient: PublicClient;
|
|
600
582
|
|
|
@@ -609,7 +591,7 @@ export class stakingManagerV2_json {
|
|
|
609
591
|
this.publicClient = clients.publicClient;
|
|
610
592
|
this.contract = getContract({
|
|
611
593
|
address,
|
|
612
|
-
abi:
|
|
594
|
+
abi: stakingManager_jsonAbi,
|
|
613
595
|
client: {
|
|
614
596
|
public: clients.publicClient,
|
|
615
597
|
wallet: clients.walletClient,
|
|
@@ -627,7 +609,7 @@ export class stakingManagerV2_json {
|
|
|
627
609
|
/**
|
|
628
610
|
* Get the underlying viem contract instance
|
|
629
611
|
*/
|
|
630
|
-
getContract():
|
|
612
|
+
getContract(): stakingManager_jsonContract {
|
|
631
613
|
return this.contract;
|
|
632
614
|
}
|
|
633
615
|
|
|
@@ -744,11 +726,11 @@ export class stakingManagerV2_json {
|
|
|
744
726
|
}
|
|
745
727
|
|
|
746
728
|
/**
|
|
747
|
-
*
|
|
729
|
+
* blacklistUsers
|
|
748
730
|
* nonpayable
|
|
749
731
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
750
732
|
*/
|
|
751
|
-
async
|
|
733
|
+
async blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
|
|
752
734
|
accessList?: import('viem').AccessList;
|
|
753
735
|
authorizationList?: import('viem').AuthorizationList;
|
|
754
736
|
chain?: import('viem').Chain | null;
|
|
@@ -763,15 +745,15 @@ export class stakingManagerV2_json {
|
|
|
763
745
|
if (!this.contract.write) {
|
|
764
746
|
throw new Error('Wallet client is required for write operations');
|
|
765
747
|
}
|
|
766
|
-
return this.contract.write.
|
|
748
|
+
return this.contract.write.blacklistUsers([_usersToBlacklist] as const, options) as Promise<`0x${string}`>;
|
|
767
749
|
}
|
|
768
750
|
|
|
769
751
|
/**
|
|
770
|
-
*
|
|
752
|
+
* deposit
|
|
771
753
|
* nonpayable
|
|
772
754
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
773
755
|
*/
|
|
774
|
-
async
|
|
756
|
+
async deposit(_amount: bigint, options?: {
|
|
775
757
|
accessList?: import('viem').AccessList;
|
|
776
758
|
authorizationList?: import('viem').AuthorizationList;
|
|
777
759
|
chain?: import('viem').Chain | null;
|
|
@@ -786,15 +768,15 @@ export class stakingManagerV2_json {
|
|
|
786
768
|
if (!this.contract.write) {
|
|
787
769
|
throw new Error('Wallet client is required for write operations');
|
|
788
770
|
}
|
|
789
|
-
return this.contract.write.
|
|
771
|
+
return this.contract.write.deposit([_amount] as const, options) as Promise<`0x${string}`>;
|
|
790
772
|
}
|
|
791
773
|
|
|
792
774
|
/**
|
|
793
|
-
*
|
|
775
|
+
* depositByPresale
|
|
794
776
|
* nonpayable
|
|
795
777
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
796
778
|
*/
|
|
797
|
-
async
|
|
779
|
+
async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
798
780
|
accessList?: import('viem').AccessList;
|
|
799
781
|
authorizationList?: import('viem').AuthorizationList;
|
|
800
782
|
chain?: import('viem').Chain | null;
|
|
@@ -809,15 +791,15 @@ export class stakingManagerV2_json {
|
|
|
809
791
|
if (!this.contract.write) {
|
|
810
792
|
throw new Error('Wallet client is required for write operations');
|
|
811
793
|
}
|
|
812
|
-
return this.contract.write.
|
|
794
|
+
return this.contract.write.depositByPresale([_user, _amount] as const, options) as Promise<`0x${string}`>;
|
|
813
795
|
}
|
|
814
796
|
|
|
815
797
|
/**
|
|
816
|
-
*
|
|
798
|
+
* harvestRewards
|
|
817
799
|
* nonpayable
|
|
818
800
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
819
801
|
*/
|
|
820
|
-
async
|
|
802
|
+
async harvestRewards(options?: {
|
|
821
803
|
accessList?: import('viem').AccessList;
|
|
822
804
|
authorizationList?: import('viem').AuthorizationList;
|
|
823
805
|
chain?: import('viem').Chain | null;
|
|
@@ -832,15 +814,15 @@ export class stakingManagerV2_json {
|
|
|
832
814
|
if (!this.contract.write) {
|
|
833
815
|
throw new Error('Wallet client is required for write operations');
|
|
834
816
|
}
|
|
835
|
-
return this.contract.write.
|
|
817
|
+
return this.contract.write.harvestRewards(options) as Promise<`0x${string}`>;
|
|
836
818
|
}
|
|
837
819
|
|
|
838
820
|
/**
|
|
839
|
-
*
|
|
821
|
+
* initialize
|
|
840
822
|
* nonpayable
|
|
841
823
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
842
824
|
*/
|
|
843
|
-
async
|
|
825
|
+
async initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
844
826
|
accessList?: import('viem').AccessList;
|
|
845
827
|
authorizationList?: import('viem').AuthorizationList;
|
|
846
828
|
chain?: import('viem').Chain | null;
|
|
@@ -855,7 +837,7 @@ export class stakingManagerV2_json {
|
|
|
855
837
|
if (!this.contract.write) {
|
|
856
838
|
throw new Error('Wallet client is required for write operations');
|
|
857
839
|
}
|
|
858
|
-
return this.contract.write.
|
|
840
|
+
return this.contract.write.initialize([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<`0x${string}`>;
|
|
859
841
|
}
|
|
860
842
|
|
|
861
843
|
/**
|
|
@@ -1042,29 +1024,6 @@ export class stakingManagerV2_json {
|
|
|
1042
1024
|
return this.contract.write.setStakeToken([_stakeToken] as const, options) as Promise<`0x${string}`>;
|
|
1043
1025
|
}
|
|
1044
1026
|
|
|
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
1027
|
/**
|
|
1069
1028
|
* transferOwnership
|
|
1070
1029
|
* nonpayable
|
|
@@ -1128,11 +1087,11 @@ export class stakingManagerV2_json {
|
|
|
1128
1087
|
}
|
|
1129
1088
|
return {
|
|
1130
1089
|
/**
|
|
1131
|
-
* Simulate
|
|
1090
|
+
* Simulate blacklistUsers
|
|
1132
1091
|
* Returns gas estimate and result without sending transaction
|
|
1133
1092
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1134
1093
|
*/
|
|
1135
|
-
async
|
|
1094
|
+
async blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
|
|
1136
1095
|
accessList?: import('viem').AccessList;
|
|
1137
1096
|
authorizationList?: import('viem').AuthorizationList;
|
|
1138
1097
|
chain?: import('viem').Chain | null;
|
|
@@ -1144,14 +1103,14 @@ export class stakingManagerV2_json {
|
|
|
1144
1103
|
nonce?: number;
|
|
1145
1104
|
value?: bigint;
|
|
1146
1105
|
}): Promise<void> {
|
|
1147
|
-
return contract.simulate.
|
|
1106
|
+
return contract.simulate.blacklistUsers([_usersToBlacklist] as const, options) as Promise<void>;
|
|
1148
1107
|
},
|
|
1149
1108
|
/**
|
|
1150
|
-
* Simulate
|
|
1109
|
+
* Simulate deposit
|
|
1151
1110
|
* Returns gas estimate and result without sending transaction
|
|
1152
1111
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1153
1112
|
*/
|
|
1154
|
-
async
|
|
1113
|
+
async deposit(_amount: bigint, options?: {
|
|
1155
1114
|
accessList?: import('viem').AccessList;
|
|
1156
1115
|
authorizationList?: import('viem').AuthorizationList;
|
|
1157
1116
|
chain?: import('viem').Chain | null;
|
|
@@ -1163,14 +1122,14 @@ export class stakingManagerV2_json {
|
|
|
1163
1122
|
nonce?: number;
|
|
1164
1123
|
value?: bigint;
|
|
1165
1124
|
}): Promise<void> {
|
|
1166
|
-
return contract.simulate.
|
|
1125
|
+
return contract.simulate.deposit([_amount] as const, options) as Promise<void>;
|
|
1167
1126
|
},
|
|
1168
1127
|
/**
|
|
1169
|
-
* Simulate
|
|
1128
|
+
* Simulate depositByPresale
|
|
1170
1129
|
* Returns gas estimate and result without sending transaction
|
|
1171
1130
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1172
1131
|
*/
|
|
1173
|
-
async
|
|
1132
|
+
async depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
1174
1133
|
accessList?: import('viem').AccessList;
|
|
1175
1134
|
authorizationList?: import('viem').AuthorizationList;
|
|
1176
1135
|
chain?: import('viem').Chain | null;
|
|
@@ -1182,14 +1141,14 @@ export class stakingManagerV2_json {
|
|
|
1182
1141
|
nonce?: number;
|
|
1183
1142
|
value?: bigint;
|
|
1184
1143
|
}): Promise<void> {
|
|
1185
|
-
return contract.simulate.
|
|
1144
|
+
return contract.simulate.depositByPresale([_user, _amount] as const, options) as Promise<void>;
|
|
1186
1145
|
},
|
|
1187
1146
|
/**
|
|
1188
|
-
* Simulate
|
|
1147
|
+
* Simulate harvestRewards
|
|
1189
1148
|
* Returns gas estimate and result without sending transaction
|
|
1190
1149
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1191
1150
|
*/
|
|
1192
|
-
async
|
|
1151
|
+
async harvestRewards(options?: {
|
|
1193
1152
|
accessList?: import('viem').AccessList;
|
|
1194
1153
|
authorizationList?: import('viem').AuthorizationList;
|
|
1195
1154
|
chain?: import('viem').Chain | null;
|
|
@@ -1201,14 +1160,14 @@ export class stakingManagerV2_json {
|
|
|
1201
1160
|
nonce?: number;
|
|
1202
1161
|
value?: bigint;
|
|
1203
1162
|
}): Promise<void> {
|
|
1204
|
-
return contract.simulate.
|
|
1163
|
+
return contract.simulate.harvestRewards(options) as Promise<void>;
|
|
1205
1164
|
},
|
|
1206
1165
|
/**
|
|
1207
|
-
* Simulate
|
|
1166
|
+
* Simulate initialize
|
|
1208
1167
|
* Returns gas estimate and result without sending transaction
|
|
1209
1168
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1210
1169
|
*/
|
|
1211
|
-
async
|
|
1170
|
+
async initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
1212
1171
|
accessList?: import('viem').AccessList;
|
|
1213
1172
|
authorizationList?: import('viem').AuthorizationList;
|
|
1214
1173
|
chain?: import('viem').Chain | null;
|
|
@@ -1220,7 +1179,7 @@ export class stakingManagerV2_json {
|
|
|
1220
1179
|
nonce?: number;
|
|
1221
1180
|
value?: bigint;
|
|
1222
1181
|
}): Promise<void> {
|
|
1223
|
-
return contract.simulate.
|
|
1182
|
+
return contract.simulate.initialize([_rewardTokenAddress, _presale, _rewardTokensPerBlock, _lockTime, _endBlock] as const, options) as Promise<void>;
|
|
1224
1183
|
},
|
|
1225
1184
|
/**
|
|
1226
1185
|
* Simulate removeFromBlacklist
|
|
@@ -1374,25 +1333,6 @@ export class stakingManagerV2_json {
|
|
|
1374
1333
|
}): Promise<void> {
|
|
1375
1334
|
return contract.simulate.setStakeToken([_stakeToken] as const, options) as Promise<void>;
|
|
1376
1335
|
},
|
|
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
1336
|
/**
|
|
1397
1337
|
* Simulate transferOwnership
|
|
1398
1338
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1457,7 +1397,7 @@ export class stakingManagerV2_json {
|
|
|
1457
1397
|
Deposit: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
|
|
1458
1398
|
return this.publicClient.watchContractEvent({
|
|
1459
1399
|
address: this.contractAddress,
|
|
1460
|
-
abi:
|
|
1400
|
+
abi: stakingManager_jsonAbi,
|
|
1461
1401
|
eventName: 'Deposit',
|
|
1462
1402
|
args: filter,
|
|
1463
1403
|
onLogs: (logs: any[]) => {
|
|
@@ -1476,7 +1416,7 @@ export class stakingManagerV2_json {
|
|
|
1476
1416
|
HarvestRewards: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
|
|
1477
1417
|
return this.publicClient.watchContractEvent({
|
|
1478
1418
|
address: this.contractAddress,
|
|
1479
|
-
abi:
|
|
1419
|
+
abi: stakingManager_jsonAbi,
|
|
1480
1420
|
eventName: 'HarvestRewards',
|
|
1481
1421
|
args: filter,
|
|
1482
1422
|
onLogs: (logs: any[]) => {
|
|
@@ -1495,7 +1435,7 @@ export class stakingManagerV2_json {
|
|
|
1495
1435
|
Initialized: (callback: (event: { version: bigint }) => void) => {
|
|
1496
1436
|
return this.publicClient.watchContractEvent({
|
|
1497
1437
|
address: this.contractAddress,
|
|
1498
|
-
abi:
|
|
1438
|
+
abi: stakingManager_jsonAbi,
|
|
1499
1439
|
eventName: 'Initialized',
|
|
1500
1440
|
|
|
1501
1441
|
onLogs: (logs: any[]) => {
|
|
@@ -1514,7 +1454,7 @@ export class stakingManagerV2_json {
|
|
|
1514
1454
|
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1515
1455
|
return this.publicClient.watchContractEvent({
|
|
1516
1456
|
address: this.contractAddress,
|
|
1517
|
-
abi:
|
|
1457
|
+
abi: stakingManager_jsonAbi,
|
|
1518
1458
|
eventName: 'OwnershipTransferred',
|
|
1519
1459
|
args: filter,
|
|
1520
1460
|
onLogs: (logs: any[]) => {
|
|
@@ -1533,7 +1473,7 @@ export class stakingManagerV2_json {
|
|
|
1533
1473
|
Withdraw: (callback: (event: { user: `0x${string}`; amount: bigint }) => void, filter?: { user: `0x${string}` }) => {
|
|
1534
1474
|
return this.publicClient.watchContractEvent({
|
|
1535
1475
|
address: this.contractAddress,
|
|
1536
|
-
abi:
|
|
1476
|
+
abi: stakingManager_jsonAbi,
|
|
1537
1477
|
eventName: 'Withdraw',
|
|
1538
1478
|
args: filter,
|
|
1539
1479
|
onLogs: (logs: any[]) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/stakingmanager",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for stakingManager (build etherscan-stakingmanager-efc5f77c-1790200234110, commit bacc3d3, 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": "
|
|
42
|
+
"shortHash": "bacc3d3"
|
|
43
43
|
}
|