Skip to content

Commit

Permalink
feat(drizzle): listen for new phases and provide a web3 fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Nov 21, 2018
1 parent b18aa8b commit 06c15b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
REACT_APP_KLEROS_LIQUID_KOVAN_ADDRESS=0xB05bcE120Cda1D2E07129115556902468f10A0A4
REACT_APP_PINAKION_KOVAN_ADDRESS=0x35c3F474d9d1B72D918b556F92ba934EA30E559D
REACT_APP_WEB3_FALLBACK_URL=wss://mainnet.infura.io/ws
13 changes: 12 additions & 1 deletion src/bootstrap/drizzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ const options = {
42: { address: process.env.REACT_APP_PINAKION_KOVAN_ADDRESS }
}
}
]
],
events: { KlerosLiquid: ['NewPhase'] },
polls: {
accounts: 3000,
blocks: 3000
},
web3: {
fallback: {
type: 'ws',
url: process.env.REACT_APP_WEB3_FALLBACK_URL
}
}
}
export default new Drizzle(options, generateStore(options))

0 comments on commit 06c15b0

Please sign in to comment.