Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Infer DAI token from Ethereum chain ID #3071

Merged
merged 2 commits into from
Aug 21, 2020
Merged

Infer DAI token from Ethereum chain ID #3071

merged 2 commits into from
Aug 21, 2020

Commits on Aug 21, 2020

  1. Infer DAI token from Ethereum chain ID

    This introduces the ethereum::Address type into our config::File
    struct. Unfortunately, this opens a can of worms with a bug in
    the serde-hex library. See [0] for more details.
    
    We work around this by removing the dependency on serde-hex from our
    Ethereum deserialization code and instead hand-roll everything for
    our usecase.
    
    This also has the advantage that we can now again just use our structs
    directly in the route handlers of warp instead of serde_json::Value.
    See [1] for more on this.
    
    [0]: fspmarshall/serde-hex#8
    [1]: #2405
    thomaseizinger committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    e2eaea2 View commit details
    Browse the repository at this point in the history
  2. Allow test suites to override entries in cnd's config file

    With the addition of the [tokens] section, cnd fails to start up
    in `--dev` mode if the config file provided doesn't define a contract
    address.
    thomaseizinger committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    48e1060 View commit details
    Browse the repository at this point in the history