@shapeshiftoss/types 8.5.0 → 8.6.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 +665 -0
- package/dist/base.d.ts +49 -5
- package/dist/base.js +15 -11
- package/dist/cowSwap.d.ts +270 -0
- package/dist/cowSwap.js +123 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -19
- package/dist/market.d.ts +10 -9
- package/dist/market.js +2 -5
- package/dist/utility.d.ts +13 -6
- package/dist/utility.js +1 -2
- package/dist/zerion.d.ts +5 -0
- package/dist/zerion.js +27 -0
- package/package.json +11 -12
package/dist/zerion.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { arbitrumChainId, avalancheChainId, baseChainId, bscChainId, ethChainId, gnosisChainId, optimismChainId, polygonChainId, } from '@shapeshiftoss/caip';
|
|
2
|
+
export const ZERION_CHAINS = [
|
|
3
|
+
// shapeshift supported
|
|
4
|
+
'avalanche',
|
|
5
|
+
'binance-smart-chain',
|
|
6
|
+
'ethereum',
|
|
7
|
+
'optimism',
|
|
8
|
+
'polygon',
|
|
9
|
+
'arbitrum',
|
|
10
|
+
'xdai',
|
|
11
|
+
'base',
|
|
12
|
+
// not yet
|
|
13
|
+
// 'aurora',
|
|
14
|
+
// 'fantom',
|
|
15
|
+
// 'solana',
|
|
16
|
+
];
|
|
17
|
+
export const ZERION_CHAINS_MAP = {
|
|
18
|
+
avalanche: avalancheChainId,
|
|
19
|
+
'binance-smart-chain': bscChainId,
|
|
20
|
+
ethereum: ethChainId,
|
|
21
|
+
optimism: optimismChainId,
|
|
22
|
+
polygon: polygonChainId,
|
|
23
|
+
arbitrum: arbitrumChainId,
|
|
24
|
+
xdai: gnosisChainId,
|
|
25
|
+
base: baseChainId,
|
|
26
|
+
};
|
|
27
|
+
export const zerionChainIdToChainId = (chainId) => ZERION_CHAINS_MAP[chainId];
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/types",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.1",
|
|
4
4
|
"description": "Common types shared across packages",
|
|
5
|
-
"repository": "https://github.com/shapeshift/
|
|
5
|
+
"repository": "https://github.com/shapeshift/web",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "
|
|
8
|
-
"types": "
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "yarn clean && yarn
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"type-check": "tsc --project ./tsconfig.build.json --noEmit"
|
|
16
|
+
"build": "yarn clean && yarn run -T tsc --build",
|
|
17
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
18
|
+
"dev": "yarn run -T tsc --build --watch"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@shapeshiftoss/caip": "^8.16.1"
|
|
23
22
|
}
|
|
24
|
-
}
|
|
23
|
+
}
|