@unifiedflow/unified-flow-sdk 1.0.5 → 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.
Files changed (2) hide show
  1. package/dist/client.js +8 -3
  2. package/package.json +22 -22
package/dist/client.js CHANGED
@@ -180,9 +180,10 @@ class UnifiedFlowClient {
180
180
  .cancel()
181
181
  .accounts({
182
182
  creator,
183
+ mint,
184
+ config: config,
183
185
  stream: streamPDA,
184
- config,
185
- vault,
186
+ vault: streamState.vault,
186
187
  creatorTokenAccount,
187
188
  recipientTokenAccount,
188
189
  tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
@@ -191,12 +192,14 @@ class UnifiedFlowClient {
191
192
  const { blockhash, lastValidBlockHeight } = await this.connection.getLatestBlockhash(this.commitment);
192
193
  const kitIx = this._toKitInstruction(anchorIx, [
193
194
  { address: creator.toBase58(), role: kit_1.AccountRole.WRITABLE_SIGNER, signer: this.kitSigner },
194
- { address: streamPDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
195
+ { address: mint.toBase58(), role: kit_1.AccountRole.READONLY },
195
196
  { address: config.toBase58(), role: kit_1.AccountRole.READONLY },
197
+ { address: streamPDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
196
198
  { address: vault.toBase58(), role: kit_1.AccountRole.WRITABLE },
197
199
  { address: creatorTokenAccount.toBase58(), role: kit_1.AccountRole.WRITABLE },
198
200
  { address: recipientTokenAccount.toBase58(), role: kit_1.AccountRole.WRITABLE },
199
201
  { address: spl_token_1.TOKEN_PROGRAM_ID.toBase58(), role: kit_1.AccountRole.READONLY },
202
+ { address: web3_js_1.SystemProgram.programId.toBase58(), role: kit_1.AccountRole.READONLY },
200
203
  ]);
201
204
  const txMsg = this._buildTxMessage(kitIx, blockhash, lastValidBlockHeight);
202
205
  onStatus?.("sending");
@@ -216,6 +219,7 @@ class UnifiedFlowClient {
216
219
  creator,
217
220
  stream: streamPDA,
218
221
  milestone: milestonePDA,
222
+ systemProgram: web3_js_1.SystemProgram.programId,
219
223
  })
220
224
  .instruction();
221
225
  const { blockhash, lastValidBlockHeight } = await this.connection.getLatestBlockhash(this.commitment);
@@ -223,6 +227,7 @@ class UnifiedFlowClient {
223
227
  { address: creator.toBase58(), role: kit_1.AccountRole.WRITABLE_SIGNER, signer: this.kitSigner },
224
228
  { address: streamPDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
225
229
  { address: milestonePDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
230
+ { address: web3_js_1.SystemProgram.programId.toBase58(), role: kit_1.AccountRole.READONLY },
226
231
  ]);
227
232
  const txMsg = this._buildTxMessage(kitIx, blockhash, lastValidBlockHeight);
228
233
  onStatus?.("sending");
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "name": "@unifiedflow/unified-flow-sdk",
3
- "version": "1.0.5",
4
- "description": "SDK for the Unified Flow program",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "tsc"
9
- },
10
- "files": [
11
- "dist",
12
- "README.md"
13
- ],
14
- "dependencies": {
15
- "@coral-xyz/anchor": "^0.32.1",
16
- "@solana/client": "^1.7.0",
17
- "@solana/spl-token": "^0.4.0",
18
- "@solana/web3.js": "^1.90.0"
19
- },
20
- "devDependencies": {
21
- "typescript": "^5.0.0"
22
- }
1
+ {
2
+ "name": "@unifiedflow/unified-flow-sdk",
3
+ "version": "1.0.7",
4
+ "description": "SDK for the Unified Flow program",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "README.md"
13
+ ],
14
+ "dependencies": {
15
+ "@coral-xyz/anchor": "^0.32.1",
16
+ "@solana/client": "^1.7.0",
17
+ "@solana/spl-token": "^0.4.0",
18
+ "@solana/web3.js": "^1.90.0"
19
+ },
20
+ "devDependencies": {
21
+ "typescript": "^5.0.0"
22
+ }
23
23
  }