@orca-so/common-sdk
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { AccountInfo, u64 } from "@solana/spl-token"; | ||
@@ -2,0 +3,0 @@ import { Connection, PublicKey } from "@solana/web3.js"; |
@@ -61,3 +61,3 @@ import { AnchorProvider } from "@project-serum/anchor"; | ||
*/ | ||
txnSize(): Promise<number>; | ||
txnSize(options?: BuildOptions): Promise<number>; | ||
/** | ||
@@ -64,0 +64,0 @@ * Constructs a transaction payload with the gathered instructions |
@@ -99,3 +99,3 @@ "use strict"; | ||
*/ | ||
txnSize() { | ||
txnSize(options = { latestBlockhash: undefined }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -105,3 +105,3 @@ if (this.isEmpty()) { | ||
} | ||
const request = yield this.build(); | ||
const request = yield this.build(options); | ||
return request.transaction.serialize({ requireAllSignatures: false }).length; | ||
@@ -108,0 +108,0 @@ }); |
{ | ||
"name": "@orca-so/common-sdk", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Common Typescript components across Orca", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/orca-so/orca-sdks", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88888
1111