Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed Aug 20, 2022
1 parent c7b8dd9 commit 9f4dfaa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ npm install @chain-registry/assets
```

```js
import { ibc_assets } from '@chain-registry/assets';
const assetList = ibc_assets
import { asset_lists } from '@chain-registry/assets';
const assetList = asset_lists
.find(asset => asset.chain_name === 'osmosis');
```

Expand Down
4 changes: 2 additions & 2 deletions packages/juno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ npm install @chain-registry/juno
```

```js
import { chain, assets, ibc_assets } from '@chain-registry/juno';
import { chain, assets, asset_list } from '@chain-registry/juno';
```
```js
console.log(ibc_assets);
console.log(asset_list);
{
chain_name: 'juno',
assets: [
Expand Down
4 changes: 2 additions & 2 deletions packages/juno/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { writeFileSync } from 'fs';

const chainName = 'juno';

const ibc_assets = assets.reduce((m, { chain_name }) => {
const asset_list = assets.reduce((m, { chain_name }) => {
if (chain_name !== chainName) return m;
return [...m, ...getAssetLists(chain_name, ibc, assets)];
}, []);
Expand All @@ -26,4 +26,4 @@ export default ${file};

write(`chain`, chain, 'Chain');
write(`assets`, assetList, 'AssetList');
write(`asset_list`, ibc_assets[0], 'AssetList');
write(`asset_list`, asset_list[0], 'AssetList');
4 changes: 2 additions & 2 deletions packages/osmosis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ npm install @chain-registry/osmosis
```

```js
import { chain, assets, ibc_assets } from '@chain-registry/osmosis';
import { chain, assets, asset_list } from '@chain-registry/osmosis';
```

```js
console.log(ibc_assets);
console.log(asset_list);
{
chain_name: 'osmosis',
assets: [
Expand Down
4 changes: 2 additions & 2 deletions packages/osmosis/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { writeFileSync } from 'fs';

const chainName = 'osmosis';

const ibc_assets = assets.reduce((m, { chain_name }) => {
const asset_list = assets.reduce((m, { chain_name }) => {
if (chain_name !== chainName) return m;
return [...m, ...getAssetLists(chain_name, ibc, assets)];
}, []);
Expand All @@ -26,4 +26,4 @@ export default ${file};

write(`chain`, chain, 'Chain');
write(`assets`, assetList, 'AssetList');
write(`asset_list`, ibc_assets[0], 'AssetList');
write(`asset_list`, asset_list[0], 'AssetList');

0 comments on commit 9f4dfaa

Please sign in to comment.