@clonegod/ttd-sol-common 1.0.65 → 1.0.66
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.
|
@@ -32,8 +32,9 @@ class AppConfig extends events_1.EventEmitter {
|
|
|
32
32
|
this.arb_cache = (0, dist_1.getArbCache)(this.env_args);
|
|
33
33
|
yield this.arb_cache.init();
|
|
34
34
|
this.arb_cache.listen_trade_result(this);
|
|
35
|
+
let commitment = process.env.CONNECTION_COMMITMENT_LEVEL || common_1.COMMITMENT_LEVEL.CONFIRMED;
|
|
35
36
|
this.connection = new web3_js_1.Connection(this.env_args.rpc_endpoint, {
|
|
36
|
-
commitment
|
|
37
|
+
commitment,
|
|
37
38
|
});
|
|
38
39
|
let common_service_config = yield this.arb_cache.get_common_service();
|
|
39
40
|
if ((0, dist_1.isEmpty)(common_service_config)) {
|
|
@@ -89,7 +89,7 @@ const parse_tx_failed_error_code = (dex_id_list, tx_failed_error_msg) => {
|
|
|
89
89
|
err_code = parse_orca_failure(tx_failed_error_msg);
|
|
90
90
|
}
|
|
91
91
|
if (tx_failed_error_msg.includes('exceeded CUs meter at BPF instruction')) {
|
|
92
|
-
|
|
92
|
+
err_code = dist_1.TradeErrorCodeType.ExceededCUsLimit;
|
|
93
93
|
}
|
|
94
94
|
if (!err_code) {
|
|
95
95
|
err_code = dist_1.TradeErrorCodeType.UNKOWN;
|