@triadxyz/triad-protocol 2.7.2-beta → 2.7.3-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
@@ -190,6 +190,7 @@ export default class TriadProtocolClient {
190
190
  padding2: number[];
191
191
  createdAt: BN;
192
192
  padding3: number[];
193
+ isTrdPayout: boolean;
193
194
  padding: number[];
194
195
  }[];
195
196
  nonce: number;
@@ -403,7 +404,7 @@ export default class TriadProtocolClient {
403
404
  *
404
405
  * @param options - RPC options
405
406
  */
406
- marketBidOrder({ marketId, amount, direction, mint, feeBps }: MarketBidOrderArgs, options?: RpcOptions): Promise<string>;
407
+ marketBidOrder({ marketId, amount, direction, mint, feeBps, isTrdPayout }: MarketBidOrderArgs, options?: RpcOptions): Promise<string>;
407
408
  /**
408
409
  * Market Ask Order
409
410
  * @param args.marketId - The ID of the Market
package/dist/index.js CHANGED
@@ -792,7 +792,7 @@ class TriadProtocolClient {
792
792
  *
793
793
  * @param options - RPC options
794
794
  */
795
- marketBidOrder({ marketId, amount, direction, mint, feeBps = 0 }, options) {
795
+ marketBidOrder({ marketId, amount, direction, mint, feeBps = 0, isTrdPayout }, options) {
796
796
  return __awaiter(this, void 0, void 0, function* () {
797
797
  const marketPDA = (0, pda_1.getMarketPDA)(this.program.programId, marketId);
798
798
  const ixs = [];
@@ -835,7 +835,8 @@ class TriadProtocolClient {
835
835
  .marketBidOrder({
836
836
  amount: new bn_js_1.default(usdcAmount),
837
837
  orderDirection: direction,
838
- askOrderId: new bn_js_1.default(order.id)
838
+ askOrderId: new bn_js_1.default(order.id),
839
+ isTrdPayout
839
840
  })
840
841
  .accounts({
841
842
  signer: this.program.provider.publicKey,
@@ -2908,6 +2908,10 @@
2908
2908
  "name": "ask_order_id",
2909
2909
  "type": "u64"
2910
2910
  },
2911
+ {
2912
+ "name": "is_trd_payout",
2913
+ "type": "bool"
2914
+ },
2911
2915
  {
2912
2916
  "name": "order_direction",
2913
2917
  "type": {
@@ -3287,10 +3291,14 @@
3287
3291
  "array": ["u8", 8]
3288
3292
  }
3289
3293
  },
3294
+ {
3295
+ "name": "is_trd_payout",
3296
+ "type": "bool"
3297
+ },
3290
3298
  {
3291
3299
  "name": "padding",
3292
3300
  "type": {
3293
- "array": ["u8", 3]
3301
+ "array": ["u8", 2]
3294
3302
  }
3295
3303
  }
3296
3304
  ]
@@ -215,6 +215,7 @@ export type MarketBidOrderArgs = {
215
215
  };
216
216
  mint: PublicKey;
217
217
  feeBps: number;
218
+ isTrdPayout: boolean;
218
219
  };
219
220
  export type MarketAskOrderArgs = {
220
221
  marketId: number;
@@ -3699,6 +3699,10 @@ export type TriadProtocol = {
3699
3699
  name: 'askOrderId';
3700
3700
  type: 'u64';
3701
3701
  },
3702
+ {
3703
+ name: 'isTrdPayout';
3704
+ type: 'bool';
3705
+ },
3702
3706
  {
3703
3707
  name: 'orderDirection';
3704
3708
  type: {
@@ -4078,10 +4082,14 @@ export type TriadProtocol = {
4078
4082
  array: ['u8', 8];
4079
4083
  };
4080
4084
  },
4085
+ {
4086
+ name: 'isTrdPayout';
4087
+ type: 'bool';
4088
+ },
4081
4089
  {
4082
4090
  name: 'padding';
4083
4091
  type: {
4084
- array: ['u8', 3];
4092
+ array: ['u8', 2];
4085
4093
  };
4086
4094
  }
4087
4095
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.7.2-beta",
3
+ "version": "2.7.3-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",