@haven-fi/solauto-sdk 1.0.278 → 1.0.280
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
|
-
const
|
142
|
+
const tx = (0, umi_web3js_adapters_1.toWeb3JsTransaction)(transaction.build(umi));
|
143
|
+
(0, generalUtils_1.consoleLog)(tx.serialize().length);
|
144
|
+
const simulationResult = await connection.simulateTransaction(tx, {
|
143
145
|
sigVerify: false,
|
144
146
|
commitment: "processed",
|
145
147
|
});
|
package/package.json
CHANGED
package/src/utils/solanaUtils.ts
CHANGED
@@ -271,8 +271,10 @@ async function simulateTransaction(
|
|
271
271
|
connection: Connection,
|
272
272
|
transaction: TransactionBuilder
|
273
273
|
): Promise<RpcResponseAndContext<SimulatedTransactionResponse>> {
|
274
|
+
const tx = toWeb3JsTransaction(transaction.build(umi));
|
275
|
+
consoleLog(tx.serialize().length);
|
274
276
|
const simulationResult = await connection.simulateTransaction(
|
275
|
-
|
277
|
+
tx,
|
276
278
|
{
|
277
279
|
sigVerify: false,
|
278
280
|
commitment: "processed",
|