@iotexproject/kit 0.1.55 → 0.1.57
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 +870 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6664,6 +6664,7 @@ declare class MSP {
|
|
|
6664
6664
|
balanceOf: false | [
|
|
6665
6665
|
`0x${string}`
|
|
6666
6666
|
];
|
|
6667
|
+
tokenUrl: true;
|
|
6667
6668
|
}>;
|
|
6668
6669
|
pendingRewards: {
|
|
6669
6670
|
value: string;
|
|
@@ -6716,11 +6717,10 @@ declare class MSP {
|
|
|
6716
6717
|
contractAddress: `0x${string}`;
|
|
6717
6718
|
}, ctx?: ConfigContext): Promise<{
|
|
6718
6719
|
data: any;
|
|
6719
|
-
address:
|
|
6720
|
-
approve: any;
|
|
6721
|
-
approveAddress: string;
|
|
6720
|
+
address: string;
|
|
6722
6721
|
chainId: string;
|
|
6723
|
-
|
|
6722
|
+
type: string;
|
|
6723
|
+
}[]>;
|
|
6724
6724
|
unStakeBucket(args: {
|
|
6725
6725
|
bucketIds: string[];
|
|
6726
6726
|
}, ctx?: ConfigContext): Promise<{
|
|
@@ -6748,10 +6748,9 @@ declare class MSP {
|
|
|
6748
6748
|
}, ctx?: ConfigContext): Promise<{
|
|
6749
6749
|
data: any;
|
|
6750
6750
|
address: `0x${string}`;
|
|
6751
|
-
approve: `0x${string}` | null;
|
|
6752
|
-
approveAddress: `0x${string}`;
|
|
6753
6751
|
chainId: string;
|
|
6754
|
-
|
|
6752
|
+
type: string;
|
|
6753
|
+
}[]>;
|
|
6755
6754
|
unStakeERC20(args: {
|
|
6756
6755
|
erc20StrategyAddress: `0x${string}`;
|
|
6757
6756
|
amount: string;
|
|
@@ -7309,7 +7308,7 @@ declare class BondingCurve {
|
|
|
7309
7308
|
quote?: undefined;
|
|
7310
7309
|
}>;
|
|
7311
7310
|
}
|
|
7312
|
-
declare class
|
|
7311
|
+
declare class MimoV2MiningPool {
|
|
7313
7312
|
address: `0x${string}`;
|
|
7314
7313
|
chainId: string;
|
|
7315
7314
|
static abi: readonly [
|
|
@@ -7992,7 +7991,7 @@ declare class SmartChefEntity {
|
|
|
7992
7991
|
declare class LiquidityMining {
|
|
7993
7992
|
poolsList(args: {
|
|
7994
7993
|
account?: `0x${string}`;
|
|
7995
|
-
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<
|
|
7994
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<MimoV2MiningPool, {
|
|
7996
7995
|
RewardToken: true;
|
|
7997
7996
|
StakedToken: true;
|
|
7998
7997
|
endTime: true;
|
|
@@ -8045,6 +8044,867 @@ declare class LiquidityMining {
|
|
|
8045
8044
|
chainId: string;
|
|
8046
8045
|
}>;
|
|
8047
8046
|
}
|
|
8047
|
+
export type MimoV3MiningPoolKey = {
|
|
8048
|
+
rewardToken: `0x${string}`;
|
|
8049
|
+
pool: `0x${string}`;
|
|
8050
|
+
tickLower: number;
|
|
8051
|
+
tickUpper: number;
|
|
8052
|
+
startTime: bigint;
|
|
8053
|
+
endTime: bigint;
|
|
8054
|
+
refundee: `0x${string}`;
|
|
8055
|
+
};
|
|
8056
|
+
declare class MimoV3MiningManager {
|
|
8057
|
+
address: `0x${string}`;
|
|
8058
|
+
chainId: string;
|
|
8059
|
+
static abi: readonly [
|
|
8060
|
+
{
|
|
8061
|
+
readonly type: "function";
|
|
8062
|
+
readonly name: "claimReward";
|
|
8063
|
+
readonly inputs: readonly [
|
|
8064
|
+
{
|
|
8065
|
+
readonly name: "rewardToken";
|
|
8066
|
+
readonly type: "address";
|
|
8067
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8068
|
+
},
|
|
8069
|
+
{
|
|
8070
|
+
readonly name: "to";
|
|
8071
|
+
readonly type: "address";
|
|
8072
|
+
readonly internalType: "address";
|
|
8073
|
+
},
|
|
8074
|
+
{
|
|
8075
|
+
readonly name: "amountRequested";
|
|
8076
|
+
readonly type: "uint256";
|
|
8077
|
+
readonly internalType: "uint256";
|
|
8078
|
+
}
|
|
8079
|
+
];
|
|
8080
|
+
readonly outputs: readonly [
|
|
8081
|
+
{
|
|
8082
|
+
readonly name: "reward";
|
|
8083
|
+
readonly type: "uint256";
|
|
8084
|
+
readonly internalType: "uint256";
|
|
8085
|
+
}
|
|
8086
|
+
];
|
|
8087
|
+
readonly stateMutability: "nonpayable";
|
|
8088
|
+
},
|
|
8089
|
+
{
|
|
8090
|
+
readonly type: "function";
|
|
8091
|
+
readonly name: "createIncentive";
|
|
8092
|
+
readonly inputs: readonly [
|
|
8093
|
+
{
|
|
8094
|
+
readonly name: "key";
|
|
8095
|
+
readonly type: "tuple";
|
|
8096
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8097
|
+
readonly components: readonly [
|
|
8098
|
+
{
|
|
8099
|
+
readonly name: "rewardToken";
|
|
8100
|
+
readonly type: "address";
|
|
8101
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8102
|
+
},
|
|
8103
|
+
{
|
|
8104
|
+
readonly name: "pool";
|
|
8105
|
+
readonly type: "address";
|
|
8106
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
8107
|
+
},
|
|
8108
|
+
{
|
|
8109
|
+
readonly name: "tickLower";
|
|
8110
|
+
readonly type: "int24";
|
|
8111
|
+
readonly internalType: "int24";
|
|
8112
|
+
},
|
|
8113
|
+
{
|
|
8114
|
+
readonly name: "tickUpper";
|
|
8115
|
+
readonly type: "int24";
|
|
8116
|
+
readonly internalType: "int24";
|
|
8117
|
+
},
|
|
8118
|
+
{
|
|
8119
|
+
readonly name: "startTime";
|
|
8120
|
+
readonly type: "uint256";
|
|
8121
|
+
readonly internalType: "uint256";
|
|
8122
|
+
},
|
|
8123
|
+
{
|
|
8124
|
+
readonly name: "endTime";
|
|
8125
|
+
readonly type: "uint256";
|
|
8126
|
+
readonly internalType: "uint256";
|
|
8127
|
+
},
|
|
8128
|
+
{
|
|
8129
|
+
readonly name: "refundee";
|
|
8130
|
+
readonly type: "address";
|
|
8131
|
+
readonly internalType: "address";
|
|
8132
|
+
}
|
|
8133
|
+
];
|
|
8134
|
+
},
|
|
8135
|
+
{
|
|
8136
|
+
readonly name: "reward";
|
|
8137
|
+
readonly type: "uint256";
|
|
8138
|
+
readonly internalType: "uint256";
|
|
8139
|
+
}
|
|
8140
|
+
];
|
|
8141
|
+
readonly outputs: readonly [
|
|
8142
|
+
];
|
|
8143
|
+
readonly stateMutability: "nonpayable";
|
|
8144
|
+
},
|
|
8145
|
+
{
|
|
8146
|
+
readonly type: "function";
|
|
8147
|
+
readonly name: "deposits";
|
|
8148
|
+
readonly inputs: readonly [
|
|
8149
|
+
{
|
|
8150
|
+
readonly name: "tokenId";
|
|
8151
|
+
readonly type: "uint256";
|
|
8152
|
+
readonly internalType: "uint256";
|
|
8153
|
+
}
|
|
8154
|
+
];
|
|
8155
|
+
readonly outputs: readonly [
|
|
8156
|
+
{
|
|
8157
|
+
readonly name: "owner";
|
|
8158
|
+
readonly type: "address";
|
|
8159
|
+
readonly internalType: "address";
|
|
8160
|
+
},
|
|
8161
|
+
{
|
|
8162
|
+
readonly name: "numberOfStakes";
|
|
8163
|
+
readonly type: "uint48";
|
|
8164
|
+
readonly internalType: "uint48";
|
|
8165
|
+
},
|
|
8166
|
+
{
|
|
8167
|
+
readonly name: "tickLower";
|
|
8168
|
+
readonly type: "int24";
|
|
8169
|
+
readonly internalType: "int24";
|
|
8170
|
+
},
|
|
8171
|
+
{
|
|
8172
|
+
readonly name: "tickUpper";
|
|
8173
|
+
readonly type: "int24";
|
|
8174
|
+
readonly internalType: "int24";
|
|
8175
|
+
}
|
|
8176
|
+
];
|
|
8177
|
+
readonly stateMutability: "view";
|
|
8178
|
+
},
|
|
8179
|
+
{
|
|
8180
|
+
readonly type: "function";
|
|
8181
|
+
readonly name: "endIncentive";
|
|
8182
|
+
readonly inputs: readonly [
|
|
8183
|
+
{
|
|
8184
|
+
readonly name: "key";
|
|
8185
|
+
readonly type: "tuple";
|
|
8186
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8187
|
+
readonly components: readonly [
|
|
8188
|
+
{
|
|
8189
|
+
readonly name: "rewardToken";
|
|
8190
|
+
readonly type: "address";
|
|
8191
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8192
|
+
},
|
|
8193
|
+
{
|
|
8194
|
+
readonly name: "pool";
|
|
8195
|
+
readonly type: "address";
|
|
8196
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
8197
|
+
},
|
|
8198
|
+
{
|
|
8199
|
+
readonly name: "tickLower";
|
|
8200
|
+
readonly type: "int24";
|
|
8201
|
+
readonly internalType: "int24";
|
|
8202
|
+
},
|
|
8203
|
+
{
|
|
8204
|
+
readonly name: "tickUpper";
|
|
8205
|
+
readonly type: "int24";
|
|
8206
|
+
readonly internalType: "int24";
|
|
8207
|
+
},
|
|
8208
|
+
{
|
|
8209
|
+
readonly name: "startTime";
|
|
8210
|
+
readonly type: "uint256";
|
|
8211
|
+
readonly internalType: "uint256";
|
|
8212
|
+
},
|
|
8213
|
+
{
|
|
8214
|
+
readonly name: "endTime";
|
|
8215
|
+
readonly type: "uint256";
|
|
8216
|
+
readonly internalType: "uint256";
|
|
8217
|
+
},
|
|
8218
|
+
{
|
|
8219
|
+
readonly name: "refundee";
|
|
8220
|
+
readonly type: "address";
|
|
8221
|
+
readonly internalType: "address";
|
|
8222
|
+
}
|
|
8223
|
+
];
|
|
8224
|
+
}
|
|
8225
|
+
];
|
|
8226
|
+
readonly outputs: readonly [
|
|
8227
|
+
{
|
|
8228
|
+
readonly name: "refund";
|
|
8229
|
+
readonly type: "uint256";
|
|
8230
|
+
readonly internalType: "uint256";
|
|
8231
|
+
}
|
|
8232
|
+
];
|
|
8233
|
+
readonly stateMutability: "nonpayable";
|
|
8234
|
+
},
|
|
8235
|
+
{
|
|
8236
|
+
readonly type: "function";
|
|
8237
|
+
readonly name: "factory";
|
|
8238
|
+
readonly inputs: readonly [
|
|
8239
|
+
];
|
|
8240
|
+
readonly outputs: readonly [
|
|
8241
|
+
{
|
|
8242
|
+
readonly name: "";
|
|
8243
|
+
readonly type: "address";
|
|
8244
|
+
readonly internalType: "contract IUniswapV3Factory";
|
|
8245
|
+
}
|
|
8246
|
+
];
|
|
8247
|
+
readonly stateMutability: "view";
|
|
8248
|
+
},
|
|
8249
|
+
{
|
|
8250
|
+
readonly type: "function";
|
|
8251
|
+
readonly name: "getRewardInfo";
|
|
8252
|
+
readonly inputs: readonly [
|
|
8253
|
+
{
|
|
8254
|
+
readonly name: "key";
|
|
8255
|
+
readonly type: "tuple";
|
|
8256
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8257
|
+
readonly components: readonly [
|
|
8258
|
+
{
|
|
8259
|
+
readonly name: "rewardToken";
|
|
8260
|
+
readonly type: "address";
|
|
8261
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8262
|
+
},
|
|
8263
|
+
{
|
|
8264
|
+
readonly name: "pool";
|
|
8265
|
+
readonly type: "address";
|
|
8266
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
8267
|
+
},
|
|
8268
|
+
{
|
|
8269
|
+
readonly name: "tickLower";
|
|
8270
|
+
readonly type: "int24";
|
|
8271
|
+
readonly internalType: "int24";
|
|
8272
|
+
},
|
|
8273
|
+
{
|
|
8274
|
+
readonly name: "tickUpper";
|
|
8275
|
+
readonly type: "int24";
|
|
8276
|
+
readonly internalType: "int24";
|
|
8277
|
+
},
|
|
8278
|
+
{
|
|
8279
|
+
readonly name: "startTime";
|
|
8280
|
+
readonly type: "uint256";
|
|
8281
|
+
readonly internalType: "uint256";
|
|
8282
|
+
},
|
|
8283
|
+
{
|
|
8284
|
+
readonly name: "endTime";
|
|
8285
|
+
readonly type: "uint256";
|
|
8286
|
+
readonly internalType: "uint256";
|
|
8287
|
+
},
|
|
8288
|
+
{
|
|
8289
|
+
readonly name: "refundee";
|
|
8290
|
+
readonly type: "address";
|
|
8291
|
+
readonly internalType: "address";
|
|
8292
|
+
}
|
|
8293
|
+
];
|
|
8294
|
+
},
|
|
8295
|
+
{
|
|
8296
|
+
readonly name: "tokenId";
|
|
8297
|
+
readonly type: "uint256";
|
|
8298
|
+
readonly internalType: "uint256";
|
|
8299
|
+
}
|
|
8300
|
+
];
|
|
8301
|
+
readonly outputs: readonly [
|
|
8302
|
+
{
|
|
8303
|
+
readonly name: "reward";
|
|
8304
|
+
readonly type: "uint256";
|
|
8305
|
+
readonly internalType: "uint256";
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
readonly name: "secondsInsideX128";
|
|
8309
|
+
readonly type: "uint160";
|
|
8310
|
+
readonly internalType: "uint160";
|
|
8311
|
+
}
|
|
8312
|
+
];
|
|
8313
|
+
readonly stateMutability: "nonpayable";
|
|
8314
|
+
},
|
|
8315
|
+
{
|
|
8316
|
+
readonly type: "function";
|
|
8317
|
+
readonly name: "incentives";
|
|
8318
|
+
readonly inputs: readonly [
|
|
8319
|
+
{
|
|
8320
|
+
readonly name: "incentiveId";
|
|
8321
|
+
readonly type: "bytes32";
|
|
8322
|
+
readonly internalType: "bytes32";
|
|
8323
|
+
}
|
|
8324
|
+
];
|
|
8325
|
+
readonly outputs: readonly [
|
|
8326
|
+
{
|
|
8327
|
+
readonly name: "totalRewardUnclaimed";
|
|
8328
|
+
readonly type: "uint256";
|
|
8329
|
+
readonly internalType: "uint256";
|
|
8330
|
+
},
|
|
8331
|
+
{
|
|
8332
|
+
readonly name: "totalSecondsClaimedX128";
|
|
8333
|
+
readonly type: "uint160";
|
|
8334
|
+
readonly internalType: "uint160";
|
|
8335
|
+
},
|
|
8336
|
+
{
|
|
8337
|
+
readonly name: "numberOfStakes";
|
|
8338
|
+
readonly type: "uint96";
|
|
8339
|
+
readonly internalType: "uint96";
|
|
8340
|
+
}
|
|
8341
|
+
];
|
|
8342
|
+
readonly stateMutability: "view";
|
|
8343
|
+
},
|
|
8344
|
+
{
|
|
8345
|
+
readonly type: "function";
|
|
8346
|
+
readonly name: "maxIncentiveDuration";
|
|
8347
|
+
readonly inputs: readonly [
|
|
8348
|
+
];
|
|
8349
|
+
readonly outputs: readonly [
|
|
8350
|
+
{
|
|
8351
|
+
readonly name: "";
|
|
8352
|
+
readonly type: "uint256";
|
|
8353
|
+
readonly internalType: "uint256";
|
|
8354
|
+
}
|
|
8355
|
+
];
|
|
8356
|
+
readonly stateMutability: "view";
|
|
8357
|
+
},
|
|
8358
|
+
{
|
|
8359
|
+
readonly type: "function";
|
|
8360
|
+
readonly name: "maxIncentiveStartLeadTime";
|
|
8361
|
+
readonly inputs: readonly [
|
|
8362
|
+
];
|
|
8363
|
+
readonly outputs: readonly [
|
|
8364
|
+
{
|
|
8365
|
+
readonly name: "";
|
|
8366
|
+
readonly type: "uint256";
|
|
8367
|
+
readonly internalType: "uint256";
|
|
8368
|
+
}
|
|
8369
|
+
];
|
|
8370
|
+
readonly stateMutability: "view";
|
|
8371
|
+
},
|
|
8372
|
+
{
|
|
8373
|
+
readonly type: "function";
|
|
8374
|
+
readonly name: "multicall";
|
|
8375
|
+
readonly inputs: readonly [
|
|
8376
|
+
{
|
|
8377
|
+
readonly name: "data";
|
|
8378
|
+
readonly type: "bytes[]";
|
|
8379
|
+
readonly internalType: "bytes[]";
|
|
8380
|
+
}
|
|
8381
|
+
];
|
|
8382
|
+
readonly outputs: readonly [
|
|
8383
|
+
{
|
|
8384
|
+
readonly name: "results";
|
|
8385
|
+
readonly type: "bytes[]";
|
|
8386
|
+
readonly internalType: "bytes[]";
|
|
8387
|
+
}
|
|
8388
|
+
];
|
|
8389
|
+
readonly stateMutability: "payable";
|
|
8390
|
+
},
|
|
8391
|
+
{
|
|
8392
|
+
readonly type: "function";
|
|
8393
|
+
readonly name: "nonfungiblePositionManager";
|
|
8394
|
+
readonly inputs: readonly [
|
|
8395
|
+
];
|
|
8396
|
+
readonly outputs: readonly [
|
|
8397
|
+
{
|
|
8398
|
+
readonly name: "";
|
|
8399
|
+
readonly type: "address";
|
|
8400
|
+
readonly internalType: "contract INonfungiblePositionManager";
|
|
8401
|
+
}
|
|
8402
|
+
];
|
|
8403
|
+
readonly stateMutability: "view";
|
|
8404
|
+
},
|
|
8405
|
+
{
|
|
8406
|
+
readonly type: "function";
|
|
8407
|
+
readonly name: "onERC721Received";
|
|
8408
|
+
readonly inputs: readonly [
|
|
8409
|
+
{
|
|
8410
|
+
readonly name: "operator";
|
|
8411
|
+
readonly type: "address";
|
|
8412
|
+
readonly internalType: "address";
|
|
8413
|
+
},
|
|
8414
|
+
{
|
|
8415
|
+
readonly name: "from";
|
|
8416
|
+
readonly type: "address";
|
|
8417
|
+
readonly internalType: "address";
|
|
8418
|
+
},
|
|
8419
|
+
{
|
|
8420
|
+
readonly name: "tokenId";
|
|
8421
|
+
readonly type: "uint256";
|
|
8422
|
+
readonly internalType: "uint256";
|
|
8423
|
+
},
|
|
8424
|
+
{
|
|
8425
|
+
readonly name: "data";
|
|
8426
|
+
readonly type: "bytes";
|
|
8427
|
+
readonly internalType: "bytes";
|
|
8428
|
+
}
|
|
8429
|
+
];
|
|
8430
|
+
readonly outputs: readonly [
|
|
8431
|
+
{
|
|
8432
|
+
readonly name: "";
|
|
8433
|
+
readonly type: "bytes4";
|
|
8434
|
+
readonly internalType: "bytes4";
|
|
8435
|
+
}
|
|
8436
|
+
];
|
|
8437
|
+
readonly stateMutability: "nonpayable";
|
|
8438
|
+
},
|
|
8439
|
+
{
|
|
8440
|
+
readonly type: "function";
|
|
8441
|
+
readonly name: "rewards";
|
|
8442
|
+
readonly inputs: readonly [
|
|
8443
|
+
{
|
|
8444
|
+
readonly name: "rewardToken";
|
|
8445
|
+
readonly type: "address";
|
|
8446
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8447
|
+
},
|
|
8448
|
+
{
|
|
8449
|
+
readonly name: "owner";
|
|
8450
|
+
readonly type: "address";
|
|
8451
|
+
readonly internalType: "address";
|
|
8452
|
+
}
|
|
8453
|
+
];
|
|
8454
|
+
readonly outputs: readonly [
|
|
8455
|
+
{
|
|
8456
|
+
readonly name: "rewardsOwed";
|
|
8457
|
+
readonly type: "uint256";
|
|
8458
|
+
readonly internalType: "uint256";
|
|
8459
|
+
}
|
|
8460
|
+
];
|
|
8461
|
+
readonly stateMutability: "view";
|
|
8462
|
+
},
|
|
8463
|
+
{
|
|
8464
|
+
readonly type: "function";
|
|
8465
|
+
readonly name: "stakeToken";
|
|
8466
|
+
readonly inputs: readonly [
|
|
8467
|
+
{
|
|
8468
|
+
readonly name: "key";
|
|
8469
|
+
readonly type: "tuple";
|
|
8470
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8471
|
+
readonly components: readonly [
|
|
8472
|
+
{
|
|
8473
|
+
readonly name: "rewardToken";
|
|
8474
|
+
readonly type: "address";
|
|
8475
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8476
|
+
},
|
|
8477
|
+
{
|
|
8478
|
+
readonly name: "pool";
|
|
8479
|
+
readonly type: "address";
|
|
8480
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
8481
|
+
},
|
|
8482
|
+
{
|
|
8483
|
+
readonly name: "tickLower";
|
|
8484
|
+
readonly type: "int24";
|
|
8485
|
+
readonly internalType: "int24";
|
|
8486
|
+
},
|
|
8487
|
+
{
|
|
8488
|
+
readonly name: "tickUpper";
|
|
8489
|
+
readonly type: "int24";
|
|
8490
|
+
readonly internalType: "int24";
|
|
8491
|
+
},
|
|
8492
|
+
{
|
|
8493
|
+
readonly name: "startTime";
|
|
8494
|
+
readonly type: "uint256";
|
|
8495
|
+
readonly internalType: "uint256";
|
|
8496
|
+
},
|
|
8497
|
+
{
|
|
8498
|
+
readonly name: "endTime";
|
|
8499
|
+
readonly type: "uint256";
|
|
8500
|
+
readonly internalType: "uint256";
|
|
8501
|
+
},
|
|
8502
|
+
{
|
|
8503
|
+
readonly name: "refundee";
|
|
8504
|
+
readonly type: "address";
|
|
8505
|
+
readonly internalType: "address";
|
|
8506
|
+
}
|
|
8507
|
+
];
|
|
8508
|
+
},
|
|
8509
|
+
{
|
|
8510
|
+
readonly name: "tokenId";
|
|
8511
|
+
readonly type: "uint256";
|
|
8512
|
+
readonly internalType: "uint256";
|
|
8513
|
+
}
|
|
8514
|
+
];
|
|
8515
|
+
readonly outputs: readonly [
|
|
8516
|
+
];
|
|
8517
|
+
readonly stateMutability: "nonpayable";
|
|
8518
|
+
},
|
|
8519
|
+
{
|
|
8520
|
+
readonly type: "function";
|
|
8521
|
+
readonly name: "stakes";
|
|
8522
|
+
readonly inputs: readonly [
|
|
8523
|
+
{
|
|
8524
|
+
readonly name: "tokenId";
|
|
8525
|
+
readonly type: "uint256";
|
|
8526
|
+
readonly internalType: "uint256";
|
|
8527
|
+
},
|
|
8528
|
+
{
|
|
8529
|
+
readonly name: "incentiveId";
|
|
8530
|
+
readonly type: "bytes32";
|
|
8531
|
+
readonly internalType: "bytes32";
|
|
8532
|
+
}
|
|
8533
|
+
];
|
|
8534
|
+
readonly outputs: readonly [
|
|
8535
|
+
{
|
|
8536
|
+
readonly name: "secondsPerLiquidityInsideInitialX128";
|
|
8537
|
+
readonly type: "uint160";
|
|
8538
|
+
readonly internalType: "uint160";
|
|
8539
|
+
},
|
|
8540
|
+
{
|
|
8541
|
+
readonly name: "liquidity";
|
|
8542
|
+
readonly type: "uint128";
|
|
8543
|
+
readonly internalType: "uint128";
|
|
8544
|
+
}
|
|
8545
|
+
];
|
|
8546
|
+
readonly stateMutability: "view";
|
|
8547
|
+
},
|
|
8548
|
+
{
|
|
8549
|
+
readonly type: "function";
|
|
8550
|
+
readonly name: "transferDeposit";
|
|
8551
|
+
readonly inputs: readonly [
|
|
8552
|
+
{
|
|
8553
|
+
readonly name: "tokenId";
|
|
8554
|
+
readonly type: "uint256";
|
|
8555
|
+
readonly internalType: "uint256";
|
|
8556
|
+
},
|
|
8557
|
+
{
|
|
8558
|
+
readonly name: "to";
|
|
8559
|
+
readonly type: "address";
|
|
8560
|
+
readonly internalType: "address";
|
|
8561
|
+
}
|
|
8562
|
+
];
|
|
8563
|
+
readonly outputs: readonly [
|
|
8564
|
+
];
|
|
8565
|
+
readonly stateMutability: "nonpayable";
|
|
8566
|
+
},
|
|
8567
|
+
{
|
|
8568
|
+
readonly type: "function";
|
|
8569
|
+
readonly name: "unstakeToken";
|
|
8570
|
+
readonly inputs: readonly [
|
|
8571
|
+
{
|
|
8572
|
+
readonly name: "key";
|
|
8573
|
+
readonly type: "tuple";
|
|
8574
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8575
|
+
readonly components: readonly [
|
|
8576
|
+
{
|
|
8577
|
+
readonly name: "rewardToken";
|
|
8578
|
+
readonly type: "address";
|
|
8579
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8580
|
+
},
|
|
8581
|
+
{
|
|
8582
|
+
readonly name: "pool";
|
|
8583
|
+
readonly type: "address";
|
|
8584
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
8585
|
+
},
|
|
8586
|
+
{
|
|
8587
|
+
readonly name: "tickLower";
|
|
8588
|
+
readonly type: "int24";
|
|
8589
|
+
readonly internalType: "int24";
|
|
8590
|
+
},
|
|
8591
|
+
{
|
|
8592
|
+
readonly name: "tickUpper";
|
|
8593
|
+
readonly type: "int24";
|
|
8594
|
+
readonly internalType: "int24";
|
|
8595
|
+
},
|
|
8596
|
+
{
|
|
8597
|
+
readonly name: "startTime";
|
|
8598
|
+
readonly type: "uint256";
|
|
8599
|
+
readonly internalType: "uint256";
|
|
8600
|
+
},
|
|
8601
|
+
{
|
|
8602
|
+
readonly name: "endTime";
|
|
8603
|
+
readonly type: "uint256";
|
|
8604
|
+
readonly internalType: "uint256";
|
|
8605
|
+
},
|
|
8606
|
+
{
|
|
8607
|
+
readonly name: "refundee";
|
|
8608
|
+
readonly type: "address";
|
|
8609
|
+
readonly internalType: "address";
|
|
8610
|
+
}
|
|
8611
|
+
];
|
|
8612
|
+
},
|
|
8613
|
+
{
|
|
8614
|
+
readonly name: "tokenId";
|
|
8615
|
+
readonly type: "uint256";
|
|
8616
|
+
readonly internalType: "uint256";
|
|
8617
|
+
}
|
|
8618
|
+
];
|
|
8619
|
+
readonly outputs: readonly [
|
|
8620
|
+
];
|
|
8621
|
+
readonly stateMutability: "nonpayable";
|
|
8622
|
+
},
|
|
8623
|
+
{
|
|
8624
|
+
readonly type: "function";
|
|
8625
|
+
readonly name: "withdrawToken";
|
|
8626
|
+
readonly inputs: readonly [
|
|
8627
|
+
{
|
|
8628
|
+
readonly name: "tokenId";
|
|
8629
|
+
readonly type: "uint256";
|
|
8630
|
+
readonly internalType: "uint256";
|
|
8631
|
+
},
|
|
8632
|
+
{
|
|
8633
|
+
readonly name: "to";
|
|
8634
|
+
readonly type: "address";
|
|
8635
|
+
readonly internalType: "address";
|
|
8636
|
+
},
|
|
8637
|
+
{
|
|
8638
|
+
readonly name: "data";
|
|
8639
|
+
readonly type: "bytes";
|
|
8640
|
+
readonly internalType: "bytes";
|
|
8641
|
+
}
|
|
8642
|
+
];
|
|
8643
|
+
readonly outputs: readonly [
|
|
8644
|
+
];
|
|
8645
|
+
readonly stateMutability: "nonpayable";
|
|
8646
|
+
},
|
|
8647
|
+
{
|
|
8648
|
+
readonly type: "event";
|
|
8649
|
+
readonly name: "DepositTransferred";
|
|
8650
|
+
readonly inputs: readonly [
|
|
8651
|
+
{
|
|
8652
|
+
readonly name: "tokenId";
|
|
8653
|
+
readonly type: "uint256";
|
|
8654
|
+
readonly indexed: true;
|
|
8655
|
+
readonly internalType: "uint256";
|
|
8656
|
+
},
|
|
8657
|
+
{
|
|
8658
|
+
readonly name: "oldOwner";
|
|
8659
|
+
readonly type: "address";
|
|
8660
|
+
readonly indexed: true;
|
|
8661
|
+
readonly internalType: "address";
|
|
8662
|
+
},
|
|
8663
|
+
{
|
|
8664
|
+
readonly name: "newOwner";
|
|
8665
|
+
readonly type: "address";
|
|
8666
|
+
readonly indexed: true;
|
|
8667
|
+
readonly internalType: "address";
|
|
8668
|
+
}
|
|
8669
|
+
];
|
|
8670
|
+
readonly anonymous: false;
|
|
8671
|
+
},
|
|
8672
|
+
{
|
|
8673
|
+
readonly type: "event";
|
|
8674
|
+
readonly name: "IncentiveCreated";
|
|
8675
|
+
readonly inputs: readonly [
|
|
8676
|
+
{
|
|
8677
|
+
readonly name: "rewardToken";
|
|
8678
|
+
readonly type: "address";
|
|
8679
|
+
readonly indexed: true;
|
|
8680
|
+
readonly internalType: "contract IERC20Minimal";
|
|
8681
|
+
},
|
|
8682
|
+
{
|
|
8683
|
+
readonly name: "pool";
|
|
8684
|
+
readonly type: "address";
|
|
8685
|
+
readonly indexed: true;
|
|
8686
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
8687
|
+
},
|
|
8688
|
+
{
|
|
8689
|
+
readonly name: "tickLower";
|
|
8690
|
+
readonly type: "int24";
|
|
8691
|
+
readonly indexed: false;
|
|
8692
|
+
readonly internalType: "int24";
|
|
8693
|
+
},
|
|
8694
|
+
{
|
|
8695
|
+
readonly name: "tickUpper";
|
|
8696
|
+
readonly type: "int24";
|
|
8697
|
+
readonly indexed: false;
|
|
8698
|
+
readonly internalType: "int24";
|
|
8699
|
+
},
|
|
8700
|
+
{
|
|
8701
|
+
readonly name: "startTime";
|
|
8702
|
+
readonly type: "uint256";
|
|
8703
|
+
readonly indexed: false;
|
|
8704
|
+
readonly internalType: "uint256";
|
|
8705
|
+
},
|
|
8706
|
+
{
|
|
8707
|
+
readonly name: "endTime";
|
|
8708
|
+
readonly type: "uint256";
|
|
8709
|
+
readonly indexed: false;
|
|
8710
|
+
readonly internalType: "uint256";
|
|
8711
|
+
},
|
|
8712
|
+
{
|
|
8713
|
+
readonly name: "refundee";
|
|
8714
|
+
readonly type: "address";
|
|
8715
|
+
readonly indexed: false;
|
|
8716
|
+
readonly internalType: "address";
|
|
8717
|
+
},
|
|
8718
|
+
{
|
|
8719
|
+
readonly name: "reward";
|
|
8720
|
+
readonly type: "uint256";
|
|
8721
|
+
readonly indexed: false;
|
|
8722
|
+
readonly internalType: "uint256";
|
|
8723
|
+
}
|
|
8724
|
+
];
|
|
8725
|
+
readonly anonymous: false;
|
|
8726
|
+
},
|
|
8727
|
+
{
|
|
8728
|
+
readonly type: "event";
|
|
8729
|
+
readonly name: "IncentiveEnded";
|
|
8730
|
+
readonly inputs: readonly [
|
|
8731
|
+
{
|
|
8732
|
+
readonly name: "incentiveId";
|
|
8733
|
+
readonly type: "bytes32";
|
|
8734
|
+
readonly indexed: true;
|
|
8735
|
+
readonly internalType: "bytes32";
|
|
8736
|
+
},
|
|
8737
|
+
{
|
|
8738
|
+
readonly name: "refund";
|
|
8739
|
+
readonly type: "uint256";
|
|
8740
|
+
readonly indexed: false;
|
|
8741
|
+
readonly internalType: "uint256";
|
|
8742
|
+
}
|
|
8743
|
+
];
|
|
8744
|
+
readonly anonymous: false;
|
|
8745
|
+
},
|
|
8746
|
+
{
|
|
8747
|
+
readonly type: "event";
|
|
8748
|
+
readonly name: "RewardClaimed";
|
|
8749
|
+
readonly inputs: readonly [
|
|
8750
|
+
{
|
|
8751
|
+
readonly name: "to";
|
|
8752
|
+
readonly type: "address";
|
|
8753
|
+
readonly indexed: true;
|
|
8754
|
+
readonly internalType: "address";
|
|
8755
|
+
},
|
|
8756
|
+
{
|
|
8757
|
+
readonly name: "reward";
|
|
8758
|
+
readonly type: "uint256";
|
|
8759
|
+
readonly indexed: false;
|
|
8760
|
+
readonly internalType: "uint256";
|
|
8761
|
+
}
|
|
8762
|
+
];
|
|
8763
|
+
readonly anonymous: false;
|
|
8764
|
+
},
|
|
8765
|
+
{
|
|
8766
|
+
readonly type: "event";
|
|
8767
|
+
readonly name: "TokenStaked";
|
|
8768
|
+
readonly inputs: readonly [
|
|
8769
|
+
{
|
|
8770
|
+
readonly name: "tokenId";
|
|
8771
|
+
readonly type: "uint256";
|
|
8772
|
+
readonly indexed: true;
|
|
8773
|
+
readonly internalType: "uint256";
|
|
8774
|
+
},
|
|
8775
|
+
{
|
|
8776
|
+
readonly name: "incentiveId";
|
|
8777
|
+
readonly type: "bytes32";
|
|
8778
|
+
readonly indexed: true;
|
|
8779
|
+
readonly internalType: "bytes32";
|
|
8780
|
+
},
|
|
8781
|
+
{
|
|
8782
|
+
readonly name: "liquidity";
|
|
8783
|
+
readonly type: "uint128";
|
|
8784
|
+
readonly indexed: false;
|
|
8785
|
+
readonly internalType: "uint128";
|
|
8786
|
+
}
|
|
8787
|
+
];
|
|
8788
|
+
readonly anonymous: false;
|
|
8789
|
+
},
|
|
8790
|
+
{
|
|
8791
|
+
readonly type: "event";
|
|
8792
|
+
readonly name: "TokenUnstaked";
|
|
8793
|
+
readonly inputs: readonly [
|
|
8794
|
+
{
|
|
8795
|
+
readonly name: "tokenId";
|
|
8796
|
+
readonly type: "uint256";
|
|
8797
|
+
readonly indexed: true;
|
|
8798
|
+
readonly internalType: "uint256";
|
|
8799
|
+
},
|
|
8800
|
+
{
|
|
8801
|
+
readonly name: "incentiveId";
|
|
8802
|
+
readonly type: "bytes32";
|
|
8803
|
+
readonly indexed: true;
|
|
8804
|
+
readonly internalType: "bytes32";
|
|
8805
|
+
}
|
|
8806
|
+
];
|
|
8807
|
+
readonly anonymous: false;
|
|
8808
|
+
}
|
|
8809
|
+
];
|
|
8810
|
+
safeTransferFrom(account: `0x${string}`, to: `0x${string}`, tokenId: number): Promise<`0x${string}`>;
|
|
8811
|
+
rewards: (rewardToken: `0x${string}`, account: `0x${string}`) => Promise<any>;
|
|
8812
|
+
multicall: (data: `0x${string}`[]) => Promise<any>;
|
|
8813
|
+
stakeToken: (key: MimoV3MiningPoolKey, v3PositionId: number) => Promise<any>;
|
|
8814
|
+
claimReward: (rewardToken: `0x${string}`, to: `0x${string}`, amountRequested: bigint) => Promise<any>;
|
|
8815
|
+
unstakeToken: (key: MimoV3MiningPoolKey, v3PositionId: number) => Promise<any>;
|
|
8816
|
+
withdrawToken: (tokenId: number, to: `0x${string}`, data: `0x${string}`) => Promise<any>;
|
|
8817
|
+
usersPositions(account: `0x${string}`): Promise<{
|
|
8818
|
+
token0Address: `0x${string}`;
|
|
8819
|
+
token1Address: `0x${string}`;
|
|
8820
|
+
fee: number;
|
|
8821
|
+
tickLower: number;
|
|
8822
|
+
tickUpper: number;
|
|
8823
|
+
tokenId: bigint;
|
|
8824
|
+
}[] | undefined>;
|
|
8825
|
+
}
|
|
8826
|
+
declare class LiquidityMiningV3 {
|
|
8827
|
+
poolsList(args: {
|
|
8828
|
+
account?: `0x${string}`;
|
|
8829
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8830
|
+
tickLower: number;
|
|
8831
|
+
tickUpper: number;
|
|
8832
|
+
startTime: bigint;
|
|
8833
|
+
endTime: bigint;
|
|
8834
|
+
key: MimoV3MiningPoolKey;
|
|
8835
|
+
address: `0x${string}`;
|
|
8836
|
+
chainId: string;
|
|
8837
|
+
Token0: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8838
|
+
address: true;
|
|
8839
|
+
symbol: true;
|
|
8840
|
+
name: true;
|
|
8841
|
+
decimals: true;
|
|
8842
|
+
tokenUrl: true;
|
|
8843
|
+
}>;
|
|
8844
|
+
Token1: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8845
|
+
address: true;
|
|
8846
|
+
symbol: true;
|
|
8847
|
+
name: true;
|
|
8848
|
+
decimals: true;
|
|
8849
|
+
tokenUrl: true;
|
|
8850
|
+
}>;
|
|
8851
|
+
token0: () => Promise<any>;
|
|
8852
|
+
token1: () => Promise<any>;
|
|
8853
|
+
fee: any;
|
|
8854
|
+
rewards: import("@dappworks/kit/aiem").QueryReturnType<MimoV3MiningManager, {
|
|
8855
|
+
rewards: [
|
|
8856
|
+
`0x${string}`,
|
|
8857
|
+
`0x${string}`
|
|
8858
|
+
];
|
|
8859
|
+
}>;
|
|
8860
|
+
isNew: boolean;
|
|
8861
|
+
isExpired: boolean;
|
|
8862
|
+
balanceOfPosition: {
|
|
8863
|
+
token0Address: `0x${string}`;
|
|
8864
|
+
token1Address: `0x${string}`;
|
|
8865
|
+
fee: number;
|
|
8866
|
+
tickLower: number;
|
|
8867
|
+
tickUpper: number;
|
|
8868
|
+
tokenId: bigint;
|
|
8869
|
+
}[] | undefined;
|
|
8870
|
+
RewardToken: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8871
|
+
symbol: true;
|
|
8872
|
+
name: true;
|
|
8873
|
+
decimals: true;
|
|
8874
|
+
tokenUrl: true;
|
|
8875
|
+
}>;
|
|
8876
|
+
}[]>;
|
|
8877
|
+
deposit(args: {
|
|
8878
|
+
key: MimoV3MiningPoolKey;
|
|
8879
|
+
v3PositionId: number;
|
|
8880
|
+
account: `0x${string}`;
|
|
8881
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8882
|
+
data: any;
|
|
8883
|
+
address: string;
|
|
8884
|
+
chainId: string;
|
|
8885
|
+
}>;
|
|
8886
|
+
harvest(args: {
|
|
8887
|
+
rewardToken: `0x${string}`;
|
|
8888
|
+
account: `0x${string}`;
|
|
8889
|
+
amount: string;
|
|
8890
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<MimoV3MiningManager, {
|
|
8891
|
+
claimReward: [
|
|
8892
|
+
`0x${string}`,
|
|
8893
|
+
`0x${string}`,
|
|
8894
|
+
bigint
|
|
8895
|
+
];
|
|
8896
|
+
}>>;
|
|
8897
|
+
withdraw(args: {
|
|
8898
|
+
key: MimoV3MiningPoolKey;
|
|
8899
|
+
v3PositionId: number;
|
|
8900
|
+
account: `0x${string}`;
|
|
8901
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8902
|
+
data: any;
|
|
8903
|
+
address: string;
|
|
8904
|
+
chainId: string;
|
|
8905
|
+
type: string;
|
|
8906
|
+
}[]>;
|
|
8907
|
+
}
|
|
8048
8908
|
declare const modules: {
|
|
8049
8909
|
mimo: Mimo;
|
|
8050
8910
|
staking: Staking;
|
|
@@ -8057,6 +8917,7 @@ declare const modules: {
|
|
|
8057
8917
|
points: PointsPlatform;
|
|
8058
8918
|
bondingcurve: BondingCurve;
|
|
8059
8919
|
liquidityMining: LiquidityMining;
|
|
8920
|
+
liquidityMiningV3: LiquidityMiningV3;
|
|
8060
8921
|
};
|
|
8061
8922
|
export type ModuleType = typeof modules;
|
|
8062
8923
|
declare class ClickHouseSDK {
|