-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from cosmology-tech/split-json
revise build script and regen chain registry
- Loading branch information
Showing
1,044 changed files
with
122,790 additions
and
83,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// import single chain from folder, good for tree shaking | ||
import { chain as chain_akash } from './mainnet/akash'; | ||
|
||
console.log(chain_akash.apis); | ||
|
||
// import single chain from root, good for tree shaking | ||
import { akash, akashtestnet } from '../src'; | ||
|
||
console.log(akash.chain.apis, akashtestnet.chain.apis); | ||
|
||
// backward compatibility using "all.ts": get all chains at once: | ||
import { chains } from '../src/all'; | ||
|
||
console.log(chains.find((chain) => chain.chain_name === 'akash')); | ||
|
||
// made bundle smaller: get all chains only in mainnet: | ||
import { chains as chains_main } from '../src/mainnet/all'; | ||
|
||
console.log(chains_main.find((chain) => chain.chain_name === 'akash')); | ||
|
||
// made bundle even smaller: get all chains only in mainnet | ||
// and with minimal info customized for dropbox: | ||
// TODO:: gen minimal arrays of mainnet and testnet and both |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.