@gitmyabi/stakingmanager 1.0.5 → 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/{stakingManagerV4_json.d.ts → stakingManager_json.d.ts} +245 -141
- package/contracts/{stakingManagerV4_json.js → stakingManager_json.js} +213 -182
- package/contracts/{stakingManagerV4_json.ts → stakingManager_json.ts} +309 -188
- package/package.json +3 -3
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-
|
|
5
|
+
- **Build ID**: `etherscan-stakingmanager-efc5f77c-1790200234110`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `bacc3d3`
|
|
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.
|
|
15
|
+
npm install @gitmyabi/stakingmanager@1.0.6
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -58,6 +58,60 @@ export declare const TransparentUpgradeableProxy_jsonAbi: readonly [{
|
|
|
58
58
|
}, {
|
|
59
59
|
readonly stateMutability: "payable";
|
|
60
60
|
readonly type: "fallback";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "admin";
|
|
64
|
+
readonly outputs: readonly [{
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "admin_";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}];
|
|
69
|
+
readonly stateMutability: "nonpayable";
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
}, {
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly internalType: "address";
|
|
74
|
+
readonly name: "newAdmin";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "changeAdmin";
|
|
78
|
+
readonly outputs: readonly [];
|
|
79
|
+
readonly stateMutability: "nonpayable";
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
}, {
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly name: "implementation";
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "implementation_";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "nonpayable";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "newImplementation";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}];
|
|
97
|
+
readonly name: "upgradeTo";
|
|
98
|
+
readonly outputs: readonly [];
|
|
99
|
+
readonly stateMutability: "nonpayable";
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
}, {
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
readonly name: "newImplementation";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
}, {
|
|
107
|
+
readonly internalType: "bytes";
|
|
108
|
+
readonly name: "data";
|
|
109
|
+
readonly type: "bytes";
|
|
110
|
+
}];
|
|
111
|
+
readonly name: "upgradeToAndCall";
|
|
112
|
+
readonly outputs: readonly [];
|
|
113
|
+
readonly stateMutability: "payable";
|
|
114
|
+
readonly type: "function";
|
|
61
115
|
}, {
|
|
62
116
|
readonly stateMutability: "payable";
|
|
63
117
|
readonly type: "receive";
|
|
@@ -118,12 +172,186 @@ export declare class TransparentUpgradeableProxy_json {
|
|
|
118
172
|
* Get the underlying viem contract instance
|
|
119
173
|
*/
|
|
120
174
|
getContract(): TransparentUpgradeableProxy_jsonContract;
|
|
175
|
+
/**
|
|
176
|
+
* admin
|
|
177
|
+
* nonpayable
|
|
178
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
179
|
+
*/
|
|
180
|
+
admin(options?: {
|
|
181
|
+
accessList?: import('viem').AccessList;
|
|
182
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
183
|
+
chain?: import('viem').Chain | null;
|
|
184
|
+
dataSuffix?: `0x${string}`;
|
|
185
|
+
gas?: bigint;
|
|
186
|
+
gasPrice?: bigint;
|
|
187
|
+
maxFeePerGas?: bigint;
|
|
188
|
+
maxPriorityFeePerGas?: bigint;
|
|
189
|
+
nonce?: number;
|
|
190
|
+
value?: bigint;
|
|
191
|
+
}): Promise<`0x${string}`>;
|
|
192
|
+
/**
|
|
193
|
+
* changeAdmin
|
|
194
|
+
* nonpayable
|
|
195
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
196
|
+
*/
|
|
197
|
+
changeAdmin(newAdmin: `0x${string}`, options?: {
|
|
198
|
+
accessList?: import('viem').AccessList;
|
|
199
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
200
|
+
chain?: import('viem').Chain | null;
|
|
201
|
+
dataSuffix?: `0x${string}`;
|
|
202
|
+
gas?: bigint;
|
|
203
|
+
gasPrice?: bigint;
|
|
204
|
+
maxFeePerGas?: bigint;
|
|
205
|
+
maxPriorityFeePerGas?: bigint;
|
|
206
|
+
nonce?: number;
|
|
207
|
+
value?: bigint;
|
|
208
|
+
}): Promise<`0x${string}`>;
|
|
209
|
+
/**
|
|
210
|
+
* implementation
|
|
211
|
+
* nonpayable
|
|
212
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
213
|
+
*/
|
|
214
|
+
implementation(options?: {
|
|
215
|
+
accessList?: import('viem').AccessList;
|
|
216
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
217
|
+
chain?: import('viem').Chain | null;
|
|
218
|
+
dataSuffix?: `0x${string}`;
|
|
219
|
+
gas?: bigint;
|
|
220
|
+
gasPrice?: bigint;
|
|
221
|
+
maxFeePerGas?: bigint;
|
|
222
|
+
maxPriorityFeePerGas?: bigint;
|
|
223
|
+
nonce?: number;
|
|
224
|
+
value?: bigint;
|
|
225
|
+
}): Promise<`0x${string}`>;
|
|
226
|
+
/**
|
|
227
|
+
* upgradeTo
|
|
228
|
+
* nonpayable
|
|
229
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
230
|
+
*/
|
|
231
|
+
upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
232
|
+
accessList?: import('viem').AccessList;
|
|
233
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
234
|
+
chain?: import('viem').Chain | null;
|
|
235
|
+
dataSuffix?: `0x${string}`;
|
|
236
|
+
gas?: bigint;
|
|
237
|
+
gasPrice?: bigint;
|
|
238
|
+
maxFeePerGas?: bigint;
|
|
239
|
+
maxPriorityFeePerGas?: bigint;
|
|
240
|
+
nonce?: number;
|
|
241
|
+
value?: bigint;
|
|
242
|
+
}): Promise<`0x${string}`>;
|
|
243
|
+
/**
|
|
244
|
+
* upgradeToAndCall
|
|
245
|
+
* payable
|
|
246
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
247
|
+
*/
|
|
248
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
249
|
+
accessList?: import('viem').AccessList;
|
|
250
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
251
|
+
chain?: import('viem').Chain | null;
|
|
252
|
+
dataSuffix?: `0x${string}`;
|
|
253
|
+
gas?: bigint;
|
|
254
|
+
gasPrice?: bigint;
|
|
255
|
+
maxFeePerGas?: bigint;
|
|
256
|
+
maxPriorityFeePerGas?: bigint;
|
|
257
|
+
nonce?: number;
|
|
258
|
+
value?: bigint;
|
|
259
|
+
}): Promise<`0x${string}`>;
|
|
121
260
|
/**
|
|
122
261
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
123
262
|
*
|
|
124
|
-
*
|
|
263
|
+
* @example
|
|
264
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
265
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
266
|
+
* console.log('Would succeed:', result.result);
|
|
125
267
|
*/
|
|
126
|
-
get simulate(): {
|
|
268
|
+
get simulate(): {
|
|
269
|
+
/**
|
|
270
|
+
* Simulate admin
|
|
271
|
+
* Returns gas estimate and result without sending transaction
|
|
272
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
273
|
+
*/
|
|
274
|
+
admin(options?: {
|
|
275
|
+
accessList?: import("viem").AccessList;
|
|
276
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
277
|
+
chain?: import("viem").Chain | null;
|
|
278
|
+
dataSuffix?: `0x${string}`;
|
|
279
|
+
gas?: bigint;
|
|
280
|
+
gasPrice?: bigint;
|
|
281
|
+
maxFeePerGas?: bigint;
|
|
282
|
+
maxPriorityFeePerGas?: bigint;
|
|
283
|
+
nonce?: number;
|
|
284
|
+
value?: bigint;
|
|
285
|
+
}): Promise<`0x${string}`>;
|
|
286
|
+
/**
|
|
287
|
+
* Simulate changeAdmin
|
|
288
|
+
* Returns gas estimate and result without sending transaction
|
|
289
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
290
|
+
*/
|
|
291
|
+
changeAdmin(newAdmin: `0x${string}`, options?: {
|
|
292
|
+
accessList?: import("viem").AccessList;
|
|
293
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
294
|
+
chain?: import("viem").Chain | null;
|
|
295
|
+
dataSuffix?: `0x${string}`;
|
|
296
|
+
gas?: bigint;
|
|
297
|
+
gasPrice?: bigint;
|
|
298
|
+
maxFeePerGas?: bigint;
|
|
299
|
+
maxPriorityFeePerGas?: bigint;
|
|
300
|
+
nonce?: number;
|
|
301
|
+
value?: bigint;
|
|
302
|
+
}): Promise<void>;
|
|
303
|
+
/**
|
|
304
|
+
* Simulate implementation
|
|
305
|
+
* Returns gas estimate and result without sending transaction
|
|
306
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
307
|
+
*/
|
|
308
|
+
implementation(options?: {
|
|
309
|
+
accessList?: import("viem").AccessList;
|
|
310
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
311
|
+
chain?: import("viem").Chain | null;
|
|
312
|
+
dataSuffix?: `0x${string}`;
|
|
313
|
+
gas?: bigint;
|
|
314
|
+
gasPrice?: bigint;
|
|
315
|
+
maxFeePerGas?: bigint;
|
|
316
|
+
maxPriorityFeePerGas?: bigint;
|
|
317
|
+
nonce?: number;
|
|
318
|
+
value?: bigint;
|
|
319
|
+
}): Promise<`0x${string}`>;
|
|
320
|
+
/**
|
|
321
|
+
* Simulate upgradeTo
|
|
322
|
+
* Returns gas estimate and result without sending transaction
|
|
323
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
324
|
+
*/
|
|
325
|
+
upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
326
|
+
accessList?: import("viem").AccessList;
|
|
327
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
328
|
+
chain?: import("viem").Chain | null;
|
|
329
|
+
dataSuffix?: `0x${string}`;
|
|
330
|
+
gas?: bigint;
|
|
331
|
+
gasPrice?: bigint;
|
|
332
|
+
maxFeePerGas?: bigint;
|
|
333
|
+
maxPriorityFeePerGas?: bigint;
|
|
334
|
+
nonce?: number;
|
|
335
|
+
value?: bigint;
|
|
336
|
+
}): Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* Simulate upgradeToAndCall
|
|
339
|
+
* Returns gas estimate and result without sending transaction
|
|
340
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
341
|
+
*/
|
|
342
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
343
|
+
accessList?: import("viem").AccessList;
|
|
344
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
345
|
+
chain?: import("viem").Chain | null;
|
|
346
|
+
dataSuffix?: `0x${string}`;
|
|
347
|
+
gas?: bigint;
|
|
348
|
+
gasPrice?: bigint;
|
|
349
|
+
maxFeePerGas?: bigint;
|
|
350
|
+
maxPriorityFeePerGas?: bigint;
|
|
351
|
+
nonce?: number;
|
|
352
|
+
value?: bigint;
|
|
353
|
+
}): Promise<void>;
|
|
354
|
+
};
|
|
127
355
|
/**
|
|
128
356
|
* Watch contract events
|
|
129
357
|
*
|
|
@@ -78,6 +78,76 @@ exports.TransparentUpgradeableProxy_jsonAbi = [
|
|
|
78
78
|
"stateMutability": "payable",
|
|
79
79
|
"type": "fallback"
|
|
80
80
|
},
|
|
81
|
+
{
|
|
82
|
+
"inputs": [],
|
|
83
|
+
"name": "admin",
|
|
84
|
+
"outputs": [
|
|
85
|
+
{
|
|
86
|
+
"internalType": "address",
|
|
87
|
+
"name": "admin_",
|
|
88
|
+
"type": "address"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"stateMutability": "nonpayable",
|
|
92
|
+
"type": "function"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"inputs": [
|
|
96
|
+
{
|
|
97
|
+
"internalType": "address",
|
|
98
|
+
"name": "newAdmin",
|
|
99
|
+
"type": "address"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"name": "changeAdmin",
|
|
103
|
+
"outputs": [],
|
|
104
|
+
"stateMutability": "nonpayable",
|
|
105
|
+
"type": "function"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputs": [],
|
|
109
|
+
"name": "implementation",
|
|
110
|
+
"outputs": [
|
|
111
|
+
{
|
|
112
|
+
"internalType": "address",
|
|
113
|
+
"name": "implementation_",
|
|
114
|
+
"type": "address"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"stateMutability": "nonpayable",
|
|
118
|
+
"type": "function"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"inputs": [
|
|
122
|
+
{
|
|
123
|
+
"internalType": "address",
|
|
124
|
+
"name": "newImplementation",
|
|
125
|
+
"type": "address"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"name": "upgradeTo",
|
|
129
|
+
"outputs": [],
|
|
130
|
+
"stateMutability": "nonpayable",
|
|
131
|
+
"type": "function"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"inputs": [
|
|
135
|
+
{
|
|
136
|
+
"internalType": "address",
|
|
137
|
+
"name": "newImplementation",
|
|
138
|
+
"type": "address"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"internalType": "bytes",
|
|
142
|
+
"name": "data",
|
|
143
|
+
"type": "bytes"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"name": "upgradeToAndCall",
|
|
147
|
+
"outputs": [],
|
|
148
|
+
"stateMutability": "payable",
|
|
149
|
+
"type": "function"
|
|
150
|
+
},
|
|
81
151
|
{
|
|
82
152
|
"stateMutability": "payable",
|
|
83
153
|
"type": "receive"
|
|
@@ -141,14 +211,116 @@ class TransparentUpgradeableProxy_json {
|
|
|
141
211
|
return this.contract;
|
|
142
212
|
}
|
|
143
213
|
// No read functions
|
|
144
|
-
|
|
214
|
+
/**
|
|
215
|
+
* admin
|
|
216
|
+
* nonpayable
|
|
217
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
218
|
+
*/
|
|
219
|
+
async admin(options) {
|
|
220
|
+
if (!this.contract.write) {
|
|
221
|
+
throw new Error('Wallet client is required for write operations');
|
|
222
|
+
}
|
|
223
|
+
return this.contract.write.admin(options);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* changeAdmin
|
|
227
|
+
* nonpayable
|
|
228
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
229
|
+
*/
|
|
230
|
+
async changeAdmin(newAdmin, options) {
|
|
231
|
+
if (!this.contract.write) {
|
|
232
|
+
throw new Error('Wallet client is required for write operations');
|
|
233
|
+
}
|
|
234
|
+
return this.contract.write.changeAdmin([newAdmin], options);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* implementation
|
|
238
|
+
* nonpayable
|
|
239
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
240
|
+
*/
|
|
241
|
+
async implementation(options) {
|
|
242
|
+
if (!this.contract.write) {
|
|
243
|
+
throw new Error('Wallet client is required for write operations');
|
|
244
|
+
}
|
|
245
|
+
return this.contract.write.implementation(options);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* upgradeTo
|
|
249
|
+
* nonpayable
|
|
250
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
251
|
+
*/
|
|
252
|
+
async upgradeTo(newImplementation, options) {
|
|
253
|
+
if (!this.contract.write) {
|
|
254
|
+
throw new Error('Wallet client is required for write operations');
|
|
255
|
+
}
|
|
256
|
+
return this.contract.write.upgradeTo([newImplementation], options);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* upgradeToAndCall
|
|
260
|
+
* payable
|
|
261
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
262
|
+
*/
|
|
263
|
+
async upgradeToAndCall(newImplementation, data, options) {
|
|
264
|
+
if (!this.contract.write) {
|
|
265
|
+
throw new Error('Wallet client is required for write operations');
|
|
266
|
+
}
|
|
267
|
+
return this.contract.write.upgradeToAndCall([newImplementation, data], options);
|
|
268
|
+
}
|
|
145
269
|
/**
|
|
146
270
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
147
271
|
*
|
|
148
|
-
*
|
|
272
|
+
* @example
|
|
273
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
274
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
275
|
+
* console.log('Would succeed:', result.result);
|
|
149
276
|
*/
|
|
150
277
|
get simulate() {
|
|
151
|
-
|
|
278
|
+
const contract = this.contract;
|
|
279
|
+
if (!contract.simulate) {
|
|
280
|
+
throw new Error('Public client is required for simulation');
|
|
281
|
+
}
|
|
282
|
+
return {
|
|
283
|
+
/**
|
|
284
|
+
* Simulate admin
|
|
285
|
+
* Returns gas estimate and result without sending transaction
|
|
286
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
287
|
+
*/
|
|
288
|
+
async admin(options) {
|
|
289
|
+
return contract.simulate.admin(options);
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* Simulate changeAdmin
|
|
293
|
+
* Returns gas estimate and result without sending transaction
|
|
294
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
295
|
+
*/
|
|
296
|
+
async changeAdmin(newAdmin, options) {
|
|
297
|
+
return contract.simulate.changeAdmin([newAdmin], options);
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
* Simulate implementation
|
|
301
|
+
* Returns gas estimate and result without sending transaction
|
|
302
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
303
|
+
*/
|
|
304
|
+
async implementation(options) {
|
|
305
|
+
return contract.simulate.implementation(options);
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Simulate upgradeTo
|
|
309
|
+
* Returns gas estimate and result without sending transaction
|
|
310
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
311
|
+
*/
|
|
312
|
+
async upgradeTo(newImplementation, options) {
|
|
313
|
+
return contract.simulate.upgradeTo([newImplementation], options);
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* Simulate upgradeToAndCall
|
|
317
|
+
* Returns gas estimate and result without sending transaction
|
|
318
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
319
|
+
*/
|
|
320
|
+
async upgradeToAndCall(newImplementation, data, options) {
|
|
321
|
+
return contract.simulate.upgradeToAndCall([newImplementation, data], options);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
152
324
|
}
|
|
153
325
|
/**
|
|
154
326
|
* Watch contract events
|