@pioneer-platform/thor-network 8.3.3 → 8.3.5

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.
package/lib/types.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ export type Chain = string;
2
+ export declare enum MemoType {
3
+ SWAP = "SWAP",
4
+ DEPOSIT = "DEPOSIT",
5
+ WITHDRAW = "WITHDRAW",
6
+ BOND = "BOND",
7
+ UNBOND = "UNBOND",
8
+ LEAVE = "LEAVE",
9
+ OUTBOUND = "OUTBOUND",
10
+ REFUND = "REFUND",
11
+ ADD = "ADD",
12
+ MIGRATE = "MIGRATE",
13
+ THORNAME = "THORNAME"
14
+ }
15
+ export type BaseDecimal = string | number;
16
+ export type Asset = {
17
+ chain: Chain;
18
+ symbol: string;
19
+ ticker: string;
20
+ synth?: boolean;
21
+ };
package/lib/types.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // Mock types for @coinmasters/types
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MemoType = void 0;
5
+ var MemoType;
6
+ (function (MemoType) {
7
+ MemoType["SWAP"] = "SWAP";
8
+ MemoType["DEPOSIT"] = "DEPOSIT";
9
+ MemoType["WITHDRAW"] = "WITHDRAW";
10
+ MemoType["BOND"] = "BOND";
11
+ MemoType["UNBOND"] = "UNBOND";
12
+ MemoType["LEAVE"] = "LEAVE";
13
+ MemoType["OUTBOUND"] = "OUTBOUND";
14
+ MemoType["REFUND"] = "REFUND";
15
+ MemoType["ADD"] = "ADD";
16
+ MemoType["MIGRATE"] = "MIGRATE";
17
+ MemoType["THORNAME"] = "THORNAME";
18
+ })(MemoType || (exports.MemoType = MemoType = {}));
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@pioneer-platform/thor-network",
3
- "version": "8.3.3",
3
+ "version": "8.3.5",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {
7
- "create": "npm run build && npm run test",
7
+ "create": "pnpm run build && pnpm run test",
8
8
  "build": "tsc -p .",
9
- "test": "npm run build && node __tests__/test-module.js",
10
- "prepublish": "rm -R lib && npm run build",
11
- "refresh": "rm -rf ./node_modules ./package-lock.json && npm install"
9
+ "test": "pnpm run build && node __tests__/test-module.js",
10
+ "prepublish": "rm -R lib && pnpm run build",
11
+ "refresh": "rm -rf ./node_modules ./package-lock.json && pnpm install"
12
12
  },
13
13
  "dependencies": {
14
14
  "@pioneer-platform/loggerdog": "^8.3.1",
15
+ "axios": "^1.9.0",
15
16
  "axios-retry": "^3.3.1",
16
17
  "bech32": "^1.1.4",
17
18
  "bip32": "^2.0.5",
@@ -25,7 +26,7 @@
25
26
  "prettyjson": "^1.2.1",
26
27
  "secp256k1": "^3.8.0",
27
28
  "ts-node": "^8.10.2",
28
- "typescript": "^5.0.2"
29
+ "typescript": "^5.0.4"
29
30
  },
30
- "gitHead": "e4a7114f00103ee48533c369dba4a02021ddcbe4"
31
+ "gitHead": "aeae28273014ab69b42f22abec159c6693a56c40"
31
32
  }
package/tsconfig.json CHANGED
@@ -1,13 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es5",
3
+ "target": "es2020",
4
4
  "module": "commonjs",
5
- "lib": ["es6", "es2015", "dom"],
5
+ "lib": ["es2020", "dom"],
6
6
  "declaration": true,
7
- "outDir": "lib",
8
- "rootDir": "src",
9
- "strict": true,
10
- "types": ["node"],
11
- "esModuleInterop": true
12
- }
7
+ "outDir": "./lib",
8
+ "rootDir": "./src",
9
+ "strict": false,
10
+ "noImplicitAny": false,
11
+ "strictNullChecks": false,
12
+ "strictFunctionTypes": false,
13
+ "strictBindCallApply": false,
14
+ "strictPropertyInitialization": false,
15
+ "noImplicitThis": false,
16
+ "alwaysStrict": false,
17
+ "esModuleInterop": true,
18
+ "resolveJsonModule": true,
19
+ "skipLibCheck": true,
20
+ "forceConsistentCasingInFileNames": true
21
+ },
22
+ "include": ["src"],
23
+ "exclude": ["node_modules", "**/__tests__/*"]
13
24
  }