@clonegod/ttd-sol-common 1.0.183 → 1.0.185
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.
|
@@ -434,7 +434,8 @@ class RpcClient {
|
|
|
434
434
|
}
|
|
435
435
|
}), 0);
|
|
436
436
|
const customersCU = Math.ceil(solana_trade_runtime.cu_limit);
|
|
437
|
-
const
|
|
437
|
+
const jitodontfrontPubkey = process.env.JITODONTFRONT_PUBKEY || 'jitodontfront111111111111111111111111111111';
|
|
438
|
+
const computeUnitsIx = (0, jitodontfront_1.createCustomComputeBudgetInstructionWithJitoDontFront)(new web3_js_1.PublicKey(jitodontfrontPubkey), customersCU);
|
|
438
439
|
instructions.unshift(computeUnitsIx);
|
|
439
440
|
if (isVersioned) {
|
|
440
441
|
const v0Message = new web3_js_1.TransactionMessage({
|
|
@@ -5,8 +5,8 @@ exports.createCustomComputeBudgetInstructionWithJitoDontFront = createCustomComp
|
|
|
5
5
|
const web3_js_1 = require("@solana/web3.js");
|
|
6
6
|
const web3_js_2 = require("@solana/web3.js");
|
|
7
7
|
const web3_js_3 = require("@solana/web3.js");
|
|
8
|
-
const jitodontfrontPubkey = process.env.JITODONTFRONT_PUBKEY || 'jitodontfront111111111111111111111111111111';
|
|
9
8
|
function createJitoDontFrontTransaction(recentBlockhash, tipPayer) {
|
|
9
|
+
const jitodontfrontPubkey = process.env.JITODONTFRONT_PUBKEY || 'jitodontfront111111111111111111111111111111';
|
|
10
10
|
const jitoDontFrontTransaction = new web3_js_2.Transaction();
|
|
11
11
|
jitoDontFrontTransaction.add(createCustomComputeBudgetInstruction(tipPayer.publicKey, new web3_js_3.PublicKey(jitodontfrontPubkey), 100000));
|
|
12
12
|
jitoDontFrontTransaction.recentBlockhash = recentBlockhash;
|