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

Payments: Mainnet/testnet preparation #912

Merged
merged 9 commits into from
Jan 18, 2021
Merged

Payments: Mainnet/testnet preparation #912

merged 9 commits into from
Jan 18, 2021

Conversation

Wiezzel
Copy link

@Wiezzel Wiezzel commented Jan 12, 2021

Introduced changes to the payment service and payment driver API necessary for supporting both mainnet and testnet in a single Yagna daemon process. This changes require drivers to be network-aware.

TODO:

  • Update ERC-20 (NGNT) driver
  • Update zkSync driver
  • Update README

Base automatically changed from event-api/master to master January 13, 2021 09:43
Introduced changes to the payment service and payment driver API
necessary for supporting both mainnet and testnet in a single Yagna
daemon process. This changes require drivers to be network-aware.

Signed-off-by: Adam Wierzbicki <awierzbicki@golem.network>
Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

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

LGTM!

2 nitty comments / questions

checking ya-client side now

core/payment-driver/dummy/src/service.rs Outdated Show resolved Hide resolved
core/payment/src/processor.rs Show resolved Hide resolved
* Added missing call to `get_networks()` in driver registration.
* Changed default platform from 'ZK-NGNT' to 'zksync-rinkeby-tglm'.
* Removed upper-casing platforms (that was introduced to distinguish
  platform names from driver names which is no longer an issue since
  adopting the <driver>-<network>-<token> convention).
* Fixed account registration for dummy driver (missing network and
  token names).

Signed-off-by: Adam Wierzbicki <awierzbicki@golem.network>
@Wiezzel Wiezzel marked this pull request as ready for review January 18, 2021 12:20
@Wiezzel Wiezzel requested review from a team January 18, 2021 12:20
Copy link
Contributor

@nieznanysprawiciel nieznanysprawiciel left a comment

Choose a reason for hiding this comment

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

Approve for provider part

Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

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

LGTM!

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