@shapeshiftoss/types 9.0.0 → 9.0.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.
@@ -58,9 +58,10 @@ export declare enum KnownChainIds {
58
58
  NearMainnet = "near:mainnet",
59
59
  StarknetMainnet = "starknet:SN_MAIN",
60
60
  TonMainnet = "ton:mainnet",
61
- AbstractMainnet = "eip155:2741"
61
+ AbstractMainnet = "eip155:2741",
62
+ RobinhoodMainnet = "eip155:4663"
62
63
  }
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;
64
+ 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 | KnownChainIds.RobinhoodMainnet;
64
65
  export type CosmosSdkChainId = KnownChainIds.CosmosMainnet | KnownChainIds.ThorchainMainnet | KnownChainIds.MayachainMainnet;
65
66
  export type ThorMayaChainId = KnownChainIds.ThorchainMainnet | KnownChainIds.MayachainMainnet;
66
67
  export type UtxoChainId = KnownChainIds.BitcoinMainnet | KnownChainIds.BitcoinCashMainnet | KnownChainIds.DogecoinMainnet | KnownChainIds.LitecoinMainnet | KnownChainIds.ZcashMainnet;
package/dist/esm/base.js CHANGED
@@ -49,6 +49,7 @@ export var KnownChainIds;
49
49
  KnownChainIds["StarknetMainnet"] = "starknet:SN_MAIN";
50
50
  KnownChainIds["TonMainnet"] = "ton:mainnet";
51
51
  KnownChainIds["AbstractMainnet"] = "eip155:2741";
52
+ KnownChainIds["RobinhoodMainnet"] = "eip155:4663";
52
53
  })(KnownChainIds || (KnownChainIds = {}));
53
54
  export var WithdrawType;
54
55
  (function (WithdrawType) {
@@ -1,7 +1,4 @@
1
- import type { AppDataRootSchema as AppDataRootSchemaLegacy } from '@cowprotocol/app-data/dist/generatedTypes/v0.4.0';
2
- import type { AppDataRootSchema as AppDataRootSchemaLatest } from '@cowprotocol/app-data/dist/generatedTypes/v1.3.0';
3
1
  import type { Nominal } from '@shapeshiftoss/caip';
4
- import type { TypedDataField } from 'ethers5';
5
2
  import type { Address } from 'viem';
6
3
  import type { KnownChainIds } from './base.js';
7
4
  export type AppDataHash = Nominal<string, 'AppDataHash'>;
@@ -271,6 +268,8 @@ export declare enum CowNetwork {
271
268
  Ink = "ink"
272
269
  }
273
270
  export type CowChainId = KnownChainIds.EthereumMainnet | KnownChainIds.GnosisMainnet | KnownChainIds.ArbitrumMainnet | KnownChainIds.BaseMainnet | KnownChainIds.AvalancheMainnet | KnownChainIds.PolygonMainnet | KnownChainIds.BnbSmartChainMainnet | KnownChainIds.PlasmaMainnet | KnownChainIds.LineaMainnet | KnownChainIds.InkMainnet;
271
+ export type TypedDataField = {
272
+ name: string;
273
+ type: string;
274
+ };
274
275
  export type TypedDataTypes = Record<string, TypedDataField[]>;
275
- export type ParsedAppData = AppDataRootSchemaLatest | AppDataRootSchemaLegacy;
276
- export declare const isLegacyAppData: (appData: ParsedAppData) => appData is AppDataRootSchemaLegacy;
@@ -124,6 +124,3 @@ export var CowNetwork;
124
124
  CowNetwork["Linea"] = "linea";
125
125
  CowNetwork["Ink"] = "ink";
126
126
  })(CowNetwork || (CowNetwork = {}));
127
- export const isLegacyAppData = (appData) => {
128
- return appData.version === 'v0.4.0';
129
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/web",
6
6
  "license": "MIT",
@@ -22,9 +22,7 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@cowprotocol/app-data": "^2.3.0",
26
- "ethers5": "npm:ethers@5.7.2",
27
- "viem": "2.43.5",
25
+ "viem": "2.55.11",
28
26
  "@shapeshiftoss/caip": "^8.16.10"
29
27
  },
30
28
  "scripts": {