@iotexproject/kit 0.1.65 → 0.1.67
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 +511 -825
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -8009,6 +8009,15 @@ declare class MimoV2MiningPool {
|
|
|
8009
8009
|
deposit: (_amount: string) => Promise<any>;
|
|
8010
8010
|
withdraw: (_amount: string) => Promise<any>;
|
|
8011
8011
|
}
|
|
8012
|
+
export type MimoV3MiningPoolKey = {
|
|
8013
|
+
rewardToken: `0x${string}`;
|
|
8014
|
+
pool: `0x${string}`;
|
|
8015
|
+
tickLower: number;
|
|
8016
|
+
tickUpper: number;
|
|
8017
|
+
startTime: bigint;
|
|
8018
|
+
endTime: bigint;
|
|
8019
|
+
refundee: `0x${string}`;
|
|
8020
|
+
};
|
|
8012
8021
|
declare class LiquidityMining {
|
|
8013
8022
|
poolsList(args: {
|
|
8014
8023
|
account?: `0x${string}`;
|
|
@@ -8048,849 +8057,394 @@ declare class LiquidityMining {
|
|
|
8048
8057
|
totalStakedBalance: true;
|
|
8049
8058
|
dailyRewards: true;
|
|
8050
8059
|
}>[]>;
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
account: `0x${string}`;
|
|
8055
|
-
}, ctx?: ConfigContext): Promise<{
|
|
8056
|
-
data: any;
|
|
8057
|
-
address: `0x${string}`;
|
|
8058
|
-
chainId: string;
|
|
8060
|
+
allPoolsList(args: {
|
|
8061
|
+
account?: `0x${string}`;
|
|
8062
|
+
}, ctx?: ConfigContext): Promise<({
|
|
8059
8063
|
type: string;
|
|
8060
|
-
}[]>;
|
|
8061
|
-
harvest({ address }: {
|
|
8062
|
-
address: `0x${string}`;
|
|
8063
|
-
}, ctx?: ConfigContext): Promise<{
|
|
8064
|
-
data: `0x${string}`;
|
|
8065
8064
|
address: `0x${string}`;
|
|
8066
8065
|
chainId: string;
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8066
|
+
endTime: number | undefined;
|
|
8067
|
+
startTime: number | undefined;
|
|
8068
|
+
isNew: boolean;
|
|
8069
|
+
isExpired: boolean;
|
|
8070
|
+
myPoolBalance: {
|
|
8071
|
+
myPoolBalance: {
|
|
8072
|
+
value: string;
|
|
8073
|
+
format: string;
|
|
8074
|
+
originFormat: string;
|
|
8075
|
+
decimals: string;
|
|
8076
|
+
};
|
|
8077
|
+
myPoolBalanceUSD: string;
|
|
8078
|
+
} | null;
|
|
8079
|
+
rewardPerSecond: () => Promise<bigint | undefined>;
|
|
8080
|
+
apr: string;
|
|
8081
|
+
myPendingReward: {
|
|
8082
|
+
pendingReward: {
|
|
8083
|
+
value: string;
|
|
8084
|
+
format: string;
|
|
8085
|
+
originFormat: string;
|
|
8086
|
+
decimals: string;
|
|
8087
|
+
};
|
|
8088
|
+
pendingRewardUSD: string;
|
|
8089
|
+
};
|
|
8090
|
+
totalReward: {
|
|
8091
|
+
totalRewardUSD: string;
|
|
8092
|
+
totalReward: {
|
|
8093
|
+
value: string;
|
|
8094
|
+
format: string;
|
|
8095
|
+
originFormat: string;
|
|
8096
|
+
decimals: string;
|
|
8097
|
+
};
|
|
8098
|
+
} | null | undefined;
|
|
8099
|
+
dailyRewards: {
|
|
8100
|
+
dailyRewardUSD: string;
|
|
8101
|
+
dailyReward: {
|
|
8102
|
+
value: string;
|
|
8103
|
+
format: string;
|
|
8104
|
+
originFormat: string;
|
|
8105
|
+
decimals: string;
|
|
8106
|
+
};
|
|
8107
|
+
} | null | undefined;
|
|
8108
|
+
totalStakedBalance: {
|
|
8109
|
+
totalStakedBalance: {
|
|
8110
|
+
value: string;
|
|
8111
|
+
format: string;
|
|
8112
|
+
originFormat: string;
|
|
8113
|
+
decimals: string;
|
|
8114
|
+
};
|
|
8115
|
+
totalStakedBalanceUSD: string;
|
|
8116
|
+
} | undefined;
|
|
8117
|
+
myStakedTokenBalance: {
|
|
8118
|
+
value: string;
|
|
8119
|
+
format: string;
|
|
8120
|
+
originFormat: string;
|
|
8121
|
+
decimals: string;
|
|
8122
|
+
} | undefined;
|
|
8123
|
+
getStakeTokenInner: () => Promise<import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
|
|
8124
|
+
address: true;
|
|
8125
|
+
symbol: true;
|
|
8126
|
+
priceUSD: true;
|
|
8127
|
+
decimals: true;
|
|
8128
|
+
tokenUrl: true;
|
|
8129
|
+
balanceOf: [
|
|
8130
|
+
`0x${string}`
|
|
8131
|
+
];
|
|
8132
|
+
token0: true;
|
|
8133
|
+
token1: true;
|
|
8134
|
+
}>>;
|
|
8135
|
+
getRewardTokenInnter: () => Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8136
|
+
address: true;
|
|
8137
|
+
symbol: true;
|
|
8138
|
+
priceUSD: true;
|
|
8139
|
+
decimals: true;
|
|
8140
|
+
tokenUrl: true;
|
|
8141
|
+
}>>;
|
|
8142
|
+
stakedToken: () => Promise<any>;
|
|
8143
|
+
rewardToken: () => Promise<any>;
|
|
8144
|
+
StakedToken: import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
|
|
8145
|
+
address: true;
|
|
8146
|
+
symbol: true;
|
|
8147
|
+
priceUSD: true;
|
|
8148
|
+
decimals: true;
|
|
8149
|
+
tokenUrl: true;
|
|
8150
|
+
token0: true;
|
|
8151
|
+
token1: true;
|
|
8152
|
+
}>;
|
|
8153
|
+
RewardToken: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8154
|
+
address: true;
|
|
8155
|
+
symbol: true;
|
|
8156
|
+
priceUSD: true;
|
|
8157
|
+
decimals: true;
|
|
8158
|
+
tokenUrl: true;
|
|
8159
|
+
}>;
|
|
8160
|
+
deposit: (_amount: string) => Promise<any>;
|
|
8161
|
+
withdraw: (_amount: string) => Promise<any>;
|
|
8162
|
+
} | {
|
|
8163
|
+
type: string;
|
|
8164
|
+
startTime: number;
|
|
8165
|
+
endTime: number;
|
|
8166
|
+
key: MimoV3MiningPoolKey;
|
|
8073
8167
|
address: `0x${string}`;
|
|
8074
8168
|
chainId: string;
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
];
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
{
|
|
8258
|
-
readonly name: "refund";
|
|
8259
|
-
readonly type: "uint256";
|
|
8260
|
-
readonly internalType: "uint256";
|
|
8261
|
-
}
|
|
8262
|
-
];
|
|
8263
|
-
readonly stateMutability: "nonpayable";
|
|
8264
|
-
},
|
|
8265
|
-
{
|
|
8266
|
-
readonly type: "function";
|
|
8267
|
-
readonly name: "factory";
|
|
8268
|
-
readonly inputs: readonly [
|
|
8269
|
-
];
|
|
8270
|
-
readonly outputs: readonly [
|
|
8271
|
-
{
|
|
8272
|
-
readonly name: "";
|
|
8273
|
-
readonly type: "address";
|
|
8274
|
-
readonly internalType: "contract IUniswapV3Factory";
|
|
8275
|
-
}
|
|
8276
|
-
];
|
|
8277
|
-
readonly stateMutability: "view";
|
|
8278
|
-
},
|
|
8279
|
-
{
|
|
8280
|
-
readonly type: "function";
|
|
8281
|
-
readonly name: "getRewardInfo";
|
|
8282
|
-
readonly inputs: readonly [
|
|
8283
|
-
{
|
|
8284
|
-
readonly name: "key";
|
|
8285
|
-
readonly type: "tuple";
|
|
8286
|
-
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8287
|
-
readonly components: readonly [
|
|
8288
|
-
{
|
|
8289
|
-
readonly name: "rewardToken";
|
|
8290
|
-
readonly type: "address";
|
|
8291
|
-
readonly internalType: "contract IERC20Minimal";
|
|
8292
|
-
},
|
|
8293
|
-
{
|
|
8294
|
-
readonly name: "pool";
|
|
8295
|
-
readonly type: "address";
|
|
8296
|
-
readonly internalType: "contract IUniswapV3Pool";
|
|
8297
|
-
},
|
|
8298
|
-
{
|
|
8299
|
-
readonly name: "tickLower";
|
|
8300
|
-
readonly type: "int24";
|
|
8301
|
-
readonly internalType: "int24";
|
|
8302
|
-
},
|
|
8303
|
-
{
|
|
8304
|
-
readonly name: "tickUpper";
|
|
8305
|
-
readonly type: "int24";
|
|
8306
|
-
readonly internalType: "int24";
|
|
8307
|
-
},
|
|
8308
|
-
{
|
|
8309
|
-
readonly name: "startTime";
|
|
8310
|
-
readonly type: "uint256";
|
|
8311
|
-
readonly internalType: "uint256";
|
|
8312
|
-
},
|
|
8313
|
-
{
|
|
8314
|
-
readonly name: "endTime";
|
|
8315
|
-
readonly type: "uint256";
|
|
8316
|
-
readonly internalType: "uint256";
|
|
8317
|
-
},
|
|
8318
|
-
{
|
|
8319
|
-
readonly name: "refundee";
|
|
8320
|
-
readonly type: "address";
|
|
8321
|
-
readonly internalType: "address";
|
|
8322
|
-
}
|
|
8323
|
-
];
|
|
8324
|
-
},
|
|
8325
|
-
{
|
|
8326
|
-
readonly name: "tokenId";
|
|
8327
|
-
readonly type: "uint256";
|
|
8328
|
-
readonly internalType: "uint256";
|
|
8329
|
-
}
|
|
8330
|
-
];
|
|
8331
|
-
readonly outputs: readonly [
|
|
8332
|
-
{
|
|
8333
|
-
readonly name: "reward";
|
|
8334
|
-
readonly type: "uint256";
|
|
8335
|
-
readonly internalType: "uint256";
|
|
8336
|
-
},
|
|
8337
|
-
{
|
|
8338
|
-
readonly name: "secondsInsideX128";
|
|
8339
|
-
readonly type: "uint160";
|
|
8340
|
-
readonly internalType: "uint160";
|
|
8341
|
-
}
|
|
8342
|
-
];
|
|
8343
|
-
readonly stateMutability: "nonpayable";
|
|
8344
|
-
},
|
|
8345
|
-
{
|
|
8346
|
-
readonly type: "function";
|
|
8347
|
-
readonly name: "incentives";
|
|
8348
|
-
readonly inputs: readonly [
|
|
8349
|
-
{
|
|
8350
|
-
readonly name: "incentiveId";
|
|
8351
|
-
readonly type: "bytes32";
|
|
8352
|
-
readonly internalType: "bytes32";
|
|
8353
|
-
}
|
|
8354
|
-
];
|
|
8355
|
-
readonly outputs: readonly [
|
|
8356
|
-
{
|
|
8357
|
-
readonly name: "totalRewardUnclaimed";
|
|
8358
|
-
readonly type: "uint256";
|
|
8359
|
-
readonly internalType: "uint256";
|
|
8360
|
-
},
|
|
8361
|
-
{
|
|
8362
|
-
readonly name: "totalSecondsClaimedX128";
|
|
8363
|
-
readonly type: "uint160";
|
|
8364
|
-
readonly internalType: "uint160";
|
|
8365
|
-
},
|
|
8366
|
-
{
|
|
8367
|
-
readonly name: "numberOfStakes";
|
|
8368
|
-
readonly type: "uint96";
|
|
8369
|
-
readonly internalType: "uint96";
|
|
8370
|
-
}
|
|
8371
|
-
];
|
|
8372
|
-
readonly stateMutability: "view";
|
|
8373
|
-
},
|
|
8374
|
-
{
|
|
8375
|
-
readonly type: "function";
|
|
8376
|
-
readonly name: "maxIncentiveDuration";
|
|
8377
|
-
readonly inputs: readonly [
|
|
8378
|
-
];
|
|
8379
|
-
readonly outputs: readonly [
|
|
8380
|
-
{
|
|
8381
|
-
readonly name: "";
|
|
8382
|
-
readonly type: "uint256";
|
|
8383
|
-
readonly internalType: "uint256";
|
|
8384
|
-
}
|
|
8385
|
-
];
|
|
8386
|
-
readonly stateMutability: "view";
|
|
8387
|
-
},
|
|
8388
|
-
{
|
|
8389
|
-
readonly type: "function";
|
|
8390
|
-
readonly name: "maxIncentiveStartLeadTime";
|
|
8391
|
-
readonly inputs: readonly [
|
|
8392
|
-
];
|
|
8393
|
-
readonly outputs: readonly [
|
|
8394
|
-
{
|
|
8395
|
-
readonly name: "";
|
|
8396
|
-
readonly type: "uint256";
|
|
8397
|
-
readonly internalType: "uint256";
|
|
8398
|
-
}
|
|
8399
|
-
];
|
|
8400
|
-
readonly stateMutability: "view";
|
|
8401
|
-
},
|
|
8402
|
-
{
|
|
8403
|
-
readonly type: "function";
|
|
8404
|
-
readonly name: "multicall";
|
|
8405
|
-
readonly inputs: readonly [
|
|
8406
|
-
{
|
|
8407
|
-
readonly name: "data";
|
|
8408
|
-
readonly type: "bytes[]";
|
|
8409
|
-
readonly internalType: "bytes[]";
|
|
8410
|
-
}
|
|
8411
|
-
];
|
|
8412
|
-
readonly outputs: readonly [
|
|
8413
|
-
{
|
|
8414
|
-
readonly name: "results";
|
|
8415
|
-
readonly type: "bytes[]";
|
|
8416
|
-
readonly internalType: "bytes[]";
|
|
8417
|
-
}
|
|
8418
|
-
];
|
|
8419
|
-
readonly stateMutability: "payable";
|
|
8420
|
-
},
|
|
8421
|
-
{
|
|
8422
|
-
readonly type: "function";
|
|
8423
|
-
readonly name: "nonfungiblePositionManager";
|
|
8424
|
-
readonly inputs: readonly [
|
|
8425
|
-
];
|
|
8426
|
-
readonly outputs: readonly [
|
|
8427
|
-
{
|
|
8428
|
-
readonly name: "";
|
|
8429
|
-
readonly type: "address";
|
|
8430
|
-
readonly internalType: "contract INonfungiblePositionManager";
|
|
8431
|
-
}
|
|
8432
|
-
];
|
|
8433
|
-
readonly stateMutability: "view";
|
|
8434
|
-
},
|
|
8435
|
-
{
|
|
8436
|
-
readonly type: "function";
|
|
8437
|
-
readonly name: "onERC721Received";
|
|
8438
|
-
readonly inputs: readonly [
|
|
8439
|
-
{
|
|
8440
|
-
readonly name: "operator";
|
|
8441
|
-
readonly type: "address";
|
|
8442
|
-
readonly internalType: "address";
|
|
8443
|
-
},
|
|
8444
|
-
{
|
|
8445
|
-
readonly name: "from";
|
|
8446
|
-
readonly type: "address";
|
|
8447
|
-
readonly internalType: "address";
|
|
8448
|
-
},
|
|
8449
|
-
{
|
|
8450
|
-
readonly name: "tokenId";
|
|
8451
|
-
readonly type: "uint256";
|
|
8452
|
-
readonly internalType: "uint256";
|
|
8453
|
-
},
|
|
8454
|
-
{
|
|
8455
|
-
readonly name: "data";
|
|
8456
|
-
readonly type: "bytes";
|
|
8457
|
-
readonly internalType: "bytes";
|
|
8458
|
-
}
|
|
8459
|
-
];
|
|
8460
|
-
readonly outputs: readonly [
|
|
8461
|
-
{
|
|
8462
|
-
readonly name: "";
|
|
8463
|
-
readonly type: "bytes4";
|
|
8464
|
-
readonly internalType: "bytes4";
|
|
8465
|
-
}
|
|
8466
|
-
];
|
|
8467
|
-
readonly stateMutability: "nonpayable";
|
|
8468
|
-
},
|
|
8469
|
-
{
|
|
8470
|
-
readonly type: "function";
|
|
8471
|
-
readonly name: "rewards";
|
|
8472
|
-
readonly inputs: readonly [
|
|
8473
|
-
{
|
|
8474
|
-
readonly name: "rewardToken";
|
|
8475
|
-
readonly type: "address";
|
|
8476
|
-
readonly internalType: "contract IERC20Minimal";
|
|
8477
|
-
},
|
|
8478
|
-
{
|
|
8479
|
-
readonly name: "owner";
|
|
8480
|
-
readonly type: "address";
|
|
8481
|
-
readonly internalType: "address";
|
|
8482
|
-
}
|
|
8483
|
-
];
|
|
8484
|
-
readonly outputs: readonly [
|
|
8485
|
-
{
|
|
8486
|
-
readonly name: "rewardsOwed";
|
|
8487
|
-
readonly type: "uint256";
|
|
8488
|
-
readonly internalType: "uint256";
|
|
8489
|
-
}
|
|
8490
|
-
];
|
|
8491
|
-
readonly stateMutability: "view";
|
|
8492
|
-
},
|
|
8493
|
-
{
|
|
8494
|
-
readonly type: "function";
|
|
8495
|
-
readonly name: "stakeToken";
|
|
8496
|
-
readonly inputs: readonly [
|
|
8497
|
-
{
|
|
8498
|
-
readonly name: "key";
|
|
8499
|
-
readonly type: "tuple";
|
|
8500
|
-
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8501
|
-
readonly components: readonly [
|
|
8502
|
-
{
|
|
8503
|
-
readonly name: "rewardToken";
|
|
8504
|
-
readonly type: "address";
|
|
8505
|
-
readonly internalType: "contract IERC20Minimal";
|
|
8506
|
-
},
|
|
8507
|
-
{
|
|
8508
|
-
readonly name: "pool";
|
|
8509
|
-
readonly type: "address";
|
|
8510
|
-
readonly internalType: "contract IUniswapV3Pool";
|
|
8511
|
-
},
|
|
8512
|
-
{
|
|
8513
|
-
readonly name: "tickLower";
|
|
8514
|
-
readonly type: "int24";
|
|
8515
|
-
readonly internalType: "int24";
|
|
8516
|
-
},
|
|
8517
|
-
{
|
|
8518
|
-
readonly name: "tickUpper";
|
|
8519
|
-
readonly type: "int24";
|
|
8520
|
-
readonly internalType: "int24";
|
|
8521
|
-
},
|
|
8522
|
-
{
|
|
8523
|
-
readonly name: "startTime";
|
|
8524
|
-
readonly type: "uint256";
|
|
8525
|
-
readonly internalType: "uint256";
|
|
8526
|
-
},
|
|
8527
|
-
{
|
|
8528
|
-
readonly name: "endTime";
|
|
8529
|
-
readonly type: "uint256";
|
|
8530
|
-
readonly internalType: "uint256";
|
|
8531
|
-
},
|
|
8532
|
-
{
|
|
8533
|
-
readonly name: "refundee";
|
|
8534
|
-
readonly type: "address";
|
|
8535
|
-
readonly internalType: "address";
|
|
8536
|
-
}
|
|
8537
|
-
];
|
|
8538
|
-
},
|
|
8539
|
-
{
|
|
8540
|
-
readonly name: "tokenId";
|
|
8541
|
-
readonly type: "uint256";
|
|
8542
|
-
readonly internalType: "uint256";
|
|
8543
|
-
}
|
|
8544
|
-
];
|
|
8545
|
-
readonly outputs: readonly [
|
|
8546
|
-
];
|
|
8547
|
-
readonly stateMutability: "nonpayable";
|
|
8548
|
-
},
|
|
8549
|
-
{
|
|
8550
|
-
readonly type: "function";
|
|
8551
|
-
readonly name: "stakes";
|
|
8552
|
-
readonly inputs: readonly [
|
|
8553
|
-
{
|
|
8554
|
-
readonly name: "tokenId";
|
|
8555
|
-
readonly type: "uint256";
|
|
8556
|
-
readonly internalType: "uint256";
|
|
8557
|
-
},
|
|
8558
|
-
{
|
|
8559
|
-
readonly name: "incentiveId";
|
|
8560
|
-
readonly type: "bytes32";
|
|
8561
|
-
readonly internalType: "bytes32";
|
|
8562
|
-
}
|
|
8563
|
-
];
|
|
8564
|
-
readonly outputs: readonly [
|
|
8565
|
-
{
|
|
8566
|
-
readonly name: "secondsPerLiquidityInsideInitialX128";
|
|
8567
|
-
readonly type: "uint160";
|
|
8568
|
-
readonly internalType: "uint160";
|
|
8569
|
-
},
|
|
8570
|
-
{
|
|
8571
|
-
readonly name: "liquidity";
|
|
8572
|
-
readonly type: "uint128";
|
|
8573
|
-
readonly internalType: "uint128";
|
|
8574
|
-
}
|
|
8575
|
-
];
|
|
8576
|
-
readonly stateMutability: "view";
|
|
8577
|
-
},
|
|
8578
|
-
{
|
|
8579
|
-
readonly type: "function";
|
|
8580
|
-
readonly name: "transferDeposit";
|
|
8581
|
-
readonly inputs: readonly [
|
|
8582
|
-
{
|
|
8583
|
-
readonly name: "tokenId";
|
|
8584
|
-
readonly type: "uint256";
|
|
8585
|
-
readonly internalType: "uint256";
|
|
8586
|
-
},
|
|
8587
|
-
{
|
|
8588
|
-
readonly name: "to";
|
|
8589
|
-
readonly type: "address";
|
|
8590
|
-
readonly internalType: "address";
|
|
8591
|
-
}
|
|
8592
|
-
];
|
|
8593
|
-
readonly outputs: readonly [
|
|
8594
|
-
];
|
|
8595
|
-
readonly stateMutability: "nonpayable";
|
|
8596
|
-
},
|
|
8597
|
-
{
|
|
8598
|
-
readonly type: "function";
|
|
8599
|
-
readonly name: "unstakeToken";
|
|
8600
|
-
readonly inputs: readonly [
|
|
8601
|
-
{
|
|
8602
|
-
readonly name: "key";
|
|
8603
|
-
readonly type: "tuple";
|
|
8604
|
-
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
8605
|
-
readonly components: readonly [
|
|
8606
|
-
{
|
|
8607
|
-
readonly name: "rewardToken";
|
|
8608
|
-
readonly type: "address";
|
|
8609
|
-
readonly internalType: "contract IERC20Minimal";
|
|
8610
|
-
},
|
|
8611
|
-
{
|
|
8612
|
-
readonly name: "pool";
|
|
8613
|
-
readonly type: "address";
|
|
8614
|
-
readonly internalType: "contract IUniswapV3Pool";
|
|
8615
|
-
},
|
|
8616
|
-
{
|
|
8617
|
-
readonly name: "tickLower";
|
|
8618
|
-
readonly type: "int24";
|
|
8619
|
-
readonly internalType: "int24";
|
|
8620
|
-
},
|
|
8621
|
-
{
|
|
8622
|
-
readonly name: "tickUpper";
|
|
8623
|
-
readonly type: "int24";
|
|
8624
|
-
readonly internalType: "int24";
|
|
8625
|
-
},
|
|
8626
|
-
{
|
|
8627
|
-
readonly name: "startTime";
|
|
8628
|
-
readonly type: "uint256";
|
|
8629
|
-
readonly internalType: "uint256";
|
|
8630
|
-
},
|
|
8631
|
-
{
|
|
8632
|
-
readonly name: "endTime";
|
|
8633
|
-
readonly type: "uint256";
|
|
8634
|
-
readonly internalType: "uint256";
|
|
8635
|
-
},
|
|
8636
|
-
{
|
|
8637
|
-
readonly name: "refundee";
|
|
8638
|
-
readonly type: "address";
|
|
8639
|
-
readonly internalType: "address";
|
|
8640
|
-
}
|
|
8641
|
-
];
|
|
8642
|
-
},
|
|
8643
|
-
{
|
|
8644
|
-
readonly name: "tokenId";
|
|
8645
|
-
readonly type: "uint256";
|
|
8646
|
-
readonly internalType: "uint256";
|
|
8647
|
-
}
|
|
8648
|
-
];
|
|
8649
|
-
readonly outputs: readonly [
|
|
8650
|
-
];
|
|
8651
|
-
readonly stateMutability: "nonpayable";
|
|
8652
|
-
},
|
|
8653
|
-
{
|
|
8654
|
-
readonly type: "function";
|
|
8655
|
-
readonly name: "withdrawToken";
|
|
8656
|
-
readonly inputs: readonly [
|
|
8657
|
-
{
|
|
8658
|
-
readonly name: "tokenId";
|
|
8659
|
-
readonly type: "uint256";
|
|
8660
|
-
readonly internalType: "uint256";
|
|
8661
|
-
},
|
|
8662
|
-
{
|
|
8663
|
-
readonly name: "to";
|
|
8664
|
-
readonly type: "address";
|
|
8665
|
-
readonly internalType: "address";
|
|
8666
|
-
},
|
|
8667
|
-
{
|
|
8668
|
-
readonly name: "data";
|
|
8669
|
-
readonly type: "bytes";
|
|
8670
|
-
readonly internalType: "bytes";
|
|
8671
|
-
}
|
|
8672
|
-
];
|
|
8673
|
-
readonly outputs: readonly [
|
|
8674
|
-
];
|
|
8675
|
-
readonly stateMutability: "nonpayable";
|
|
8676
|
-
},
|
|
8677
|
-
{
|
|
8678
|
-
readonly type: "event";
|
|
8679
|
-
readonly name: "DepositTransferred";
|
|
8680
|
-
readonly inputs: readonly [
|
|
8681
|
-
{
|
|
8682
|
-
readonly name: "tokenId";
|
|
8683
|
-
readonly type: "uint256";
|
|
8684
|
-
readonly indexed: true;
|
|
8685
|
-
readonly internalType: "uint256";
|
|
8686
|
-
},
|
|
8687
|
-
{
|
|
8688
|
-
readonly name: "oldOwner";
|
|
8689
|
-
readonly type: "address";
|
|
8690
|
-
readonly indexed: true;
|
|
8691
|
-
readonly internalType: "address";
|
|
8692
|
-
},
|
|
8693
|
-
{
|
|
8694
|
-
readonly name: "newOwner";
|
|
8695
|
-
readonly type: "address";
|
|
8696
|
-
readonly indexed: true;
|
|
8697
|
-
readonly internalType: "address";
|
|
8698
|
-
}
|
|
8699
|
-
];
|
|
8700
|
-
readonly anonymous: false;
|
|
8701
|
-
},
|
|
8702
|
-
{
|
|
8703
|
-
readonly type: "event";
|
|
8704
|
-
readonly name: "IncentiveCreated";
|
|
8705
|
-
readonly inputs: readonly [
|
|
8706
|
-
{
|
|
8707
|
-
readonly name: "rewardToken";
|
|
8708
|
-
readonly type: "address";
|
|
8709
|
-
readonly indexed: true;
|
|
8710
|
-
readonly internalType: "contract IERC20Minimal";
|
|
8711
|
-
},
|
|
8712
|
-
{
|
|
8713
|
-
readonly name: "pool";
|
|
8714
|
-
readonly type: "address";
|
|
8715
|
-
readonly indexed: true;
|
|
8716
|
-
readonly internalType: "contract IUniswapV3Pool";
|
|
8717
|
-
},
|
|
8718
|
-
{
|
|
8719
|
-
readonly name: "tickLower";
|
|
8720
|
-
readonly type: "int24";
|
|
8721
|
-
readonly indexed: false;
|
|
8722
|
-
readonly internalType: "int24";
|
|
8723
|
-
},
|
|
8724
|
-
{
|
|
8725
|
-
readonly name: "tickUpper";
|
|
8726
|
-
readonly type: "int24";
|
|
8727
|
-
readonly indexed: false;
|
|
8728
|
-
readonly internalType: "int24";
|
|
8729
|
-
},
|
|
8730
|
-
{
|
|
8731
|
-
readonly name: "startTime";
|
|
8732
|
-
readonly type: "uint256";
|
|
8733
|
-
readonly indexed: false;
|
|
8734
|
-
readonly internalType: "uint256";
|
|
8735
|
-
},
|
|
8736
|
-
{
|
|
8737
|
-
readonly name: "endTime";
|
|
8738
|
-
readonly type: "uint256";
|
|
8739
|
-
readonly indexed: false;
|
|
8740
|
-
readonly internalType: "uint256";
|
|
8741
|
-
},
|
|
8742
|
-
{
|
|
8743
|
-
readonly name: "refundee";
|
|
8744
|
-
readonly type: "address";
|
|
8745
|
-
readonly indexed: false;
|
|
8746
|
-
readonly internalType: "address";
|
|
8747
|
-
},
|
|
8748
|
-
{
|
|
8749
|
-
readonly name: "reward";
|
|
8750
|
-
readonly type: "uint256";
|
|
8751
|
-
readonly indexed: false;
|
|
8752
|
-
readonly internalType: "uint256";
|
|
8753
|
-
}
|
|
8754
|
-
];
|
|
8755
|
-
readonly anonymous: false;
|
|
8756
|
-
},
|
|
8757
|
-
{
|
|
8758
|
-
readonly type: "event";
|
|
8759
|
-
readonly name: "IncentiveEnded";
|
|
8760
|
-
readonly inputs: readonly [
|
|
8761
|
-
{
|
|
8762
|
-
readonly name: "incentiveId";
|
|
8763
|
-
readonly type: "bytes32";
|
|
8764
|
-
readonly indexed: true;
|
|
8765
|
-
readonly internalType: "bytes32";
|
|
8766
|
-
},
|
|
8767
|
-
{
|
|
8768
|
-
readonly name: "refund";
|
|
8769
|
-
readonly type: "uint256";
|
|
8770
|
-
readonly indexed: false;
|
|
8771
|
-
readonly internalType: "uint256";
|
|
8772
|
-
}
|
|
8773
|
-
];
|
|
8774
|
-
readonly anonymous: false;
|
|
8775
|
-
},
|
|
8776
|
-
{
|
|
8777
|
-
readonly type: "event";
|
|
8778
|
-
readonly name: "RewardClaimed";
|
|
8779
|
-
readonly inputs: readonly [
|
|
8780
|
-
{
|
|
8781
|
-
readonly name: "to";
|
|
8782
|
-
readonly type: "address";
|
|
8783
|
-
readonly indexed: true;
|
|
8784
|
-
readonly internalType: "address";
|
|
8785
|
-
},
|
|
8786
|
-
{
|
|
8787
|
-
readonly name: "reward";
|
|
8788
|
-
readonly type: "uint256";
|
|
8789
|
-
readonly indexed: false;
|
|
8790
|
-
readonly internalType: "uint256";
|
|
8791
|
-
}
|
|
8792
|
-
];
|
|
8793
|
-
readonly anonymous: false;
|
|
8794
|
-
},
|
|
8795
|
-
{
|
|
8796
|
-
readonly type: "event";
|
|
8797
|
-
readonly name: "TokenStaked";
|
|
8798
|
-
readonly inputs: readonly [
|
|
8799
|
-
{
|
|
8800
|
-
readonly name: "tokenId";
|
|
8801
|
-
readonly type: "uint256";
|
|
8802
|
-
readonly indexed: true;
|
|
8803
|
-
readonly internalType: "uint256";
|
|
8804
|
-
},
|
|
8805
|
-
{
|
|
8806
|
-
readonly name: "incentiveId";
|
|
8807
|
-
readonly type: "bytes32";
|
|
8808
|
-
readonly indexed: true;
|
|
8809
|
-
readonly internalType: "bytes32";
|
|
8810
|
-
},
|
|
8811
|
-
{
|
|
8812
|
-
readonly name: "liquidity";
|
|
8813
|
-
readonly type: "uint128";
|
|
8814
|
-
readonly indexed: false;
|
|
8815
|
-
readonly internalType: "uint128";
|
|
8816
|
-
}
|
|
8817
|
-
];
|
|
8818
|
-
readonly anonymous: false;
|
|
8819
|
-
},
|
|
8820
|
-
{
|
|
8821
|
-
readonly type: "event";
|
|
8822
|
-
readonly name: "TokenUnstaked";
|
|
8823
|
-
readonly inputs: readonly [
|
|
8824
|
-
{
|
|
8825
|
-
readonly name: "tokenId";
|
|
8826
|
-
readonly type: "uint256";
|
|
8827
|
-
readonly indexed: true;
|
|
8828
|
-
readonly internalType: "uint256";
|
|
8829
|
-
},
|
|
8830
|
-
{
|
|
8831
|
-
readonly name: "incentiveId";
|
|
8832
|
-
readonly type: "bytes32";
|
|
8833
|
-
readonly indexed: true;
|
|
8834
|
-
readonly internalType: "bytes32";
|
|
8835
|
-
}
|
|
8836
|
-
];
|
|
8837
|
-
readonly anonymous: false;
|
|
8838
|
-
}
|
|
8839
|
-
];
|
|
8840
|
-
safeTransferFrom(account: `0x${string}`, to: `0x${string}`, tokenId: number): Promise<`0x${string}`>;
|
|
8841
|
-
rewards: (rewardToken: `0x${string}`, account: `0x${string}`) => Promise<any>;
|
|
8842
|
-
multicall: (data: `0x${string}`[]) => Promise<any>;
|
|
8843
|
-
stakeToken: (key: MimoV3MiningPoolKey, v3PositionId: number) => Promise<any>;
|
|
8844
|
-
claimReward: (rewardToken: `0x${string}`, to: `0x${string}`, amountRequested: bigint) => Promise<any>;
|
|
8845
|
-
unstakeToken: (key: MimoV3MiningPoolKey, v3PositionId: number) => Promise<any>;
|
|
8846
|
-
withdrawToken: (tokenId: number, to: `0x${string}`, data: `0x${string}`) => Promise<any>;
|
|
8847
|
-
usersPositions(account: `0x${string}`): Promise<{
|
|
8848
|
-
token0Address: `0x${string}`;
|
|
8849
|
-
token1Address: `0x${string}`;
|
|
8850
|
-
fee: number;
|
|
8851
|
-
tickLower: number;
|
|
8852
|
-
tickUpper: number;
|
|
8853
|
-
tokenId: number;
|
|
8854
|
-
isTransferred: boolean;
|
|
8855
|
-
}[] | undefined>;
|
|
8169
|
+
getTokenAmounts: (liquidity: number, tickLower: number, tickUpper: number) => Promise<{
|
|
8170
|
+
amount0: {
|
|
8171
|
+
value: string;
|
|
8172
|
+
format: string;
|
|
8173
|
+
originFormat: string;
|
|
8174
|
+
decimals: string;
|
|
8175
|
+
};
|
|
8176
|
+
amount1: {
|
|
8177
|
+
value: string;
|
|
8178
|
+
format: string;
|
|
8179
|
+
originFormat: string;
|
|
8180
|
+
decimals: string;
|
|
8181
|
+
};
|
|
8182
|
+
price0: number;
|
|
8183
|
+
price1: number;
|
|
8184
|
+
}>;
|
|
8185
|
+
getPositionsInfo: (positions: any[], tokenIds: any[]) => Promise<{
|
|
8186
|
+
token0Address: any;
|
|
8187
|
+
token1Address: any;
|
|
8188
|
+
fee: any;
|
|
8189
|
+
tickLower: any;
|
|
8190
|
+
tickUpper: any;
|
|
8191
|
+
tokenId: number;
|
|
8192
|
+
isTransferred: boolean;
|
|
8193
|
+
amount0: {
|
|
8194
|
+
value: string;
|
|
8195
|
+
format: string;
|
|
8196
|
+
originFormat: string;
|
|
8197
|
+
decimals: string;
|
|
8198
|
+
};
|
|
8199
|
+
amount1: {
|
|
8200
|
+
value: string;
|
|
8201
|
+
format: string;
|
|
8202
|
+
originFormat: string;
|
|
8203
|
+
decimals: string;
|
|
8204
|
+
};
|
|
8205
|
+
price0: number;
|
|
8206
|
+
price1: number;
|
|
8207
|
+
}[]>;
|
|
8208
|
+
StakedToken: {
|
|
8209
|
+
symbol: string;
|
|
8210
|
+
tokenUrl: any[];
|
|
8211
|
+
token0: `0x${string}`;
|
|
8212
|
+
token1: `0x${string}`;
|
|
8213
|
+
};
|
|
8214
|
+
Token0: () => Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8215
|
+
address: true;
|
|
8216
|
+
symbol: true;
|
|
8217
|
+
name: true;
|
|
8218
|
+
decimals: true;
|
|
8219
|
+
tokenUrl: true;
|
|
8220
|
+
priceUSD: true;
|
|
8221
|
+
}>>;
|
|
8222
|
+
Token1: () => Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8223
|
+
address: true;
|
|
8224
|
+
symbol: true;
|
|
8225
|
+
name: true;
|
|
8226
|
+
decimals: true;
|
|
8227
|
+
tokenUrl: true;
|
|
8228
|
+
priceUSD: true;
|
|
8229
|
+
}>>;
|
|
8230
|
+
token0: () => Promise<any>;
|
|
8231
|
+
token1: () => Promise<any>;
|
|
8232
|
+
fee: () => Promise<any>;
|
|
8233
|
+
myPendingReward: {
|
|
8234
|
+
pendingReward: {
|
|
8235
|
+
value: string;
|
|
8236
|
+
format: string;
|
|
8237
|
+
originFormat: string;
|
|
8238
|
+
decimals: string;
|
|
8239
|
+
};
|
|
8240
|
+
pendingRewardUSD: string;
|
|
8241
|
+
};
|
|
8242
|
+
apr: string | 0 | undefined;
|
|
8243
|
+
totalStakedBalance: {
|
|
8244
|
+
totalStakedBalance: {
|
|
8245
|
+
value: string;
|
|
8246
|
+
format: string;
|
|
8247
|
+
originFormat: string;
|
|
8248
|
+
decimals: string;
|
|
8249
|
+
};
|
|
8250
|
+
totalStakedBalanceUSD: string;
|
|
8251
|
+
totalStakedBalanceUSDOrigin: string;
|
|
8252
|
+
};
|
|
8253
|
+
isNew: boolean;
|
|
8254
|
+
isExpired: boolean;
|
|
8255
|
+
myPoolBalance: ({
|
|
8256
|
+
token0Address: `0x${string}`;
|
|
8257
|
+
token1Address: `0x${string}`;
|
|
8258
|
+
fee: number;
|
|
8259
|
+
tickLower: number;
|
|
8260
|
+
tickUpper: number;
|
|
8261
|
+
tokenId: number;
|
|
8262
|
+
isTransferred: boolean;
|
|
8263
|
+
} | {
|
|
8264
|
+
token0Address: any;
|
|
8265
|
+
token1Address: any;
|
|
8266
|
+
fee: any;
|
|
8267
|
+
tickLower: any;
|
|
8268
|
+
tickUpper: any;
|
|
8269
|
+
tokenId: number;
|
|
8270
|
+
isTransferred: boolean;
|
|
8271
|
+
amount0: {
|
|
8272
|
+
value: string;
|
|
8273
|
+
format: string;
|
|
8274
|
+
originFormat: string;
|
|
8275
|
+
decimals: string;
|
|
8276
|
+
};
|
|
8277
|
+
amount1: {
|
|
8278
|
+
value: string;
|
|
8279
|
+
format: string;
|
|
8280
|
+
originFormat: string;
|
|
8281
|
+
decimals: string;
|
|
8282
|
+
};
|
|
8283
|
+
price0: number;
|
|
8284
|
+
price1: number;
|
|
8285
|
+
})[];
|
|
8286
|
+
totalReward: {
|
|
8287
|
+
totalRewardUSD: string;
|
|
8288
|
+
totalReward: {
|
|
8289
|
+
value: string;
|
|
8290
|
+
format: string;
|
|
8291
|
+
originFormat: string;
|
|
8292
|
+
decimals: string;
|
|
8293
|
+
};
|
|
8294
|
+
} | undefined;
|
|
8295
|
+
myStakedTokenBalance: {
|
|
8296
|
+
token0Address: any;
|
|
8297
|
+
token1Address: any;
|
|
8298
|
+
fee: any;
|
|
8299
|
+
tickLower: any;
|
|
8300
|
+
tickUpper: any;
|
|
8301
|
+
tokenId: number;
|
|
8302
|
+
isTransferred: boolean;
|
|
8303
|
+
amount0: {
|
|
8304
|
+
value: string;
|
|
8305
|
+
format: string;
|
|
8306
|
+
originFormat: string;
|
|
8307
|
+
decimals: string;
|
|
8308
|
+
};
|
|
8309
|
+
amount1: {
|
|
8310
|
+
value: string;
|
|
8311
|
+
format: string;
|
|
8312
|
+
originFormat: string;
|
|
8313
|
+
decimals: string;
|
|
8314
|
+
};
|
|
8315
|
+
price0: number;
|
|
8316
|
+
price1: number;
|
|
8317
|
+
}[];
|
|
8318
|
+
RewardToken: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8319
|
+
symbol: true;
|
|
8320
|
+
name: true;
|
|
8321
|
+
decimals: true;
|
|
8322
|
+
tokenUrl: true;
|
|
8323
|
+
priceUSD: true;
|
|
8324
|
+
}>;
|
|
8325
|
+
})[]>;
|
|
8326
|
+
deposit({ address, amount, account }: {
|
|
8327
|
+
address: `0x${string}`;
|
|
8328
|
+
amount: string;
|
|
8329
|
+
account: `0x${string}`;
|
|
8330
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8331
|
+
data: any;
|
|
8332
|
+
address: `0x${string}`;
|
|
8333
|
+
chainId: string;
|
|
8334
|
+
type: string;
|
|
8335
|
+
}[]>;
|
|
8336
|
+
harvest({ address }: {
|
|
8337
|
+
address: `0x${string}`;
|
|
8338
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8339
|
+
data: `0x${string}`;
|
|
8340
|
+
address: `0x${string}`;
|
|
8341
|
+
chainId: string;
|
|
8342
|
+
}>;
|
|
8343
|
+
withdraw({ address, amount }: {
|
|
8344
|
+
address: `0x${string}`;
|
|
8345
|
+
amount: string;
|
|
8346
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8347
|
+
data: any;
|
|
8348
|
+
address: `0x${string}`;
|
|
8349
|
+
chainId: string;
|
|
8350
|
+
}>;
|
|
8856
8351
|
}
|
|
8857
8352
|
declare class LiquidityMiningV3 {
|
|
8858
8353
|
poolsList(args: {
|
|
8859
8354
|
account?: `0x${string}`;
|
|
8860
8355
|
}, ctx?: ConfigContext): Promise<{
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
startTime: bigint;
|
|
8864
|
-
endTime: bigint;
|
|
8356
|
+
startTime: number;
|
|
8357
|
+
endTime: number;
|
|
8865
8358
|
key: MimoV3MiningPoolKey;
|
|
8866
8359
|
address: `0x${string}`;
|
|
8867
8360
|
chainId: string;
|
|
8868
|
-
|
|
8361
|
+
getTokenAmounts: (liquidity: number, tickLower: number, tickUpper: number) => Promise<{
|
|
8362
|
+
amount0: {
|
|
8363
|
+
value: string;
|
|
8364
|
+
format: string;
|
|
8365
|
+
originFormat: string;
|
|
8366
|
+
decimals: string;
|
|
8367
|
+
};
|
|
8368
|
+
amount1: {
|
|
8369
|
+
value: string;
|
|
8370
|
+
format: string;
|
|
8371
|
+
originFormat: string;
|
|
8372
|
+
decimals: string;
|
|
8373
|
+
};
|
|
8374
|
+
price0: number;
|
|
8375
|
+
price1: number;
|
|
8376
|
+
}>;
|
|
8377
|
+
getPositionsInfo: (positions: any[], tokenIds: any[]) => Promise<{
|
|
8378
|
+
token0Address: any;
|
|
8379
|
+
token1Address: any;
|
|
8380
|
+
fee: any;
|
|
8381
|
+
tickLower: any;
|
|
8382
|
+
tickUpper: any;
|
|
8383
|
+
tokenId: number;
|
|
8384
|
+
isTransferred: boolean;
|
|
8385
|
+
amount0: {
|
|
8386
|
+
value: string;
|
|
8387
|
+
format: string;
|
|
8388
|
+
originFormat: string;
|
|
8389
|
+
decimals: string;
|
|
8390
|
+
};
|
|
8391
|
+
amount1: {
|
|
8392
|
+
value: string;
|
|
8393
|
+
format: string;
|
|
8394
|
+
originFormat: string;
|
|
8395
|
+
decimals: string;
|
|
8396
|
+
};
|
|
8397
|
+
price0: number;
|
|
8398
|
+
price1: number;
|
|
8399
|
+
}[]>;
|
|
8400
|
+
StakedToken: {
|
|
8401
|
+
symbol: string;
|
|
8402
|
+
tokenUrl: any[];
|
|
8403
|
+
token0: `0x${string}`;
|
|
8404
|
+
token1: `0x${string}`;
|
|
8405
|
+
};
|
|
8406
|
+
Token0: () => Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8869
8407
|
address: true;
|
|
8870
8408
|
symbol: true;
|
|
8871
8409
|
name: true;
|
|
8872
8410
|
decimals: true;
|
|
8873
8411
|
tokenUrl: true;
|
|
8874
|
-
|
|
8875
|
-
|
|
8412
|
+
priceUSD: true;
|
|
8413
|
+
}>>;
|
|
8414
|
+
Token1: () => Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8876
8415
|
address: true;
|
|
8877
8416
|
symbol: true;
|
|
8878
8417
|
name: true;
|
|
8879
8418
|
decimals: true;
|
|
8880
8419
|
tokenUrl: true;
|
|
8881
|
-
|
|
8420
|
+
priceUSD: true;
|
|
8421
|
+
}>>;
|
|
8882
8422
|
token0: () => Promise<any>;
|
|
8883
8423
|
token1: () => Promise<any>;
|
|
8884
|
-
fee: any
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8424
|
+
fee: () => Promise<any>;
|
|
8425
|
+
myPendingReward: {
|
|
8426
|
+
pendingReward: {
|
|
8427
|
+
value: string;
|
|
8428
|
+
format: string;
|
|
8429
|
+
originFormat: string;
|
|
8430
|
+
decimals: string;
|
|
8431
|
+
};
|
|
8432
|
+
pendingRewardUSD: string;
|
|
8433
|
+
};
|
|
8434
|
+
apr: string | 0 | undefined;
|
|
8435
|
+
totalStakedBalance: {
|
|
8436
|
+
totalStakedBalance: {
|
|
8437
|
+
value: string;
|
|
8438
|
+
format: string;
|
|
8439
|
+
originFormat: string;
|
|
8440
|
+
decimals: string;
|
|
8441
|
+
};
|
|
8442
|
+
totalStakedBalanceUSD: string;
|
|
8443
|
+
totalStakedBalanceUSDOrigin: string;
|
|
8444
|
+
};
|
|
8891
8445
|
isNew: boolean;
|
|
8892
8446
|
isExpired: boolean;
|
|
8893
|
-
|
|
8447
|
+
myPoolBalance: ({
|
|
8894
8448
|
token0Address: `0x${string}`;
|
|
8895
8449
|
token1Address: `0x${string}`;
|
|
8896
8450
|
fee: number;
|
|
@@ -8898,28 +8452,74 @@ declare class LiquidityMiningV3 {
|
|
|
8898
8452
|
tickUpper: number;
|
|
8899
8453
|
tokenId: number;
|
|
8900
8454
|
isTransferred: boolean;
|
|
8901
|
-
}
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8455
|
+
} | {
|
|
8456
|
+
token0Address: any;
|
|
8457
|
+
token1Address: any;
|
|
8458
|
+
fee: any;
|
|
8459
|
+
tickLower: any;
|
|
8460
|
+
tickUpper: any;
|
|
8461
|
+
tokenId: number;
|
|
8462
|
+
isTransferred: boolean;
|
|
8463
|
+
amount0: {
|
|
8464
|
+
value: string;
|
|
8465
|
+
format: string;
|
|
8466
|
+
originFormat: string;
|
|
8467
|
+
decimals: string;
|
|
8468
|
+
};
|
|
8469
|
+
amount1: {
|
|
8470
|
+
value: string;
|
|
8471
|
+
format: string;
|
|
8472
|
+
originFormat: string;
|
|
8473
|
+
decimals: string;
|
|
8474
|
+
};
|
|
8475
|
+
price0: number;
|
|
8476
|
+
price1: number;
|
|
8477
|
+
})[];
|
|
8478
|
+
totalReward: {
|
|
8479
|
+
totalRewardUSD: string;
|
|
8480
|
+
totalReward: {
|
|
8481
|
+
value: string;
|
|
8482
|
+
format: string;
|
|
8483
|
+
originFormat: string;
|
|
8484
|
+
decimals: string;
|
|
8485
|
+
};
|
|
8486
|
+
} | undefined;
|
|
8487
|
+
myStakedTokenBalance: {
|
|
8488
|
+
token0Address: any;
|
|
8489
|
+
token1Address: any;
|
|
8490
|
+
fee: any;
|
|
8491
|
+
tickLower: any;
|
|
8492
|
+
tickUpper: any;
|
|
8908
8493
|
tokenId: number;
|
|
8909
8494
|
isTransferred: boolean;
|
|
8495
|
+
amount0: {
|
|
8496
|
+
value: string;
|
|
8497
|
+
format: string;
|
|
8498
|
+
originFormat: string;
|
|
8499
|
+
decimals: string;
|
|
8500
|
+
};
|
|
8501
|
+
amount1: {
|
|
8502
|
+
value: string;
|
|
8503
|
+
format: string;
|
|
8504
|
+
originFormat: string;
|
|
8505
|
+
decimals: string;
|
|
8506
|
+
};
|
|
8507
|
+
price0: number;
|
|
8508
|
+
price1: number;
|
|
8910
8509
|
}[];
|
|
8911
8510
|
RewardToken: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8912
8511
|
symbol: true;
|
|
8913
8512
|
name: true;
|
|
8914
8513
|
decimals: true;
|
|
8915
8514
|
tokenUrl: true;
|
|
8515
|
+
priceUSD: true;
|
|
8916
8516
|
}>;
|
|
8917
8517
|
}[]>;
|
|
8918
8518
|
deposit(args: {
|
|
8919
8519
|
key: MimoV3MiningPoolKey;
|
|
8920
8520
|
v3PositionId: number;
|
|
8921
8521
|
account: `0x${string}`;
|
|
8922
|
-
isTransferred:
|
|
8522
|
+
isTransferred: string;
|
|
8923
8523
|
}, ctx?: ConfigContext): Promise<{
|
|
8924
8524
|
data: any;
|
|
8925
8525
|
address: string;
|
|
@@ -8936,7 +8536,7 @@ declare class LiquidityMiningV3 {
|
|
|
8936
8536
|
chainId: string;
|
|
8937
8537
|
type: string;
|
|
8938
8538
|
}>;
|
|
8939
|
-
|
|
8539
|
+
unstakeAndWithdraw(args: {
|
|
8940
8540
|
key: MimoV3MiningPoolKey;
|
|
8941
8541
|
v3PositionId: number;
|
|
8942
8542
|
account: `0x${string}`;
|
|
@@ -8946,6 +8546,23 @@ declare class LiquidityMiningV3 {
|
|
|
8946
8546
|
chainId: string;
|
|
8947
8547
|
type: string;
|
|
8948
8548
|
}[]>;
|
|
8549
|
+
withdraw(args: {
|
|
8550
|
+
v3PositionId: number;
|
|
8551
|
+
account: `0x${string}`;
|
|
8552
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8553
|
+
data: any;
|
|
8554
|
+
address: string;
|
|
8555
|
+
chainId: string;
|
|
8556
|
+
type: string;
|
|
8557
|
+
}>;
|
|
8558
|
+
poke(args: {
|
|
8559
|
+
key: MimoV3MiningPoolKey;
|
|
8560
|
+
v3PositionId: number;
|
|
8561
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8562
|
+
data: any;
|
|
8563
|
+
address: string;
|
|
8564
|
+
chainId: string;
|
|
8565
|
+
}>;
|
|
8949
8566
|
}
|
|
8950
8567
|
declare const modules: {
|
|
8951
8568
|
mimo: Mimo;
|
|
@@ -8974,6 +8591,8 @@ declare class BaseDBModule {
|
|
|
8974
8591
|
iotexscan: ReturnType<typeof postgres>;
|
|
8975
8592
|
iopay: ReturnType<typeof postgres>;
|
|
8976
8593
|
nftmarket: ReturnType<typeof postgres>;
|
|
8594
|
+
mimo: ReturnType<typeof postgres>;
|
|
8595
|
+
depinscan: ReturnType<typeof postgres>;
|
|
8977
8596
|
ch: ClickHouseSDK;
|
|
8978
8597
|
analysis: ClickHouseSDK;
|
|
8979
8598
|
microServiceCenter: ReturnType<typeof postgres>;
|
|
@@ -9359,6 +8978,7 @@ declare class Mimo$1 extends BaseDBModule {
|
|
|
9359
8978
|
last24hTxCount: string;
|
|
9360
8979
|
last24hFee: string;
|
|
9361
8980
|
}>;
|
|
8981
|
+
metrics_history(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9362
8982
|
}
|
|
9363
8983
|
declare class LearnToEarn extends BaseDBModule {
|
|
9364
8984
|
checkAuth(key: string): Promise<{
|
|
@@ -9410,6 +9030,70 @@ declare class Galxe extends BaseDBModule {
|
|
|
9410
9030
|
is_ok: boolean;
|
|
9411
9031
|
}>;
|
|
9412
9032
|
}
|
|
9033
|
+
declare class DepinScan extends BaseDBModule {
|
|
9034
|
+
explorer_v1({ is_latest }: {
|
|
9035
|
+
is_latest: boolean;
|
|
9036
|
+
}): Promise<import("postgres").RowList<import("postgres").Row[]> | {
|
|
9037
|
+
date: string;
|
|
9038
|
+
total_projects: any;
|
|
9039
|
+
market_cap: any;
|
|
9040
|
+
total_device: any;
|
|
9041
|
+
}[]>;
|
|
9042
|
+
explorer({ is_latest }: {
|
|
9043
|
+
is_latest: boolean;
|
|
9044
|
+
}): Promise<import("postgres").RowList<import("postgres").Row[]> | {
|
|
9045
|
+
date: string;
|
|
9046
|
+
total_projects: any;
|
|
9047
|
+
market_cap: any;
|
|
9048
|
+
total_device: any;
|
|
9049
|
+
}[]>;
|
|
9050
|
+
}
|
|
9051
|
+
declare class MicroService extends BaseDBModule {
|
|
9052
|
+
checkAuth(key: string): Promise<{
|
|
9053
|
+
ok: boolean;
|
|
9054
|
+
message: string;
|
|
9055
|
+
authData: null;
|
|
9056
|
+
} | {
|
|
9057
|
+
ok: boolean;
|
|
9058
|
+
message: string;
|
|
9059
|
+
authData: {
|
|
9060
|
+
app_id: any;
|
|
9061
|
+
};
|
|
9062
|
+
}>;
|
|
9063
|
+
user_data({ user_id, key }: {
|
|
9064
|
+
user_id: string;
|
|
9065
|
+
key?: string;
|
|
9066
|
+
}, ctx?: {
|
|
9067
|
+
authData?: {
|
|
9068
|
+
app_id: string;
|
|
9069
|
+
};
|
|
9070
|
+
}): Promise<{
|
|
9071
|
+
status: number;
|
|
9072
|
+
error: string;
|
|
9073
|
+
user?: undefined;
|
|
9074
|
+
} | {
|
|
9075
|
+
user: import("postgres").Row;
|
|
9076
|
+
status?: undefined;
|
|
9077
|
+
error?: undefined;
|
|
9078
|
+
}>;
|
|
9079
|
+
save_user_data({ user_id, key, value }: {
|
|
9080
|
+
user_id: string;
|
|
9081
|
+
key: string;
|
|
9082
|
+
value: string;
|
|
9083
|
+
}, ctx?: {
|
|
9084
|
+
authData?: {
|
|
9085
|
+
app_id: string;
|
|
9086
|
+
};
|
|
9087
|
+
}): Promise<{
|
|
9088
|
+
status: number;
|
|
9089
|
+
error: string;
|
|
9090
|
+
ok?: undefined;
|
|
9091
|
+
} | {
|
|
9092
|
+
ok: boolean;
|
|
9093
|
+
status?: undefined;
|
|
9094
|
+
error?: undefined;
|
|
9095
|
+
}>;
|
|
9096
|
+
}
|
|
9413
9097
|
declare const modules$1: {
|
|
9414
9098
|
account: Account;
|
|
9415
9099
|
analysis: Analysis;
|
|
@@ -9424,6 +9108,8 @@ declare const modules$1: {
|
|
|
9424
9108
|
iopay: IoPay;
|
|
9425
9109
|
mimo: Mimo$1;
|
|
9426
9110
|
galxe: Galxe;
|
|
9111
|
+
depinscan: DepinScan;
|
|
9112
|
+
microservice: MicroService;
|
|
9427
9113
|
};
|
|
9428
9114
|
export type DBModuleType = typeof modules$1;
|
|
9429
9115
|
export interface ConfigOptions {
|