@triadxyz/triad-protocol 4.4.2 → 4.4.3

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/market.js +8 -4
  2. package/package.json +1 -1
package/dist/market.js CHANGED
@@ -227,7 +227,8 @@ class Market {
227
227
  .accounts({
228
228
  signer: this.program.provider.publicKey,
229
229
  pool: poolPDA,
230
- customer
230
+ customer,
231
+ market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
231
232
  })
232
233
  .instruction());
233
234
  ixs.push(yield this.program.methods
@@ -419,7 +420,8 @@ class Market {
419
420
  signer: this.program.provider.publicKey,
420
421
  pool: poolPDA,
421
422
  customer: market.customer,
422
- priceUpdate: feedPDA
423
+ priceUpdate: feedPDA,
424
+ market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
423
425
  })
424
426
  .instruction());
425
427
  ixs.push(yield this.program.methods
@@ -487,7 +489,8 @@ class Market {
487
489
  ? (0, pda_1.getPoolPDA)(this.program.programId, market.poolId)
488
490
  : null,
489
491
  customer: market.customer,
490
- priceUpdate: feedPDA
492
+ priceUpdate: feedPDA,
493
+ market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
491
494
  })
492
495
  .instruction());
493
496
  ixs.push(yield this.program.methods
@@ -555,7 +558,8 @@ class Market {
555
558
  pool: toResolve.poolId
556
559
  ? (0, pda_1.getPoolPDA)(this.program.programId, toResolve.poolId)
557
560
  : null,
558
- customer
561
+ customer,
562
+ market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
559
563
  })
560
564
  .instruction());
561
565
  ixs.push(yield this.program.methods
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",