@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 +20 -0
- package/package.json +13 -10
- package/src/helpers/asset.ts +0 -5
- package/tsconfig.json +1 -1
- package/LICENSE +0 -674
- package/lib/helpers/asset.d.ts +0 -36
- package/lib/helpers/asset.js +0 -270
- package/lib/helpers/liquidity.d.ts +0 -58
- package/lib/helpers/liquidity.js +0 -112
- package/lib/helpers/memo.d.ts +0 -46
- package/lib/helpers/memo.js +0 -46
- package/lib/helpers/others.d.ts +0 -3
- package/lib/helpers/others.js +0 -24
- package/lib/helpers/request.d.ts +0 -5
- package/lib/helpers/request.js +0 -117
- package/lib/helpers/validators.d.ts +0 -1
- package/lib/helpers/validators.js +0 -17
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -31
- package/lib/modules/__tests__/assetValue.test.d.ts +0 -1
- package/lib/modules/__tests__/assetValue.test.js +0 -399
- package/lib/modules/__tests__/swapKitNumber.test.d.ts +0 -1
- package/lib/modules/__tests__/swapKitNumber.test.js +0 -425
- package/lib/modules/assetValue.d.ts +0 -58
- package/lib/modules/assetValue.js +0 -442
- package/lib/modules/bigIntArithmetics.d.ts +0 -54
- package/lib/modules/bigIntArithmetics.js +0 -643
- package/lib/modules/swapKitError.d.ts +0 -64
- package/lib/modules/swapKitError.js +0 -90
- package/lib/modules/swapKitNumber.d.ts +0 -6
- package/lib/modules/swapKitNumber.js +0 -37
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.
|
3
|
+
"version": "4.1.1",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"types": "./lib/index.d.ts",
|
6
6
|
"scripts": {
|
7
|
-
"npm": "
|
8
|
-
"test": "
|
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": "
|
13
|
-
"refresh": "rm -rf ./node_modules ./package-lock.json &&
|
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": "
|
18
|
+
"@coinmasters/types": "^4.10.1",
|
18
19
|
"@noble/hashes": "^1.4.0",
|
19
|
-
"@pioneer-platform/loggerdog": "^8.
|
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.
|
25
|
+
"typescript": "^5.0.4"
|
23
26
|
},
|
24
|
-
"gitHead": "
|
25
|
-
}
|
27
|
+
"gitHead": "aeae28273014ab69b42f22abec159c6693a56c40"
|
28
|
+
}
|
package/src/helpers/asset.ts
CHANGED
@@ -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:
|