@clonegod/ttd-sui-common 1.0.37 → 1.0.39

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.
@@ -79,6 +79,6 @@ const main = () => __awaiter(void 0, void 0, void 0, function* () {
79
79
  const wallet_address = '0x6367c8755b8c39cab7305bfa75cb17d050508d2e55f6862a7682377ad6d46ee7';
80
80
  const usdc_coin_type = '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC';
81
81
  const take_coin_type = '0x76a49ebaf991fa2d4cb6a352af14425d453fe2ba6802b5ed2361b227150b6689::take::TAKE';
82
- test_list_owned_objects(wallet_address, take_coin_type);
82
+ test_list_balances(wallet_address);
83
83
  });
84
84
  main();
@@ -27,7 +27,6 @@ class AbstractSuiDexTradePlus extends dist_1.AbastrcatTrade {
27
27
  this.walletAddresses = [];
28
28
  this.currentWalletAddress = '';
29
29
  this.grpcClient = grpcClient;
30
- this.initConfigs();
31
30
  this.chainNameLower = this.appConfig.env_args.chain_id.toLowerCase();
32
31
  this.redisClient = new redis_1.SimpleRedisClient(`${this.chainNameLower}:tx`);
33
32
  }
@@ -39,6 +38,7 @@ class AbstractSuiDexTradePlus extends dist_1.AbastrcatTrade {
39
38
  init() {
40
39
  return __awaiter(this, void 0, void 0, function* () {
41
40
  this.initSuiClient();
41
+ this.initConfigs();
42
42
  const walletGroupIds = process.env.SUI_WALLET_GROUP_IDS || '';
43
43
  this.walletMode = walletGroupIds && walletGroupIds.trim().split(',').length > 0 ? 'multi' : 'single';
44
44
  if (this.walletMode === 'multi') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sui-common",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Sui common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@clonegod/ttd-core": "2.0.63",
19
- "@grpc/grpc-js": "^1.9.14",
20
- "@grpc/proto-loader": "^0.7.10",
19
+ "@grpc/grpc-js": "^1.13.4",
20
+ "@grpc/proto-loader": "^0.8.0",
21
21
  "@mysten/sui": "^1.37.5",
22
22
  "axios": "^1.11.0",
23
23
  "dotenv": "^16.4.7",