Skip to content

feat: pn to smart-contract version mapping#649

Merged
benjlevesque merged 25 commits intomasterfrom
contract-version-mapping
Oct 29, 2021
Merged

feat: pn to smart-contract version mapping#649
benjlevesque merged 25 commits intomasterfrom
contract-version-mapping

Conversation

@benjlevesque
Copy link
Contributor

@benjlevesque benjlevesque commented Oct 25, 2021

This PR updates the payment method of the payment-processor library so that every method uses the mapping between PaymentNetwork and SmartContract as defined in payment-detection.

Since it was very hard to retrieve which class should define a mapping, I also did the following changes:

  • rename PaymentNetwork => PaymentDetector for clarity, where appliable (payment detection library)
  • remove default export (not everywhere yet to reduce conflicts) to avoid different namings, making it hard to search
  • several renaming / move for clarity

@benjlevesque benjlevesque marked this pull request as ready for review October 25, 2021 16:26
@benjlevesque benjlevesque force-pushed the contract-version-mapping branch from 69c7483 to 7d7f55e Compare October 26, 2021 10:03
@benjlevesque benjlevesque force-pushed the contract-version-mapping branch from 5a4337a to 7f68f70 Compare October 26, 2021 12:38
@coveralls
Copy link

coveralls commented Oct 26, 2021

Coverage Status

Coverage increased (+0.05%) to 89.256% when pulling 9ea6191 on contract-version-mapping into e749605 on master.

Copy link
Contributor

@yomarion yomarion left a comment

Choose a reason for hiding this comment

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

Awesome, congrats ! I'm glad we finally got rid of the payment-detection naming weirdness :)

@benjlevesque benjlevesque enabled auto-merge (squash) October 26, 2021 15:54
@benjlevesque benjlevesque merged commit d45ab85 into master Oct 29, 2021
@benjlevesque benjlevesque deleted the contract-version-mapping branch October 29, 2021 11:15
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.

5 participants