@shapeshiftoss/types 4.0.1 → 4.1.0

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/dist/base.d.ts CHANGED
@@ -12,6 +12,8 @@ export declare enum ChainTypes {
12
12
  Cosmos = "cosmos",
13
13
  Osmosis = "osmosis"
14
14
  }
15
+ declare const supportedChainIds: readonly ["eip155:1", "bip122:000000000019d6689c085ae165831e93", "cosmos:cosmoshub-4", "cosmos:osmosis-1"];
16
+ export declare type SupportedChainIds = typeof supportedChainIds[number];
15
17
  export declare enum NetworkTypes {
16
18
  MAINNET = "MAINNET",
17
19
  TESTNET = "TESTNET",
package/dist/base.js CHANGED
@@ -9,6 +9,12 @@ var ChainTypes;
9
9
  ChainTypes["Cosmos"] = "cosmos";
10
10
  ChainTypes["Osmosis"] = "osmosis";
11
11
  })(ChainTypes = exports.ChainTypes || (exports.ChainTypes = {}));
12
+ const supportedChainIds = [
13
+ 'eip155:1',
14
+ 'bip122:000000000019d6689c085ae165831e93',
15
+ 'cosmos:cosmoshub-4',
16
+ 'cosmos:osmosis-1'
17
+ ];
12
18
  var NetworkTypes;
13
19
  (function (NetworkTypes) {
14
20
  NetworkTypes["MAINNET"] = "MAINNET";
@@ -9,24 +9,6 @@ export declare type FeeData = {
9
9
  maxFeePerGas: string;
10
10
  maxPriorityFeePerGas: string;
11
11
  };
12
- export declare type QuoteFeeData = {
13
- /**
14
- * estimated gas units in gwei
15
- */
16
- estimatedGas?: string;
17
- /**
18
- * gas price per gwei
19
- */
20
- gasPrice?: string;
21
- /**
22
- * total approval fee in eth
23
- */
24
- approvalFee?: string;
25
- /**
26
- * total fee including approval
27
- */
28
- totalFee?: string;
29
- };
30
12
  export declare type BuildTxInput = {
31
13
  gasLimit: string;
32
14
  erc20ContractAddress?: string;
@@ -28,17 +28,11 @@ export declare enum FeeDataKey {
28
28
  Average = "average",
29
29
  Fast = "fast"
30
30
  }
31
- declare type ChainSpecificQuoteFeeData<T1> = ChainSpecific<T1, {
32
- [ChainTypes.Ethereum]: ethereum.QuoteFeeData;
33
- }>;
34
31
  declare type ChainSpecificFeeData<T> = ChainSpecific<T, {
35
32
  [ChainTypes.Ethereum]: ethereum.FeeData;
36
33
  [ChainTypes.Bitcoin]: bitcoin.FeeData;
37
34
  [ChainTypes.Cosmos]: cosmos.FeeData;
38
35
  }>;
39
- export declare type QuoteFeeData<T1 extends ChainTypes> = {
40
- fee: string;
41
- } & ChainSpecificQuoteFeeData<T1>;
42
36
  export declare type FeeData<T extends ChainTypes> = {
43
37
  txFee: string;
44
38
  } & ChainSpecificFeeData<T>;
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ import * as chainAdapters from './chain-adapters';
2
2
  export { chainAdapters };
3
3
  export * from './base';
4
4
  export * from './market';
5
+ export { ChainSpecific } from './utility';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",