-
Notifications
You must be signed in to change notification settings - Fork 63
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
GNT to GLM user facing refactor #1013
GNT to GLM user facing refactor #1013
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed some occurences:
core/payment-driver/zksync/src/driver.rs:106
:
log::error!("NGNT transfer failed: {}", e);
Lots of "NGNT" in core/payment-driver/zksync/src/zksync/faucet.rs
accounts-example.json
has deprecated 'ngnt' driver name.
I got fooled by new tool search UI - sorry about that :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start!
Some "breaking" comments, please have a look
Also a grep GNT
shows these files still have "wrong" occurrences:
- docs/logging-guidelines.md = user facing, should be fixed this pr
core/payment/src/service.rs
= platform is wrong, maybe for the second step of refactoring?
core/payment/examples/README.md
Outdated
@@ -8,7 +8,7 @@ cd core/payment | |||
cp ../../.env-template .env | |||
cargo run --example payment_api | |||
``` | |||
To use GNT instead of dummy driver us `cargo run --example payment_api -- --driver=gnt` instead. | |||
To use Erc-20 instead of ZkSync driver us `cargo run --example payment_api -- --driver=erc20` instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you test this? i think it also needs platform
The invoice_flow
also needs to get a matching platform as argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I improved the description above. And with Adam's help the code of payment_api
example. Thank you for pointing this out.
payment_api
with driver
& platform
parameter seems to start but it took long to get funded - I will let it run - will update whether it works if the experiment concludes. 💪
Co-authored-by: Adam Wierzbicki <awierzbicki@golem.network>
Co-authored-by: Adam Wierzbicki <awierzbicki@golem.network>
Yes this is my concern as well: #1013 (comment) |
96f9c4b
to
6c23776
Compare
Please update the counters initialization as well: yagna/core/payment/src/service.rs Lines 55 to 58 in 6682274
It should be: counter!("payment.amount.received", 0, "platform" => "erc20-rinkeby-tglm");
counter!("payment.amount.received", 0, "platform" => "erc20-mainnet-glm");
counter!("payment.amount.received", 0, "platform" => "zksync-rinkeby-tglm");
counter!("payment.amount.received", 0, "platform" => "zksync-mainnet-glm");
counter!("payment.amount.sent", 0, "platform" => "erc20-rinkeby-tglm");
counter!("payment.amount.sent", 0, "platform" => "erc20-mainnet-glm");
counter!("payment.amount.sent", 0, "platform" => "zksync-rinkeby-tglm");
counter!("payment.amount.sent", 0, "platform" => "zksync-mainnet-glm"); |
Co-authored-by: Adam Wierzbicki <awierzbicki@golem.network>
Co-authored-by: Adam Wierzbicki <awierzbicki@golem.network>
No description provided.