Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 43 files
+6 −6 _IBC/aaronetwork-osmosis.json
+31 −0 _IBC/atomone-beezee.json
+31 −0 _IBC/elys-saga.json
+5 −1 akash/chain.json
+50 −0 beezee/assetlist.json
+0 −44 bitcanna/chain.json
+56 −0 carbon/versions.json
+18 −0 chihuahua/chain.json
+4 −4 dungeon/chain.json
+27 −1 elys/chain.json
+90 −0 milkyway/versions.json
+8 −9 neutron/images/neutron-raw.svg
+1 −5 nibiru/chain.json
+1 −1 omniflixhub/chain.json
+27 −0 opct/assetlist.json
+61 −0 opct/chain.json
+ opct/images/opct.png
+88 −5 osmosis/assetlist.json
+ osmosis/images/ashion.png
+10 −10 realio/chain.json
+30 −1 realio/versions.json
+57 −1 routerchain/assetlist.json
+1 −1 source/chain.json
+18 −0 terra2/chain.json
+32 −0 testnets/_IBC/osmosistestnet-titannettestnet.json
+34 −0 testnets/alloratestnet/assetlist.json
+174 −0 testnets/alloratestnet/chain.json
+ testnets/alloratestnet/images/allora-token.png
+17 −0 testnets/alloratestnet/images/allora-token.svg
+37 −0 testnets/alloratestnet/versions.json
+14 −1 testnets/dymensiontestnet1/assetlist.json
+14 −0 testnets/dymensiontestnet1/chain.json
+78 −0 testnets/titannettestnet/assetlist.json
+126 −0 testnets/titannettestnet/chain.json
+ testnets/titannettestnet/images/tnt4.png
+77 −0 testnets/titannettestnet/images/tnt4.svg
+ testnets/titannettestnet/images/ttnt.png
+65 −0 testnets/titannettestnet/images/ttnt.svg
+33 −0 testnets/titannettestnet/versions.json
+18 −0 umee/chain.json
+35 −0 vector/assetlist.json
+107 −0 vector/chain.json
+4 −0 vector/images/vector-light-logo.svg
10 changes: 7 additions & 3 deletions src/ast/parse-chain-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export async function parseChainJson({ registryPath, chainPath }: Args) {
const jsonPath = path.resolve(registryPath, chainPath, "chain.json");

const content = await fs.readFile(jsonPath, "utf-8");
const data: Chain = await chainSchema.parseAsync(JSON.parse(content));

return data;
try {
const data: Chain = await chainSchema.parseAsync(JSON.parse(content));
return data;
} catch (error) {
console.error("Error parsing chain.json", error);
return null;
}
}
2 changes: 2 additions & 0 deletions src/ast/parse-chain-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export async function parseChainPaths({
parseAssetListJson({ registryPath: _registryPath, chainPath }),
parseChainJson({ registryPath: _registryPath, chainPath }),
]);
if (!assetlist) return;
if (!chain) return;

chains.push(chain);
assetlists.push(assetlist);
Expand Down
Loading