mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
99090ee058
* adding network 8896 (barge) * Update ocean.ts * development network with env variable * temp patch for provider url check * removed logs * fix typing error * set local provider url to asset metadata * clean development config * wip make use of barge addresses * update env vars from script * more fixes * cleanup * update readme * more readme updates * cleanup fixes * more fixes * script readme updates * update readme * update readme * bump oceanjs * fix tests after oceanjs upgrade * adding custom provider for mac barge * fix test app.config path * remove log * added NEXT_PUBLIC_PROVIDER_URL to load dev env * added env variable for mac on load dev env * fre fixes * review suggestions * Update README.md Co-authored-by: Jamie Hewitt <jamie@oceanprotocol.com> * add private key example * bump oceanlib * fix build * fix provider uri for mac * add custom rpc env var example * fix build * update barge env vars script * remove brage from supported and default chainIds by default * remove log --------- Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com> Co-authored-by: Jamie Hewitt <jamie@oceanprotocol.com>
34 lines
721 B
JavaScript
34 lines
721 B
JavaScript
#!/usr/bin/env node
|
|
'use strict'
|
|
|
|
const bargeNetwork = {
|
|
name: 'Ethereum Barge',
|
|
chain: 'ETH',
|
|
icon: 'ethereum',
|
|
rpc: ['http://127.0.0.1:8545'],
|
|
faucets: [],
|
|
nativeCurrency: {
|
|
name: 'Ether',
|
|
symbol: 'ETH',
|
|
decimals: 18
|
|
},
|
|
infoURL: 'https://ethereum.org',
|
|
shortName: 'eth',
|
|
chainId: 8996,
|
|
networkId: 8996,
|
|
slip44: 60,
|
|
ens: {},
|
|
explorers: []
|
|
}
|
|
|
|
const axios = require('axios')
|
|
|
|
// https://github.com/ethereum-lists/chains
|
|
const chainDataUrl = 'https://chainid.network/chains.json'
|
|
|
|
axios(chainDataUrl).then((response) => {
|
|
response.data.push(bargeNetwork)
|
|
// const networks ={...response.data, ...bargeNetwork}
|
|
process.stdout.write(JSON.stringify(response.data, null, ' '))
|
|
})
|