Skip to content

Commit

Permalink
Add slip44 to chains index
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jun 5, 2023
1 parent 6efca0b commit 285b7ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chains/chainsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ import { renderJson } from '../utils.js';

function ChainsController(registry) {
async function chainResponse(chain, summarize) {
const { chain_name, network_type, pretty_name, chain_id, status, explorers, keywords, codebase, bech32_prefix } = chain.chain;
const { chain_name, network_type, pretty_name, chain_id, status, explorers, keywords, codebase, bech32_prefix, slip44 } = chain.chain;
const baseAsset = chain.baseAsset
const apis = await chain.apis()
const { params, versions, services, prices, assets } = chain
const response = {
name: chain_name,
path: chain.path,
chain_name,
chain_name,
network_type,
pretty_name,
chain_id,
status,
bech32_prefix,
slip44,
symbol: baseAsset?.symbol,
display: baseAsset?.display?.denom,
denom: baseAsset?.denom,
Expand Down Expand Up @@ -51,7 +52,7 @@ function ChainsController(registry) {
return response
} else {
return { ...chain.chain, ...response }
}
}
}

async function repositoryResponse() {
Expand Down Expand Up @@ -100,4 +101,4 @@ function ChainsController(registry) {
};
}

export default ChainsController
export default ChainsController

0 comments on commit 285b7ef

Please sign in to comment.