@clonegod/ttd-core 2.0.62 → 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.
|
@@ -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) {
|