@haven-fi/solauto-sdk 1.0.282 → 1.0.283
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solanaUtils.d.ts","sourceRoot":"","sources":["../../src/utils/solanaUtils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,MAAM,EACN,kBAAkB,EAClB,GAAG,EACH,kBAAkB,EAGnB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAKL,UAAU,EACV,SAAS,EAKT,sBAAsB,EAEvB,MAAM,iBAAiB,CAAC;AAgBzB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAIlE,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,UAErD;AAED,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,MAAM,UAE3D;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,SAAgC,GAC1C,CAAC,UAAU,EAAE,GAAG,CAAC,CAQnB;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,sBAAsB,GACzB,kBAAkB,CAMpB;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,GACtB,kBAAkB,CAOpB;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,kBAAkB,CAOpB;AAED,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,SAAS,GACd,kBAAkB,CAUpB;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,SAAS,EACtB,QAAQ,EAAE,MAAM,GACf,kBAAkB,CASpB;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,SAAS,EACvB,SAAS,EAAE,SAAS,GACn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C,MAAM,GAAG,SAAS,CAAC,CAsB7B;AAiDD,wBAAsB,8BAA8B,CAClD,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,EAAE,EAAE,kBAAkB,EACtB,MAAM,CAAC,EAAE,kBAAkB,EAC3B,eAAe,GAAE,kBAA2C,EAC5D,cAAc,CAAC,EAAE,MAAM,IAAI,GAC1B,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CA0DjC"}
|
@@ -139,7 +139,9 @@ function assembleFinalTransaction(signer, transaction, computeUnitPrice, compute
|
|
139
139
|
return tx;
|
140
140
|
}
|
141
141
|
async function simulateTransaction(umi, connection, transaction) {
|
142
|
-
|
142
|
+
(0, generalUtils_1.consoleLog)("TRANSACTION SIZE", transaction.getTransactionSize(umi));
|
143
|
+
(0, generalUtils_1.consoleLog)("TRANSACTION SIZE", transaction.useV0().getTransactionSize(umi));
|
144
|
+
const tx = (0, umi_web3js_adapters_1.toWeb3JsTransaction)(transaction.build(umi));
|
143
145
|
(0, generalUtils_1.consoleLog)("TRANSACTIONS REQUIRED", transaction.minimumTransactionsRequired(umi));
|
144
146
|
(0, generalUtils_1.consoleLog)("TRANSACTION SIZE", transaction.getTransactionSize(umi));
|
145
147
|
(0, generalUtils_1.consoleLog)("FITS IN ONE TX", transaction.fitsInOneTransaction(umi));
|
package/package.json
CHANGED
package/src/utils/solanaUtils.ts
CHANGED
@@ -271,7 +271,9 @@ async function simulateTransaction(
|
|
271
271
|
connection: Connection,
|
272
272
|
transaction: TransactionBuilder
|
273
273
|
): Promise<RpcResponseAndContext<SimulatedTransactionResponse>> {
|
274
|
-
|
274
|
+
consoleLog("TRANSACTION SIZE", transaction.getTransactionSize(umi));
|
275
|
+
consoleLog("TRANSACTION SIZE", transaction.useV0().getTransactionSize(umi));
|
276
|
+
const tx = toWeb3JsTransaction(transaction.build(umi));
|
275
277
|
consoleLog("TRANSACTIONS REQUIRED", transaction.minimumTransactionsRequired(umi));
|
276
278
|
consoleLog("TRANSACTION SIZE", transaction.getTransactionSize(umi));
|
277
279
|
consoleLog("FITS IN ONE TX", transaction.fitsInOneTransaction(umi));
|