@triadxyz/triad-protocol 2.7.6-beta → 2.7.7-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 +1 -1
- package/dist/index.js +2 -2
- package/dist/types/idl_triad_protocol.json +10 -0
- package/dist/types/triad_protocol.d.ts +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -423,7 +423,7 @@ export default class TriadProtocolClient {
|
|
|
423
423
|
*
|
|
424
424
|
* @param options - RPC options
|
|
425
425
|
*/
|
|
426
|
-
marketAskOrder({ marketId, shares, bidOrderId, direction, mint
|
|
426
|
+
marketAskOrder({ marketId, shares, bidOrderId, direction, mint }: MarketAskOrderArgs, options?: RpcOptions): Promise<string>;
|
|
427
427
|
/**
|
|
428
428
|
* Get Orders By Market ID
|
|
429
429
|
* @param marketId - The ID of the market
|
package/dist/index.js
CHANGED
|
@@ -490,7 +490,7 @@ class TriadProtocolClient {
|
|
|
490
490
|
connection: this.program.provider.connection,
|
|
491
491
|
wallet: this.program.provider.publicKey.toBase58(),
|
|
492
492
|
inToken: constants_1.USDC_MINT.toBase58(),
|
|
493
|
-
amount: order.shares
|
|
493
|
+
amount: order.shares
|
|
494
494
|
});
|
|
495
495
|
if (swapIxs.length === 0) {
|
|
496
496
|
return;
|
|
@@ -892,7 +892,7 @@ class TriadProtocolClient {
|
|
|
892
892
|
*
|
|
893
893
|
* @param options - RPC options
|
|
894
894
|
*/
|
|
895
|
-
marketAskOrder({ marketId, shares, bidOrderId, direction, mint
|
|
895
|
+
marketAskOrder({ marketId, shares, bidOrderId, direction, mint }, options) {
|
|
896
896
|
return __awaiter(this, void 0, void 0, function* () {
|
|
897
897
|
const marketPDA = (0, pda_1.getMarketPDA)(this.program.programId, marketId);
|
|
898
898
|
const ixs = [];
|
|
@@ -2435,6 +2435,16 @@
|
|
|
2435
2435
|
"code": 6027,
|
|
2436
2436
|
"name": "MarketAlreadyPaidOut",
|
|
2437
2437
|
"msg": "Market already paid out"
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
"code": 6028,
|
|
2441
|
+
"name": "InvalidNonce",
|
|
2442
|
+
"msg": "Invalid Nonce"
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
"code": 6029,
|
|
2446
|
+
"name": "InvalidMainOrder",
|
|
2447
|
+
"msg": "Invalid Main Order"
|
|
2438
2448
|
}
|
|
2439
2449
|
],
|
|
2440
2450
|
"types": [
|
|
@@ -3255,6 +3255,16 @@ export type TriadProtocol = {
|
|
|
3255
3255
|
code: 6027;
|
|
3256
3256
|
name: 'marketAlreadyPaidOut';
|
|
3257
3257
|
msg: 'Market already paid out';
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
code: 6028;
|
|
3261
|
+
name: 'invalidNonce';
|
|
3262
|
+
msg: 'Invalid Nonce';
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
code: 6029;
|
|
3266
|
+
name: 'invalidMainOrder';
|
|
3267
|
+
msg: 'Invalid Main Order';
|
|
3258
3268
|
}
|
|
3259
3269
|
];
|
|
3260
3270
|
types: [
|