-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
work with local testchain snapshot #26
Conversation
Haven't done much testing yet, so there's probably more to do to get it working all the way through. And the issue with price feeds being Median on Kovan and DSValue in the snapshots is a pain; the workaround I put in place is a temporary hack. |
TODO
|
to avoid confusion between "testnet" and "testchain"
- get rpcUrl, multicallAddress, all other addresses, & the list of ilks from maker instance - remove WatcherProvider since components should not need to interact with the watcher directly - use the MCD plugin's CdpType.getPrice() for price values
This pull request is automatically deployed with Now. Latest deployment for this branch: https://mcd-cdp-portal-git-local-testchain.mkr-js-prod1.now.sh |
OK, this is ready for review! It is set up by default to handle an environment with Median price feeds. To handle an environment with DSValue price feeds, add To test this against a local testchain, please run the commands described in the "terminal 1" section above to start the testchain, and then fire up the MCD portal with |
* cdp creation flow: show all ilks regardless of whether we have all addresses * center spaceship illustration even when above a long string * forward all search queries after programatic navigation * don’t redirect at all if MM wallet connection has failed
was able to open a cdp on the local chain using MM with one of these keys imported. made this PR. i think we still need added tokens to accept a string |
My first thought was - why am I looking at npm linking instructions if all I want is to run a testchain instance and this being a PR about local testchain? These were the steps I took to get things running after reading your comments:
I'm still not able to develop on mcd-cdp-portal, where can one find a wallet with seeded balances? Def. think it's useful having instructions on how to run all things all the time, but truth is the 80% use case is just developing the frontend using published versions of said sdk libs. it makes less and less sense having That aside, I think this is a great step for the developer experience around this project 🙏. |
I was able to get it up and running, but I had to make some adjustments to handle added contracts with no network properties. |
@adrianleb using the mnemonic that's built into the deploy script outputs We should probably add this to the testchain setup documentation. |
oh yeah, we should just bundle a script that makes it easy to send ETH/COLn from the creator address to the user's metamask account |
@adrianleb my bad, i should have edited that out. as you've noticed, the dai and dai-plugin-mcd deps were updated so you don't need |
@adrianleb You can actually do all this with a standalone copy of https://github.com/makerdao/testchain; just substitute |
@jparklev did you mean to put "QOL tweaks" on develop? |
@levity that commit should have been two really, a few of the tweaks I needed to get cdps working for me here, the others could have been committed to develop first. Though they all arose for me in the context of this PR |
Fixed in the last commit! Lemme know if there's anything else to do here before merging |
@levity I think we might hit a little snag with the kovan deployment, where b/c Otherwise LGTM :) |
@jparklev ok, i'll review makerdao/dai.js#101, then once that's merged, ship a new point release and then update the deps here |
which reads price from the vat
@jparklev i've got to jump on a call now, so if all looks good, feel free to merge |
This is the set of changes I've had to make so far to get the portal working with the local testchain.
starting the local testchain
if you also want to make changes to dai.js / dai-plugin-mcd
Here's how you would get things running and auto-refreshing when you make changes to either dai.js or the MCD plugin:
one-time prep:
terminal 2:
terminal 3:
terminal 4: