@stabbleorg/anchor-contrib
Advanced tools
Comparing version
@@ -20,3 +20,3 @@ import { Provider } from "@coral-xyz/anchor"; | ||
createSmartTransaction(instructions: TransactionInstruction[], altAccounts: AddressLookupTableAccount[] | undefined, priorityLevel: PriorityLevel, maxPriorityMicroLamports?: number): Promise<TransactionWithBlockhash>; | ||
sendSmartTransaction(instructions: TransactionInstruction[], signers?: Signer[], altAccounts?: AddressLookupTableAccount[], priorityLevel?: PriorityLevel, maxPriorityMicroLamports?: number, commitment?: Commitment, simulate?: boolean): Promise<TransactionSignature>; | ||
sendSmartTransaction(instructions: TransactionInstruction[], signers?: Signer[], altAccounts?: AddressLookupTableAccount[], priorityLevel?: PriorityLevel, maxPriorityMicroLamports?: number, simulate?: boolean, commitment?: Commitment): Promise<TransactionSignature>; | ||
getInstructionsFromBuffer(txBuffer: Buffer): Promise<{ | ||
@@ -27,3 +27,3 @@ signatures: Uint8Array[]; | ||
}>; | ||
sendTransactionFromBuffer(txBuffer: Buffer | Uint8Array, signers?: Signer[], commitment?: Commitment, simulate?: boolean): Promise<TransactionSignature>; | ||
sendTransactionFromBuffer(txBuffer: Buffer | Uint8Array, signers?: Signer[], simulate?: boolean, commitment?: Commitment): Promise<TransactionSignature>; | ||
} |
@@ -292,3 +292,3 @@ "use strict"; | ||
WalletContext.prototype.sendSmartTransaction = function (instructions_1) { | ||
return __awaiter(this, arguments, void 0, function (instructions, signers, altAccounts, priorityLevel, maxPriorityMicroLamports, commitment, simulate) { | ||
return __awaiter(this, arguments, void 0, function (instructions, signers, altAccounts, priorityLevel, maxPriorityMicroLamports, simulate, commitment) { | ||
var _a, transaction, blockhash, minContextSlot, sendOptions; | ||
@@ -299,4 +299,4 @@ if (signers === void 0) { signers = []; } | ||
if (maxPriorityMicroLamports === void 0) { maxPriorityMicroLamports = helius_1.MAXIMUM_PRIORITY_FEE; } | ||
if (simulate === void 0) { simulate = false; } | ||
if (commitment === void 0) { commitment = "confirmed"; } | ||
if (simulate === void 0) { simulate = false; } | ||
return __generator(this, function (_b) { | ||
@@ -392,8 +392,8 @@ switch (_b.label) { | ||
WalletContext.prototype.sendTransactionFromBuffer = function (txBuffer_1) { | ||
return __awaiter(this, arguments, void 0, function (txBuffer, signers, commitment, simulate) { | ||
return __awaiter(this, arguments, void 0, function (txBuffer, signers, simulate, commitment) { | ||
var _a, blockhash, minContextSlot, transaction, sendOptions, sim, sim; | ||
var _b, _c; | ||
if (signers === void 0) { signers = []; } | ||
if (simulate === void 0) { simulate = false; } | ||
if (commitment === void 0) { commitment = "confirmed"; } | ||
if (simulate === void 0) { simulate = false; } | ||
return __generator(this, function (_d) { | ||
@@ -400,0 +400,0 @@ switch (_d.label) { |
{ | ||
"name": "@stabbleorg/anchor-contrib", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -288,4 +288,4 @@ import bs58 from "bs58"; | ||
maxPriorityMicroLamports: number = MAXIMUM_PRIORITY_FEE, | ||
simulate: boolean = false, | ||
commitment: Commitment = "confirmed", | ||
simulate: boolean = false, | ||
): Promise<TransactionSignature> { | ||
@@ -371,4 +371,4 @@ const { transaction, blockhash, minContextSlot } = await this.createSmartTransaction( | ||
signers: Signer[] = [], | ||
simulate: boolean = false, | ||
commitment: Commitment = "confirmed", | ||
simulate: boolean = false, | ||
): Promise<TransactionSignature> { | ||
@@ -375,0 +375,0 @@ const { |
Sorry, the diff of this file is not supported yet
70861
0