sol-ihor-lab 1.0.4 → 1.0.5
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.
|
@@ -13,7 +13,6 @@ exports.TransactionExecuter = exports.ExectuerStatus = void 0;
|
|
|
13
13
|
const errors_1 = require("../errors");
|
|
14
14
|
const budget_1 = require("../utils/budget");
|
|
15
15
|
const execute_rpc_1 = require("./execute-rpc");
|
|
16
|
-
const bundle_1 = require("./bundle");
|
|
17
16
|
var ExectuerStatus;
|
|
18
17
|
(function (ExectuerStatus) {
|
|
19
18
|
ExectuerStatus[ExectuerStatus["EXE_STATUS_NONE"] = 0] = "EXE_STATUS_NONE";
|
|
@@ -65,7 +64,6 @@ class TransactionExecuter {
|
|
|
65
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
65
|
try {
|
|
67
66
|
this.setExecuterStatus(ExectuerStatus.EXE_STATUS_RUN);
|
|
68
|
-
yield (0, bundle_1.createAndSendBundle)(this.connection, this.transactions, this.jitoFeepair, this.jitoBlockEngine, this.jitoAuther, this.jitoFee);
|
|
69
67
|
this.setExecuterError(undefined);
|
|
70
68
|
this.setExecuterStatus(ExectuerStatus.EXE_STATUS_END);
|
|
71
69
|
}
|
|
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { TransactionExecuteError } from "../errors";
|
|
11
11
|
import { setTransactionBudget } from "../utils/budget";
|
|
12
12
|
import { confirmTx, sendTx } from "./execute-rpc";
|
|
13
|
-
import { createAndSendBundle } from "./bundle";
|
|
14
13
|
export var ExectuerStatus;
|
|
15
14
|
(function (ExectuerStatus) {
|
|
16
15
|
ExectuerStatus[ExectuerStatus["EXE_STATUS_NONE"] = 0] = "EXE_STATUS_NONE";
|
|
@@ -62,7 +61,6 @@ export class TransactionExecuter {
|
|
|
62
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
62
|
try {
|
|
64
63
|
this.setExecuterStatus(ExectuerStatus.EXE_STATUS_RUN);
|
|
65
|
-
yield createAndSendBundle(this.connection, this.transactions, this.jitoFeepair, this.jitoBlockEngine, this.jitoAuther, this.jitoFee);
|
|
66
64
|
this.setExecuterError(undefined);
|
|
67
65
|
this.setExecuterStatus(ExectuerStatus.EXE_STATUS_END);
|
|
68
66
|
}
|
package/package.json
CHANGED
|
@@ -3,8 +3,6 @@ import { TransactionInfo } from "../instructions/build-instruction";
|
|
|
3
3
|
import { TransactionExecuteError } from "../errors";
|
|
4
4
|
import { setTransactionBudget } from "../utils/budget";
|
|
5
5
|
import { confirmTx, sendTx } from "./execute-rpc";
|
|
6
|
-
import { createAndSendBundle } from "./bundle";
|
|
7
|
-
import { connect } from "http2";
|
|
8
6
|
|
|
9
7
|
export enum ExectuerStatus {
|
|
10
8
|
EXE_STATUS_NONE,
|
|
@@ -73,15 +71,7 @@ export class TransactionExecuter {
|
|
|
73
71
|
|
|
74
72
|
public async executeBundle() {
|
|
75
73
|
try {
|
|
76
|
-
this.setExecuterStatus(ExectuerStatus.EXE_STATUS_RUN);
|
|
77
|
-
await createAndSendBundle(
|
|
78
|
-
this.connection,
|
|
79
|
-
this.transactions,
|
|
80
|
-
this.jitoFeepair!,
|
|
81
|
-
this.jitoBlockEngine!,
|
|
82
|
-
this.jitoAuther!,
|
|
83
|
-
this.jitoFee
|
|
84
|
-
);
|
|
74
|
+
this.setExecuterStatus(ExectuerStatus.EXE_STATUS_RUN);
|
|
85
75
|
this.setExecuterError(undefined);
|
|
86
76
|
this.setExecuterStatus(ExectuerStatus.EXE_STATUS_END);
|
|
87
77
|
} catch (error) {
|