@unifiedflow/unified-flow-sdk 1.0.6 → 1.0.7
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/client.js +5 -6
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -178,24 +178,23 @@ class UnifiedFlowClient {
|
|
|
178
178
|
const vault = (0, pda_1.getVaultATA)(mint, streamPDA);
|
|
179
179
|
const anchorIx = await this.program.methods
|
|
180
180
|
.cancel()
|
|
181
|
-
.
|
|
181
|
+
.accounts({
|
|
182
182
|
creator,
|
|
183
|
-
stream: streamPDA,
|
|
184
183
|
mint,
|
|
185
|
-
config,
|
|
186
|
-
|
|
184
|
+
config: config,
|
|
185
|
+
stream: streamPDA,
|
|
186
|
+
vault: streamState.vault,
|
|
187
187
|
creatorTokenAccount,
|
|
188
188
|
recipientTokenAccount,
|
|
189
189
|
tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
|
|
190
|
-
systemProgram: web3_js_1.SystemProgram.programId,
|
|
191
190
|
})
|
|
192
191
|
.instruction();
|
|
193
192
|
const { blockhash, lastValidBlockHeight } = await this.connection.getLatestBlockhash(this.commitment);
|
|
194
193
|
const kitIx = this._toKitInstruction(anchorIx, [
|
|
195
194
|
{ address: creator.toBase58(), role: kit_1.AccountRole.WRITABLE_SIGNER, signer: this.kitSigner },
|
|
196
|
-
{ address: streamPDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
|
|
197
195
|
{ address: mint.toBase58(), role: kit_1.AccountRole.READONLY },
|
|
198
196
|
{ address: config.toBase58(), role: kit_1.AccountRole.READONLY },
|
|
197
|
+
{ address: streamPDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
|
|
199
198
|
{ address: vault.toBase58(), role: kit_1.AccountRole.WRITABLE },
|
|
200
199
|
{ address: creatorTokenAccount.toBase58(), role: kit_1.AccountRole.WRITABLE },
|
|
201
200
|
{ address: recipientTokenAccount.toBase58(), role: kit_1.AccountRole.WRITABLE },
|