@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,
|
package/dist/types/index.d.ts
CHANGED