@chain-registry/utils 1.46.86 → 1.47.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.
- package/assets.d.ts +3 -3
- package/ibc.d.ts +32 -14
- package/package.json +3 -3
package/assets.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Asset,
|
|
2
|
-
export type Denom =
|
|
3
|
-
export type Exponent =
|
|
1
|
+
import { Asset, AssetList, Chain, DenomUnit } from '@chain-registry/types';
|
|
2
|
+
export type Denom = DenomUnit['denom'];
|
|
3
|
+
export type Exponent = DenomUnit['exponent'];
|
|
4
4
|
export declare const getAssetByDenom: (assets: AssetList[], denom: Denom, chainName?: string) => Asset | undefined;
|
|
5
5
|
export declare const getAssetBySymbol: (assets: AssetList[], symbol: string, chainName?: string) => Asset | undefined;
|
|
6
6
|
export declare const getDenomByCoinGeckoId: (assets: AssetList[], coinGeckoId: string, chainName?: string) => Denom | undefined;
|
package/ibc.d.ts
CHANGED
|
@@ -1,34 +1,52 @@
|
|
|
1
|
-
import { AssetList,
|
|
1
|
+
import { AssetList, ChannelInfo, IBCInfo } from '@chain-registry/types';
|
|
2
2
|
export declare const ibcDenom: (paths: {
|
|
3
3
|
port_id: string;
|
|
4
4
|
channel_id: string;
|
|
5
5
|
}[], coinMinimalDenom: string) => string;
|
|
6
6
|
export declare const getIbcInfo: (ibc: IBCInfo[], chain: string, counterparty: string) => IBCInfo;
|
|
7
7
|
export declare const getTransferChannel: (info: IBCInfo) => {
|
|
8
|
-
chain_1:
|
|
9
|
-
chain_2:
|
|
10
|
-
ordering:
|
|
8
|
+
chain_1: ChannelInfo;
|
|
9
|
+
chain_2: ChannelInfo;
|
|
10
|
+
ordering: "ordered" | "unordered";
|
|
11
11
|
version: string;
|
|
12
12
|
fee_version?: string;
|
|
13
|
-
|
|
13
|
+
description?: string;
|
|
14
|
+
tags?: {
|
|
15
|
+
status?: "live" | "upcoming" | "killed";
|
|
16
|
+
preferred?: boolean;
|
|
17
|
+
dex?: string;
|
|
18
|
+
properties?: string;
|
|
19
|
+
};
|
|
14
20
|
};
|
|
15
21
|
export declare const getNonTransferChannel: (info: IBCInfo) => {
|
|
16
|
-
chain_1:
|
|
17
|
-
chain_2:
|
|
18
|
-
ordering:
|
|
22
|
+
chain_1: ChannelInfo;
|
|
23
|
+
chain_2: ChannelInfo;
|
|
24
|
+
ordering: "ordered" | "unordered";
|
|
19
25
|
version: string;
|
|
20
26
|
fee_version?: string;
|
|
21
|
-
|
|
27
|
+
description?: string;
|
|
28
|
+
tags?: {
|
|
29
|
+
status?: "live" | "upcoming" | "killed";
|
|
30
|
+
preferred?: boolean;
|
|
31
|
+
dex?: string;
|
|
32
|
+
properties?: string;
|
|
33
|
+
};
|
|
22
34
|
};
|
|
23
35
|
export declare const getWasmChannel: (info: IBCInfo) => {
|
|
24
|
-
chain_1:
|
|
25
|
-
chain_2:
|
|
26
|
-
ordering:
|
|
36
|
+
chain_1: ChannelInfo;
|
|
37
|
+
chain_2: ChannelInfo;
|
|
38
|
+
ordering: "ordered" | "unordered";
|
|
27
39
|
version: string;
|
|
28
40
|
fee_version?: string;
|
|
29
|
-
|
|
41
|
+
description?: string;
|
|
42
|
+
tags?: {
|
|
43
|
+
status?: "live" | "upcoming" | "killed";
|
|
44
|
+
preferred?: boolean;
|
|
45
|
+
dex?: string;
|
|
46
|
+
properties?: string;
|
|
47
|
+
};
|
|
30
48
|
};
|
|
31
|
-
export declare const getIbcAssetPath: (ibc: IBCInfo[], chain: string, counterparty: string, assets: AssetList[], base: string) =>
|
|
49
|
+
export declare const getIbcAssetPath: (ibc: IBCInfo[], chain: string, counterparty: string, assets: AssetList[], base: string) => ChannelInfo[];
|
|
32
50
|
export declare const getIbcDenomByBase: (ibc: IBCInfo[], chain: string, counterparty: string, assets: AssetList[], base: string) => string;
|
|
33
51
|
export declare const getIbcAssets: (chainName: string, ibc: IBCInfo[], assets: AssetList[]) => AssetList[];
|
|
34
52
|
export declare const getCw20Assets: (chainName: string, ibc: IBCInfo[], assets: AssetList[]) => AssetList[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.1",
|
|
4
4
|
"description": "Chain Registry Utils",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/cosmology-tech/chain-registry",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/sha.js": "^2.4.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@chain-registry/types": "^0.
|
|
35
|
+
"@chain-registry/types": "^0.46.1",
|
|
36
36
|
"bignumber.js": "9.1.2",
|
|
37
37
|
"sha.js": "^2.4.11"
|
|
38
38
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"cosmos",
|
|
43
43
|
"interchain"
|
|
44
44
|
],
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f3e60ea0327a03d7046a7e1bff3ef43b5342eaa9"
|
|
46
46
|
}
|