@triadxyz/triad-protocol 1.7.5-beta → 1.7.6-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/trade.d.ts CHANGED
@@ -294,17 +294,6 @@ export default class Trade {
294
294
  * @param options - RPC options
295
295
  */
296
296
  cancelOrder({ marketId, orderId, userNonce, orderSide, mint, userNonceBidOrder }: CancelOrderArgs, options?: RpcOptions): Promise<string>;
297
- /**
298
- * Update Customer Fee
299
- * @param args.id - The ID of the Customer
300
- * @param args.feeRecipient - The fee account
301
- *
302
- * @param options - RPC options
303
- */
304
- updateCustomerFee({ id, feeRecipient }: {
305
- id: number;
306
- feeRecipient: PublicKey;
307
- }, options?: RpcOptions): Promise<string>;
308
297
  /**
309
298
  * Market Bid Order
310
299
  * @param args.marketId - The ID of the Market
package/dist/trade.js CHANGED
@@ -539,20 +539,6 @@ class Trade {
539
539
  }), options);
540
540
  });
541
541
  }
542
- /**
543
- * Update Customer Fee
544
- * @param args.id - The ID of the Customer
545
- * @param args.feeRecipient - The fee account
546
- *
547
- * @param options - RPC options
548
- */
549
- updateCustomerFee({ id, feeRecipient }, options) {
550
- return __awaiter(this, void 0, void 0, function* () {
551
- return (0, sendTransactionWithOptions_1.default)(this.program.methods.updateCustomerFee({ id, feeRecipient }).accounts({
552
- signer: this.provider.publicKey
553
- }), options);
554
- });
555
- }
556
542
  /**
557
543
  * Market Bid Order
558
544
  * @param args.marketId - The ID of the Market
@@ -573,7 +559,7 @@ class Trade {
573
559
  ixs.push(yield this.program.methods
574
560
  .marketBidOrder({
575
561
  amount: new bn_js_1.default(amount * Math.pow(10, this.decimals)),
576
- direction
562
+ orderDirection: direction
577
563
  })
578
564
  .accounts({
579
565
  signer: this.provider.publicKey,
@@ -1476,47 +1476,6 @@
1476
1476
  ],
1477
1477
  "args": []
1478
1478
  },
1479
- {
1480
- "name": "update_customer_fee",
1481
- "discriminator": [218, 240, 1, 38, 34, 166, 40, 25],
1482
- "accounts": [
1483
- {
1484
- "name": "signer",
1485
- "writable": true,
1486
- "signer": true
1487
- },
1488
- {
1489
- "name": "customer",
1490
- "writable": true,
1491
- "pda": {
1492
- "seeds": [
1493
- {
1494
- "kind": "const",
1495
- "value": [99, 117, 115, 116, 111, 109, 101, 114]
1496
- },
1497
- {
1498
- "kind": "arg",
1499
- "path": "args.id"
1500
- }
1501
- ]
1502
- }
1503
- },
1504
- {
1505
- "name": "system_program",
1506
- "address": "11111111111111111111111111111111"
1507
- }
1508
- ],
1509
- "args": [
1510
- {
1511
- "name": "args",
1512
- "type": {
1513
- "defined": {
1514
- "name": "UpdateCustomerFeeArgs"
1515
- }
1516
- }
1517
- }
1518
- ]
1519
- },
1520
1479
  {
1521
1480
  "name": "update_market",
1522
1481
  "discriminator": [153, 39, 2, 197, 179, 50, 199, 217],
@@ -2229,7 +2188,7 @@
2229
2188
  "type": "u64"
2230
2189
  },
2231
2190
  {
2232
- "name": "direction",
2191
+ "name": "order_direction",
2233
2192
  "type": {
2234
2193
  "defined": {
2235
2194
  "name": "OrderDirection"
@@ -3039,22 +2998,6 @@
3039
2998
  ]
3040
2999
  }
3041
3000
  },
3042
- {
3043
- "name": "UpdateCustomerFeeArgs",
3044
- "type": {
3045
- "kind": "struct",
3046
- "fields": [
3047
- {
3048
- "name": "id",
3049
- "type": "u16"
3050
- },
3051
- {
3052
- "name": "fee_recipient",
3053
- "type": "pubkey"
3054
- }
3055
- ]
3056
- }
3057
- },
3058
3001
  {
3059
3002
  "name": "UpdateStakeVaultArgs",
3060
3003
  "type": {
@@ -53,7 +53,7 @@ export type Order = {
53
53
  orderSide: OrderSide;
54
54
  userNonce: string;
55
55
  linkedOrderId: string;
56
- account: string;
56
+ authority: string;
57
57
  createdAt: string;
58
58
  };
59
59
  export declare enum WinningDirection {
@@ -2033,47 +2033,6 @@ export type TriadProtocol = {
2033
2033
  ];
2034
2034
  args: [];
2035
2035
  },
2036
- {
2037
- name: 'updateCustomerFee';
2038
- discriminator: [218, 240, 1, 38, 34, 166, 40, 25];
2039
- accounts: [
2040
- {
2041
- name: 'signer';
2042
- writable: true;
2043
- signer: true;
2044
- },
2045
- {
2046
- name: 'customer';
2047
- writable: true;
2048
- pda: {
2049
- seeds: [
2050
- {
2051
- kind: 'const';
2052
- value: [99, 117, 115, 116, 111, 109, 101, 114];
2053
- },
2054
- {
2055
- kind: 'arg';
2056
- path: 'args.id';
2057
- }
2058
- ];
2059
- };
2060
- },
2061
- {
2062
- name: 'systemProgram';
2063
- address: '11111111111111111111111111111111';
2064
- }
2065
- ];
2066
- args: [
2067
- {
2068
- name: 'args';
2069
- type: {
2070
- defined: {
2071
- name: 'updateCustomerFeeArgs';
2072
- };
2073
- };
2074
- }
2075
- ];
2076
- },
2077
2036
  {
2078
2037
  name: 'updateMarket';
2079
2038
  discriminator: [153, 39, 2, 197, 179, 50, 199, 217];
@@ -2902,7 +2861,7 @@ export type TriadProtocol = {
2902
2861
  type: 'u64';
2903
2862
  },
2904
2863
  {
2905
- name: 'direction';
2864
+ name: 'orderDirection';
2906
2865
  type: {
2907
2866
  defined: {
2908
2867
  name: 'orderDirection';
@@ -3712,22 +3671,6 @@ export type TriadProtocol = {
3712
3671
  ];
3713
3672
  };
3714
3673
  },
3715
- {
3716
- name: 'updateCustomerFeeArgs';
3717
- type: {
3718
- kind: 'struct';
3719
- fields: [
3720
- {
3721
- name: 'id';
3722
- type: 'u16';
3723
- },
3724
- {
3725
- name: 'feeRecipient';
3726
- type: 'pubkey';
3727
- }
3728
- ];
3729
- };
3730
- },
3731
3674
  {
3732
3675
  name: 'updateStakeVaultArgs';
3733
3676
  type: {
@@ -102,7 +102,7 @@ const formatOrder = (order) => {
102
102
  userNonce: order.userNonce.toString(),
103
103
  linkedOrderId: order.linkedOrderId,
104
104
  filledShares: order.filledShares ? order.filledShares.toString() : '',
105
- account: order.account,
105
+ authority: order.authority || '',
106
106
  createdAt: order.createdAt ? order.createdAt.toString() : ''
107
107
  };
108
108
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "1.7.5-beta",
3
+ "version": "1.7.6-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",