-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move bridge contact addresses to primary configuration file.
* Allow creation of `Database` from either a stored database configuration containing a `home_contract_address` and `foreign_contract_address` or a user defined configuration without contract address fields. * User defined database configuration files are parsed through the `database::parsed::UserDefinedDatabase` struct. * Stored database configuration files are parsed through the `database::parsed::StoredDatabase` struct. * Deprecate `Database::save` in favor of `Deprecate::store`. * Add the `Database::load_user_defined` method to handle creation of a `Database` from a user defined configuration containing no contract addresses. * Deprecate `Database::load` in favor of `Database::load_stored`. `Database::load_stored` will create a new `Database` from a stored database configuration file *containing* contract addresses. * Remove the `FromStr` impl for `Database`. * Rename the `config::load` module to `parse`. * Update tests.
- Loading branch information
Showing
7 changed files
with
269 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.