@clonegod/ttd-sui-common 1.0.65 → 1.0.67

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.
@@ -290,8 +290,8 @@ class AbstractSuiDexTradePlus extends dist_1.AbastrcatTrade {
290
290
  });
291
291
  }
292
292
  compareBigIntBalance(a, b) {
293
- const balanceA = BigInt(a.balance);
294
- const balanceB = BigInt(b.balance);
293
+ const balanceA = BigInt((a === null || a === void 0 ? void 0 : a.balance) || '0');
294
+ const balanceB = BigInt((b === null || b === void 0 ? void 0 : b.balance) || '0');
295
295
  if (balanceA > balanceB)
296
296
  return -1;
297
297
  if (balanceA < balanceB)
@@ -22,3 +22,4 @@ export interface PoolObjectInfo {
22
22
  digest: string;
23
23
  initialSharedVersion?: string;
24
24
  }
25
+ export * from './wallet_assets_type';
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./wallet_assets_type"), exports);
@@ -0,0 +1,37 @@
1
+ export interface TokenInfo {
2
+ address: string;
3
+ name: string;
4
+ symbol: string;
5
+ decimals: number;
6
+ }
7
+ export interface AddressGroup {
8
+ [groupName: string]: string[];
9
+ }
10
+ export interface MonitorConfig {
11
+ wsUrl?: string;
12
+ rpcUrl: string;
13
+ addressGroups: AddressGroup;
14
+ logToFile?: boolean;
15
+ logFilePath?: string;
16
+ chainNameLower: string;
17
+ }
18
+ export interface WalletAssetType {
19
+ address: string;
20
+ tokens: TokenAssetsType[];
21
+ lastUpdated: string;
22
+ source: string;
23
+ }
24
+ export interface TokenAssetsType {
25
+ address: string;
26
+ symbol: string;
27
+ total_raw_balance: string;
28
+ balance: string;
29
+ lastUpdateTime: string;
30
+ objects: TokenObjectType[];
31
+ }
32
+ export interface TokenObjectType {
33
+ objectId: string;
34
+ version: string;
35
+ digest: string;
36
+ raw_balance: string;
37
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sui-common",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "description": "Sui common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",