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

RFC-4: Replace account with from/to #151

Merged
merged 2 commits into from
Jan 30, 2017
Merged

RFC-4: Replace account with from/to #151

merged 2 commits into from
Jan 30, 2017

Conversation

justmoon
Copy link
Member

Change the ledger plugin API to use from/to fields instead of the
ambiguous account field.

To illustrate how the previous API was confusing: In plugin-bells, we
actually populated the account field for incoming transfers with the
sending account, while we populated the account field for incoming
messages with the receiving (to) account.

Providing both sending and receiving accounts for both transfers and
messages allows us to more closely mirror the underlying API and reduce
the potential for confusion.

Change the ledger plugin API to use from/to fields instead of the
ambiguous `account` field.

To illustrate how the previous API was confusing: In plugin-bells, we
actually populated the `account` field for incoming transfers with the
sending account, while we populated the `account` field for incoming
messages with the receiving (`to`) account.

Providing both sending and receiving accounts for both transfers and
messages allows us to more closely mirror the underlying API and reduce
the potential for confusion.
@justmoon justmoon changed the title feat: replace account with from/to RFC-4: Replace account with from/to Jan 22, 2017
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