@typus/typus-sdk 1.0.87 → 1.0.88

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.
@@ -1,5 +1,5 @@
1
- import { SuiClient } from "@mysten/sui.js/dist/cjs/client";
2
- export declare function getPool(client: SuiClient, pool: string): Promise<PoolData>;
1
+ import { JsonRpcProvider } from "@mysten/sui.js";
2
+ export declare function getPool(provider: JsonRpcProvider, pool: string): Promise<PoolData>;
3
3
  interface PoolData {
4
4
  is_live: boolean;
5
5
  num: number;
@@ -37,14 +37,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getPool = void 0;
40
- // import { JsonRpcProvider } from "@mysten/sui.js/dist/cjs/providers/json-rpc-provider";
41
- function getPool(client, pool) {
40
+ function getPool(provider, pool) {
42
41
  var _a;
43
42
  return __awaiter(this, void 0, void 0, function () {
44
43
  var res, fields, poolData;
45
44
  return __generator(this, function (_b) {
46
45
  switch (_b.label) {
47
- case 0: return [4 /*yield*/, client.getObject({ id: pool, options: { showContent: true } })];
46
+ case 0: return [4 /*yield*/, provider.getObject({ id: pool, options: { showContent: true } })];
48
47
  case 1:
49
48
  res = _b.sent();
50
49
  fields = (_a = res.data) === null || _a === void 0 ? void 0 : _a.content.fields;
package/package.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.0.87",
5
+ "version": "1.0.88",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
- "@mysten/kiosk": "^0.5.1",
9
- "@mysten/sui.js": "^0.41.0",
8
+ "@mysten/kiosk": "^0.3.3",
9
+ "@mysten/sui.js": "^0.37.1",
10
10
  "@types/node": "^20.5.7",
11
11
  "bignumber.js": "^9.1.1",
12
12
  "bs58": "^5.0.0",