@shapeshiftoss/types 8.6.7 → 8.6.8
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/LICENSE.md +21 -0
- package/README.md +1 -1
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/base.d.ts +6 -2
- package/dist/cjs/base.js +3 -0
- package/dist/cjs/cowSwap.d.ts +5 -2
- package/dist/cjs/cowSwap.js +3 -0
- package/dist/cjs/zerion.d.ts +1 -1
- package/dist/cjs/zerion.js +8 -2
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/base.d.ts +6 -2
- package/dist/esm/base.js +3 -0
- package/dist/esm/cowSwap.d.ts +5 -2
- package/dist/esm/cowSwap.js +3 -0
- package/dist/esm/zerion.d.ts +1 -1
- package/dist/esm/zerion.js +9 -3
- package/package.json +11 -11
- package/CHANGELOG.md +0 -665
package/dist/esm/base.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare enum KnownChainIds {
|
|
|
27
27
|
BerachainMainnet = "eip155:80094",
|
|
28
28
|
CronosMainnet = "eip155:25",
|
|
29
29
|
KatanaMainnet = "eip155:747474",
|
|
30
|
+
EtherealMainnet = "eip155:5064014",
|
|
30
31
|
FlowEvmMainnet = "eip155:747",
|
|
31
32
|
CeloMainnet = "eip155:42220",
|
|
32
33
|
PlumeMainnet = "eip155:98866",
|
|
@@ -35,6 +36,7 @@ export declare enum KnownChainIds {
|
|
|
35
36
|
BlastMainnet = "eip155:81457",
|
|
36
37
|
WorldChainMainnet = "eip155:480",
|
|
37
38
|
HemiMainnet = "eip155:43111",
|
|
39
|
+
SeiMainnet = "eip155:1329",
|
|
38
40
|
LineaMainnet = "eip155:59144",
|
|
39
41
|
ScrollMainnet = "eip155:534352",
|
|
40
42
|
SonicMainnet = "eip155:146",
|
|
@@ -55,15 +57,17 @@ export declare enum KnownChainIds {
|
|
|
55
57
|
SuiMainnet = "sui:35834a8a",
|
|
56
58
|
NearMainnet = "near:mainnet",
|
|
57
59
|
StarknetMainnet = "starknet:SN_MAIN",
|
|
58
|
-
TonMainnet = "ton:mainnet"
|
|
60
|
+
TonMainnet = "ton:mainnet",
|
|
61
|
+
AbstractMainnet = "eip155:2741"
|
|
59
62
|
}
|
|
60
|
-
export type EvmChainId = KnownChainIds.EthereumMainnet | KnownChainIds.AvalancheMainnet | KnownChainIds.OptimismMainnet | KnownChainIds.BnbSmartChainMainnet | KnownChainIds.PolygonMainnet | KnownChainIds.GnosisMainnet | KnownChainIds.ArbitrumMainnet | KnownChainIds.BaseMainnet | KnownChainIds.MonadMainnet | KnownChainIds.HyperEvmMainnet | KnownChainIds.PlasmaMainnet | KnownChainIds.MantleMainnet | KnownChainIds.InkMainnet | KnownChainIds.MegaEthMainnet | KnownChainIds.BerachainMainnet | KnownChainIds.CronosMainnet | KnownChainIds.KatanaMainnet | KnownChainIds.FlowEvmMainnet | KnownChainIds.CeloMainnet | KnownChainIds.PlumeMainnet | KnownChainIds.StoryMainnet | KnownChainIds.ZkSyncEraMainnet | KnownChainIds.BlastMainnet | KnownChainIds.WorldChainMainnet | KnownChainIds.HemiMainnet | KnownChainIds.LineaMainnet | KnownChainIds.ScrollMainnet | KnownChainIds.SonicMainnet | KnownChainIds.UnichainMainnet | KnownChainIds.BobMainnet | KnownChainIds.ModeMainnet | KnownChainIds.SoneiumMainnet;
|
|
63
|
+
export type EvmChainId = KnownChainIds.EthereumMainnet | KnownChainIds.AvalancheMainnet | KnownChainIds.OptimismMainnet | KnownChainIds.BnbSmartChainMainnet | KnownChainIds.PolygonMainnet | KnownChainIds.GnosisMainnet | KnownChainIds.ArbitrumMainnet | KnownChainIds.BaseMainnet | KnownChainIds.MonadMainnet | KnownChainIds.HyperEvmMainnet | KnownChainIds.PlasmaMainnet | KnownChainIds.MantleMainnet | KnownChainIds.InkMainnet | KnownChainIds.MegaEthMainnet | KnownChainIds.BerachainMainnet | KnownChainIds.CronosMainnet | KnownChainIds.KatanaMainnet | KnownChainIds.EtherealMainnet | KnownChainIds.FlowEvmMainnet | KnownChainIds.CeloMainnet | KnownChainIds.PlumeMainnet | KnownChainIds.StoryMainnet | KnownChainIds.ZkSyncEraMainnet | KnownChainIds.BlastMainnet | KnownChainIds.WorldChainMainnet | KnownChainIds.HemiMainnet | KnownChainIds.SeiMainnet | KnownChainIds.LineaMainnet | KnownChainIds.ScrollMainnet | KnownChainIds.SonicMainnet | KnownChainIds.UnichainMainnet | KnownChainIds.BobMainnet | KnownChainIds.ModeMainnet | KnownChainIds.SoneiumMainnet | KnownChainIds.AbstractMainnet;
|
|
61
64
|
export type CosmosSdkChainId = KnownChainIds.CosmosMainnet | KnownChainIds.ThorchainMainnet | KnownChainIds.MayachainMainnet;
|
|
62
65
|
export type ThorMayaChainId = KnownChainIds.ThorchainMainnet | KnownChainIds.MayachainMainnet;
|
|
63
66
|
export type UtxoChainId = KnownChainIds.BitcoinMainnet | KnownChainIds.BitcoinCashMainnet | KnownChainIds.DogecoinMainnet | KnownChainIds.LitecoinMainnet | KnownChainIds.ZcashMainnet;
|
|
64
67
|
export type TronChainId = KnownChainIds.TronMainnet;
|
|
65
68
|
export type SuiChainId = KnownChainIds.SuiMainnet;
|
|
66
69
|
export type NearChainId = KnownChainIds.NearMainnet;
|
|
70
|
+
export type SolanaChainId = KnownChainIds.SolanaMainnet;
|
|
67
71
|
export type StarknetChainId = KnownChainIds.StarknetMainnet;
|
|
68
72
|
export type TonChainId = KnownChainIds.TonMainnet;
|
|
69
73
|
export declare enum WithdrawType {
|
package/dist/esm/base.js
CHANGED
|
@@ -17,6 +17,7 @@ export var KnownChainIds;
|
|
|
17
17
|
KnownChainIds["BerachainMainnet"] = "eip155:80094";
|
|
18
18
|
KnownChainIds["CronosMainnet"] = "eip155:25";
|
|
19
19
|
KnownChainIds["KatanaMainnet"] = "eip155:747474";
|
|
20
|
+
KnownChainIds["EtherealMainnet"] = "eip155:5064014";
|
|
20
21
|
KnownChainIds["FlowEvmMainnet"] = "eip155:747";
|
|
21
22
|
KnownChainIds["CeloMainnet"] = "eip155:42220";
|
|
22
23
|
KnownChainIds["PlumeMainnet"] = "eip155:98866";
|
|
@@ -25,6 +26,7 @@ export var KnownChainIds;
|
|
|
25
26
|
KnownChainIds["BlastMainnet"] = "eip155:81457";
|
|
26
27
|
KnownChainIds["WorldChainMainnet"] = "eip155:480";
|
|
27
28
|
KnownChainIds["HemiMainnet"] = "eip155:43111";
|
|
29
|
+
KnownChainIds["SeiMainnet"] = "eip155:1329";
|
|
28
30
|
KnownChainIds["LineaMainnet"] = "eip155:59144";
|
|
29
31
|
KnownChainIds["ScrollMainnet"] = "eip155:534352";
|
|
30
32
|
KnownChainIds["SonicMainnet"] = "eip155:146";
|
|
@@ -46,6 +48,7 @@ export var KnownChainIds;
|
|
|
46
48
|
KnownChainIds["NearMainnet"] = "near:mainnet";
|
|
47
49
|
KnownChainIds["StarknetMainnet"] = "starknet:SN_MAIN";
|
|
48
50
|
KnownChainIds["TonMainnet"] = "ton:mainnet";
|
|
51
|
+
KnownChainIds["AbstractMainnet"] = "eip155:2741";
|
|
49
52
|
})(KnownChainIds || (KnownChainIds = {}));
|
|
50
53
|
export var WithdrawType;
|
|
51
54
|
(function (WithdrawType) {
|
package/dist/esm/cowSwap.d.ts
CHANGED
|
@@ -265,9 +265,12 @@ export declare enum CowNetwork {
|
|
|
265
265
|
Base = "base",
|
|
266
266
|
Avalanche = "avalanche",
|
|
267
267
|
Polygon = "polygon",
|
|
268
|
-
Bnb = "bnb"
|
|
268
|
+
Bnb = "bnb",
|
|
269
|
+
Plasma = "plasma",
|
|
270
|
+
Linea = "linea",
|
|
271
|
+
Ink = "ink"
|
|
269
272
|
}
|
|
270
|
-
export type CowChainId = KnownChainIds.EthereumMainnet | KnownChainIds.GnosisMainnet | KnownChainIds.ArbitrumMainnet;
|
|
273
|
+
export type CowChainId = KnownChainIds.EthereumMainnet | KnownChainIds.GnosisMainnet | KnownChainIds.ArbitrumMainnet | KnownChainIds.BaseMainnet | KnownChainIds.AvalancheMainnet | KnownChainIds.PolygonMainnet | KnownChainIds.BnbSmartChainMainnet | KnownChainIds.PlasmaMainnet | KnownChainIds.LineaMainnet | KnownChainIds.InkMainnet;
|
|
271
274
|
export type TypedDataTypes = Record<string, TypedDataField[]>;
|
|
272
275
|
export type ParsedAppData = AppDataRootSchemaLatest | AppDataRootSchemaLegacy;
|
|
273
276
|
export declare const isLegacyAppData: (appData: ParsedAppData) => appData is AppDataRootSchemaLegacy;
|
package/dist/esm/cowSwap.js
CHANGED
|
@@ -120,6 +120,9 @@ export var CowNetwork;
|
|
|
120
120
|
CowNetwork["Avalanche"] = "avalanche";
|
|
121
121
|
CowNetwork["Polygon"] = "polygon";
|
|
122
122
|
CowNetwork["Bnb"] = "bnb";
|
|
123
|
+
CowNetwork["Plasma"] = "plasma";
|
|
124
|
+
CowNetwork["Linea"] = "linea";
|
|
125
|
+
CowNetwork["Ink"] = "ink";
|
|
123
126
|
})(CowNetwork || (CowNetwork = {}));
|
|
124
127
|
export const isLegacyAppData = (appData) => {
|
|
125
128
|
return appData.version === 'v0.4.0';
|
package/dist/esm/zerion.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChainId } from '@shapeshiftoss/caip';
|
|
2
|
-
export declare const ZERION_CHAINS: readonly ["avalanche", "binance-smart-chain", "ethereum", "optimism", "polygon", "arbitrum", "xdai", "base", "solana", "tron", "monad", "sui", "plasma", "world-chain", "katana", "
|
|
2
|
+
export declare const ZERION_CHAINS: readonly ["avalanche", "binance-smart-chain", "ethereum", "optimism", "polygon", "arbitrum", "xdai", "base", "solana", "tron", "monad", "sui", "plasma", "plume", "world-chain", "katana", "celo", "flow-evm", "story", "zksync-era", "blast", "hemi", "mantle", "linea", "berachain", "sei", "ink", "cronos", "sonic", "unichain", "bob", "mode", "soneium"];
|
|
3
3
|
export type ZerionChainId = (typeof ZERION_CHAINS)[number];
|
|
4
4
|
export declare const ZERION_CHAINS_MAP: Record<ZerionChainId, ChainId>;
|
|
5
5
|
export declare const zerionChainIdToChainId: (chainId: ZerionChainId) => ChainId | undefined;
|
package/dist/esm/zerion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { arbitrumChainId, avalancheChainId, baseChainId, berachainChainId, blastChainId, bobChainId, bscChainId, celoChainId, cronosChainId, ethChainId, gnosisChainId, hemiChainId, inkChainId, katanaChainId, lineaChainId, mantleChainId, modeChainId, monadChainId, optimismChainId, plasmaChainId, polygonChainId, solanaChainId, soneiumChainId, sonicChainId, storyChainId, suiChainId, tronChainId, unichainChainId, worldChainChainId, zkSyncEraChainId, } from '@shapeshiftoss/caip';
|
|
1
|
+
import { arbitrumChainId, avalancheChainId, baseChainId, berachainChainId, blastChainId, bobChainId, bscChainId, celoChainId, cronosChainId, ethChainId, flowEvmChainId, gnosisChainId, hemiChainId, inkChainId, katanaChainId, lineaChainId, mantleChainId, modeChainId, monadChainId, optimismChainId, plasmaChainId, plumeChainId, polygonChainId, seiChainId, solanaChainId, soneiumChainId, sonicChainId, storyChainId, suiChainId, tronChainId, unichainChainId, worldChainChainId, zkSyncEraChainId, } from '@shapeshiftoss/caip';
|
|
2
2
|
export const ZERION_CHAINS = [
|
|
3
3
|
// shapeshift supported
|
|
4
4
|
'avalanche',
|
|
@@ -14,16 +14,19 @@ export const ZERION_CHAINS = [
|
|
|
14
14
|
'monad',
|
|
15
15
|
'sui',
|
|
16
16
|
'plasma',
|
|
17
|
+
'plume',
|
|
17
18
|
'world-chain',
|
|
18
19
|
'katana',
|
|
19
|
-
'story',
|
|
20
20
|
'celo',
|
|
21
|
+
'flow-evm',
|
|
22
|
+
'story',
|
|
21
23
|
'zksync-era',
|
|
22
24
|
'blast',
|
|
23
25
|
'hemi',
|
|
24
26
|
'mantle',
|
|
25
27
|
'linea',
|
|
26
28
|
'berachain',
|
|
29
|
+
'sei',
|
|
27
30
|
'ink',
|
|
28
31
|
'cronos',
|
|
29
32
|
'sonic',
|
|
@@ -49,16 +52,19 @@ export const ZERION_CHAINS_MAP = {
|
|
|
49
52
|
monad: monadChainId,
|
|
50
53
|
sui: suiChainId,
|
|
51
54
|
plasma: plasmaChainId,
|
|
55
|
+
plume: plumeChainId,
|
|
52
56
|
'world-chain': worldChainChainId,
|
|
53
57
|
katana: katanaChainId,
|
|
54
|
-
story: storyChainId,
|
|
55
58
|
celo: celoChainId,
|
|
59
|
+
'flow-evm': flowEvmChainId,
|
|
60
|
+
story: storyChainId,
|
|
56
61
|
'zksync-era': zkSyncEraChainId,
|
|
57
62
|
blast: blastChainId,
|
|
58
63
|
hemi: hemiChainId,
|
|
59
64
|
mantle: mantleChainId,
|
|
60
65
|
linea: lineaChainId,
|
|
61
66
|
berachain: berachainChainId,
|
|
67
|
+
sei: seiChainId,
|
|
62
68
|
ink: inkChainId,
|
|
63
69
|
cronos: cronosChainId,
|
|
64
70
|
sonic: sonicChainId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/types",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.8",
|
|
4
4
|
"description": "Common types shared across packages",
|
|
5
5
|
"repository": "https://github.com/shapeshift/web",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "yarn clean && yarn run -T tsc --build && yarn postbuild",
|
|
26
|
-
"clean": "rm -rf dist",
|
|
27
|
-
"dev": "yarn run -T tsc --build --watch",
|
|
28
|
-
"postbuild": "yarn postbuild:esm && yarn postbuild:cjs",
|
|
29
|
-
"postbuild:esm": "yarn run -T tsc-esm-fix --target=dist/esm --ext=.js",
|
|
30
|
-
"postbuild:cjs": "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json"
|
|
31
|
-
},
|
|
32
24
|
"dependencies": {
|
|
33
25
|
"@cowprotocol/app-data": "^2.3.0",
|
|
34
|
-
"@shapeshiftoss/caip": "^8.16.8",
|
|
35
26
|
"ethers5": "npm:ethers@5.7.2",
|
|
36
|
-
"viem": "2.43.5"
|
|
27
|
+
"viem": "2.43.5",
|
|
28
|
+
"@shapeshiftoss/caip": "^8.16.9"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rm -rf dist && pnpm exec tsc --build && pnpm run postbuild",
|
|
32
|
+
"clean": "rm -rf dist node_modules",
|
|
33
|
+
"dev": "pnpm exec tsc --build --watch",
|
|
34
|
+
"postbuild": "pnpm run postbuild:esm && pnpm run postbuild:cjs",
|
|
35
|
+
"postbuild:esm": "pnpm exec tsc-esm-fix --target=dist/esm --ext=.js",
|
|
36
|
+
"postbuild:cjs": "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json"
|
|
37
37
|
}
|
|
38
38
|
}
|