@iotexproject/kit 0.0.22 → 0.0.23
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/dist/index.d.ts +94 -846
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6129,822 +6129,20 @@ declare class MockLSTEntity {
|
|
|
6129
6129
|
symbol: () => Promise<any>;
|
|
6130
6130
|
decimals: () => Promise<any>;
|
|
6131
6131
|
allowance: (owner: `0x${string}`, spender: `0x${string}`) => Promise<any>;
|
|
6132
|
-
balanceOf
|
|
6133
|
-
totalSupply: () => Promise<any>;
|
|
6134
|
-
mint: (user_: `0x${string}`, amount_: string) => Promise<any>;
|
|
6135
|
-
approve: (spender: `0x${string}`, amount: string) => Promise<any>;
|
|
6136
|
-
transfer: (to: `0x${string}`, amount: string) => Promise<any>;
|
|
6137
|
-
transferFrom: (from: `0x${string}`, to: `0x${string}`, amount: string) => Promise<any>;
|
|
6138
|
-
decreaseAllowance: (spender: `0x${string}`, subtractedValue: string) => Promise<any>;
|
|
6139
|
-
increaseAllowance: (spender: `0x${string}`, addedValue: string) => Promise<any>;
|
|
6140
|
-
}
|
|
6141
|
-
declare class BucketStrategyEntity {
|
|
6142
|
-
address: `0x${string}`;
|
|
6143
|
-
chainId: string;
|
|
6144
|
-
static abi: readonly [
|
|
6145
|
-
{
|
|
6146
|
-
readonly name: "IOTX_REWARD_TOKEN";
|
|
6147
|
-
readonly type: "function";
|
|
6148
|
-
readonly inputs: readonly [
|
|
6149
|
-
];
|
|
6150
|
-
readonly outputs: readonly [
|
|
6151
|
-
{
|
|
6152
|
-
readonly name: "";
|
|
6153
|
-
readonly type: "address";
|
|
6154
|
-
readonly internalType: "address";
|
|
6155
|
-
}
|
|
6156
|
-
];
|
|
6157
|
-
readonly stateMutability: "view";
|
|
6158
|
-
},
|
|
6159
|
-
{
|
|
6160
|
-
readonly name: "PRECISION_FACTOR";
|
|
6161
|
-
readonly type: "function";
|
|
6162
|
-
readonly inputs: readonly [
|
|
6163
|
-
];
|
|
6164
|
-
readonly outputs: readonly [
|
|
6165
|
-
{
|
|
6166
|
-
readonly name: "";
|
|
6167
|
-
readonly type: "uint256";
|
|
6168
|
-
readonly internalType: "uint256";
|
|
6169
|
-
}
|
|
6170
|
-
];
|
|
6171
|
-
readonly stateMutability: "view";
|
|
6172
|
-
},
|
|
6173
|
-
{
|
|
6174
|
-
readonly name: "UINT256_MAX";
|
|
6175
|
-
readonly type: "function";
|
|
6176
|
-
readonly inputs: readonly [
|
|
6177
|
-
];
|
|
6178
|
-
readonly outputs: readonly [
|
|
6179
|
-
{
|
|
6180
|
-
readonly name: "";
|
|
6181
|
-
readonly type: "uint256";
|
|
6182
|
-
readonly internalType: "uint256";
|
|
6183
|
-
}
|
|
6184
|
-
];
|
|
6185
|
-
readonly stateMutability: "view";
|
|
6186
|
-
},
|
|
6187
|
-
{
|
|
6188
|
-
readonly name: "accTokenPerAmount";
|
|
6189
|
-
readonly type: "function";
|
|
6190
|
-
readonly inputs: readonly [
|
|
6191
|
-
{
|
|
6192
|
-
readonly name: "";
|
|
6193
|
-
readonly type: "address";
|
|
6194
|
-
readonly internalType: "address";
|
|
6195
|
-
}
|
|
6196
|
-
];
|
|
6197
|
-
readonly outputs: readonly [
|
|
6198
|
-
{
|
|
6199
|
-
readonly name: "";
|
|
6200
|
-
readonly type: "uint256";
|
|
6201
|
-
readonly internalType: "uint256";
|
|
6202
|
-
}
|
|
6203
|
-
];
|
|
6204
|
-
readonly stateMutability: "view";
|
|
6205
|
-
},
|
|
6206
|
-
{
|
|
6207
|
-
readonly name: "amount";
|
|
6208
|
-
readonly type: "function";
|
|
6209
|
-
readonly inputs: readonly [
|
|
6210
|
-
{
|
|
6211
|
-
readonly name: "";
|
|
6212
|
-
readonly type: "address";
|
|
6213
|
-
readonly internalType: "address";
|
|
6214
|
-
}
|
|
6215
|
-
];
|
|
6216
|
-
readonly outputs: readonly [
|
|
6217
|
-
{
|
|
6218
|
-
readonly name: "";
|
|
6219
|
-
readonly type: "uint256";
|
|
6220
|
-
readonly internalType: "uint256";
|
|
6221
|
-
}
|
|
6222
|
-
];
|
|
6223
|
-
readonly stateMutability: "view";
|
|
6224
|
-
},
|
|
6225
|
-
{
|
|
6226
|
-
readonly name: "bucketAmount";
|
|
6227
|
-
readonly type: "function";
|
|
6228
|
-
readonly inputs: readonly [
|
|
6229
|
-
{
|
|
6230
|
-
readonly name: "";
|
|
6231
|
-
readonly type: "uint256";
|
|
6232
|
-
readonly internalType: "uint256";
|
|
6233
|
-
}
|
|
6234
|
-
];
|
|
6235
|
-
readonly outputs: readonly [
|
|
6236
|
-
{
|
|
6237
|
-
readonly name: "";
|
|
6238
|
-
readonly type: "uint256";
|
|
6239
|
-
readonly internalType: "uint256";
|
|
6240
|
-
}
|
|
6241
|
-
];
|
|
6242
|
-
readonly stateMutability: "view";
|
|
6243
|
-
},
|
|
6244
|
-
{
|
|
6245
|
-
readonly name: "bucketStaker";
|
|
6246
|
-
readonly type: "function";
|
|
6247
|
-
readonly inputs: readonly [
|
|
6248
|
-
{
|
|
6249
|
-
readonly name: "";
|
|
6250
|
-
readonly type: "uint256";
|
|
6251
|
-
readonly internalType: "uint256";
|
|
6252
|
-
}
|
|
6253
|
-
];
|
|
6254
|
-
readonly outputs: readonly [
|
|
6255
|
-
{
|
|
6256
|
-
readonly name: "";
|
|
6257
|
-
readonly type: "address";
|
|
6258
|
-
readonly internalType: "address";
|
|
6259
|
-
}
|
|
6260
|
-
];
|
|
6261
|
-
readonly stateMutability: "view";
|
|
6262
|
-
},
|
|
6263
|
-
{
|
|
6264
|
-
readonly name: "calculateBucketRestakeAmount";
|
|
6265
|
-
readonly type: "function";
|
|
6266
|
-
readonly inputs: readonly [
|
|
6267
|
-
{
|
|
6268
|
-
readonly name: "_duration";
|
|
6269
|
-
readonly type: "uint256";
|
|
6270
|
-
readonly internalType: "uint256";
|
|
6271
|
-
},
|
|
6272
|
-
{
|
|
6273
|
-
readonly name: "_amount";
|
|
6274
|
-
readonly type: "uint256";
|
|
6275
|
-
readonly internalType: "uint256";
|
|
6276
|
-
}
|
|
6277
|
-
];
|
|
6278
|
-
readonly outputs: readonly [
|
|
6279
|
-
{
|
|
6280
|
-
readonly name: "";
|
|
6281
|
-
readonly type: "uint256";
|
|
6282
|
-
readonly internalType: "uint256";
|
|
6283
|
-
}
|
|
6284
|
-
];
|
|
6285
|
-
readonly stateMutability: "pure";
|
|
6286
|
-
},
|
|
6287
|
-
{
|
|
6288
|
-
readonly name: "claimReward";
|
|
6289
|
-
readonly type: "function";
|
|
6290
|
-
readonly inputs: readonly [
|
|
6291
|
-
];
|
|
6292
|
-
readonly outputs: readonly [
|
|
6293
|
-
];
|
|
6294
|
-
readonly stateMutability: "nonpayable";
|
|
6295
|
-
},
|
|
6296
|
-
{
|
|
6297
|
-
readonly name: "deposit";
|
|
6298
|
-
readonly type: "function";
|
|
6299
|
-
readonly inputs: readonly [
|
|
6300
|
-
{
|
|
6301
|
-
readonly name: "bucketId";
|
|
6302
|
-
readonly type: "uint256";
|
|
6303
|
-
readonly internalType: "uint256";
|
|
6304
|
-
}
|
|
6305
|
-
];
|
|
6306
|
-
readonly outputs: readonly [
|
|
6307
|
-
];
|
|
6308
|
-
readonly stateMutability: "payable";
|
|
6309
|
-
},
|
|
6310
|
-
{
|
|
6311
|
-
readonly name: "distributeRewards";
|
|
6312
|
-
readonly type: "function";
|
|
6313
|
-
readonly inputs: readonly [
|
|
6314
|
-
{
|
|
6315
|
-
readonly name: "_token";
|
|
6316
|
-
readonly type: "address";
|
|
6317
|
-
readonly internalType: "address";
|
|
6318
|
-
},
|
|
6319
|
-
{
|
|
6320
|
-
readonly name: "_amount";
|
|
6321
|
-
readonly type: "uint256";
|
|
6322
|
-
readonly internalType: "uint256";
|
|
6323
|
-
}
|
|
6324
|
-
];
|
|
6325
|
-
readonly outputs: readonly [
|
|
6326
|
-
];
|
|
6327
|
-
readonly stateMutability: "payable";
|
|
6328
|
-
},
|
|
6329
|
-
{
|
|
6330
|
-
readonly name: "initialize";
|
|
6331
|
-
readonly type: "function";
|
|
6332
|
-
readonly inputs: readonly [
|
|
6333
|
-
{
|
|
6334
|
-
readonly name: "bucketNFT";
|
|
6335
|
-
readonly type: "address";
|
|
6336
|
-
readonly internalType: "address";
|
|
6337
|
-
},
|
|
6338
|
-
{
|
|
6339
|
-
readonly name: "manager";
|
|
6340
|
-
readonly type: "address";
|
|
6341
|
-
readonly internalType: "address";
|
|
6342
|
-
},
|
|
6343
|
-
{
|
|
6344
|
-
readonly name: "bucketRewardPool";
|
|
6345
|
-
readonly type: "address";
|
|
6346
|
-
readonly internalType: "address";
|
|
6347
|
-
}
|
|
6348
|
-
];
|
|
6349
|
-
readonly outputs: readonly [
|
|
6350
|
-
];
|
|
6351
|
-
readonly stateMutability: "nonpayable";
|
|
6352
|
-
},
|
|
6353
|
-
{
|
|
6354
|
-
readonly name: "onERC721Received";
|
|
6355
|
-
readonly type: "function";
|
|
6356
|
-
readonly inputs: readonly [
|
|
6357
|
-
{
|
|
6358
|
-
readonly name: "";
|
|
6359
|
-
readonly type: "address";
|
|
6360
|
-
readonly internalType: "address";
|
|
6361
|
-
},
|
|
6362
|
-
{
|
|
6363
|
-
readonly name: "";
|
|
6364
|
-
readonly type: "address";
|
|
6365
|
-
readonly internalType: "address";
|
|
6366
|
-
},
|
|
6367
|
-
{
|
|
6368
|
-
readonly name: "";
|
|
6369
|
-
readonly type: "uint256";
|
|
6370
|
-
readonly internalType: "uint256";
|
|
6371
|
-
},
|
|
6372
|
-
{
|
|
6373
|
-
readonly name: "";
|
|
6374
|
-
readonly type: "bytes";
|
|
6375
|
-
readonly internalType: "bytes";
|
|
6376
|
-
}
|
|
6377
|
-
];
|
|
6378
|
-
readonly outputs: readonly [
|
|
6379
|
-
{
|
|
6380
|
-
readonly name: "";
|
|
6381
|
-
readonly type: "bytes4";
|
|
6382
|
-
readonly internalType: "bytes4";
|
|
6383
|
-
}
|
|
6384
|
-
];
|
|
6385
|
-
readonly stateMutability: "nonpayable";
|
|
6386
|
-
},
|
|
6387
|
-
{
|
|
6388
|
-
readonly name: "owner";
|
|
6389
|
-
readonly type: "function";
|
|
6390
|
-
readonly inputs: readonly [
|
|
6391
|
-
];
|
|
6392
|
-
readonly outputs: readonly [
|
|
6393
|
-
{
|
|
6394
|
-
readonly name: "";
|
|
6395
|
-
readonly type: "address";
|
|
6396
|
-
readonly internalType: "address";
|
|
6397
|
-
}
|
|
6398
|
-
];
|
|
6399
|
-
readonly stateMutability: "view";
|
|
6400
|
-
},
|
|
6401
|
-
{
|
|
6402
|
-
readonly name: "pendingReward";
|
|
6403
|
-
readonly type: "function";
|
|
6404
|
-
readonly inputs: readonly [
|
|
6405
|
-
{
|
|
6406
|
-
readonly name: "token";
|
|
6407
|
-
readonly type: "address";
|
|
6408
|
-
readonly internalType: "address";
|
|
6409
|
-
},
|
|
6410
|
-
{
|
|
6411
|
-
readonly name: "staker";
|
|
6412
|
-
readonly type: "address";
|
|
6413
|
-
readonly internalType: "address";
|
|
6414
|
-
}
|
|
6415
|
-
];
|
|
6416
|
-
readonly outputs: readonly [
|
|
6417
|
-
{
|
|
6418
|
-
readonly name: "";
|
|
6419
|
-
readonly type: "uint256";
|
|
6420
|
-
readonly internalType: "uint256";
|
|
6421
|
-
}
|
|
6422
|
-
];
|
|
6423
|
-
readonly stateMutability: "view";
|
|
6424
|
-
},
|
|
6425
|
-
{
|
|
6426
|
-
readonly name: "pendingRewards";
|
|
6427
|
-
readonly type: "function";
|
|
6428
|
-
readonly inputs: readonly [
|
|
6429
|
-
{
|
|
6430
|
-
readonly name: "staker";
|
|
6431
|
-
readonly type: "address";
|
|
6432
|
-
readonly internalType: "address";
|
|
6433
|
-
}
|
|
6434
|
-
];
|
|
6435
|
-
readonly outputs: readonly [
|
|
6436
|
-
{
|
|
6437
|
-
readonly name: "";
|
|
6438
|
-
readonly type: "uint256[]";
|
|
6439
|
-
readonly internalType: "uint256[]";
|
|
6440
|
-
}
|
|
6441
|
-
];
|
|
6442
|
-
readonly stateMutability: "view";
|
|
6443
|
-
},
|
|
6444
|
-
{
|
|
6445
|
-
readonly name: "poke";
|
|
6446
|
-
readonly type: "function";
|
|
6447
|
-
readonly inputs: readonly [
|
|
6448
|
-
{
|
|
6449
|
-
readonly name: "bucketId";
|
|
6450
|
-
readonly type: "uint256";
|
|
6451
|
-
readonly internalType: "uint256";
|
|
6452
|
-
}
|
|
6453
|
-
];
|
|
6454
|
-
readonly outputs: readonly [
|
|
6455
|
-
];
|
|
6456
|
-
readonly stateMutability: "nonpayable";
|
|
6457
|
-
},
|
|
6458
|
-
{
|
|
6459
|
-
readonly name: "remainingReward";
|
|
6460
|
-
readonly type: "function";
|
|
6461
|
-
readonly inputs: readonly [
|
|
6462
|
-
{
|
|
6463
|
-
readonly name: "";
|
|
6464
|
-
readonly type: "address";
|
|
6465
|
-
readonly internalType: "address";
|
|
6466
|
-
}
|
|
6467
|
-
];
|
|
6468
|
-
readonly outputs: readonly [
|
|
6469
|
-
{
|
|
6470
|
-
readonly name: "";
|
|
6471
|
-
readonly type: "uint256";
|
|
6472
|
-
readonly internalType: "uint256";
|
|
6473
|
-
}
|
|
6474
|
-
];
|
|
6475
|
-
readonly stateMutability: "view";
|
|
6476
|
-
},
|
|
6477
|
-
{
|
|
6478
|
-
readonly name: "renounceOwnership";
|
|
6479
|
-
readonly type: "function";
|
|
6480
|
-
readonly inputs: readonly [
|
|
6481
|
-
];
|
|
6482
|
-
readonly outputs: readonly [
|
|
6483
|
-
];
|
|
6484
|
-
readonly stateMutability: "nonpayable";
|
|
6485
|
-
},
|
|
6486
|
-
{
|
|
6487
|
-
readonly name: "rewardDebt";
|
|
6488
|
-
readonly type: "function";
|
|
6489
|
-
readonly inputs: readonly [
|
|
6490
|
-
{
|
|
6491
|
-
readonly name: "";
|
|
6492
|
-
readonly type: "address";
|
|
6493
|
-
readonly internalType: "address";
|
|
6494
|
-
},
|
|
6495
|
-
{
|
|
6496
|
-
readonly name: "";
|
|
6497
|
-
readonly type: "address";
|
|
6498
|
-
readonly internalType: "address";
|
|
6499
|
-
}
|
|
6500
|
-
];
|
|
6501
|
-
readonly outputs: readonly [
|
|
6502
|
-
{
|
|
6503
|
-
readonly name: "";
|
|
6504
|
-
readonly type: "uint256";
|
|
6505
|
-
readonly internalType: "uint256";
|
|
6506
|
-
}
|
|
6507
|
-
];
|
|
6508
|
-
readonly stateMutability: "view";
|
|
6509
|
-
},
|
|
6510
|
-
{
|
|
6511
|
-
readonly name: "rewardPool";
|
|
6512
|
-
readonly type: "function";
|
|
6513
|
-
readonly inputs: readonly [
|
|
6514
|
-
];
|
|
6515
|
-
readonly outputs: readonly [
|
|
6516
|
-
{
|
|
6517
|
-
readonly name: "";
|
|
6518
|
-
readonly type: "address";
|
|
6519
|
-
readonly internalType: "address";
|
|
6520
|
-
}
|
|
6521
|
-
];
|
|
6522
|
-
readonly stateMutability: "view";
|
|
6523
|
-
},
|
|
6524
|
-
{
|
|
6525
|
-
readonly name: "stake";
|
|
6526
|
-
readonly type: "function";
|
|
6527
|
-
readonly inputs: readonly [
|
|
6528
|
-
{
|
|
6529
|
-
readonly name: "bucketId";
|
|
6530
|
-
readonly type: "uint256";
|
|
6531
|
-
readonly internalType: "uint256";
|
|
6532
|
-
}
|
|
6533
|
-
];
|
|
6534
|
-
readonly outputs: readonly [
|
|
6535
|
-
];
|
|
6536
|
-
readonly stateMutability: "nonpayable";
|
|
6537
|
-
},
|
|
6538
|
-
{
|
|
6539
|
-
readonly name: "stakeStatus";
|
|
6540
|
-
readonly type: "function";
|
|
6541
|
-
readonly inputs: readonly [
|
|
6542
|
-
{
|
|
6543
|
-
readonly name: "";
|
|
6544
|
-
readonly type: "uint256";
|
|
6545
|
-
readonly internalType: "uint256";
|
|
6546
|
-
}
|
|
6547
|
-
];
|
|
6548
|
-
readonly outputs: readonly [
|
|
6549
|
-
{
|
|
6550
|
-
readonly name: "";
|
|
6551
|
-
readonly type: "uint8";
|
|
6552
|
-
readonly internalType: "uint8";
|
|
6553
|
-
}
|
|
6554
|
-
];
|
|
6555
|
-
readonly stateMutability: "view";
|
|
6556
|
-
},
|
|
6557
|
-
{
|
|
6558
|
-
readonly name: "stakerBuckets";
|
|
6559
|
-
readonly type: "function";
|
|
6560
|
-
readonly inputs: readonly [
|
|
6561
|
-
{
|
|
6562
|
-
readonly name: "staker";
|
|
6563
|
-
readonly type: "address";
|
|
6564
|
-
readonly internalType: "address";
|
|
6565
|
-
}
|
|
6566
|
-
];
|
|
6567
|
-
readonly outputs: readonly [
|
|
6568
|
-
{
|
|
6569
|
-
readonly name: "";
|
|
6570
|
-
readonly type: "uint256[]";
|
|
6571
|
-
readonly internalType: "uint256[]";
|
|
6572
|
-
}
|
|
6573
|
-
];
|
|
6574
|
-
readonly stateMutability: "view";
|
|
6575
|
-
},
|
|
6576
|
-
{
|
|
6577
|
-
readonly name: "strategyManager";
|
|
6578
|
-
readonly type: "function";
|
|
6579
|
-
readonly inputs: readonly [
|
|
6580
|
-
];
|
|
6581
|
-
readonly outputs: readonly [
|
|
6582
|
-
{
|
|
6583
|
-
readonly name: "";
|
|
6584
|
-
readonly type: "address";
|
|
6585
|
-
readonly internalType: "address";
|
|
6586
|
-
}
|
|
6587
|
-
];
|
|
6588
|
-
readonly stateMutability: "view";
|
|
6589
|
-
},
|
|
6590
|
-
{
|
|
6591
|
-
readonly name: "totalAmount";
|
|
6592
|
-
readonly type: "function";
|
|
6593
|
-
readonly inputs: readonly [
|
|
6594
|
-
];
|
|
6595
|
-
readonly outputs: readonly [
|
|
6596
|
-
{
|
|
6597
|
-
readonly name: "";
|
|
6598
|
-
readonly type: "uint256";
|
|
6599
|
-
readonly internalType: "uint256";
|
|
6600
|
-
}
|
|
6601
|
-
];
|
|
6602
|
-
readonly stateMutability: "view";
|
|
6603
|
-
},
|
|
6604
|
-
{
|
|
6605
|
-
readonly name: "transferOwnership";
|
|
6606
|
-
readonly type: "function";
|
|
6607
|
-
readonly inputs: readonly [
|
|
6608
|
-
{
|
|
6609
|
-
readonly name: "newOwner";
|
|
6610
|
-
readonly type: "address";
|
|
6611
|
-
readonly internalType: "address";
|
|
6612
|
-
}
|
|
6613
|
-
];
|
|
6614
|
-
readonly outputs: readonly [
|
|
6615
|
-
];
|
|
6616
|
-
readonly stateMutability: "nonpayable";
|
|
6617
|
-
},
|
|
6618
|
-
{
|
|
6619
|
-
readonly name: "underlyingToken";
|
|
6620
|
-
readonly type: "function";
|
|
6621
|
-
readonly inputs: readonly [
|
|
6622
|
-
];
|
|
6623
|
-
readonly outputs: readonly [
|
|
6624
|
-
{
|
|
6625
|
-
readonly name: "";
|
|
6626
|
-
readonly type: "address";
|
|
6627
|
-
readonly internalType: "address";
|
|
6628
|
-
}
|
|
6629
|
-
];
|
|
6630
|
-
readonly stateMutability: "view";
|
|
6631
|
-
},
|
|
6632
|
-
{
|
|
6633
|
-
readonly name: "unstake";
|
|
6634
|
-
readonly type: "function";
|
|
6635
|
-
readonly inputs: readonly [
|
|
6636
|
-
{
|
|
6637
|
-
readonly name: "bucketIds";
|
|
6638
|
-
readonly type: "uint256[]";
|
|
6639
|
-
readonly internalType: "uint256[]";
|
|
6640
|
-
}
|
|
6641
|
-
];
|
|
6642
|
-
readonly outputs: readonly [
|
|
6643
|
-
];
|
|
6644
|
-
readonly stateMutability: "nonpayable";
|
|
6645
|
-
},
|
|
6646
|
-
{
|
|
6647
|
-
readonly name: "unstakeTime";
|
|
6648
|
-
readonly type: "function";
|
|
6649
|
-
readonly inputs: readonly [
|
|
6650
|
-
{
|
|
6651
|
-
readonly name: "";
|
|
6652
|
-
readonly type: "uint256";
|
|
6653
|
-
readonly internalType: "uint256";
|
|
6654
|
-
}
|
|
6655
|
-
];
|
|
6656
|
-
readonly outputs: readonly [
|
|
6657
|
-
{
|
|
6658
|
-
readonly name: "";
|
|
6659
|
-
readonly type: "uint256";
|
|
6660
|
-
readonly internalType: "uint256";
|
|
6661
|
-
}
|
|
6662
|
-
];
|
|
6663
|
-
readonly stateMutability: "view";
|
|
6664
|
-
},
|
|
6665
|
-
{
|
|
6666
|
-
readonly name: "withdraw";
|
|
6667
|
-
readonly type: "function";
|
|
6668
|
-
readonly inputs: readonly [
|
|
6669
|
-
{
|
|
6670
|
-
readonly name: "bucketIds";
|
|
6671
|
-
readonly type: "uint256[]";
|
|
6672
|
-
readonly internalType: "uint256[]";
|
|
6673
|
-
},
|
|
6674
|
-
{
|
|
6675
|
-
readonly name: "recipient";
|
|
6676
|
-
readonly type: "address";
|
|
6677
|
-
readonly internalType: "address";
|
|
6678
|
-
}
|
|
6679
|
-
];
|
|
6680
|
-
readonly outputs: readonly [
|
|
6681
|
-
];
|
|
6682
|
-
readonly stateMutability: "nonpayable";
|
|
6683
|
-
},
|
|
6684
|
-
{
|
|
6685
|
-
readonly name: "withdrawTime";
|
|
6686
|
-
readonly type: "function";
|
|
6687
|
-
readonly inputs: readonly [
|
|
6688
|
-
{
|
|
6689
|
-
readonly name: "bucketId";
|
|
6690
|
-
readonly type: "uint256";
|
|
6691
|
-
readonly internalType: "uint256";
|
|
6692
|
-
}
|
|
6693
|
-
];
|
|
6694
|
-
readonly outputs: readonly [
|
|
6695
|
-
{
|
|
6696
|
-
readonly name: "";
|
|
6697
|
-
readonly type: "uint256";
|
|
6698
|
-
readonly internalType: "uint256";
|
|
6699
|
-
}
|
|
6700
|
-
];
|
|
6701
|
-
readonly stateMutability: "view";
|
|
6702
|
-
},
|
|
6703
|
-
{
|
|
6704
|
-
readonly name: "ClaimReward";
|
|
6705
|
-
readonly type: "event";
|
|
6706
|
-
readonly inputs: readonly [
|
|
6707
|
-
{
|
|
6708
|
-
readonly name: "token";
|
|
6709
|
-
readonly type: "address";
|
|
6710
|
-
readonly indexed: true;
|
|
6711
|
-
readonly internalType: "address";
|
|
6712
|
-
},
|
|
6713
|
-
{
|
|
6714
|
-
readonly name: "staker";
|
|
6715
|
-
readonly type: "address";
|
|
6716
|
-
readonly indexed: true;
|
|
6717
|
-
readonly internalType: "address";
|
|
6718
|
-
},
|
|
6719
|
-
{
|
|
6720
|
-
readonly name: "amount";
|
|
6721
|
-
readonly type: "uint256";
|
|
6722
|
-
readonly indexed: false;
|
|
6723
|
-
readonly internalType: "uint256";
|
|
6724
|
-
}
|
|
6725
|
-
];
|
|
6726
|
-
readonly anonymous: false;
|
|
6727
|
-
},
|
|
6728
|
-
{
|
|
6729
|
-
readonly name: "Deposit";
|
|
6730
|
-
readonly type: "event";
|
|
6731
|
-
readonly inputs: readonly [
|
|
6732
|
-
{
|
|
6733
|
-
readonly name: "staker";
|
|
6734
|
-
readonly type: "address";
|
|
6735
|
-
readonly indexed: true;
|
|
6736
|
-
readonly internalType: "address";
|
|
6737
|
-
},
|
|
6738
|
-
{
|
|
6739
|
-
readonly name: "bucketId";
|
|
6740
|
-
readonly type: "uint256";
|
|
6741
|
-
readonly indexed: true;
|
|
6742
|
-
readonly internalType: "uint256";
|
|
6743
|
-
},
|
|
6744
|
-
{
|
|
6745
|
-
readonly name: "depositAmount";
|
|
6746
|
-
readonly type: "uint256";
|
|
6747
|
-
readonly indexed: false;
|
|
6748
|
-
readonly internalType: "uint256";
|
|
6749
|
-
},
|
|
6750
|
-
{
|
|
6751
|
-
readonly name: "stakingAmount";
|
|
6752
|
-
readonly type: "uint256";
|
|
6753
|
-
readonly indexed: false;
|
|
6754
|
-
readonly internalType: "uint256";
|
|
6755
|
-
}
|
|
6756
|
-
];
|
|
6757
|
-
readonly anonymous: false;
|
|
6758
|
-
},
|
|
6759
|
-
{
|
|
6760
|
-
readonly name: "Initialized";
|
|
6761
|
-
readonly type: "event";
|
|
6762
|
-
readonly inputs: readonly [
|
|
6763
|
-
{
|
|
6764
|
-
readonly name: "version";
|
|
6765
|
-
readonly type: "uint8";
|
|
6766
|
-
readonly indexed: false;
|
|
6767
|
-
readonly internalType: "uint8";
|
|
6768
|
-
}
|
|
6769
|
-
];
|
|
6770
|
-
readonly anonymous: false;
|
|
6771
|
-
},
|
|
6772
|
-
{
|
|
6773
|
-
readonly name: "OwnershipTransferred";
|
|
6774
|
-
readonly type: "event";
|
|
6775
|
-
readonly inputs: readonly [
|
|
6776
|
-
{
|
|
6777
|
-
readonly name: "previousOwner";
|
|
6778
|
-
readonly type: "address";
|
|
6779
|
-
readonly indexed: true;
|
|
6780
|
-
readonly internalType: "address";
|
|
6781
|
-
},
|
|
6782
|
-
{
|
|
6783
|
-
readonly name: "newOwner";
|
|
6784
|
-
readonly type: "address";
|
|
6785
|
-
readonly indexed: true;
|
|
6786
|
-
readonly internalType: "address";
|
|
6787
|
-
}
|
|
6788
|
-
];
|
|
6789
|
-
readonly anonymous: false;
|
|
6790
|
-
},
|
|
6791
|
-
{
|
|
6792
|
-
readonly name: "Poke";
|
|
6793
|
-
readonly type: "event";
|
|
6794
|
-
readonly inputs: readonly [
|
|
6795
|
-
{
|
|
6796
|
-
readonly name: "staker";
|
|
6797
|
-
readonly type: "address";
|
|
6798
|
-
readonly indexed: true;
|
|
6799
|
-
readonly internalType: "address";
|
|
6800
|
-
},
|
|
6801
|
-
{
|
|
6802
|
-
readonly name: "bucketId";
|
|
6803
|
-
readonly type: "uint256";
|
|
6804
|
-
readonly indexed: true;
|
|
6805
|
-
readonly internalType: "uint256";
|
|
6806
|
-
},
|
|
6807
|
-
{
|
|
6808
|
-
readonly name: "bucketAmount";
|
|
6809
|
-
readonly type: "uint256";
|
|
6810
|
-
readonly indexed: false;
|
|
6811
|
-
readonly internalType: "uint256";
|
|
6812
|
-
},
|
|
6813
|
-
{
|
|
6814
|
-
readonly name: "stakingAmount";
|
|
6815
|
-
readonly type: "uint256";
|
|
6816
|
-
readonly indexed: false;
|
|
6817
|
-
readonly internalType: "uint256";
|
|
6818
|
-
}
|
|
6819
|
-
];
|
|
6820
|
-
readonly anonymous: false;
|
|
6821
|
-
},
|
|
6822
|
-
{
|
|
6823
|
-
readonly name: "ReceiveRewards";
|
|
6824
|
-
readonly type: "event";
|
|
6825
|
-
readonly inputs: readonly [
|
|
6826
|
-
{
|
|
6827
|
-
readonly name: "sender";
|
|
6828
|
-
readonly type: "address";
|
|
6829
|
-
readonly indexed: true;
|
|
6830
|
-
readonly internalType: "address";
|
|
6831
|
-
},
|
|
6832
|
-
{
|
|
6833
|
-
readonly name: "token";
|
|
6834
|
-
readonly type: "address";
|
|
6835
|
-
readonly indexed: true;
|
|
6836
|
-
readonly internalType: "address";
|
|
6837
|
-
},
|
|
6838
|
-
{
|
|
6839
|
-
readonly name: "amount";
|
|
6840
|
-
readonly type: "uint256";
|
|
6841
|
-
readonly indexed: false;
|
|
6842
|
-
readonly internalType: "uint256";
|
|
6843
|
-
}
|
|
6844
|
-
];
|
|
6845
|
-
readonly anonymous: false;
|
|
6846
|
-
},
|
|
6847
|
-
{
|
|
6848
|
-
readonly name: "Stake";
|
|
6849
|
-
readonly type: "event";
|
|
6850
|
-
readonly inputs: readonly [
|
|
6851
|
-
{
|
|
6852
|
-
readonly name: "staker";
|
|
6853
|
-
readonly type: "address";
|
|
6854
|
-
readonly indexed: true;
|
|
6855
|
-
readonly internalType: "address";
|
|
6856
|
-
},
|
|
6857
|
-
{
|
|
6858
|
-
readonly name: "bucketId";
|
|
6859
|
-
readonly type: "uint256";
|
|
6860
|
-
readonly indexed: true;
|
|
6861
|
-
readonly internalType: "uint256";
|
|
6862
|
-
},
|
|
6863
|
-
{
|
|
6864
|
-
readonly name: "bucketAmount";
|
|
6865
|
-
readonly type: "uint256";
|
|
6866
|
-
readonly indexed: false;
|
|
6867
|
-
readonly internalType: "uint256";
|
|
6868
|
-
},
|
|
6869
|
-
{
|
|
6870
|
-
readonly name: "stakingAmount";
|
|
6871
|
-
readonly type: "uint256";
|
|
6872
|
-
readonly indexed: false;
|
|
6873
|
-
readonly internalType: "uint256";
|
|
6874
|
-
}
|
|
6875
|
-
];
|
|
6876
|
-
readonly anonymous: false;
|
|
6877
|
-
},
|
|
6878
|
-
{
|
|
6879
|
-
readonly name: "Unstake";
|
|
6880
|
-
readonly type: "event";
|
|
6881
|
-
readonly inputs: readonly [
|
|
6882
|
-
{
|
|
6883
|
-
readonly name: "staker";
|
|
6884
|
-
readonly type: "address";
|
|
6885
|
-
readonly indexed: true;
|
|
6886
|
-
readonly internalType: "address";
|
|
6887
|
-
},
|
|
6888
|
-
{
|
|
6889
|
-
readonly name: "bucketId";
|
|
6890
|
-
readonly type: "uint256";
|
|
6891
|
-
readonly indexed: false;
|
|
6892
|
-
readonly internalType: "uint256";
|
|
6893
|
-
}
|
|
6894
|
-
];
|
|
6895
|
-
readonly anonymous: false;
|
|
6896
|
-
},
|
|
6897
|
-
{
|
|
6898
|
-
readonly name: "Withdraw";
|
|
6899
|
-
readonly type: "event";
|
|
6900
|
-
readonly inputs: readonly [
|
|
6901
|
-
{
|
|
6902
|
-
readonly name: "staker";
|
|
6903
|
-
readonly type: "address";
|
|
6904
|
-
readonly indexed: true;
|
|
6905
|
-
readonly internalType: "address";
|
|
6906
|
-
},
|
|
6907
|
-
{
|
|
6908
|
-
readonly name: "bucketId";
|
|
6909
|
-
readonly type: "uint256";
|
|
6910
|
-
readonly indexed: false;
|
|
6911
|
-
readonly internalType: "uint256";
|
|
6912
|
-
}
|
|
6913
|
-
];
|
|
6914
|
-
readonly anonymous: false;
|
|
6915
|
-
}
|
|
6916
|
-
];
|
|
6917
|
-
MockBucket: MockBucketEntity;
|
|
6918
|
-
pendingRewards(account: `0x${string}`): Promise<{
|
|
6132
|
+
balanceOf(account?: `0x${string}`): Promise<{
|
|
6919
6133
|
value: string;
|
|
6920
6134
|
format: string;
|
|
6921
6135
|
originFormat: string;
|
|
6922
6136
|
decimals: string;
|
|
6923
6137
|
isZero: boolean;
|
|
6924
6138
|
}>;
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
|
|
6933
|
-
stakerBuckets: (staker: `0x${string}`) => Promise<any>;
|
|
6934
|
-
remainingReward: (_: `0x${string}`) => Promise<any>;
|
|
6935
|
-
strategyManager: () => Promise<any>;
|
|
6936
|
-
underlyingToken: () => Promise<any>;
|
|
6937
|
-
IOTX_REWARD_TOKEN: () => Promise<any>;
|
|
6938
|
-
accTokenPerAmount: (_: `0x${string}`) => Promise<any>;
|
|
6939
|
-
calculateBucketRestakeAmount: (_duration: string, _amount: string) => Promise<any>;
|
|
6940
|
-
poke: (bucketId: string) => Promise<any>;
|
|
6941
|
-
stake: (bucketId: string) => Promise<any>;
|
|
6942
|
-
deposit: (bucketId: string) => Promise<any>;
|
|
6943
|
-
unstake: (bucketIds: any[]) => Promise<any>;
|
|
6944
|
-
withdraw: (bucketIds: any[], recipient: `0x${string}`) => Promise<any>;
|
|
6945
|
-
claimReward: () => Promise<any>;
|
|
6946
|
-
renounceOwnership: () => Promise<any>;
|
|
6947
|
-
transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
|
|
6139
|
+
totalSupply: () => Promise<any>;
|
|
6140
|
+
mint: (user_: `0x${string}`, amount_: string) => Promise<any>;
|
|
6141
|
+
approve: (spender: `0x${string}`, amount: string) => Promise<any>;
|
|
6142
|
+
transfer: (to: `0x${string}`, amount: string) => Promise<any>;
|
|
6143
|
+
transferFrom: (from: `0x${string}`, to: `0x${string}`, amount: string) => Promise<any>;
|
|
6144
|
+
decreaseAllowance: (spender: `0x${string}`, subtractedValue: string) => Promise<any>;
|
|
6145
|
+
increaseAllowance: (spender: `0x${string}`, addedValue: string) => Promise<any>;
|
|
6948
6146
|
}
|
|
6949
6147
|
declare class LSTStrategyEntity {
|
|
6950
6148
|
address: `0x${string}`;
|
|
@@ -7500,6 +6698,13 @@ declare class LSTStrategyEntity {
|
|
|
7500
6698
|
decimals: string;
|
|
7501
6699
|
isZero: boolean;
|
|
7502
6700
|
}>;
|
|
6701
|
+
amount(account?: `0x${string}`): Promise<{
|
|
6702
|
+
value: string;
|
|
6703
|
+
format: string;
|
|
6704
|
+
originFormat: string;
|
|
6705
|
+
decimals: string;
|
|
6706
|
+
isZero: boolean;
|
|
6707
|
+
}>;
|
|
7503
6708
|
owner: () => Promise<any>;
|
|
7504
6709
|
unstakeTime: (_: `0x${string}`) => Promise<any>;
|
|
7505
6710
|
withdrawTime: (staker: `0x${string}`) => Promise<any>;
|
|
@@ -7528,58 +6733,101 @@ declare class MSP {
|
|
|
7528
6733
|
myBucketsAndLSTs(args: {
|
|
7529
6734
|
account: `0x${string}`;
|
|
7530
6735
|
}): Promise<{
|
|
7531
|
-
myBuckets:
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
];
|
|
7538
|
-
unstakeTime: [
|
|
7539
|
-
string
|
|
7540
|
-
];
|
|
7541
|
-
stakeStatus: [
|
|
7542
|
-
string
|
|
7543
|
-
];
|
|
7544
|
-
withdrawTime: [
|
|
7545
|
-
string
|
|
7546
|
-
];
|
|
7547
|
-
MockBucket: {
|
|
6736
|
+
myBuckets: {
|
|
6737
|
+
bucketId: number;
|
|
6738
|
+
owner: `0x${string}`;
|
|
6739
|
+
address: `0x${string}`;
|
|
6740
|
+
chainId: string;
|
|
6741
|
+
MockBucket: import("@dappworks/kit/aiem").QueryReturnType<MockBucketEntity, {
|
|
7548
6742
|
name: true;
|
|
6743
|
+
}>;
|
|
6744
|
+
pendingRewards: {
|
|
6745
|
+
value: string;
|
|
6746
|
+
format: string;
|
|
6747
|
+
originFormat: string;
|
|
6748
|
+
decimals: string;
|
|
6749
|
+
isZero: boolean;
|
|
7549
6750
|
};
|
|
7550
|
-
|
|
6751
|
+
stakeStatus: any;
|
|
6752
|
+
totalAmount: () => Promise<any>;
|
|
6753
|
+
unstakeTime: any;
|
|
6754
|
+
bucketAmount: any;
|
|
6755
|
+
bucketStaker: (_: string) => Promise<any>;
|
|
6756
|
+
withdrawTime: any;
|
|
6757
|
+
pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
|
|
6758
|
+
stakerBuckets: (staker: `0x${string}`) => Promise<any>;
|
|
6759
|
+
remainingReward: (_: `0x${string}`) => Promise<any>;
|
|
6760
|
+
strategyManager: () => Promise<any>;
|
|
6761
|
+
underlyingToken: () => Promise<any>;
|
|
6762
|
+
IOTX_REWARD_TOKEN: () => Promise<any>;
|
|
6763
|
+
accTokenPerAmount: (_: `0x${string}`) => Promise<any>;
|
|
6764
|
+
calculateBucketRestakeAmount: (_duration: string, _amount: string) => Promise<any>;
|
|
6765
|
+
poke: (bucketId: string) => Promise<any>;
|
|
6766
|
+
stake: (bucketId: string) => Promise<any>;
|
|
6767
|
+
deposit: (bucketId: string) => Promise<any>;
|
|
6768
|
+
unstake: (bucketIds: any[]) => Promise<any>;
|
|
6769
|
+
withdraw: (bucketIds: any[], recipient: `0x${string}`) => Promise<any>;
|
|
6770
|
+
claimReward: () => Promise<any>;
|
|
6771
|
+
renounceOwnership: () => Promise<any>;
|
|
6772
|
+
transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
|
|
6773
|
+
}[];
|
|
7551
6774
|
myLstTokens: import("@dappworks/kit/aiem").QueryReturnType<MockLSTEntity, {
|
|
7552
6775
|
name: true;
|
|
6776
|
+
address: true;
|
|
6777
|
+
balanceOf: false | [
|
|
6778
|
+
`0x${string}`
|
|
6779
|
+
];
|
|
7553
6780
|
}>[];
|
|
7554
6781
|
}>;
|
|
7555
6782
|
myStakedBucketsAndLSTs(args: {
|
|
7556
6783
|
account: `0x${string}`;
|
|
7557
6784
|
}): Promise<{
|
|
7558
|
-
myStakedBuckets:
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
string
|
|
7564
|
-
];
|
|
7565
|
-
unstakeTime: [
|
|
7566
|
-
string
|
|
7567
|
-
];
|
|
7568
|
-
stakeStatus: [
|
|
7569
|
-
string
|
|
7570
|
-
];
|
|
7571
|
-
withdrawTime: [
|
|
7572
|
-
string
|
|
7573
|
-
];
|
|
7574
|
-
MockBucket: {
|
|
6785
|
+
myStakedBuckets: {
|
|
6786
|
+
bucketId: bigint;
|
|
6787
|
+
address: `0x${string}`;
|
|
6788
|
+
chainId: string;
|
|
6789
|
+
MockBucket: import("@dappworks/kit/aiem").QueryReturnType<MockBucketEntity, {
|
|
7575
6790
|
name: true;
|
|
6791
|
+
}>;
|
|
6792
|
+
pendingRewards: {
|
|
6793
|
+
value: string;
|
|
6794
|
+
format: string;
|
|
6795
|
+
originFormat: string;
|
|
6796
|
+
decimals: string;
|
|
6797
|
+
isZero: boolean;
|
|
7576
6798
|
};
|
|
7577
|
-
|
|
6799
|
+
owner: () => Promise<any>;
|
|
6800
|
+
stakeStatus: any;
|
|
6801
|
+
totalAmount: () => Promise<any>;
|
|
6802
|
+
unstakeTime: any;
|
|
6803
|
+
bucketAmount: any;
|
|
6804
|
+
bucketStaker: (_: string) => Promise<any>;
|
|
6805
|
+
withdrawTime: any;
|
|
6806
|
+
pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
|
|
6807
|
+
stakerBuckets: (staker: `0x${string}`) => Promise<any>;
|
|
6808
|
+
remainingReward: (_: `0x${string}`) => Promise<any>;
|
|
6809
|
+
strategyManager: () => Promise<any>;
|
|
6810
|
+
underlyingToken: () => Promise<any>;
|
|
6811
|
+
IOTX_REWARD_TOKEN: () => Promise<any>;
|
|
6812
|
+
accTokenPerAmount: (_: `0x${string}`) => Promise<any>;
|
|
6813
|
+
calculateBucketRestakeAmount: (_duration: string, _amount: string) => Promise<any>;
|
|
6814
|
+
poke: (bucketId: string) => Promise<any>;
|
|
6815
|
+
stake: (bucketId: string) => Promise<any>;
|
|
6816
|
+
deposit: (bucketId: string) => Promise<any>;
|
|
6817
|
+
unstake: (bucketIds: any[]) => Promise<any>;
|
|
6818
|
+
withdraw: (bucketIds: any[], recipient: `0x${string}`) => Promise<any>;
|
|
6819
|
+
claimReward: () => Promise<any>;
|
|
6820
|
+
renounceOwnership: () => Promise<any>;
|
|
6821
|
+
transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
|
|
6822
|
+
}[];
|
|
7578
6823
|
myLstStrategies: import("@dappworks/kit/aiem").QueryReturnType<LSTStrategyEntity, {
|
|
7579
6824
|
pendingRewards: [
|
|
7580
6825
|
`0x${string}`
|
|
7581
6826
|
];
|
|
7582
6827
|
address: true;
|
|
6828
|
+
amount: false | [
|
|
6829
|
+
`0x${string}`
|
|
6830
|
+
];
|
|
7583
6831
|
}>[];
|
|
7584
6832
|
}>;
|
|
7585
6833
|
stakeBucket(args: {
|