Skip to content

Commit

Permalink
feat(rpc): support new field of cfx_getParamsFromVote
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Oct 17, 2023
1 parent 971c729 commit 5254d22
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions conflux_web3/_utils/method_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ def fixed64_to_float(val: str) -> float:
DAO_INFO_FORMATTERS = {
"powBaseReward": from_hex_to_drip,
"interestRate": to_integer_if_hex,
"storagePointProp": to_integer_if_hex,
}

SUPPLY_INFO_FORMATTERS = {
Expand Down
2 changes: 2 additions & 0 deletions conflux_web3/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,11 @@ class DAOVoteInfo(TypedDict):
----------
| powBaseReward: Drip
| interestRate: int
| storagePointProp: int
"""
powBaseReward: Drip
interestRate: int
storagePointProp: int

class SupplyInfo(TypedDict):
"""
Expand Down
6 changes: 6 additions & 0 deletions docs/en/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Logs

## 1.2.1

* fix: missed interface(`getAvailableStoragePoints`) for internal contract `SponsorWhitelistControl`
* RPC support:
* `storagePointProp` field for `cfx_getParamsFromVote` return value

## 1.2.0

* bump web3.py to 6.8.0
Expand Down

0 comments on commit 5254d22

Please sign in to comment.