@shapeshiftoss/caip 2.2.0 → 2.2.3

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.
@@ -1,5 +1,9 @@
1
1
  import { CAIP2 } from './../caip2/caip2';
2
+ /**
3
+ * @deprecated - Temporarily left in place for backwards compatibility, to be replaced with AccountId
4
+ */
2
5
  export declare type CAIP10 = string;
6
+ export declare type AccountId = string;
3
7
  declare type ToCAIP19Args = {
4
8
  caip2: CAIP2;
5
9
  account: string;
@@ -1,6 +1,10 @@
1
1
  import { ChainTypes, NetworkTypes } from '@shapeshiftoss/types';
2
2
  import { ChainReference } from '../caip2/caip2';
3
+ /**
4
+ * @deprecated - Temporarily left in place for backwards compatibility, to be replaced with AssetId
5
+ */
3
6
  export declare type CAIP19 = string;
7
+ export declare type AssetId = string;
4
8
  export declare enum AssetNamespace {
5
9
  CW20 = "cw20",
6
10
  CW721 = "cw721",
@@ -1,5 +1,9 @@
1
1
  import { ChainTypes, NetworkTypes } from '@shapeshiftoss/types';
2
+ /**
3
+ * @deprecated - Temporarily left in place for backwards compatibility, to be replaced with ChainId
4
+ */
2
5
  export declare type CAIP2 = string;
6
+ export declare type ChainId = string;
3
7
  export declare enum ChainNamespace {
4
8
  Ethereum = "eip155",
5
9
  Bitcoin = "bip122",
package/dist/index.d.ts CHANGED
@@ -3,6 +3,6 @@ import * as caip2 from './caip2/caip2';
3
3
  import * as caip10 from './caip10/caip10';
4
4
  import * as caip19 from './caip19/caip19';
5
5
  export { adapters, caip2, caip19, caip10 };
6
- export { CAIP2 } from './caip2/caip2';
7
- export { CAIP10 } from './caip10/caip10';
8
- export { AssetNamespace, AssetReference, CAIP19 } from './caip19/caip19';
6
+ export { ChainId, CAIP2 } from './caip2/caip2';
7
+ export { AccountId, CAIP10 } from './caip10/caip10';
8
+ export { AssetId, AssetNamespace, AssetReference, CAIP19 } from './caip19/caip19';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/caip",
3
- "version": "2.2.0",
3
+ "version": "2.2.3",
4
4
  "description": "CAIP Implementation",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -17,24 +17,26 @@
17
17
  "url": "https://github.com/shapeshift/lib"
18
18
  },
19
19
  "scripts": {
20
- "build": "yarn clean && tsc --project tsconfig.build.json",
21
- "clean": "rm -rf dist",
20
+ "build": "yarn clean && yarn compile",
21
+ "clean": "rm -rf dist && rm -rf tsconfig.build.tsbuildinfo",
22
+ "compile": "tsc -p tsconfig.build.json",
22
23
  "dev": "tsc --watch",
23
- "generate-coingecko": "yarn build && node dist/adapters/coingecko/generate.js",
24
- "generate-coincap": "yarn build && node dist/adapters/coincap/generate.js",
25
- "generate-yearn": "yarn build && node dist/adapters/yearn/generate.js",
26
- "generate-osmosis": "yarn build && node dist/adapters/osmosis/generate.js",
27
- "generate": "yarn build && node dist/adapters/coingecko/generate.js && node dist/adapters/coincap/generate.js && node dist/adapters/yearn/generate.js && node dist/adapters/osmosis/generate.js",
24
+ "generate-coingecko": "ts-node -P tsconfig.build.json src/adapters/coingecko/generate.ts",
25
+ "generate-coincap": "ts-node -P tsconfig.build.json src/adapters/coincap/generate.ts",
26
+ "generate-yearn": "ts-node -P tsconfig.build.json src/adapters/yearn/generate.ts",
27
+ "generate-osmosis": "ts-node -P tsconfig.build.json src/adapters/osmosis/generate.ts",
28
+ "generate": "yarn generate-coingecko && yarn generate-coincap && yarn generate-yearn && yarn generate-osmosis",
29
+ "prepare": "yarn build",
28
30
  "test": "jest test",
29
- "type-check": "tsc --project ./tsconfig.json --noEmit"
31
+ "type-check": "tsc --project ./tsconfig.build.json --noEmit"
30
32
  },
31
- "dependencies": {},
32
33
  "peerDependencies": {
33
- "@shapeshiftoss/types": "^2.1.0"
34
+ "@shapeshiftoss/types": "^3.0.0"
34
35
  },
35
36
  "devDependencies": {
36
- "@shapeshiftoss/types": "^2.1.0",
37
+ "@shapeshiftoss/types": "^3.0.0",
37
38
  "@yfi/sdk": "^1.0.30",
38
- "axios": "^0.26.1"
39
+ "axios": "^0.26.1",
40
+ "ts-node": "^10.7.0"
39
41
  }
40
42
  }