@triadxyz/triad-protocol 2.9.9-beta → 3.0.0-beta

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/index.d.ts CHANGED
@@ -390,7 +390,7 @@ export default class TriadProtocolClient {
390
390
  *
391
391
  * @param options - RPC options
392
392
  */
393
- placeBidOrder({ marketId, amount, direction, mint, price }: PlaceBidOrderArgs, options?: RpcOptions): Promise<string>;
393
+ placeBidOrder({ marketId, amount, direction, mint, price, isTrdPayout }: PlaceBidOrderArgs, options?: RpcOptions): Promise<string>;
394
394
  /**
395
395
  * Place Ask Order
396
396
  * @param args.marketId - The ID of the Market
package/dist/index.js CHANGED
@@ -738,7 +738,7 @@ class TriadProtocolClient {
738
738
  *
739
739
  * @param options - RPC options
740
740
  */
741
- placeBidOrder({ marketId, amount, direction, mint, price }, options) {
741
+ placeBidOrder({ marketId, amount, direction, mint, price, isTrdPayout }, options) {
742
742
  return __awaiter(this, void 0, void 0, function* () {
743
743
  const ixs = [];
744
744
  const { userTradePDA, userTradeIxs } = yield this.getUserTradeNonce(marketId, Object.keys(direction)[0]);
@@ -749,7 +749,8 @@ class TriadProtocolClient {
749
749
  .placeBidOrder({
750
750
  amount: new bn_js_1.default(amount * Math.pow(10, this.decimals)),
751
751
  price: new bn_js_1.default(price * Math.pow(10, this.decimals)),
752
- orderDirection: direction
752
+ orderDirection: direction,
753
+ isTrdPayout
753
754
  })
754
755
  .accounts({
755
756
  signer: this.program.provider.publicKey,
@@ -3646,6 +3646,10 @@
3646
3646
  "name": "OrderDirection"
3647
3647
  }
3648
3648
  }
3649
+ },
3650
+ {
3651
+ "name": "is_trd_payout",
3652
+ "type": "bool"
3649
3653
  }
3650
3654
  ]
3651
3655
  }
@@ -116,6 +116,7 @@ export type PlaceBidOrderArgs = {
116
116
  flop: {};
117
117
  };
118
118
  mint: PublicKey;
119
+ isTrdPayout: boolean;
119
120
  };
120
121
  export type PlaceAskOrderArgs = {
121
122
  marketId: number;
@@ -4466,6 +4466,10 @@ export type TriadProtocol = {
4466
4466
  name: 'orderDirection';
4467
4467
  };
4468
4468
  };
4469
+ },
4470
+ {
4471
+ name: 'isTrdPayout';
4472
+ type: 'bool';
4469
4473
  }
4470
4474
  ];
4471
4475
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.9.9-beta",
3
+ "version": "3.0.0-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",