Published
Edited
Aug 7, 2020
2 forks
1 star
Insert cell
Insert cell
network = 'mainnet'
Insert cell
world = {
const world = new World(await MetaMaskEnv())
await world.env.read(github(`networks/${network}.json`))
await world.env.load(contractsJSON)
await world.env.assign({
LINK: '0x514910771af9ca656af840dff83e8264ecf986ca', // added in uniswap-oracle branch
KNC: '0xdd974d5c2e2928dea5f71b9825b8b646686bd200' // added in uniswap-oracle branch
})
return world;
}
Insert cell
world.web3.eth.getAccounts()
Insert cell
world.network(false)
Insert cell
world.history.slice(-20)
Insert cell
configs = tokenConfigs(world)
Insert cell
world.env.assign({
// settings for deployment
coinbaseReporter: '0xfCEAdAFab14d46e20144F48824d0C09B1a03F2BC',
anchorToleranceMantissa: exp(.2),
anchorPeriod: 30 * 60,
tokenConfigs: configs,
// deployed
PriceData: '0xc629c26dced4277419cde234012f8160a0278a79',
PriceFeed: '0x9b8eb8b3d6e2e0db36f41455185fef7049a35cae'
})
Insert cell
world.env.instances
Insert cell
viewLib = world.env.library(UniswapAnchoredViewLib)
Insert cell
//world.exec(viewLib.$deployPriceFeed())
Insert cell
//viewLib.postPricesAndSanityCheck(world)
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more