@triadxyz/triad-protocol 4.4.3 → 4.4.4
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/market.js
CHANGED
|
@@ -159,7 +159,8 @@ class Market {
|
|
|
159
159
|
.createOrderBook()
|
|
160
160
|
.accounts({
|
|
161
161
|
signer: this.program.provider.publicKey,
|
|
162
|
-
market: marketPDA
|
|
162
|
+
market: marketPDA,
|
|
163
|
+
orderBook: (0, pda_1.getOrderBookPDA)(this.program.programId, nextMarketId)
|
|
163
164
|
})
|
|
164
165
|
.instruction());
|
|
165
166
|
}
|
|
@@ -235,7 +236,8 @@ class Market {
|
|
|
235
236
|
.createOrderBook()
|
|
236
237
|
.accounts({
|
|
237
238
|
signer: this.program.provider.publicKey,
|
|
238
|
-
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
|
|
239
|
+
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId),
|
|
240
|
+
orderBook: (0, pda_1.getOrderBookPDA)(this.program.programId, nextMarketId)
|
|
239
241
|
})
|
|
240
242
|
.instruction());
|
|
241
243
|
}
|
|
@@ -428,7 +430,8 @@ class Market {
|
|
|
428
430
|
.createOrderBook()
|
|
429
431
|
.accounts({
|
|
430
432
|
signer: this.program.provider.publicKey,
|
|
431
|
-
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
|
|
433
|
+
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId),
|
|
434
|
+
orderBook: (0, pda_1.getOrderBookPDA)(this.program.programId, nextMarketId)
|
|
432
435
|
})
|
|
433
436
|
.instruction());
|
|
434
437
|
}
|
|
@@ -497,7 +500,8 @@ class Market {
|
|
|
497
500
|
.createOrderBook()
|
|
498
501
|
.accounts({
|
|
499
502
|
signer: this.program.provider.publicKey,
|
|
500
|
-
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
|
|
503
|
+
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId),
|
|
504
|
+
orderBook: (0, pda_1.getOrderBookPDA)(this.program.programId, nextMarketId)
|
|
501
505
|
})
|
|
502
506
|
.instruction());
|
|
503
507
|
return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
|
|
@@ -566,7 +570,8 @@ class Market {
|
|
|
566
570
|
.createOrderBook()
|
|
567
571
|
.accounts({
|
|
568
572
|
signer: this.program.provider.publicKey,
|
|
569
|
-
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId)
|
|
573
|
+
market: (0, pda_1.getMarketPDA)(this.program.programId, nextMarketId),
|
|
574
|
+
orderBook: (0, pda_1.getOrderBookPDA)(this.program.programId, nextMarketId)
|
|
570
575
|
})
|
|
571
576
|
.instruction());
|
|
572
577
|
return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
|
|
@@ -903,20 +903,7 @@
|
|
|
903
903
|
},
|
|
904
904
|
{
|
|
905
905
|
"name": "order_book",
|
|
906
|
-
"writable": true
|
|
907
|
-
"pda": {
|
|
908
|
-
"seeds": [
|
|
909
|
-
{
|
|
910
|
-
"kind": "const",
|
|
911
|
-
"value": [111, 114, 100, 101, 114, 95, 98, 111, 111, 107]
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
"kind": "account",
|
|
915
|
-
"path": "market.market_id",
|
|
916
|
-
"account": "MarketV2"
|
|
917
|
-
}
|
|
918
|
-
]
|
|
919
|
-
}
|
|
906
|
+
"writable": true
|
|
920
907
|
},
|
|
921
908
|
{
|
|
922
909
|
"name": "system_program",
|
|
@@ -1238,19 +1238,6 @@ export type TriadProtocol = {
|
|
|
1238
1238
|
{
|
|
1239
1239
|
name: 'orderBook';
|
|
1240
1240
|
writable: true;
|
|
1241
|
-
pda: {
|
|
1242
|
-
seeds: [
|
|
1243
|
-
{
|
|
1244
|
-
kind: 'const';
|
|
1245
|
-
value: [111, 114, 100, 101, 114, 95, 98, 111, 111, 107];
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
kind: 'account';
|
|
1249
|
-
path: 'market.market_id';
|
|
1250
|
-
account: 'marketV2';
|
|
1251
|
-
}
|
|
1252
|
-
];
|
|
1253
|
-
};
|
|
1254
1241
|
},
|
|
1255
1242
|
{
|
|
1256
1243
|
name: 'systemProgram';
|