Skip to content
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

Create domain models #110

Merged
merged 1 commit into from
Mar 21, 2016
Merged

Conversation

alandotcom
Copy link
Contributor

First step for creating a layered architecture for connector
interledger-deprecated/five-bells-ledger#112

function getMetadata () {
return {
public_key: config.getIn(['keys', 'ed25519', 'public']),
urls: {
Copy link
Contributor

Choose a reason for hiding this comment

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

The "urls" object should probably be added by the controller since it's an HTTP thing. And for clarity this method could be renamed to something like "getDomainMetadata", which then gets merged with HTTP metadata.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this PR, I only moved as much of the existing code as I could without doing any refactoring. I plan to do anything else in a followup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are some places where it's more difficult to separate the HTTP concerns from the domain layer

Copy link
Contributor

Choose a reason for hiding this comment

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

Well this whole pull request is refactoring. It's a little strange to move something if you intend to move it right back.

@clark800
Copy link
Contributor

LGTM after rename of createPayment

@sentientwaffle
Copy link
Contributor

Some of the payment stuff is getting removed by #109 anyway (they're going to conflict).

@alandotcom
Copy link
Contributor Author

@sentientwaffle I'll wait until that is merged and resolve the conficts

@sentientwaffle
Copy link
Contributor

@LumberJ thanks!

First step for creating a layered architecture for connector
interledger-deprecated/five-bells-ledger#112
@alandotcom
Copy link
Contributor Author

@clark800 updated

alandotcom added a commit that referenced this pull request Mar 21, 2016
@alandotcom alandotcom merged commit 2ee1a6f into interledgerjs:master Mar 21, 2016
@alandotcom alandotcom deleted the domain-model branch March 21, 2016 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants