@clonegod/ttd-core 2.0.61 → 2.0.63
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/cache/arb_cache.d.ts +1 -1
- package/dist/cache/arb_cache.js +2 -2
- package/package.json +1 -1
- package/types/index.d.ts +5 -0
|
@@ -76,5 +76,5 @@ export declare class ArbCache {
|
|
|
76
76
|
get_trade_dex_pool_list(dex_id_list: string[], trade_runtime: TradeRuntimeType): Promise<StandardPoolInfoType[]>;
|
|
77
77
|
get_group_trade_pair_info(chain_id: CHAIN_ID, group_id: string, pair: string): Promise<Map<string, StandardPairType>>;
|
|
78
78
|
get_all_trade_tokens(force_refresh?: boolean): Promise<StandardTokenInfoType[]>;
|
|
79
|
-
get_all_trade_pools(group_id?: string): Promise<StandardPoolInfoType[]>;
|
|
79
|
+
get_all_trade_pools(group_id?: string, force_refresh?: boolean): Promise<StandardPoolInfoType[]>;
|
|
80
80
|
}
|
package/dist/cache/arb_cache.js
CHANGED
|
@@ -978,12 +978,12 @@ class ArbCache {
|
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
get_all_trade_pools() {
|
|
981
|
-
return __awaiter(this, arguments, void 0, function* (group_id = '') {
|
|
981
|
+
return __awaiter(this, arguments, void 0, function* (group_id = '', force_refresh = true) {
|
|
982
982
|
let pools = [];
|
|
983
983
|
let group_id_list = yield this.get_trade_group_id_list();
|
|
984
984
|
group_id_list = group_id_list.filter(gid => (0, index_1.isEmpty)(group_id) || gid === group_id);
|
|
985
985
|
for (let group_id of group_id_list) {
|
|
986
|
-
let trade_group_conifg = yield this.get_trade_service_by_group_id(group_id);
|
|
986
|
+
let trade_group_conifg = yield this.get_trade_service_by_group_id(group_id, force_refresh);
|
|
987
987
|
let { pair_list } = trade_group_conifg;
|
|
988
988
|
let trade_group_pool_id_list = [];
|
|
989
989
|
for (let trade_pair of pair_list) {
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -175,6 +175,11 @@ export interface TradeStrategyType {
|
|
|
175
175
|
// evm EIP-1559 交易类型
|
|
176
176
|
evm_max_gas_price_gwei: number // 0.01 Gwei 允许的gas price上限
|
|
177
177
|
evm_max_priority_fee_per_gas_gwei: number // 0.002 Gwei 允许的priority fee上限,需小于 max_gas_price_gwei
|
|
178
|
+
|
|
179
|
+
// sui
|
|
180
|
+
gas_price: number // default
|
|
181
|
+
gas_price_multiplier: number // default 1.2
|
|
182
|
+
gas_limit: number // max gas limit
|
|
178
183
|
}
|
|
179
184
|
|
|
180
185
|
|