@pioneer-platform/helpers 4.0.13 → 4.1.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
1
+ # @pioneer-platform/helpers
2
+
3
+ ## 4.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Automated patch version bump for all packages
8
+ - Updated dependencies
9
+ - @pioneer-platform/loggerdog@8.4.1
10
+
11
+ ## 4.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - Release: minor version bump for all packages
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+ - @pioneer-platform/loggerdog@8.4.0
package/package.json CHANGED
@@ -1,25 +1,28 @@
1
1
  {
2
2
  "name": "@pioneer-platform/helpers",
3
- "version": "4.0.13",
3
+ "version": "4.1.1",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {
7
- "npm": "npm i",
8
- "test": "npm run build && node __tests__/test-module.js",
7
+ "npm": "pnpm i",
8
+ "test": "pnpm run build && node __tests__/test-module.js",
9
9
  "lint": "prettier --write '**/**/*.ts'",
10
10
  "start": "nodemon --watch 'src/**/*.ts' --exec ts-node __tests__node",
11
11
  "build": "tsc -p .",
12
- "prepublish": "npm run build",
13
- "refresh": "rm -rf ./node_modules ./package-lock.json && npm install"
12
+ "prepublish": "pnpm run build",
13
+ "refresh": "rm -rf ./node_modules ./package-lock.json && pnpm install"
14
14
  },
15
15
  "dependencies": {
16
+ "@coinmasters/core": "^12.0.8",
16
17
  "@coinmasters/tokens": "^3.7.28",
17
- "@coinmasters/types": "latest",
18
+ "@coinmasters/types": "^4.10.1",
18
19
  "@noble/hashes": "^1.4.0",
19
- "@pioneer-platform/loggerdog": "^8.3.1",
20
+ "@pioneer-platform/loggerdog": "^8.4.1",
20
21
  "@types/node": "^18.15.11",
22
+ "ethers": "5.7.2",
23
+ "ky": "^1.8.0",
21
24
  "ts-node": "^8.10.2",
22
- "typescript": "^5.0.2"
25
+ "typescript": "^5.0.4"
23
26
  },
24
- "gitHead": "e4a7114f00103ee48533c369dba4a02021ddcbe4"
25
- }
27
+ "gitHead": "aeae28273014ab69b42f22abec159c6693a56c40"
28
+ }
@@ -85,7 +85,6 @@ export const isGasAsset = ({ chain, symbol }: { chain: Chain; symbol: string })
85
85
  case Chain.Ripple:
86
86
  case Chain.Litecoin:
87
87
  case Chain.Dogecoin:
88
- case Chain.Binance:
89
88
  case Chain.Ethereum:
90
89
  case Chain.Avalanche:
91
90
  return symbol === chain;
@@ -144,7 +143,6 @@ export const getCommonAssetInfo = (
144
143
  case Chain.Dash:
145
144
  case Chain.Litecoin:
146
145
  case Chain.Dogecoin:
147
- case Chain.Binance:
148
146
  case Chain.Polygon:
149
147
  case Chain.Bitcoin:
150
148
  case Chain.Ethereum:
@@ -172,10 +170,7 @@ export const getAssetType = ({ chain, symbol }: { chain: Chain; symbol: string }
172
170
  return symbol === 'ATOM' ? 'Native' : Chain.Cosmos;
173
171
  case Chain.Kujira:
174
172
  return symbol === Chain.Kujira ? 'Native' : Chain.Kujira;
175
- case Chain.Binance:
176
- return symbol === Chain.Binance ? 'Native' : 'BEP2';
177
173
  case Chain.BinanceSmartChain:
178
- return symbol === Chain.Binance ? 'Native' : 'BEP20';
179
174
  case Chain.Ethereum:
180
175
  return symbol === Chain.Ethereum ? 'Native' : 'ERC20';
181
176
  case Chain.Avalanche:
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es5",
3
+ "target": "es2015",
4
4
  "module": "commonjs",
5
5
  "lib": ["es6", "es2015", "dom"],
6
6
  "declaration": true,