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