@streamflow/stream 8.0.1 → 8.0.2-alpha.p287.46f7492
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
package/dist/cjs/index.cjs
CHANGED
|
@@ -4774,7 +4774,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
4774
4774
|
ixs.push(...await solana.prepareWrappedAccount(this.connection, sender.publicKey, totalAmount));
|
|
4775
4775
|
}
|
|
4776
4776
|
await this.applyCustomAfterInstructions(ixs, customInstructions, metadataPubKey);
|
|
4777
|
-
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, sender.publicKey, void 0,
|
|
4777
|
+
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, sender.publicKey, void 0, [
|
|
4778
|
+
metadata
|
|
4779
|
+
]);
|
|
4778
4780
|
const signature = await solana.signAndExecuteTransaction(
|
|
4779
4781
|
this.connection,
|
|
4780
4782
|
extParams.sender,
|
|
@@ -4998,7 +5000,7 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
4998
5000
|
ixs,
|
|
4999
5001
|
extParams.sender.publicKey,
|
|
5000
5002
|
void 0,
|
|
5001
|
-
metadata
|
|
5003
|
+
[metadata]
|
|
5002
5004
|
);
|
|
5003
5005
|
const signature = await solana.signAndExecuteTransaction(
|
|
5004
5006
|
this.connection,
|
|
@@ -5160,16 +5162,7 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
5160
5162
|
}
|
|
5161
5163
|
const { value: hash, context } = await this.connection.getLatestBlockhashAndContext();
|
|
5162
5164
|
for (const { ixs, metadata, recipient } of instructionsBatch) {
|
|
5163
|
-
|
|
5164
|
-
payerKey: sender.publicKey,
|
|
5165
|
-
recentBlockhash: hash.blockhash,
|
|
5166
|
-
instructions: ixs
|
|
5167
|
-
}).compileToV0Message();
|
|
5168
|
-
const tx = new web3_js.VersionedTransaction(messageV0);
|
|
5169
|
-
if (metadata) {
|
|
5170
|
-
tx.sign([metadata]);
|
|
5171
|
-
}
|
|
5172
|
-
batch.push({ tx, recipient });
|
|
5165
|
+
batch.push({ tx: solana.createVersionedTransaction(ixs, sender.publicKey, hash.blockhash, [metadata]), recipient });
|
|
5173
5166
|
}
|
|
5174
5167
|
const prepareInstructions = await this.getCreateATAInstructions(
|
|
5175
5168
|
[STREAMFLOW_TREASURY_PUBLIC_KEY, partnerPublicKey],
|
|
@@ -5183,14 +5176,8 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
5183
5176
|
prepareInstructions.push(...nativeInstructions);
|
|
5184
5177
|
}
|
|
5185
5178
|
if (prepareInstructions.length > 0) {
|
|
5186
|
-
const messageV0 = new web3_js.TransactionMessage({
|
|
5187
|
-
payerKey: sender.publicKey,
|
|
5188
|
-
recentBlockhash: hash.blockhash,
|
|
5189
|
-
instructions: prepareInstructions
|
|
5190
|
-
}).compileToV0Message();
|
|
5191
|
-
const tx = new web3_js.VersionedTransaction(messageV0);
|
|
5192
5179
|
batch.push({
|
|
5193
|
-
tx,
|
|
5180
|
+
tx: solana.createVersionedTransaction(prepareInstructions, sender.publicKey, hash.blockhash),
|
|
5194
5181
|
recipient: sender.publicKey.toBase58()
|
|
5195
5182
|
});
|
|
5196
5183
|
}
|