@streamflow/stream 8.0.1 → 8.0.2-alpha.p287.a3616ff
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.
- package/dist/cjs/index.cjs +6 -19
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/solana/index.cjs +6 -19
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/esm/index.js +7 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/index.js +7 -20
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -2180,7 +2180,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
2180
2180
|
ixs.push(...await solana.prepareWrappedAccount(this.connection, sender.publicKey, totalAmount));
|
|
2181
2181
|
}
|
|
2182
2182
|
await this.applyCustomAfterInstructions(ixs, customInstructions, metadataPubKey);
|
|
2183
|
-
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, sender.publicKey, void 0,
|
|
2183
|
+
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, sender.publicKey, void 0, [
|
|
2184
|
+
metadata
|
|
2185
|
+
]);
|
|
2184
2186
|
const signature = await solana.signAndExecuteTransaction(
|
|
2185
2187
|
this.connection,
|
|
2186
2188
|
extParams.sender,
|
|
@@ -2404,7 +2406,7 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
2404
2406
|
ixs,
|
|
2405
2407
|
extParams.sender.publicKey,
|
|
2406
2408
|
void 0,
|
|
2407
|
-
metadata
|
|
2409
|
+
[metadata]
|
|
2408
2410
|
);
|
|
2409
2411
|
const signature = await solana.signAndExecuteTransaction(
|
|
2410
2412
|
this.connection,
|
|
@@ -2566,16 +2568,7 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
2566
2568
|
}
|
|
2567
2569
|
const { value: hash, context } = await this.connection.getLatestBlockhashAndContext();
|
|
2568
2570
|
for (const { ixs, metadata, recipient } of instructionsBatch) {
|
|
2569
|
-
|
|
2570
|
-
payerKey: sender.publicKey,
|
|
2571
|
-
recentBlockhash: hash.blockhash,
|
|
2572
|
-
instructions: ixs
|
|
2573
|
-
}).compileToV0Message();
|
|
2574
|
-
const tx = new web3_js.VersionedTransaction(messageV0);
|
|
2575
|
-
if (metadata) {
|
|
2576
|
-
tx.sign([metadata]);
|
|
2577
|
-
}
|
|
2578
|
-
batch.push({ tx, recipient });
|
|
2571
|
+
batch.push({ tx: solana.createVersionedTransaction(ixs, sender.publicKey, hash.blockhash, [metadata]), recipient });
|
|
2579
2572
|
}
|
|
2580
2573
|
const prepareInstructions = await this.getCreateATAInstructions(
|
|
2581
2574
|
[STREAMFLOW_TREASURY_PUBLIC_KEY, partnerPublicKey],
|
|
@@ -2589,14 +2582,8 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
2589
2582
|
prepareInstructions.push(...nativeInstructions);
|
|
2590
2583
|
}
|
|
2591
2584
|
if (prepareInstructions.length > 0) {
|
|
2592
|
-
const messageV0 = new web3_js.TransactionMessage({
|
|
2593
|
-
payerKey: sender.publicKey,
|
|
2594
|
-
recentBlockhash: hash.blockhash,
|
|
2595
|
-
instructions: prepareInstructions
|
|
2596
|
-
}).compileToV0Message();
|
|
2597
|
-
const tx = new web3_js.VersionedTransaction(messageV0);
|
|
2598
2585
|
batch.push({
|
|
2599
|
-
tx,
|
|
2586
|
+
tx: solana.createVersionedTransaction(prepareInstructions, sender.publicKey, hash.blockhash),
|
|
2600
2587
|
recipient: sender.publicKey.toBase58()
|
|
2601
2588
|
});
|
|
2602
2589
|
}
|