@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
|
@@ -77,6 +77,76 @@ export const TransparentUpgradeableProxy_jsonAbi = [
|
|
|
77
77
|
"stateMutability": "payable",
|
|
78
78
|
"type": "fallback"
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [],
|
|
82
|
+
"name": "admin",
|
|
83
|
+
"outputs": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "address",
|
|
86
|
+
"name": "admin_",
|
|
87
|
+
"type": "address"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"stateMutability": "nonpayable",
|
|
91
|
+
"type": "function"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "address",
|
|
97
|
+
"name": "newAdmin",
|
|
98
|
+
"type": "address"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"name": "changeAdmin",
|
|
102
|
+
"outputs": [],
|
|
103
|
+
"stateMutability": "nonpayable",
|
|
104
|
+
"type": "function"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [],
|
|
108
|
+
"name": "implementation",
|
|
109
|
+
"outputs": [
|
|
110
|
+
{
|
|
111
|
+
"internalType": "address",
|
|
112
|
+
"name": "implementation_",
|
|
113
|
+
"type": "address"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"stateMutability": "nonpayable",
|
|
117
|
+
"type": "function"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"inputs": [
|
|
121
|
+
{
|
|
122
|
+
"internalType": "address",
|
|
123
|
+
"name": "newImplementation",
|
|
124
|
+
"type": "address"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"name": "upgradeTo",
|
|
128
|
+
"outputs": [],
|
|
129
|
+
"stateMutability": "nonpayable",
|
|
130
|
+
"type": "function"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [
|
|
134
|
+
{
|
|
135
|
+
"internalType": "address",
|
|
136
|
+
"name": "newImplementation",
|
|
137
|
+
"type": "address"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"internalType": "bytes",
|
|
141
|
+
"name": "data",
|
|
142
|
+
"type": "bytes"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"name": "upgradeToAndCall",
|
|
146
|
+
"outputs": [],
|
|
147
|
+
"stateMutability": "payable",
|
|
148
|
+
"type": "function"
|
|
149
|
+
},
|
|
80
150
|
{
|
|
81
151
|
"stateMutability": "payable",
|
|
82
152
|
"type": "receive"
|
|
@@ -167,17 +237,233 @@ export class TransparentUpgradeableProxy_json {
|
|
|
167
237
|
|
|
168
238
|
// No read functions
|
|
169
239
|
|
|
170
|
-
|
|
240
|
+
/**
|
|
241
|
+
* admin
|
|
242
|
+
* nonpayable
|
|
243
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
244
|
+
*/
|
|
245
|
+
async admin(options?: {
|
|
246
|
+
accessList?: import('viem').AccessList;
|
|
247
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
248
|
+
chain?: import('viem').Chain | null;
|
|
249
|
+
dataSuffix?: `0x${string}`;
|
|
250
|
+
gas?: bigint;
|
|
251
|
+
gasPrice?: bigint;
|
|
252
|
+
maxFeePerGas?: bigint;
|
|
253
|
+
maxPriorityFeePerGas?: bigint;
|
|
254
|
+
nonce?: number;
|
|
255
|
+
value?: bigint;
|
|
256
|
+
}): Promise<`0x${string}`> {
|
|
257
|
+
if (!this.contract.write) {
|
|
258
|
+
throw new Error('Wallet client is required for write operations');
|
|
259
|
+
}
|
|
260
|
+
return this.contract.write.admin(options) as Promise<`0x${string}`>;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* changeAdmin
|
|
265
|
+
* nonpayable
|
|
266
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
267
|
+
*/
|
|
268
|
+
async changeAdmin(newAdmin: `0x${string}`, options?: {
|
|
269
|
+
accessList?: import('viem').AccessList;
|
|
270
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
271
|
+
chain?: import('viem').Chain | null;
|
|
272
|
+
dataSuffix?: `0x${string}`;
|
|
273
|
+
gas?: bigint;
|
|
274
|
+
gasPrice?: bigint;
|
|
275
|
+
maxFeePerGas?: bigint;
|
|
276
|
+
maxPriorityFeePerGas?: bigint;
|
|
277
|
+
nonce?: number;
|
|
278
|
+
value?: bigint;
|
|
279
|
+
}): Promise<`0x${string}`> {
|
|
280
|
+
if (!this.contract.write) {
|
|
281
|
+
throw new Error('Wallet client is required for write operations');
|
|
282
|
+
}
|
|
283
|
+
return this.contract.write.changeAdmin([newAdmin] as const, options) as Promise<`0x${string}`>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* implementation
|
|
288
|
+
* nonpayable
|
|
289
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
290
|
+
*/
|
|
291
|
+
async implementation(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<`0x${string}`> {
|
|
303
|
+
if (!this.contract.write) {
|
|
304
|
+
throw new Error('Wallet client is required for write operations');
|
|
305
|
+
}
|
|
306
|
+
return this.contract.write.implementation(options) as Promise<`0x${string}`>;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* upgradeTo
|
|
311
|
+
* nonpayable
|
|
312
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
313
|
+
*/
|
|
314
|
+
async upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
315
|
+
accessList?: import('viem').AccessList;
|
|
316
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
317
|
+
chain?: import('viem').Chain | null;
|
|
318
|
+
dataSuffix?: `0x${string}`;
|
|
319
|
+
gas?: bigint;
|
|
320
|
+
gasPrice?: bigint;
|
|
321
|
+
maxFeePerGas?: bigint;
|
|
322
|
+
maxPriorityFeePerGas?: bigint;
|
|
323
|
+
nonce?: number;
|
|
324
|
+
value?: bigint;
|
|
325
|
+
}): Promise<`0x${string}`> {
|
|
326
|
+
if (!this.contract.write) {
|
|
327
|
+
throw new Error('Wallet client is required for write operations');
|
|
328
|
+
}
|
|
329
|
+
return this.contract.write.upgradeTo([newImplementation] as const, options) as Promise<`0x${string}`>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* upgradeToAndCall
|
|
334
|
+
* payable
|
|
335
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
336
|
+
*/
|
|
337
|
+
async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
338
|
+
accessList?: import('viem').AccessList;
|
|
339
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
340
|
+
chain?: import('viem').Chain | null;
|
|
341
|
+
dataSuffix?: `0x${string}`;
|
|
342
|
+
gas?: bigint;
|
|
343
|
+
gasPrice?: bigint;
|
|
344
|
+
maxFeePerGas?: bigint;
|
|
345
|
+
maxPriorityFeePerGas?: bigint;
|
|
346
|
+
nonce?: number;
|
|
347
|
+
value?: bigint;
|
|
348
|
+
}): Promise<`0x${string}`> {
|
|
349
|
+
if (!this.contract.write) {
|
|
350
|
+
throw new Error('Wallet client is required for write operations');
|
|
351
|
+
}
|
|
352
|
+
return this.contract.write.upgradeToAndCall([newImplementation, data] as const, options) as Promise<`0x${string}`>;
|
|
353
|
+
}
|
|
171
354
|
|
|
172
355
|
|
|
173
356
|
|
|
174
357
|
/**
|
|
175
358
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
176
359
|
*
|
|
177
|
-
*
|
|
360
|
+
* @example
|
|
361
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
362
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
363
|
+
* console.log('Would succeed:', result.result);
|
|
178
364
|
*/
|
|
179
365
|
get simulate() {
|
|
180
|
-
|
|
366
|
+
const contract = this.contract;
|
|
367
|
+
if (!contract.simulate) {
|
|
368
|
+
throw new Error('Public client is required for simulation');
|
|
369
|
+
}
|
|
370
|
+
return {
|
|
371
|
+
/**
|
|
372
|
+
* Simulate admin
|
|
373
|
+
* Returns gas estimate and result without sending transaction
|
|
374
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
375
|
+
*/
|
|
376
|
+
async admin(options?: {
|
|
377
|
+
accessList?: import('viem').AccessList;
|
|
378
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
379
|
+
chain?: import('viem').Chain | null;
|
|
380
|
+
dataSuffix?: `0x${string}`;
|
|
381
|
+
gas?: bigint;
|
|
382
|
+
gasPrice?: bigint;
|
|
383
|
+
maxFeePerGas?: bigint;
|
|
384
|
+
maxPriorityFeePerGas?: bigint;
|
|
385
|
+
nonce?: number;
|
|
386
|
+
value?: bigint;
|
|
387
|
+
}): Promise<`0x${string}`> {
|
|
388
|
+
return contract.simulate.admin(options) as Promise<`0x${string}`>;
|
|
389
|
+
},
|
|
390
|
+
/**
|
|
391
|
+
* Simulate changeAdmin
|
|
392
|
+
* Returns gas estimate and result without sending transaction
|
|
393
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
394
|
+
*/
|
|
395
|
+
async changeAdmin(newAdmin: `0x${string}`, options?: {
|
|
396
|
+
accessList?: import('viem').AccessList;
|
|
397
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
398
|
+
chain?: import('viem').Chain | null;
|
|
399
|
+
dataSuffix?: `0x${string}`;
|
|
400
|
+
gas?: bigint;
|
|
401
|
+
gasPrice?: bigint;
|
|
402
|
+
maxFeePerGas?: bigint;
|
|
403
|
+
maxPriorityFeePerGas?: bigint;
|
|
404
|
+
nonce?: number;
|
|
405
|
+
value?: bigint;
|
|
406
|
+
}): Promise<void> {
|
|
407
|
+
return contract.simulate.changeAdmin([newAdmin] as const, options) as Promise<void>;
|
|
408
|
+
},
|
|
409
|
+
/**
|
|
410
|
+
* Simulate implementation
|
|
411
|
+
* Returns gas estimate and result without sending transaction
|
|
412
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
413
|
+
*/
|
|
414
|
+
async implementation(options?: {
|
|
415
|
+
accessList?: import('viem').AccessList;
|
|
416
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
417
|
+
chain?: import('viem').Chain | null;
|
|
418
|
+
dataSuffix?: `0x${string}`;
|
|
419
|
+
gas?: bigint;
|
|
420
|
+
gasPrice?: bigint;
|
|
421
|
+
maxFeePerGas?: bigint;
|
|
422
|
+
maxPriorityFeePerGas?: bigint;
|
|
423
|
+
nonce?: number;
|
|
424
|
+
value?: bigint;
|
|
425
|
+
}): Promise<`0x${string}`> {
|
|
426
|
+
return contract.simulate.implementation(options) as Promise<`0x${string}`>;
|
|
427
|
+
},
|
|
428
|
+
/**
|
|
429
|
+
* Simulate upgradeTo
|
|
430
|
+
* Returns gas estimate and result without sending transaction
|
|
431
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
432
|
+
*/
|
|
433
|
+
async upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
434
|
+
accessList?: import('viem').AccessList;
|
|
435
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
436
|
+
chain?: import('viem').Chain | null;
|
|
437
|
+
dataSuffix?: `0x${string}`;
|
|
438
|
+
gas?: bigint;
|
|
439
|
+
gasPrice?: bigint;
|
|
440
|
+
maxFeePerGas?: bigint;
|
|
441
|
+
maxPriorityFeePerGas?: bigint;
|
|
442
|
+
nonce?: number;
|
|
443
|
+
value?: bigint;
|
|
444
|
+
}): Promise<void> {
|
|
445
|
+
return contract.simulate.upgradeTo([newImplementation] as const, options) as Promise<void>;
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* Simulate upgradeToAndCall
|
|
449
|
+
* Returns gas estimate and result without sending transaction
|
|
450
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
451
|
+
*/
|
|
452
|
+
async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
453
|
+
accessList?: import('viem').AccessList;
|
|
454
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
455
|
+
chain?: import('viem').Chain | null;
|
|
456
|
+
dataSuffix?: `0x${string}`;
|
|
457
|
+
gas?: bigint;
|
|
458
|
+
gasPrice?: bigint;
|
|
459
|
+
maxFeePerGas?: bigint;
|
|
460
|
+
maxPriorityFeePerGas?: bigint;
|
|
461
|
+
nonce?: number;
|
|
462
|
+
value?: bigint;
|
|
463
|
+
}): Promise<void> {
|
|
464
|
+
return contract.simulate.upgradeToAndCall([newImplementation, data] as const, options) as Promise<void>;
|
|
465
|
+
}
|
|
466
|
+
};
|
|
181
467
|
}
|
|
182
468
|
|
|
183
469
|
/**
|
package/contracts/index.d.ts
CHANGED
|
@@ -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 {
|
|
4
|
-
export type {
|
|
3
|
+
export { stakingManager_jsonAbi, stakingManager_json } from './stakingManager_json';
|
|
4
|
+
export type { stakingManager_jsonAbi as stakingManager_jsonAbiType, stakingManager_jsonContract } from './stakingManager_json';
|
package/contracts/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.stakingManager_json = exports.stakingManager_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
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
8
|
+
var stakingManager_json_1 = require("./stakingManager_json");
|
|
9
|
+
Object.defineProperty(exports, "stakingManager_jsonAbi", { enumerable: true, get: function () { return stakingManager_json_1.stakingManager_jsonAbi; } });
|
|
10
|
+
Object.defineProperty(exports, "stakingManager_json", { enumerable: true, get: function () { return stakingManager_json_1.stakingManager_json; } });
|
package/contracts/index.ts
CHANGED
|
@@ -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 {
|
|
5
|
-
export type {
|
|
4
|
+
export { stakingManager_jsonAbi, stakingManager_json } from './stakingManager_json';
|
|
5
|
+
export type { stakingManager_jsonAbi as stakingManager_jsonAbiType, stakingManager_jsonContract } from './stakingManager_json';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* stakingManager_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
|
|
7
|
+
export declare const stakingManager_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [];
|
|
9
9
|
readonly stateMutability: "nonpayable";
|
|
10
10
|
readonly type: "constructor";
|
|
@@ -78,32 +78,6 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
78
78
|
}];
|
|
79
79
|
readonly name: "Withdraw";
|
|
80
80
|
readonly type: "event";
|
|
81
|
-
}, {
|
|
82
|
-
readonly inputs: readonly [{
|
|
83
|
-
readonly internalType: "address";
|
|
84
|
-
readonly name: "_rewardTokenAddress";
|
|
85
|
-
readonly type: "address";
|
|
86
|
-
}, {
|
|
87
|
-
readonly internalType: "address";
|
|
88
|
-
readonly name: "_presale";
|
|
89
|
-
readonly type: "address";
|
|
90
|
-
}, {
|
|
91
|
-
readonly internalType: "uint256";
|
|
92
|
-
readonly name: "_rewardTokensPerBlock";
|
|
93
|
-
readonly type: "uint256";
|
|
94
|
-
}, {
|
|
95
|
-
readonly internalType: "uint256";
|
|
96
|
-
readonly name: "_lockTime";
|
|
97
|
-
readonly type: "uint256";
|
|
98
|
-
}, {
|
|
99
|
-
readonly internalType: "uint256";
|
|
100
|
-
readonly name: "_endBlock";
|
|
101
|
-
readonly type: "uint256";
|
|
102
|
-
}];
|
|
103
|
-
readonly name: "__stakingManager_init";
|
|
104
|
-
readonly outputs: readonly [];
|
|
105
|
-
readonly stateMutability: "nonpayable";
|
|
106
|
-
readonly type: "function";
|
|
107
81
|
}, {
|
|
108
82
|
readonly inputs: readonly [{
|
|
109
83
|
readonly internalType: "address[]";
|
|
@@ -188,6 +162,32 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
188
162
|
readonly outputs: readonly [];
|
|
189
163
|
readonly stateMutability: "nonpayable";
|
|
190
164
|
readonly type: "function";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly name: "_rewardTokenAddress";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
}, {
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
readonly name: "_presale";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
readonly name: "_rewardTokensPerBlock";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
readonly name: "_lockTime";
|
|
181
|
+
readonly type: "uint256";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "_endBlock";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly name: "initialize";
|
|
188
|
+
readonly outputs: readonly [];
|
|
189
|
+
readonly stateMutability: "nonpayable";
|
|
190
|
+
readonly type: "function";
|
|
191
191
|
}, {
|
|
192
192
|
readonly inputs: readonly [{
|
|
193
193
|
readonly internalType: "address";
|
|
@@ -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";
|
|
@@ -424,15 +410,15 @@ export declare const stakingManagerV2_jsonAbi: readonly [{
|
|
|
424
410
|
readonly type: "function";
|
|
425
411
|
}];
|
|
426
412
|
/**
|
|
427
|
-
* Type-safe ABI for
|
|
413
|
+
* Type-safe ABI for stakingManager_json
|
|
428
414
|
*/
|
|
429
|
-
export type
|
|
415
|
+
export type stakingManager_jsonAbi = typeof stakingManager_jsonAbi;
|
|
430
416
|
/**
|
|
431
|
-
* Contract instance type for
|
|
417
|
+
* Contract instance type for stakingManager_json
|
|
432
418
|
*/
|
|
433
|
-
export type
|
|
419
|
+
export type stakingManager_jsonContract = any;
|
|
434
420
|
/**
|
|
435
|
-
*
|
|
421
|
+
* stakingManager_json Contract Class
|
|
436
422
|
*
|
|
437
423
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
438
424
|
*
|
|
@@ -440,12 +426,12 @@ export type stakingManagerV2_jsonContract = any;
|
|
|
440
426
|
* ```typescript
|
|
441
427
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
442
428
|
* import { mainnet } from 'viem/chains';
|
|
443
|
-
* import {
|
|
429
|
+
* import { stakingManager_json } from 'stakingManager_json';
|
|
444
430
|
*
|
|
445
431
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
446
432
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
447
433
|
*
|
|
448
|
-
* const contract = new
|
|
434
|
+
* const contract = new stakingManager_json('0x...', { publicClient, walletClient });
|
|
449
435
|
*
|
|
450
436
|
* // Read functions
|
|
451
437
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -463,7 +449,7 @@ export type stakingManagerV2_jsonContract = any;
|
|
|
463
449
|
* });
|
|
464
450
|
* ```
|
|
465
451
|
*/
|
|
466
|
-
export declare class
|
|
452
|
+
export declare class stakingManager_json {
|
|
467
453
|
private contract;
|
|
468
454
|
private contractAddress;
|
|
469
455
|
private publicClient;
|
|
@@ -478,7 +464,7 @@ export declare class stakingManagerV2_json {
|
|
|
478
464
|
/**
|
|
479
465
|
* Get the underlying viem contract instance
|
|
480
466
|
*/
|
|
481
|
-
getContract():
|
|
467
|
+
getContract(): stakingManager_jsonContract;
|
|
482
468
|
/**
|
|
483
469
|
* claimStart
|
|
484
470
|
* view
|
|
@@ -550,11 +536,11 @@ export declare class stakingManagerV2_json {
|
|
|
550
536
|
*/
|
|
551
537
|
userLockedRewards(arg0: `0x${string}`): Promise<bigint>;
|
|
552
538
|
/**
|
|
553
|
-
*
|
|
539
|
+
* blacklistUsers
|
|
554
540
|
* nonpayable
|
|
555
541
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
556
542
|
*/
|
|
557
|
-
|
|
543
|
+
blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
|
|
558
544
|
accessList?: import('viem').AccessList;
|
|
559
545
|
authorizationList?: import('viem').AuthorizationList;
|
|
560
546
|
chain?: import('viem').Chain | null;
|
|
@@ -567,11 +553,11 @@ export declare class stakingManagerV2_json {
|
|
|
567
553
|
value?: bigint;
|
|
568
554
|
}): Promise<`0x${string}`>;
|
|
569
555
|
/**
|
|
570
|
-
*
|
|
556
|
+
* deposit
|
|
571
557
|
* nonpayable
|
|
572
558
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
573
559
|
*/
|
|
574
|
-
|
|
560
|
+
deposit(_amount: bigint, options?: {
|
|
575
561
|
accessList?: import('viem').AccessList;
|
|
576
562
|
authorizationList?: import('viem').AuthorizationList;
|
|
577
563
|
chain?: import('viem').Chain | null;
|
|
@@ -584,11 +570,11 @@ export declare class stakingManagerV2_json {
|
|
|
584
570
|
value?: bigint;
|
|
585
571
|
}): Promise<`0x${string}`>;
|
|
586
572
|
/**
|
|
587
|
-
*
|
|
573
|
+
* depositByPresale
|
|
588
574
|
* nonpayable
|
|
589
575
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
590
576
|
*/
|
|
591
|
-
|
|
577
|
+
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
592
578
|
accessList?: import('viem').AccessList;
|
|
593
579
|
authorizationList?: import('viem').AuthorizationList;
|
|
594
580
|
chain?: import('viem').Chain | null;
|
|
@@ -601,11 +587,11 @@ export declare class stakingManagerV2_json {
|
|
|
601
587
|
value?: bigint;
|
|
602
588
|
}): Promise<`0x${string}`>;
|
|
603
589
|
/**
|
|
604
|
-
*
|
|
590
|
+
* harvestRewards
|
|
605
591
|
* nonpayable
|
|
606
592
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
607
593
|
*/
|
|
608
|
-
|
|
594
|
+
harvestRewards(options?: {
|
|
609
595
|
accessList?: import('viem').AccessList;
|
|
610
596
|
authorizationList?: import('viem').AuthorizationList;
|
|
611
597
|
chain?: import('viem').Chain | null;
|
|
@@ -618,11 +604,11 @@ export declare class stakingManagerV2_json {
|
|
|
618
604
|
value?: bigint;
|
|
619
605
|
}): Promise<`0x${string}`>;
|
|
620
606
|
/**
|
|
621
|
-
*
|
|
607
|
+
* initialize
|
|
622
608
|
* nonpayable
|
|
623
609
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
624
610
|
*/
|
|
625
|
-
|
|
611
|
+
initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
626
612
|
accessList?: import('viem').AccessList;
|
|
627
613
|
authorizationList?: import('viem').AuthorizationList;
|
|
628
614
|
chain?: import('viem').Chain | null;
|
|
@@ -770,23 +756,6 @@ export declare class stakingManagerV2_json {
|
|
|
770
756
|
nonce?: number;
|
|
771
757
|
value?: bigint;
|
|
772
758
|
}): 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
759
|
/**
|
|
791
760
|
* transferOwnership
|
|
792
761
|
* nonpayable
|
|
@@ -831,11 +800,11 @@ export declare class stakingManagerV2_json {
|
|
|
831
800
|
*/
|
|
832
801
|
get simulate(): {
|
|
833
802
|
/**
|
|
834
|
-
* Simulate
|
|
803
|
+
* Simulate blacklistUsers
|
|
835
804
|
* Returns gas estimate and result without sending transaction
|
|
836
805
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
837
806
|
*/
|
|
838
|
-
|
|
807
|
+
blacklistUsers(_usersToBlacklist: `0x${string}`[], options?: {
|
|
839
808
|
accessList?: import("viem").AccessList;
|
|
840
809
|
authorizationList?: import("viem").AuthorizationList;
|
|
841
810
|
chain?: import("viem").Chain | null;
|
|
@@ -848,11 +817,11 @@ export declare class stakingManagerV2_json {
|
|
|
848
817
|
value?: bigint;
|
|
849
818
|
}): Promise<void>;
|
|
850
819
|
/**
|
|
851
|
-
* Simulate
|
|
820
|
+
* Simulate deposit
|
|
852
821
|
* Returns gas estimate and result without sending transaction
|
|
853
822
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
854
823
|
*/
|
|
855
|
-
|
|
824
|
+
deposit(_amount: bigint, options?: {
|
|
856
825
|
accessList?: import("viem").AccessList;
|
|
857
826
|
authorizationList?: import("viem").AuthorizationList;
|
|
858
827
|
chain?: import("viem").Chain | null;
|
|
@@ -865,11 +834,11 @@ export declare class stakingManagerV2_json {
|
|
|
865
834
|
value?: bigint;
|
|
866
835
|
}): Promise<void>;
|
|
867
836
|
/**
|
|
868
|
-
* Simulate
|
|
837
|
+
* Simulate depositByPresale
|
|
869
838
|
* Returns gas estimate and result without sending transaction
|
|
870
839
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
871
840
|
*/
|
|
872
|
-
|
|
841
|
+
depositByPresale(_user: `0x${string}`, _amount: bigint, options?: {
|
|
873
842
|
accessList?: import("viem").AccessList;
|
|
874
843
|
authorizationList?: import("viem").AuthorizationList;
|
|
875
844
|
chain?: import("viem").Chain | null;
|
|
@@ -882,11 +851,11 @@ export declare class stakingManagerV2_json {
|
|
|
882
851
|
value?: bigint;
|
|
883
852
|
}): Promise<void>;
|
|
884
853
|
/**
|
|
885
|
-
* Simulate
|
|
854
|
+
* Simulate harvestRewards
|
|
886
855
|
* Returns gas estimate and result without sending transaction
|
|
887
856
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
888
857
|
*/
|
|
889
|
-
|
|
858
|
+
harvestRewards(options?: {
|
|
890
859
|
accessList?: import("viem").AccessList;
|
|
891
860
|
authorizationList?: import("viem").AuthorizationList;
|
|
892
861
|
chain?: import("viem").Chain | null;
|
|
@@ -899,11 +868,11 @@ export declare class stakingManagerV2_json {
|
|
|
899
868
|
value?: bigint;
|
|
900
869
|
}): Promise<void>;
|
|
901
870
|
/**
|
|
902
|
-
* Simulate
|
|
871
|
+
* Simulate initialize
|
|
903
872
|
* Returns gas estimate and result without sending transaction
|
|
904
873
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
905
874
|
*/
|
|
906
|
-
|
|
875
|
+
initialize(_rewardTokenAddress: `0x${string}`, _presale: `0x${string}`, _rewardTokensPerBlock: bigint, _lockTime: bigint, _endBlock: bigint, options?: {
|
|
907
876
|
accessList?: import("viem").AccessList;
|
|
908
877
|
authorizationList?: import("viem").AuthorizationList;
|
|
909
878
|
chain?: import("viem").Chain | null;
|
|
@@ -1051,23 +1020,6 @@ export declare class stakingManagerV2_json {
|
|
|
1051
1020
|
nonce?: number;
|
|
1052
1021
|
value?: bigint;
|
|
1053
1022
|
}): 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
1023
|
/**
|
|
1072
1024
|
* Simulate transferOwnership
|
|
1073
1025
|
* Returns gas estimate and result without sending transaction
|