Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

[Easy] Add GPv2Contract artefact #91

Merged
merged 1 commit into from
Dec 8, 2020
Merged

[Easy] Add GPv2Contract artefact #91

merged 1 commit into from
Dec 8, 2020

Conversation

fleupold
Copy link
Contributor

@fleupold fleupold commented Dec 8, 2020

This PR adds the dependencies for GPv2 Settlement. Note, that part of the change accidentally slipped in to a hot fix I applied last week when trying to get autodeploy running (7213878)

Given the setup of hardhat (which has separate jsons for each network) we are currently specifically importing the rinkeby artefact. We also cannot automatically load the deployed address as hardhat's .json is slightly different from truffle's. Given that this is the same for the Uniswap contract it might be ok to simply define the contract addresses in code somewhere (there is also cowprotocol/ethcontract-rs#382 tracking ethers support in ethcontracts).

Test Plan

Depending on the new contract in main works (if we add contracts to the solver's Cargo.toml)

@fleupold fleupold requested review from nlordell and a team December 8, 2020 10:54
@bh2smith
Copy link
Contributor

bh2smith commented Dec 8, 2020

Seems legit!

Copy link
Contributor

@e00E e00E left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another way to test this and also useful for development is checking the docs:

cargo doc --no-deps --open

then navigate to or search for g_pv_2_settlement::Contract.

Importing the rinkeby version and specifying the address through command line arguments is fine for the demo.

@fleupold fleupold merged commit 02dc58f into main Dec 8, 2020
@fleupold fleupold deleted the gpv2contract branch December 8, 2020 16:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants