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

Drop NEPXXTokenInfo from the RPC client #2667

Merged
merged 6 commits into from
Aug 30, 2022
Merged

Conversation

roman-khimov
Copy link
Member

And update CLI commands. I think that's the last one for №4 from #2597.

It's the same, even though standards define parameter name in a bit different
way.
@roman-khimov roman-khimov added the rpc RPC server and client label Aug 29, 2022
@roman-khimov roman-khimov added this to the v0.99.3 milestone Aug 29, 2022
I'm still not sure it's good to have this exposed from neptoken at all, but
let's try it this way.
In the same way we do for NEP-17 tokens. This code predates "getnep11balances"
call, so this wasn't possible back then, but now we can improve the situation
(allow specifying names/symbols instead of hashes only).
We have this data available since 0.99.1 while all public networks require at
least 0.99.2 for compatibility and NeoFS setups use 0.99.2+ too. This data can
simplify account handling considerably making additional requests unneccessary
in many cases.
@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #2667 (1da4b33) into master (bf06b32) will increase coverage by 0.14%.
The diff coverage is 90.71%.

@@            Coverage Diff             @@
##           master    #2667      +/-   ##
==========================================
+ Coverage   85.07%   85.21%   +0.14%     
==========================================
  Files         315      321       +6     
  Lines       38889    39285     +396     
==========================================
+ Hits        33083    33475     +392     
- Misses       4464     4474      +10     
+ Partials     1342     1336       -6     
Impacted Files Coverage Δ
pkg/rpcclient/nep11.go 0.00% <ø> (-2.86%) ⬇️
pkg/rpcclient/nep11/base.go 100.00% <ø> (ø)
pkg/rpcclient/nep17.go 18.18% <ø> (-2.60%) ⬇️
cli/wallet/nep17.go 74.29% <86.91%> (+0.63%) ⬆️
cli/wallet/nep11.go 85.48% <93.87%> (+5.19%) ⬆️
pkg/rpcclient/nep17/nep17.go 100.00% <100.00%> (ø)
pkg/rpcclient/neptoken/base.go 100.00% <100.00%> (ø)
pkg/rpcclient/neptoken/info.go 100.00% <100.00%> (ø)
pkg/rpcclient/nep.go 0.00% <0.00%> (-50.00%) ⬇️
pkg/rpcclient/native.go 25.84% <0.00%> (-30.34%) ⬇️
... and 21 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

docs/cli.md Outdated Show resolved Hide resolved
1. In the single token mode compare known hashes instead of names, names can
   be misleading.
2. Hardcode NEO/GAS, they are special (if not overrided by the wallet data).
Make NEP-11 code use getnep11balances the same way NEP-17 code uses
getnep17balances. This command was introduced well before getnep11balances
appeared, so it required always specifying contract explicitly. Now this
constraint can be relaxed somewhat in most cases.
@roman-khimov roman-khimov merged commit 314cd33 into master Aug 30, 2022
@roman-khimov roman-khimov deleted the rpc-nep-token-info branch August 30, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rpc RPC server and client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants