@triadxyz/triad-protocol 2.5.7-beta → 2.5.8-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
@@ -328,7 +328,7 @@ export default class TriadProtocolClient {
328
328
  * @param options - RPC options
329
329
  *
330
330
  */
331
- createCustomer({ id, name, authority, feeRecipient, feeBps, isVerified }: CreateCustomerArgs, options?: RpcOptions): Promise<string>;
331
+ createCustomer({ id, name, authority, feeRecipient, isStaked }: CreateCustomerArgs, options?: RpcOptions): Promise<string>;
332
332
  /**
333
333
  * Get User Trade Nonce With Slots
334
334
  * @param userTrades - User Trades
package/dist/index.js CHANGED
@@ -575,15 +575,15 @@ class TriadProtocolClient {
575
575
  * @param options - RPC options
576
576
  *
577
577
  */
578
- createCustomer({ id, name, authority, feeRecipient, feeBps, isVerified }, options) {
578
+ createCustomer({ id, name, authority, feeRecipient, isStaked }, options) {
579
579
  return __awaiter(this, void 0, void 0, function* () {
580
580
  const ixs = [];
581
581
  let stakePDA = null;
582
- if (!isVerified) {
582
+ if (isStaked) {
583
583
  stakePDA = (0, stake_2.getStakePDA)(this.program.programId, this.program.provider.publicKey);
584
584
  }
585
585
  ixs.push(yield this.program.methods
586
- .createCustomer({ id, name, authority, feeRecipient, feeBps })
586
+ .createCustomer({ id, name, authority, feeRecipient })
587
587
  .accounts({
588
588
  signer: this.program.provider.publicKey,
589
589
  stake: stakePDA
@@ -2724,10 +2724,6 @@
2724
2724
  {
2725
2725
  "name": "fee_recipient",
2726
2726
  "type": "pubkey"
2727
- },
2728
- {
2729
- "name": "fee_bps",
2730
- "type": "u16"
2731
2727
  }
2732
2728
  ]
2733
2729
  }
@@ -144,7 +144,7 @@ export type CreateCustomerArgs = {
144
144
  authority: PublicKey;
145
145
  feeRecipient: PublicKey;
146
146
  feeBps: number;
147
- isVerified: boolean;
147
+ isStaked: boolean;
148
148
  };
149
149
  export type OpenOrderArgs = {
150
150
  marketId: number;
@@ -3573,10 +3573,6 @@ export type TriadProtocol = {
3573
3573
  {
3574
3574
  name: 'feeRecipient';
3575
3575
  type: 'pubkey';
3576
- },
3577
- {
3578
- name: 'feeBps';
3579
- type: 'u16';
3580
3576
  }
3581
3577
  ];
3582
3578
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.5.7-beta",
3
+ "version": "2.5.8-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",