@triadxyz/triad-protocol 0.5.5-beta.devnet → 0.5.7-beta.devnet
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/trade.js
CHANGED
|
@@ -26,8 +26,9 @@ class Trade {
|
|
|
26
26
|
*/
|
|
27
27
|
getMarkets() {
|
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return this.program.account.market.all().then((markets) => markets.map(({ account }) => ({
|
|
29
|
+
return this.program.account.market.all().then((markets) => markets.map(({ account, publicKey }) => ({
|
|
30
30
|
bump: account.bump,
|
|
31
|
+
address: publicKey.toString(),
|
|
31
32
|
authority: account.authority.toString(),
|
|
32
33
|
marketId: account.marketId.toNumber(),
|
|
33
34
|
name: account.name,
|
|
@@ -56,6 +57,7 @@ class Trade {
|
|
|
56
57
|
const account = yield this.program.account.market.fetch(address);
|
|
57
58
|
return {
|
|
58
59
|
bump: account.bump,
|
|
60
|
+
address: address.toString(),
|
|
59
61
|
authority: account.authority.toString(),
|
|
60
62
|
marketId: account.marketId.toNumber(),
|
|
61
63
|
name: account.name,
|
package/dist/types/trade.d.ts
CHANGED
|
@@ -2121,6 +2121,14 @@ export type TriadProtocol = {
|
|
|
2121
2121
|
name: 'marketPrice';
|
|
2122
2122
|
type: 'u64';
|
|
2123
2123
|
},
|
|
2124
|
+
{
|
|
2125
|
+
name: 'orderType';
|
|
2126
|
+
type: {
|
|
2127
|
+
defined: {
|
|
2128
|
+
name: 'orderType';
|
|
2129
|
+
};
|
|
2130
|
+
};
|
|
2131
|
+
},
|
|
2124
2132
|
{
|
|
2125
2133
|
name: 'timestamp';
|
|
2126
2134
|
type: 'i64';
|