@juno-network/assets 0.5.6 → 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/module/chain.js CHANGED
@@ -1,132 +1,133 @@
1
- export default {
2
- "$schema": "../chain.schema.json",
3
- "chain_name": "juno",
4
- "status": "live",
5
- "network_type": "mainnet",
6
- "pretty_name": "Juno",
7
- "chain_id": "juno-1",
8
- "bech32_prefix": "juno",
9
- "slip44": 118,
10
- "genesis": {
11
- "genesis_url": "https://raw.githubusercontent.com/CosmosContracts/mainnet/main/juno-1/genesis.json"
1
+ const chain = {
2
+ $schema: '../chain.schema.json',
3
+ chain_name: 'juno',
4
+ status: 'live',
5
+ network_type: 'mainnet',
6
+ pretty_name: 'Juno',
7
+ chain_id: 'juno-1',
8
+ bech32_prefix: 'juno',
9
+ slip44: 118,
10
+ genesis: {
11
+ genesis_url: 'https://raw.githubusercontent.com/CosmosContracts/mainnet/main/juno-1/genesis.json'
12
12
  },
13
- "codebase": {
14
- "git_repo": "https://github.com/CosmosContracts/juno",
15
- "recommended_version": "v9.0.0",
16
- "compatible_versions": ["v9.0.0"]
13
+ codebase: {
14
+ git_repo: 'https://github.com/CosmosContracts/juno',
15
+ recommended_version: 'v9.0.0',
16
+ compatible_versions: ['v9.0.0']
17
17
  },
18
- "daemon_name": "junod",
19
- "node_home": "$HOME/.juno",
20
- "key_algos": ["secp256k1"],
21
- "peers": {
22
- "seeds": [{
23
- "id": "2484353dab0b2c1275765b8ffa2c50b3b36158ca",
24
- "address": "seed-node.junochain.com:26656"
25
- }, {
26
- "id": "ef2315d81caa27e4b0fd0f267d301569ee958893",
27
- "address": "juno-seed.blockpane.com:26656"
28
- }, {
29
- "id": "22ee6e65e5e79cd0b970dd11e52761de8d1d6dfd",
30
- "address": "seeds.pupmos.network:2001",
31
- "provider": "PUPMØS"
18
+ daemon_name: 'junod',
19
+ node_home: '$HOME/.juno',
20
+ key_algos: ['secp256k1'],
21
+ peers: {
22
+ seeds: [{
23
+ id: '2484353dab0b2c1275765b8ffa2c50b3b36158ca',
24
+ address: 'seed-node.junochain.com:26656'
25
+ }, {
26
+ id: 'ef2315d81caa27e4b0fd0f267d301569ee958893',
27
+ address: 'juno-seed.blockpane.com:26656'
28
+ }, {
29
+ id: '22ee6e65e5e79cd0b970dd11e52761de8d1d6dfd',
30
+ address: 'seeds.pupmos.network:2001',
31
+ provider: 'PUPMØS'
32
32
  }],
33
- "persistent_peers": [{
34
- "id": "b1f46f1a1955fc773d3b73180179b0e0a07adce1",
35
- "address": "162.55.244.250:39656"
33
+ persistent_peers: [{
34
+ id: 'b1f46f1a1955fc773d3b73180179b0e0a07adce1',
35
+ address: '162.55.244.250:39656'
36
36
  }, {
37
- "id": "7f593757c0cde8972ce929381d8ac8e446837811",
38
- "address": "178.18.255.244:26656"
37
+ id: '7f593757c0cde8972ce929381d8ac8e446837811',
38
+ address: '178.18.255.244:26656'
39
39
  }, {
40
- "id": "7b22dfc605989d66b89d2dfe118d799ea5abc2f0",
41
- "address": "167.99.210.65:26656"
40
+ id: '7b22dfc605989d66b89d2dfe118d799ea5abc2f0',
41
+ address: '167.99.210.65:26656'
42
42
  }, {
43
- "id": "4bd9cac019775047d27f9b9cea66b25270ab497d",
44
- "address": "137.184.7.164:26656"
43
+ id: '4bd9cac019775047d27f9b9cea66b25270ab497d',
44
+ address: '137.184.7.164:26656'
45
45
  }, {
46
- "id": "bd822a8057902fbc80fd9135e335f0dfefa32342",
47
- "address": "65.21.202.159:38656"
46
+ id: 'bd822a8057902fbc80fd9135e335f0dfefa32342',
47
+ address: '65.21.202.159:38656'
48
48
  }, {
49
- "id": "15827c6c13f919e4d9c11bcca23dff4e3e79b1b8",
50
- "address": "51.38.52.210:38656"
49
+ id: '15827c6c13f919e4d9c11bcca23dff4e3e79b1b8',
50
+ address: '51.38.52.210:38656'
51
51
  }, {
52
- "id": "e665df28999b2b7b40cff2fe4030682c380bf294",
53
- "address": "188.40.106.109:38656"
52
+ id: 'e665df28999b2b7b40cff2fe4030682c380bf294',
53
+ address: '188.40.106.109:38656'
54
54
  }, {
55
- "id": "92804ce50c85ff4c7cf149d347dd880fc3735bf4",
56
- "address": "34.94.231.154:26656"
55
+ id: '92804ce50c85ff4c7cf149d347dd880fc3735bf4',
56
+ address: '34.94.231.154:26656'
57
57
  }, {
58
- "id": "795ed214b8354e8468f46d1bbbf6e128a88fe3bd",
59
- "address": "34.127.19.222:26656"
58
+ id: '795ed214b8354e8468f46d1bbbf6e128a88fe3bd',
59
+ address: '34.127.19.222:26656'
60
60
  }, {
61
- "id": "ea9c1ac0e91639b2c7957d9604655e2263abe4e1",
62
- "address": "185.181.103.136:26656"
61
+ id: 'ea9c1ac0e91639b2c7957d9604655e2263abe4e1',
62
+ address: '185.181.103.136:26656'
63
63
  }]
64
64
  },
65
- "apis": {
66
- "rpc": [{
67
- "address": "https://rpc-juno.whispernode.com",
68
- "provider": " WhisperNode 🤐"
65
+ apis: {
66
+ rpc: [{
67
+ address: 'https://rpc-juno.whispernode.com',
68
+ provider: ' WhisperNode 🤐'
69
69
  }, {
70
- "address": "https://rpc-juno.itastakers.com",
71
- "provider": "itastakers"
70
+ address: 'https://rpc-juno.itastakers.com',
71
+ provider: 'itastakers'
72
72
  }, {
73
- "address": "https://rpc-juno.ecostake.com",
74
- "provider": "ecostake"
73
+ address: 'https://rpc-juno.ecostake.com',
74
+ provider: 'ecostake'
75
75
  }, {
76
- "address": "https://juno-rpc.polkachu.com",
77
- "provider": "Polkachu"
76
+ address: 'https://juno-rpc.polkachu.com',
77
+ provider: 'Polkachu'
78
78
  }, {
79
- "address": "https://rpc.juno.pupmos.network",
80
- "provider": "PUPMØS"
79
+ address: 'https://rpc.juno.pupmos.network',
80
+ provider: 'PUPMØS'
81
81
  }, {
82
- "address": "https://rpc.junomint.com",
83
- "provider": "EZStaking.io"
82
+ address: 'https://rpc.junomint.com',
83
+ provider: 'EZStaking.io'
84
84
  }, {
85
- "address": "https://rpc-juno-ia.notional.ventures/",
86
- "provider": "Notional"
85
+ address: 'https://rpc-juno-ia.notional.ventures/',
86
+ provider: 'Notional'
87
87
  }],
88
- "rest": [{
89
- "address": "https://lcd-juno.whispernode.com",
90
- "provider": " WhisperNode 🤐"
88
+ rest: [{
89
+ address: 'https://lcd-juno.whispernode.com',
90
+ provider: ' WhisperNode 🤐'
91
91
  }, {
92
- "address": "https://lcd-juno.itastakers.com",
93
- "provider": "itastakers"
92
+ address: 'https://lcd-juno.itastakers.com',
93
+ provider: 'itastakers'
94
94
  }, {
95
- "address": "https://rest-juno.ecostake.com",
96
- "provider": "ecostake"
95
+ address: 'https://rest-juno.ecostake.com',
96
+ provider: 'ecostake'
97
97
  }, {
98
- "address": "https://api.juno.pupmos.network",
99
- "provider": "PUPMØS"
98
+ address: 'https://api.juno.pupmos.network',
99
+ provider: 'PUPMØS'
100
100
  }, {
101
- "address": "https://lcd.junomint.com",
102
- "provider": "EZStaking.io"
101
+ address: 'https://lcd.junomint.com',
102
+ provider: 'EZStaking.io'
103
103
  }, {
104
- "address": "https://api-juno-ia.notional.ventures/",
105
- "provider": "Notional"
104
+ address: 'https://api-juno-ia.notional.ventures/',
105
+ provider: 'Notional'
106
106
  }],
107
- "grpc": [{
108
- "address": "35.243.205.230:9090",
109
- "provider": "strangelove"
107
+ grpc: [{
108
+ address: '35.243.205.230:9090',
109
+ provider: 'strangelove'
110
110
  }, {
111
- "address": "grpc-juno-ia.notional.ventures:443",
112
- "provider": "Notional"
111
+ address: 'grpc-juno-ia.notional.ventures:443',
112
+ provider: 'Notional'
113
113
  }]
114
114
  },
115
- "explorers": [{
116
- "kind": "ping.pub",
117
- "url": "https://ping.pub/juno",
118
- "tx_page": "https://ping.pub/juno/tx/${txHash}"
115
+ explorers: [{
116
+ kind: 'ping.pub',
117
+ url: 'https://ping.pub/juno',
118
+ tx_page: 'https://ping.pub/juno/tx/${txHash}'
119
119
  }, {
120
- "kind": "explorers.guru",
121
- "url": "https://juno.explorers.guru",
122
- "tx_page": "https://juno.explorers.guru/transaction/${txHash}"
120
+ kind: 'explorers.guru',
121
+ url: 'https://juno.explorers.guru',
122
+ tx_page: 'https://juno.explorers.guru/transaction/${txHash}'
123
123
  }, {
124
- "kind": "mintscan",
125
- "url": "https://www.mintscan.io/juno",
126
- "tx_page": "https://www.mintscan.io/juno/txs/{txHash}"
124
+ kind: 'mintscan',
125
+ url: 'https://www.mintscan.io/juno',
126
+ tx_page: 'https://www.mintscan.io/juno/txs/${txHash}'
127
127
  }, {
128
- "kind": "atomscan",
129
- "url": "https://atomscan.com/juno",
130
- "tx_page": "https://atomscan.com/juno/transactions/${txHash}"
128
+ kind: 'atomscan',
129
+ url: 'https://atomscan.com/juno',
130
+ tx_page: 'https://atomscan.com/juno/transactions/${txHash}'
131
131
  }]
132
- };
132
+ };
133
+ export default chain;
package/module/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import asset_list from './asset_list';
1
2
  import assets from './assets';
2
3
  import chain from './chain';
3
- import ibc_assets from './ibc_assets';
4
4
  export default {
5
5
  chain,
6
6
  assets,
7
- ibc_assets
7
+ asset_list
8
8
  };
9
- export { assets, chain, ibc_assets };
9
+ export { asset_list, assets, chain };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juno-network/assets",
3
- "version": "0.5.6",
3
+ "version": "0.6.0",
4
4
  "description": "Chain Registry info for Juno",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/CosmosContracts/typescript",
@@ -23,7 +23,8 @@
23
23
  "build": "npm run build:module && npm run build:main",
24
24
  "build:ts": "tsc --project ./tsconfig.json",
25
25
  "buidl": "npm run build && npm run build:ts",
26
- "make": "babel-node ./scripts/build.js",
26
+ "build:pkg": "babel-node ./scripts/build.js",
27
+ "codegen": "npm run build:pkg && npm run format",
27
28
  "prepare": "npm run build",
28
29
  "lint": "eslint --ext .ts,.tsx,.js .",
29
30
  "format": "eslint --fix . --ext .ts,.tsx,.js",
@@ -53,14 +54,14 @@
53
54
  "@babel/plugin-transform-runtime": "7.18.5",
54
55
  "@babel/preset-env": "7.18.2",
55
56
  "@babel/preset-typescript": "^7.17.12",
56
- "@chain-registry/utils": "^0.3.1",
57
+ "@chain-registry/utils": "^0.4.0",
57
58
  "@types/jest": "^28.1.1",
58
59
  "@typescript-eslint/eslint-plugin": "5.31.0",
59
60
  "@typescript-eslint/parser": "5.31.0",
60
61
  "babel-core": "7.0.0-bridge.0",
61
62
  "babel-jest": "28.1.1",
62
63
  "babel-watch": "^7.0.0",
63
- "chain-registry": "^0.5.1",
64
+ "chain-registry": "^0.7.0",
64
65
  "cross-env": "^7.0.2",
65
66
  "eslint": "8.20.0",
66
67
  "eslint-config-prettier": "^8.5.0",
@@ -75,7 +76,8 @@
75
76
  "typescript": "^4.7.3"
76
77
  },
77
78
  "dependencies": {
78
- "@babel/runtime": "^7.18.3"
79
+ "@babel/runtime": "^7.18.3",
80
+ "@chain-registry/types": "0.5.0"
79
81
  },
80
- "gitHead": "92ee4f33752404bc57c78b25e2ad38a880986206"
82
+ "gitHead": "f4d4ed3345ca678cc756e28ffa8a1947496b3e08"
81
83
  }
package/types/assets.d.ts CHANGED
@@ -1,28 +1,3 @@
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;
1
+ import { AssetList } from '@chain-registry/types';
2
+ declare const assets: AssetList;
3
+ export default assets;
package/types/chain.d.ts CHANGED
@@ -1,61 +1,3 @@
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;
1
+ import { Chain } from '@chain-registry/types';
2
+ declare const chain: Chain;
3
+ export default chain;
package/types/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import assets from './assets';
2
2
  import chain from './chain';
3
3
  import ibc_assets from './ibc_assets';
4
-
5
- export default {
6
- chain,
7
- assets,
8
- ibc_assets
4
+ declare const _default: {
5
+ chain: Chain;
6
+ assets: AssetList;
7
+ ibc_assets: IBCAsset;
9
8
  };
10
-
9
+ export default _default;
11
10
  export { assets, chain, ibc_assets };