@triadxyz/triad-protocol 0.6.4-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,8 +145,8 @@ 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 response = yield triadProtocol.trade.getMarkets();
149
- console.log(response);
148
+ const markets = yield triadProtocol.trade.getMarkets();
149
+ console.log(markets);
150
150
  });
151
151
  const initializeAllMarkets = () => __awaiter(void 0, void 0, void 0, function* () {
152
152
  for (const market of markets) {
@@ -161,6 +161,7 @@ const initializeAllMarkets = () => __awaiter(void 0, void 0, void 0, function* (
161
161
  }
162
162
  }
163
163
  });
164
+ initializeAllMarkets();
164
165
  const getOrders = () => __awaiter(void 0, void 0, void 0, function* () {
165
166
  const response = (yield triadProtocol.program.account.userTrade.all()).find((userTrade) => userTrade.account.authority.toBase58() === wallet.publicKey.toBase58());
166
167
  console.log(response.account.orders.map((order) => order.orderId.toNumber()));
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "3ZmkveqMGGwf4coSRmJuYHCxaQjX1YXjbvM87v71J2P9",
2
+ "address": "4tKAoWz98eYiNh19UwBYzdqsNmTCrdwV4vMqdUwJi35E",
3
3
  "metadata": {
4
4
  "name": "triad_protocol",
5
5
  "version": "0.1.4",
@@ -1376,11 +1376,11 @@
1376
1376
  },
1377
1377
  {
1378
1378
  "name": "deposited",
1379
- "type": "u128"
1379
+ "type": "u64"
1380
1380
  },
1381
1381
  {
1382
1382
  "name": "withdrawn",
1383
- "type": "u128"
1383
+ "type": "u64"
1384
1384
  },
1385
1385
  {
1386
1386
  "name": "net_balance",
@@ -1392,7 +1392,7 @@
1392
1392
  },
1393
1393
  {
1394
1394
  "name": "project_claimed",
1395
- "type": "u128"
1395
+ "type": "u64"
1396
1396
  },
1397
1397
  {
1398
1398
  "name": "nft_holders_available",
@@ -1400,7 +1400,7 @@
1400
1400
  },
1401
1401
  {
1402
1402
  "name": "nft_holders_claimed",
1403
- "type": "u128"
1403
+ "type": "u64"
1404
1404
  },
1405
1405
  {
1406
1406
  "name": "market_available",
@@ -1408,7 +1408,7 @@
1408
1408
  },
1409
1409
  {
1410
1410
  "name": "market_claimed",
1411
- "type": "u128"
1411
+ "type": "u64"
1412
1412
  },
1413
1413
  {
1414
1414
  "name": "padding",
@@ -1496,7 +1496,7 @@
1496
1496
  {
1497
1497
  "name": "total_volume",
1498
1498
  "docs": ["Total trading volume (in TRD)"],
1499
- "type": "u128"
1499
+ "type": "u64"
1500
1500
  },
1501
1501
  {
1502
1502
  "name": "vault_token_account",
@@ -1551,7 +1551,7 @@
1551
1551
  {
1552
1552
  "name": "padding",
1553
1553
  "type": {
1554
- "array": ["u8", 232]
1554
+ "array": ["u8", 242]
1555
1555
  }
1556
1556
  }
1557
1557
  ]
@@ -5,7 +5,7 @@
5
5
  * IDL can be found at `target/idl/triad_protocol.json`.
6
6
  */
7
7
  export type TriadProtocol = {
8
- address: '3ZmkveqMGGwf4coSRmJuYHCxaQjX1YXjbvM87v71J2P9';
8
+ address: '4tKAoWz98eYiNh19UwBYzdqsNmTCrdwV4vMqdUwJi35E';
9
9
  metadata: {
10
10
  name: 'triadProtocol';
11
11
  version: '0.1.4';
@@ -1875,11 +1875,11 @@ export type TriadProtocol = {
1875
1875
  },
1876
1876
  {
1877
1877
  name: 'deposited';
1878
- type: 'u128';
1878
+ type: 'u64';
1879
1879
  },
1880
1880
  {
1881
1881
  name: 'withdrawn';
1882
- type: 'u128';
1882
+ type: 'u64';
1883
1883
  },
1884
1884
  {
1885
1885
  name: 'netBalance';
@@ -1891,7 +1891,7 @@ export type TriadProtocol = {
1891
1891
  },
1892
1892
  {
1893
1893
  name: 'projectClaimed';
1894
- type: 'u128';
1894
+ type: 'u64';
1895
1895
  },
1896
1896
  {
1897
1897
  name: 'nftHoldersAvailable';
@@ -1899,7 +1899,7 @@ export type TriadProtocol = {
1899
1899
  },
1900
1900
  {
1901
1901
  name: 'nftHoldersClaimed';
1902
- type: 'u128';
1902
+ type: 'u64';
1903
1903
  },
1904
1904
  {
1905
1905
  name: 'marketAvailable';
@@ -1907,7 +1907,7 @@ export type TriadProtocol = {
1907
1907
  },
1908
1908
  {
1909
1909
  name: 'marketClaimed';
1910
- type: 'u128';
1910
+ type: 'u64';
1911
1911
  },
1912
1912
  {
1913
1913
  name: 'padding';
@@ -1995,7 +1995,7 @@ export type TriadProtocol = {
1995
1995
  {
1996
1996
  name: 'totalVolume';
1997
1997
  docs: ['Total trading volume (in TRD)'];
1998
- type: 'u128';
1998
+ type: 'u64';
1999
1999
  },
2000
2000
  {
2001
2001
  name: 'vaultTokenAccount';
@@ -2050,7 +2050,7 @@ export type TriadProtocol = {
2050
2050
  {
2051
2051
  name: 'padding';
2052
2052
  type: {
2053
- array: ['u8', 232];
2053
+ array: ['u8', 242];
2054
2054
  };
2055
2055
  }
2056
2056
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "0.6.4-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",