@juno-network/assets 0.5.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/LICENSE +21 -0
- package/README.md +29 -0
- package/main/assets.js +295 -0
- package/main/chain.js +139 -0
- package/main/ibc_assets.js +2179 -0
- package/main/index.js +39 -0
- package/module/assets.js +288 -0
- package/module/chain.js +132 -0
- package/module/ibc_assets.js +2172 -0
- package/module/index.js +9 -0
- package/package.json +81 -0
- package/types/assets.d.ts +28 -0
- package/types/chain.d.ts +61 -0
- package/types/ibc_assets.d.ts +31 -0
- package/types/index.d.ts +11 -0
package/module/index.js
ADDED
package/package.json
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
{
|
2
|
+
"name": "@juno-network/assets",
|
3
|
+
"version": "0.5.1",
|
4
|
+
"description": "Chain Registry info for Juno",
|
5
|
+
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
|
+
"homepage": "https://github.com/CosmosContracts/typescript",
|
7
|
+
"license": "SEE LICENSE IN LICENSE",
|
8
|
+
"main": "main/index.js",
|
9
|
+
"module": "module/index.js",
|
10
|
+
"typings": "types/index.d.ts",
|
11
|
+
"directories": {
|
12
|
+
"lib": "src",
|
13
|
+
"test": "__tests__"
|
14
|
+
},
|
15
|
+
"files": [
|
16
|
+
"types",
|
17
|
+
"main",
|
18
|
+
"module"
|
19
|
+
],
|
20
|
+
"scripts": {
|
21
|
+
"build:main": "cross-env BABEL_ENV=production babel src --out-dir main --delete-dir-on-start --extensions \".tsx,.ts,.js\"",
|
22
|
+
"build:module": "cross-env MODULE=true babel src --out-dir module --delete-dir-on-start --extensions \".tsx,.ts,.js\"",
|
23
|
+
"build": "npm run build:module && npm run build:main",
|
24
|
+
"build:ts": "tsc --project ./tsconfig.json",
|
25
|
+
"buidl": "npm run build && npm run build:ts",
|
26
|
+
"make": "babel-node ./scripts/build.js",
|
27
|
+
"prepare": "npm run build",
|
28
|
+
"lint": "eslint --ext .ts,.tsx,.js .",
|
29
|
+
"format": "eslint --fix . --ext .ts,.tsx,.js",
|
30
|
+
"test": "jest",
|
31
|
+
"test:watch": "jest --watch",
|
32
|
+
"test:debug": "node --inspect node_modules/.bin/jest --runInBand"
|
33
|
+
},
|
34
|
+
"publishConfig": {
|
35
|
+
"access": "public"
|
36
|
+
},
|
37
|
+
"repository": {
|
38
|
+
"type": "git",
|
39
|
+
"url": "https://github.com/CosmosContracts/typescript"
|
40
|
+
},
|
41
|
+
"keywords": [],
|
42
|
+
"bugs": {
|
43
|
+
"url": "https://github.com/CosmosContracts/typescript/issues"
|
44
|
+
},
|
45
|
+
"devDependencies": {
|
46
|
+
"@babel/cli": "7.17.10",
|
47
|
+
"@babel/core": "7.18.5",
|
48
|
+
"@babel/eslint-parser": "^7.18.2",
|
49
|
+
"@babel/node": "^7.18.5",
|
50
|
+
"@babel/plugin-proposal-class-properties": "7.17.12",
|
51
|
+
"@babel/plugin-proposal-export-default-from": "7.17.12",
|
52
|
+
"@babel/plugin-proposal-object-rest-spread": "7.18.0",
|
53
|
+
"@babel/plugin-transform-runtime": "7.18.5",
|
54
|
+
"@babel/preset-env": "7.18.2",
|
55
|
+
"@babel/preset-typescript": "^7.17.12",
|
56
|
+
"@chain-registry/utils": "^0.3.1",
|
57
|
+
"@types/jest": "^28.1.1",
|
58
|
+
"@typescript-eslint/eslint-plugin": "5.31.0",
|
59
|
+
"@typescript-eslint/parser": "5.31.0",
|
60
|
+
"babel-core": "7.0.0-bridge.0",
|
61
|
+
"babel-jest": "28.1.1",
|
62
|
+
"babel-watch": "^7.0.0",
|
63
|
+
"chain-registry": "^0.5.1",
|
64
|
+
"cross-env": "^7.0.2",
|
65
|
+
"eslint": "8.20.0",
|
66
|
+
"eslint-config-prettier": "^8.5.0",
|
67
|
+
"eslint-plugin-prettier": "^4.0.0",
|
68
|
+
"eslint-plugin-simple-import-sort": "7.0.0",
|
69
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
70
|
+
"jest": "^28.1.1",
|
71
|
+
"long": "^5.2.0",
|
72
|
+
"prettier": "^2.7.0",
|
73
|
+
"regenerator-runtime": "^0.13.7",
|
74
|
+
"ts-jest": "^28.0.5",
|
75
|
+
"typescript": "^4.7.3"
|
76
|
+
},
|
77
|
+
"dependencies": {
|
78
|
+
"@babel/runtime": "^7.18.3"
|
79
|
+
},
|
80
|
+
"gitHead": "0350293760f440721ee2fe97e9351422e9192f39"
|
81
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
declare const _exports: {
|
2
|
+
$schema: string;
|
3
|
+
chain_name: string;
|
4
|
+
assets: {
|
5
|
+
description: string;
|
6
|
+
denom_units: (
|
7
|
+
| {
|
8
|
+
denom: string;
|
9
|
+
exponent: number;
|
10
|
+
}
|
11
|
+
| {
|
12
|
+
denom: string;
|
13
|
+
exponent: number;
|
14
|
+
aliases: string[];
|
15
|
+
}
|
16
|
+
)[];
|
17
|
+
base: string;
|
18
|
+
name: string;
|
19
|
+
display: string;
|
20
|
+
symbol: string;
|
21
|
+
logo_URIs: {
|
22
|
+
svg: string;
|
23
|
+
png: string;
|
24
|
+
};
|
25
|
+
coingecko_id: string;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
export = _exports;
|
package/types/chain.d.ts
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
declare const _exports: {
|
2
|
+
$schema: string;
|
3
|
+
chain_name: string;
|
4
|
+
status: string;
|
5
|
+
network_type: string;
|
6
|
+
pretty_name: string;
|
7
|
+
chain_id: string;
|
8
|
+
bech32_prefix: string;
|
9
|
+
daemon_name: string;
|
10
|
+
node_home: string;
|
11
|
+
genesis: {
|
12
|
+
genesis_url: string;
|
13
|
+
};
|
14
|
+
slip44: number;
|
15
|
+
fees?: {
|
16
|
+
fee_tokens: {
|
17
|
+
denom: string;
|
18
|
+
fixed_min_gas_price?: number;
|
19
|
+
low_gas_price?: number;
|
20
|
+
average_gas_price?: number;
|
21
|
+
high_gas_price?: number;
|
22
|
+
}[];
|
23
|
+
};
|
24
|
+
staking?: {
|
25
|
+
staking_tokens: {
|
26
|
+
denom: string;
|
27
|
+
}[];
|
28
|
+
};
|
29
|
+
explorers: {
|
30
|
+
kind: string;
|
31
|
+
url: string;
|
32
|
+
tx_page: string;
|
33
|
+
}[];
|
34
|
+
codebase: {
|
35
|
+
git_repo: string;
|
36
|
+
recommended_version: string;
|
37
|
+
compatible_versions: string[];
|
38
|
+
};
|
39
|
+
peers: {
|
40
|
+
seeds: any[];
|
41
|
+
persistent_peers: {
|
42
|
+
id: string;
|
43
|
+
address: string;
|
44
|
+
}[];
|
45
|
+
};
|
46
|
+
apis: {
|
47
|
+
rpc: {
|
48
|
+
address: string;
|
49
|
+
provider?: string;
|
50
|
+
}[];
|
51
|
+
rest: {
|
52
|
+
address: string;
|
53
|
+
provider?: string;
|
54
|
+
}[];
|
55
|
+
grpc: {
|
56
|
+
address: string;
|
57
|
+
provider?: string;
|
58
|
+
}[];
|
59
|
+
};
|
60
|
+
};
|
61
|
+
export = _exports;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
declare const _exports: {
|
2
|
+
chain_name: string;
|
3
|
+
assets: {
|
4
|
+
description: string;
|
5
|
+
denom_units: {
|
6
|
+
denom: string;
|
7
|
+
exponent: number;
|
8
|
+
aliases?: string[];
|
9
|
+
}[];
|
10
|
+
base: string;
|
11
|
+
name: string;
|
12
|
+
display: string;
|
13
|
+
symbol: string;
|
14
|
+
logo_URIs: {
|
15
|
+
png: string;
|
16
|
+
svg: string;
|
17
|
+
};
|
18
|
+
coingecko_id: string;
|
19
|
+
ibc: {
|
20
|
+
counterparty: {
|
21
|
+
channel: string;
|
22
|
+
denom: string;
|
23
|
+
chain_name: string;
|
24
|
+
};
|
25
|
+
chain: {
|
26
|
+
channel: string;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
}[];
|
30
|
+
}[];
|
31
|
+
export = _exports;
|