@talismn/chaindata-provider 0.4.3 → 0.4.4

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,13 @@
1
1
  # @talismn/chaindata-provider
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - f7aca48b: eslint rules
8
+ - 48f0222e: fix: removed some explicit `any`s
9
+ - 01bf239b: fix: packages publishing with incorrect interdependency versions
10
+
3
11
  ## 0.4.3
4
12
 
5
13
  ### 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;
@@ -30,13 +30,10 @@ export type Chain = {
30
30
  evmNetworks: Array<{
31
31
  id: EvmNetworkId;
32
32
  }>;
33
- parathreads?: Chain[];
33
+ parathreads: Array<Pick<Chain, "id" | "paraId" | "name">> | null;
34
34
  paraId: number | null;
35
- relay?: Chain;
36
- balanceMetadata: Array<{
37
- moduleType: string;
38
- metadata: any;
39
- }>;
35
+ relay: Pick<Chain, "id"> | null;
36
+ balanceMetadata: Array<BalanceMetadata>;
40
37
  };
41
38
  export type CustomChain = Chain & {
42
39
  isCustom: true;
@@ -45,3 +42,7 @@ export type SubstrateRpc = {
45
42
  url: string;
46
43
  isHealthy: boolean;
47
44
  };
45
+ export type BalanceMetadata = {
46
+ moduleType: string;
47
+ metadata: unknown;
48
+ };
@@ -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.4.4",
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",