@unifiedflow/unified-flow-sdk 1.0.5 → 1.0.6

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 +7 -1
  2. package/package.json +22 -22
package/dist/client.js CHANGED
@@ -178,25 +178,29 @@ class UnifiedFlowClient {
178
178
  const vault = (0, pda_1.getVaultATA)(mint, streamPDA);
179
179
  const anchorIx = await this.program.methods
180
180
  .cancel()
181
- .accounts({
181
+ .accountsStrict({
182
182
  creator,
183
183
  stream: streamPDA,
184
+ mint,
184
185
  config,
185
186
  vault,
186
187
  creatorTokenAccount,
187
188
  recipientTokenAccount,
188
189
  tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
190
+ systemProgram: web3_js_1.SystemProgram.programId,
189
191
  })
190
192
  .instruction();
191
193
  const { blockhash, lastValidBlockHeight } = await this.connection.getLatestBlockhash(this.commitment);
192
194
  const kitIx = this._toKitInstruction(anchorIx, [
193
195
  { address: creator.toBase58(), role: kit_1.AccountRole.WRITABLE_SIGNER, signer: this.kitSigner },
194
196
  { address: streamPDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
197
+ { address: mint.toBase58(), role: kit_1.AccountRole.READONLY },
195
198
  { address: config.toBase58(), role: kit_1.AccountRole.READONLY },
196
199
  { address: vault.toBase58(), role: kit_1.AccountRole.WRITABLE },
197
200
  { address: creatorTokenAccount.toBase58(), role: kit_1.AccountRole.WRITABLE },
198
201
  { address: recipientTokenAccount.toBase58(), role: kit_1.AccountRole.WRITABLE },
199
202
  { address: spl_token_1.TOKEN_PROGRAM_ID.toBase58(), role: kit_1.AccountRole.READONLY },
203
+ { address: web3_js_1.SystemProgram.programId.toBase58(), role: kit_1.AccountRole.READONLY },
200
204
  ]);
201
205
  const txMsg = this._buildTxMessage(kitIx, blockhash, lastValidBlockHeight);
202
206
  onStatus?.("sending");
@@ -216,6 +220,7 @@ class UnifiedFlowClient {
216
220
  creator,
217
221
  stream: streamPDA,
218
222
  milestone: milestonePDA,
223
+ systemProgram: web3_js_1.SystemProgram.programId,
219
224
  })
220
225
  .instruction();
221
226
  const { blockhash, lastValidBlockHeight } = await this.connection.getLatestBlockhash(this.commitment);
@@ -223,6 +228,7 @@ class UnifiedFlowClient {
223
228
  { address: creator.toBase58(), role: kit_1.AccountRole.WRITABLE_SIGNER, signer: this.kitSigner },
224
229
  { address: streamPDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
225
230
  { address: milestonePDA.toBase58(), role: kit_1.AccountRole.WRITABLE },
231
+ { address: web3_js_1.SystemProgram.programId.toBase58(), role: kit_1.AccountRole.READONLY },
226
232
  ]);
227
233
  const txMsg = this._buildTxMessage(kitIx, blockhash, lastValidBlockHeight);
228
234
  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.6",
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
  }