Skip to content

Commit

Permalink
update to new reducers and chain-id (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb authored Dec 11, 2019
1 parent e5e2b76 commit 0abc7f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"cosmos-hub-mainnet": {
"id": "cosmos-hub-mainnet",
"title": "Cosmos Hub",
"chain_id": "cosmoshub-2",
"chain_id": "cosmoshub-3",
"rpc_url": "wss://rpc.nylira.net/websocket",
"api_url": "https://lcd.nylira.net",
"bech32_prefix": "cosmos",
Expand Down
4 changes: 2 additions & 2 deletions lib/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const store = mapValues(networks, network => new BlockStore(network))
function startBlockHandlers() {
new CosmosNodeSubscription(
networks['cosmos-hub-mainnet'],
CosmosV0API,
CosmosV2API,
store['cosmos-hub-mainnet']
)
new CosmosNodeSubscription(
Expand Down Expand Up @@ -60,7 +60,7 @@ function startBlockHandlers() {
// from the node and also from the local store.
function createDataSources() {
const dataSources = {
CosmosHubMainnetAPI: new CosmosV0API(networks['cosmos-hub-mainnet']),
CosmosHubMainnetAPI: new CosmosV2API(networks['cosmos-hub-mainnet']),
CosmosHubTestnetAPI: new CosmosV2API(networks['cosmos-hub-testnet']),
RegenTestnetAPI: new RegenV0API(networks['regen-testnet']),
TerraTestnetAPI: new TerraV3API(networks['terra-testnet']),
Expand Down

0 comments on commit 0abc7f5

Please sign in to comment.