@talismn/chaindata-provider 0.4.3 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @talismn/chaindata-provider
2
2
 
3
+ ## 0.6.0
4
+
5
+ ## 0.5.0
6
+
7
+ ### Minor Changes
8
+
9
+ - 1a2fdc73: feat: add isUnknownFeeToken on Chain
10
+
11
+ ## 0.4.4
12
+
13
+ ### Patch Changes
14
+
15
+ - f7aca48b: eslint rules
16
+ - 48f0222e: fix: removed some explicit `any`s
17
+ - 01bf239b: fix: packages publishing with incorrect interdependency versions
18
+
3
19
  ## 0.4.3
4
20
 
5
21
  ### Patch Changes
@@ -9,9 +9,9 @@ export type Chain = {
9
9
  genesisHash: string | null;
10
10
  prefix: number | null;
11
11
  name: string | null;
12
- themeColor?: string;
12
+ themeColor: string | null;
13
13
  logo: string | null;
14
- chainName: string;
14
+ chainName: string | null;
15
15
  implName: string | null;
16
16
  specName: string | null;
17
17
  specVersion: string | null;
@@ -25,18 +25,16 @@ export type Chain = {
25
25
  subscanUrl: string | null;
26
26
  chainspecQrUrl: string | null;
27
27
  latestMetadataQrUrl: string | null;
28
+ isUnknownFeeToken: boolean;
28
29
  rpcs: Array<SubstrateRpc> | null;
29
30
  isHealthy: boolean;
30
31
  evmNetworks: Array<{
31
32
  id: EvmNetworkId;
32
33
  }>;
33
- parathreads?: Chain[];
34
+ parathreads: Array<Pick<Chain, "id" | "paraId" | "name">> | null;
34
35
  paraId: number | null;
35
- relay?: Chain;
36
- balanceMetadata: Array<{
37
- moduleType: string;
38
- metadata: any;
39
- }>;
36
+ relay: Pick<Chain, "id"> | null;
37
+ balanceMetadata: Array<BalanceMetadata>;
40
38
  };
41
39
  export type CustomChain = Chain & {
42
40
  isCustom: true;
@@ -45,3 +43,7 @@ export type SubstrateRpc = {
45
43
  url: string;
46
44
  isHealthy: boolean;
47
45
  };
46
+ export type BalanceMetadata = {
47
+ moduleType: string;
48
+ metadata: unknown;
49
+ };
@@ -7,7 +7,7 @@ export type EvmNetwork = {
7
7
  isTestnet: boolean;
8
8
  sortIndex: number | null;
9
9
  name: string | null;
10
- themeColor?: string;
10
+ themeColor: string | null;
11
11
  logo: string | null;
12
12
  nativeToken: {
13
13
  id: TokenId;
@@ -34,6 +34,7 @@ export type IToken = {
34
34
  decimals: number;
35
35
  logo: string;
36
36
  coingeckoId?: string;
37
+ mirrorOf?: string;
37
38
  chain?: {
38
39
  id: ChainId;
39
40
  } | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/chaindata-provider",
3
- "version": "0.4.3",
3
+ "version": "0.6.0",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "UNLICENSED",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "scripts": {
25
25
  "test": "jest",
26
- "lint": "eslint . --max-warnings 0",
26
+ "lint": "eslint src --max-warnings 0",
27
27
  "clean": "rm -rf dist && rm -rf .turbo rm -rf node_modules"
28
28
  },
29
29
  "devDependencies": {
30
- "@talismn/eslint-config": "^0.0.1",
31
- "@talismn/tsconfig": "^0.0.2",
30
+ "@talismn/eslint-config": "0.0.2",
31
+ "@talismn/tsconfig": "0.0.2",
32
32
  "@types/jest": "^27.5.1",
33
33
  "eslint": "^8.4.0",
34
34
  "jest": "^28.1.0",