@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,
|
|
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,
|
|
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 (
|
|
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
|
|
586
|
+
.createCustomer({ id, name, authority, feeRecipient })
|
|
587
587
|
.accounts({
|
|
588
588
|
signer: this.program.provider.publicKey,
|
|
589
589
|
stake: stakePDA
|
package/dist/types/index.d.ts
CHANGED