Skip to content

Commit e2258fb

Browse files
authored
Merge pull request #104 from confio/release-0.6.0
Release 0.6.0
2 parents 95d2403 + 2ff0535 commit e2258fb

File tree

23 files changed

+179
-172
lines changed

23 files changed

+179
-172
lines changed

CHANGELOG.md

+44-39
Original file line numberDiff line numberDiff line change
@@ -2,78 +2,83 @@
22

33
## [Unreleased](https://github.com/confio/poe-contracts/tree/HEAD)
44

5-
[Full Changelog](https://github.com/confio/poe-contracts/compare/v0.6.0-rc2...HEAD)
5+
[Full Changelog](https://github.com/confio/poe-contracts/compare/v0.6.0...HEAD)
66

7-
## [v0.6.0-rc2](https://github.com/confio/poe-contracts/tree/v0.6.0-rc2) (2022-02-03)
7+
## [v0.6.0](https://github.com/confio/poe-contracts/tree/v0.6.0) (2022-02-15)
8+
9+
[Full Changelog](https://github.com/confio/poe-contracts/compare/v0.6.0-rc2...v0.6.0)
810

911
**Breaking changes:**
1012

11-
- Use specilaized tg3 version of voting API for tgrade contracts [\#85](https://github.com/confio/poe-contracts/issues/85)
12-
- Valset config contract names [\#96](https://github.com/confio/poe-contracts/pull/96) ([maurolacy](https://github.com/maurolacy))
13-
- tg3: Common voting interfaces for tgrade [\#93](https://github.com/confio/poe-contracts/pull/93) ([hashedone](https://github.com/hashedone))
14-
- Rename API to points and rewards [\#50](https://github.com/confio/poe-contracts/pull/50) ([ethanfrey](https://github.com/ethanfrey))
13+
- Rename `Tg4Contract::total_weight` to `Tg4Contract::total_points` in `packages/tg4`.
14+
15+
- Some `Response` `attributes` renaming in `tg4-engagement`:
16+
- "distribute_tokens" -> "distribute_rewards"
17+
- "withdraw_tokens" -> "withdraw_rewards"
18+
- "token" -> "rewards"
19+
- "weight" -> "points"
1520

1621
**Closed issues:**
1722

18-
- Valset: add `ListJailedValidators` query [\#87](https://github.com/confio/poe-contracts/issues/87)
19-
- Add `list_votes_by_voter` query to `voting_contract` [\#78](https://github.com/confio/poe-contracts/issues/78)
20-
- Increase max limit [\#76](https://github.com/confio/poe-contracts/issues/76)
21-
- Missing items found when updating Go code [\#75](https://github.com/confio/poe-contracts/issues/75)
22-
- Tools to help build API Migration Guide [\#72](https://github.com/confio/poe-contracts/issues/72)
23-
- \[tgrade-valset\] Metadata issues [\#66](https://github.com/confio/poe-contracts/issues/66)
24-
- Ensure validator is online before adding to the active set [\#36](https://github.com/confio/poe-contracts/issues/36)
23+
- Refactor local names to match new naming rules [\#86](https://github.com/confio/poe-contracts/issues/86)
2524

2625
**Merged pull requests:**
2726

28-
- Valset: Implement ListJailedValidators query [\#92](https://github.com/confio/poe-contracts/pull/92) ([ueco-jb](https://github.com/ueco-jb))
29-
- Valset: metadata validation [\#84](https://github.com/confio/poe-contracts/pull/84) ([ueco-jb](https://github.com/ueco-jb))
30-
- Increase MAX\_LIMIT constant to 100 and DEFAULT\_LIMIT to 30 [\#80](https://github.com/confio/poe-contracts/pull/80) ([ueco-jb](https://github.com/ueco-jb))
31-
- Voting Contract: Add list\_votes\_by\_voter query [\#79](https://github.com/confio/poe-contracts/pull/79) ([ueco-jb](https://github.com/ueco-jb))
32-
- Feature-gated `SimulateValidatorSet` [\#77](https://github.com/confio/poe-contracts/pull/77) ([maurolacy](https://github.com/maurolacy))
33-
- Add `diff_schema.sh` / `diff_state.sh` tools [\#74](https://github.com/confio/poe-contracts/pull/74) ([maurolacy](https://github.com/maurolacy))
27+
- Aligning local names to APIs [\#102](https://github.com/confio/poe-contracts/pull/102) ([hashedone](https://github.com/hashedone))
3428

35-
## [v0.6.0-beta1](https://github.com/confio/poe-contracts/tree/v0.6.0-beta1) (2022-02-03)
29+
## [v0.6.0-rc2](https://github.com/confio/poe-contracts/tree/v0.6.0-rc2) (2022-02-10)
3630

37-
[Full Changelog](https://github.com/confio/poe-contracts/compare/v0.6.0-alpha1...v0.6.0-beta1)
31+
[Full Changelog](https://github.com/confio/poe-contracts/compare/v0.5.5...v0.6.0-rc2)
3832

3933
**Breaking changes:**
4034

35+
- Use specilaized tg3 version of voting API for tgrade contracts [\#85](https://github.com/confio/poe-contracts/issues/85)
36+
- Valset config contract names [\#96](https://github.com/confio/poe-contracts/pull/96) ([maurolacy](https://github.com/maurolacy))
37+
- tg3: Common voting interfaces for tgrade [\#93](https://github.com/confio/poe-contracts/pull/93) ([hashedone](https://github.com/hashedone))
38+
- Rename API to points and rewards [\#50](https://github.com/confio/poe-contracts/pull/50) ([ethanfrey](https://github.com/ethanfrey))
4139
- `valset`: Optimize VALIDATORS storage [\#42](https://github.com/confio/poe-contracts/issues/42)
4240
- Optimize validators storage [\#61](https://github.com/confio/poe-contracts/pull/61) ([maurolacy](https://github.com/maurolacy))
43-
44-
**Closed issues:**
45-
46-
- Voting's helper `update_status()` should save changed status [\#62](https://github.com/confio/poe-contracts/issues/62)
47-
- \[voting-contract\] More status issues [\#55](https://github.com/confio/poe-contracts/issues/55)
48-
49-
**Merged pull requests:**
50-
51-
- Voting Contract: vote and close uses current status [\#60](https://github.com/confio/poe-contracts/pull/60) ([ueco-jb](https://github.com/ueco-jb))
52-
53-
## [v0.6.0-alpha1](https://github.com/confio/poe-contracts/tree/v0.6.0-alpha1) (2022-01-31)
54-
55-
[Full Changelog](https://github.com/confio/poe-contracts/compare/v0.5.5...v0.6.0-alpha1)
56-
57-
**Breaking changes:**
58-
5941
- \[voting-contract\] Record proposal creator [\#31](https://github.com/confio/poe-contracts/issues/31)
60-
- Validator set query pagination [\#51](https://github.com/confio/poe-contracts/pull/51) ([maurolacy](https://github.com/maurolacy))
61-
- valset: Add a feature to update `min_weight` and `max_validators` [\#45](https://github.com/confio/poe-contracts/pull/45) ([uint](https://github.com/uint))
6242
- Store information about operators' validator status [\#37](https://github.com/confio/poe-contracts/pull/37) ([uint](https://github.com/uint))
6343

6444
**Closed issues:**
6545

46+
- Tag 0.6.0-rc1 [\#88](https://github.com/confio/poe-contracts/issues/88)
47+
- Valset: add `ListJailedValidators` query [\#87](https://github.com/confio/poe-contracts/issues/87)
48+
- Add `list_votes_by_voter` query to `voting_contract` [\#78](https://github.com/confio/poe-contracts/issues/78)
49+
- Increase max limit [\#76](https://github.com/confio/poe-contracts/issues/76)
50+
- Missing items found when updating Go code [\#75](https://github.com/confio/poe-contracts/issues/75)
51+
- Tools to help build API Migration Guide [\#72](https://github.com/confio/poe-contracts/issues/72)
52+
- \[tgrade-valset\] Metadata issues [\#66](https://github.com/confio/poe-contracts/issues/66)
53+
- Tag v0.6.0-beta1 [\#67](https://github.com/confio/poe-contracts/issues/67)
54+
- Voting's helper `update_status()` should save changed status [\#62](https://github.com/confio/poe-contracts/issues/62)
55+
- \[voting-contract\] More status issues [\#55](https://github.com/confio/poe-contracts/issues/55)
6656
- Validator Voting: check `migrate_msg` content to be \>0 [\#46](https://github.com/confio/poe-contracts/issues/46)
6757
- Add Open Text Proposals [\#15](https://github.com/confio/poe-contracts/issues/15)
6858

6959
**Merged pull requests:**
7060

61+
- Release 0.6.0-rc2 [\#99](https://github.com/confio/poe-contracts/pull/99) ([ueco-jb](https://github.com/ueco-jb))
62+
- tg3: align version [\#100](https://github.com/confio/poe-contracts/pull/100) ([uint](https://github.com/uint))
63+
- Fix typo in publish.sh script [\#98](https://github.com/confio/poe-contracts/pull/98) ([ueco-jb](https://github.com/ueco-jb))
64+
- Add tg3 package to publishing script [\#97](https://github.com/confio/poe-contracts/pull/97) ([maurolacy](https://github.com/maurolacy))
65+
- Release 0.6.0-rc1 [\#95](https://github.com/confio/poe-contracts/pull/95) ([ueco-jb](https://github.com/ueco-jb))
66+
- Valset: Implement ListJailedValidators query [\#92](https://github.com/confio/poe-contracts/pull/92) ([ueco-jb](https://github.com/ueco-jb))
67+
- Valset: metadata validation [\#84](https://github.com/confio/poe-contracts/pull/84) ([ueco-jb](https://github.com/ueco-jb))
68+
- Increase MAX\_LIMIT constant to 100 and DEFAULT\_LIMIT to 30 [\#80](https://github.com/confio/poe-contracts/pull/80) ([ueco-jb](https://github.com/ueco-jb))
69+
- Voting Contract: Add list\_votes\_by\_voter query [\#79](https://github.com/confio/poe-contracts/pull/79) ([ueco-jb](https://github.com/ueco-jb))
70+
- Feature-gated `SimulateValidatorSet` [\#77](https://github.com/confio/poe-contracts/pull/77) ([maurolacy](https://github.com/maurolacy))
71+
- Add `diff_schema.sh` / `diff_state.sh` tools [\#74](https://github.com/confio/poe-contracts/pull/74) ([maurolacy](https://github.com/maurolacy))
72+
- Release v0.6.0-beta1 [\#73](https://github.com/confio/poe-contracts/pull/73) ([maurolacy](https://github.com/maurolacy))
73+
- Voting Contract: vote and close uses current status [\#60](https://github.com/confio/poe-contracts/pull/60) ([ueco-jb](https://github.com/ueco-jb))
7174
- Update rust toolchain to v1.58.1 [\#58](https://github.com/confio/poe-contracts/pull/58) ([uint](https://github.com/uint))
7275
- 0.6.0-alpha1 release [\#56](https://github.com/confio/poe-contracts/pull/56) ([uint](https://github.com/uint))
7376
- Voting contract: save info about creator of proposal [\#54](https://github.com/confio/poe-contracts/pull/54) ([ueco-jb](https://github.com/ueco-jb))
7477
- Fix `remove_hook` helper [\#53](https://github.com/confio/poe-contracts/pull/53) ([maurolacy](https://github.com/maurolacy))
78+
- Validator set query pagination [\#51](https://github.com/confio/poe-contracts/pull/51) ([maurolacy](https://github.com/maurolacy))
7579
- ValidatorVoting - make sure proposal migrate msg is not empty [\#48](https://github.com/confio/poe-contracts/pull/48) ([ueco-jb](https://github.com/ueco-jb))
7680
- Fix tg4-engagement docs / comments [\#47](https://github.com/confio/poe-contracts/pull/47) ([maurolacy](https://github.com/maurolacy))
81+
- valset: Add a feature to update `min_weight` and `max_validators` [\#45](https://github.com/confio/poe-contracts/pull/45) ([uint](https://github.com/uint))
7782
- Update rust to v1.54.0 in CI [\#43](https://github.com/confio/poe-contracts/pull/43) ([maurolacy](https://github.com/maurolacy))
7883
- Valset: Fix JailMsg inconsistencies [\#39](https://github.com/confio/poe-contracts/pull/39) ([ueco-jb](https://github.com/ueco-jb))
7984
- Valset: better unjail error message when jail lock didn't expire [\#38](https://github.com/confio/poe-contracts/pull/38) ([ueco-jb](https://github.com/ueco-jb))

Cargo.lock

+25-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/tg4-engagement/Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tg4-engagement"
3-
version = "0.6.0-rc2"
3+
version = "0.6.0"
44
authors = ["Ethan Frey <[email protected]>"]
55
edition = "2018"
66
description = "Simple TG4 implementation of group membership controlled by an admin"
@@ -24,17 +24,17 @@ cw-utils = "0.11.0"
2424
cw2 = "0.11.0"
2525
cw-controllers = "0.11.0"
2626
cw-storage-plus = "0.11.0"
27-
tg4 = { path = "../../packages/tg4", version = "0.6.0-rc2" }
28-
tg-utils = { version = "0.6.0-rc2", path = "../../packages/utils" }
29-
tg-bindings = { version = "0.6.0-rc2", path = "../../packages/bindings" }
30-
cosmwasm-std = { version = "1.0.0-beta" }
27+
tg4 = { path = "../../packages/tg4", version = "0.6.0" }
28+
tg-utils = { version = "0.6.0", path = "../../packages/utils" }
29+
tg-bindings = { version = "0.6.0", path = "../../packages/bindings" }
30+
cosmwasm-std = { version = "1.0.0-beta5" }
3131
schemars = "0.8"
3232
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
3333
thiserror = { version = "1.0.21" }
3434

3535
[dev-dependencies]
36-
cosmwasm-schema = { version = "1.0.0-beta" }
36+
cosmwasm-schema = { version = "1.0.0-beta5" }
3737
cw-multi-test = { version = "0.11.0" }
38-
tg-bindings-test = { version = "0.6.0-rc2", path = "../../packages/bindings-test" }
38+
tg-bindings-test = { version = "0.6.0", path = "../../packages/bindings-test" }
3939
derivative = "2"
4040
anyhow = "1"

contracts/tg4-engagement/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ can check a given member address and the total points. Smart queries (designed
1111
for client API) can do the same, and also query the admin address as well as
1212
paginate over all members.
1313

14-
Also this contract provides api for behavior similar to EIP2222 standard, which
14+
Also, this contract provides api for behavior similar to EIP2222 standard, which
1515
allows for automatic split rewards sent to this contract proportionally to
1616
members points.
1717

@@ -72,7 +72,7 @@ they are assigned for future withdrawal.
7272

7373
`WithdrawFunds {receiver}` - withdraws funds previously assigned to sender of the
7474
message while funds distribution. Optional `receiver` field is an address where
75-
funds should be send, message sender by default.
75+
funds should be sent, message sender by default.
7676

7777
`DelegateWithdrawal{delegated}` - set `delegated` address to be allowed to
7878
withdraw funds assigned to `sender`. Only one address can be delegated for any
@@ -86,13 +86,13 @@ to `sender`.
8686

8787
`Preauths {}` - returns the current number of preauths.
8888

89-
`WithdrawableFunds {owner}` - returns how much funds is assigned for withdrawal by
89+
`WithdrawableRewards {owner}` - returns how many rewards are assigned for withdrawal by
9090
owner.
9191

92-
`DistributedFunds {}` - returns how much funds were distributed by this contract in
92+
`DistributedRewards {}` - returns how many rewards were distributed by this contract in
9393
its lifetime.
9494

95-
`UndistributedFunds {}` - returns how much funds is waiting for distribution on this
95+
`UndistributedRewards {}` - returns how many rewards are waiting for distribution on this
9696
contract.
9797

9898
`Delegated {owner}` - returns address allowed to withdraw funds assigned to given

contracts/tg4-engagement/src/contract.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ fn query_member(deps: Deps, addr: String, height: Option<u64>) -> StdResult<Memb
747747
}
748748

749749
pub fn query_withdrawable_rewards(deps: Deps, owner: String) -> StdResult<RewardsResponse> {
750-
// Not checking address, as if it is ivnalid it is guaranteed not to appear in maps, so
751-
// `withdrawable_funds` would return error itself.
750+
// Not checking address, as if it is invalid it is guaranteed not to appear in maps, so
751+
// `withdrawable_rewards` would return error itself.
752752
let owner = Addr::unchecked(&owner);
753753
let distribution = DISTRIBUTION.load(deps.storage)?;
754754
let adjustment = if let Some(adj) = WITHDRAW_ADJUSTMENT.may_load(deps.storage, &owner)? {

0 commit comments

Comments
 (0)