@triadxyz/triad-protocol 0.6.5-beta.devnet → 0.6.6-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.
@@ -145,14 +145,9 @@ const updateBoost = () => __awaiter(void 0, void 0, void 0, function* () {
145
145
  console.log(updateBoostResponse);
146
146
  });
147
147
  const getMarkets = () => __awaiter(void 0, void 0, void 0, function* () {
148
- // const acc = await connection.getAccountInfo(
149
- // new PublicKey('2J7uYG9ND5pf4px8ABZBh2QtB5wrhkgRcSZvVDA3NZxk')
150
- // )
151
- // console.log(JSON.stringify(acc.data, null, 2))
152
148
  const markets = yield triadProtocol.trade.getMarkets();
153
149
  console.log(markets);
154
150
  });
155
- getMarkets();
156
151
  const initializeAllMarkets = () => __awaiter(void 0, void 0, void 0, function* () {
157
152
  for (const market of markets) {
158
153
  try {
@@ -166,6 +161,7 @@ const initializeAllMarkets = () => __awaiter(void 0, void 0, void 0, function* (
166
161
  }
167
162
  }
168
163
  });
164
+ initializeAllMarkets();
169
165
  const getOrders = () => __awaiter(void 0, void 0, void 0, function* () {
170
166
  const response = (yield triadProtocol.program.account.userTrade.all()).find((userTrade) => userTrade.account.authority.toBase58() === wallet.publicKey.toBase58());
171
167
  console.log(response.account.orders.map((order) => order.orderId.toNumber()));
@@ -353,7 +353,7 @@
353
353
  "seeds": [
354
354
  {
355
355
  "kind": "account",
356
- "path": "market"
356
+ "path": "fee_vault"
357
357
  },
358
358
  {
359
359
  "kind": "account",
@@ -475,7 +475,7 @@ export type TriadProtocol = {
475
475
  seeds: [
476
476
  {
477
477
  kind: 'account';
478
- path: 'market';
478
+ path: 'feeVault';
479
479
  },
480
480
  {
481
481
  kind: 'account';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "0.6.5-beta.devnet",
3
+ "version": "0.6.6-beta.devnet",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",