Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Unified precision#505

Merged
superboyiii merged 33 commits intoneo-project:masterfrom
Ashuaidehao:unified-precision
Feb 3, 2021
Merged

Unified precision#505
superboyiii merged 33 commits intoneo-project:masterfrom
Ashuaidehao:unified-precision

Conversation

@Ashuaidehao
Copy link
Copy Markdown
Contributor

ApplicationLog and RpcNep17Tracker will return BigInteger via RPC.
Relate to #496

Co-authored-by: Erik Zhang <erik@neo.org>
@bettybao1209
Copy link
Copy Markdown
Contributor

Is it ok that GetWalletBalance in https://github.com/neo-project/neo-modules/blob/master/src/RpcServer/RpcServer.Wallet.cs#L78 return decimal? Since GetAvailable in neo core returns decimal.

@shargon shargon mentioned this pull request Feb 3, 2021
shargon
shargon previously approved these changes Feb 3, 2021
@chenzhitong
Copy link
Copy Markdown
Contributor

RpcServer.Wallet.cs Line 83
json["balance"] = wallet.GetAvailable(asset_id).Value.ToString();

shargon
shargon previously approved these changes Feb 3, 2021
@ProDog
Copy link
Copy Markdown
Contributor

ProDog commented Feb 3, 2021

Tested OK.

@ProDog ProDog self-requested a review February 3, 2021 10:47
ProDog
ProDog previously approved these changes Feb 3, 2021
@cloud8little
Copy link
Copy Markdown
Contributor

Ready to merge. @superboyiii

@roman-khimov
Copy link
Copy Markdown
Contributor

This effectively reverts #485 and parts of #378 and makes RPC interface a little less friendly (one needs to get/store proper decimals to correctly process these values).

chenzhitong
chenzhitong previously approved these changes Feb 3, 2021
@Ashuaidehao Ashuaidehao dismissed stale reviews from chenzhitong, ProDog, and shargon via e639cbe February 3, 2021 11:18
Ashuaidehao and others added 3 commits February 3, 2021 19:19
@cloud8little
Copy link
Copy Markdown
Contributor

This effectively reverts #485 and parts of #378 and makes RPC interface a little less friendly (one needs to get/store proper decimals to correctly process these values).

since the rpc function is a generic function, and I think it is reasonable to give the control of converting the data to the upper layer applcation (include sdk).

@superboyiii superboyiii merged commit 092ced1 into neo-project:master Feb 3, 2021
@ixje ixje mentioned this pull request Feb 23, 2021
1 task
joeqian10 pushed a commit to joeqian10/neo-modules that referenced this pull request Apr 7, 2021
* Rpc Return BigInteger

* Unified precision 2

* Update src/ApplicationLogs/LogReader.cs

Co-authored-by: Erik Zhang <erik@neo.org>

* refac

* update

* update

* update

* Optimize

* update

* update wallet

* update

* Update src/RpcClient/Models/RpcApplicationLog.cs

Co-authored-by: Erik Zhang <erik@neo.org>

* refac

* long

* Fix RpcNep17Tracker

* More fix

Co-authored-by: 陈志同 <chenzhitong12@qq.com>
Co-authored-by: Erik Zhang <erik@neo.org>
Co-authored-by: Shargon <shargon@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants