@triadxyz/triad-protocol 2.3.6-beta → 2.3.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.js
CHANGED
|
@@ -188,6 +188,7 @@ class TriadProtocolClient {
|
|
|
188
188
|
tokenProgram: (0, helpers_1.getTokenProgram)(mint),
|
|
189
189
|
customer,
|
|
190
190
|
pool: poolPDA,
|
|
191
|
+
orderBook: (0, pda_1.getOrderBookPDA)(this.program.programId, marketId),
|
|
191
192
|
userTrade
|
|
192
193
|
})
|
|
193
194
|
.instruction());
|
|
@@ -243,6 +244,7 @@ class TriadProtocolClient {
|
|
|
243
244
|
mint,
|
|
244
245
|
tokenProgram: (0, helpers_1.getTokenProgram)(mint),
|
|
245
246
|
pool: poolPDA,
|
|
247
|
+
orderBook: (0, pda_1.getOrderBookPDA)(this.program.programId, market.marketId),
|
|
246
248
|
customer,
|
|
247
249
|
userTrade
|
|
248
250
|
})
|
|
@@ -694,18 +694,7 @@
|
|
|
694
694
|
{
|
|
695
695
|
"name": "order_book",
|
|
696
696
|
"writable": true,
|
|
697
|
-
"
|
|
698
|
-
"seeds": [
|
|
699
|
-
{
|
|
700
|
-
"kind": "const",
|
|
701
|
-
"value": [111, 114, 100, 101, 114, 95, 98, 111, 111, 107]
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
"kind": "arg",
|
|
705
|
-
"path": "args.market_id"
|
|
706
|
-
}
|
|
707
|
-
]
|
|
708
|
-
}
|
|
697
|
+
"signer": true
|
|
709
698
|
},
|
|
710
699
|
{
|
|
711
700
|
"name": "mint",
|
|
@@ -1002,18 +1002,7 @@ export type TriadProtocol = {
|
|
|
1002
1002
|
{
|
|
1003
1003
|
name: 'orderBook';
|
|
1004
1004
|
writable: true;
|
|
1005
|
-
|
|
1006
|
-
seeds: [
|
|
1007
|
-
{
|
|
1008
|
-
kind: 'const';
|
|
1009
|
-
value: [111, 114, 100, 101, 114, 95, 98, 111, 111, 107];
|
|
1010
|
-
},
|
|
1011
|
-
{
|
|
1012
|
-
kind: 'arg';
|
|
1013
|
-
path: 'args.market_id';
|
|
1014
|
-
}
|
|
1015
|
-
];
|
|
1016
|
-
};
|
|
1005
|
+
signer: true;
|
|
1017
1006
|
},
|
|
1018
1007
|
{
|
|
1019
1008
|
name: 'mint';
|