Skip to content

Commit

Permalink
Prepare release for v3.1.0 (#227)
Browse files Browse the repository at this point in the history
* Prepare v3.1.0 release

* Regenerate schema

* Regenerate client types

* Change migration and version to v3.1.0

* Fix migration mod
  • Loading branch information
p-offtermatt authored Feb 11, 2025
1 parent bb035e7 commit bfd7316
Show file tree
Hide file tree
Showing 28 changed files with 870 additions and 842 deletions.
7 changes: 7 additions & 0 deletions .changelog/v3.1.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Add a summary for the release here.
If you don't change this message, or if this file is empty, the release
will not be created. -->

Date: February 11th, 2025
21 changes: 21 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# CHANGELOG

## v3.1.0

<!--
Add a summary for the release here.

If you don't change this message, or if this file is empty, the release
will not be created. -->

Date: February 11th, 2025

### FEATURES

- Allow users / aggregators to unvote without having to switch votes.
([\#218](https://github.com/informalsystems/hydro/pull/218))
- Introduced the compounder cap- a reserved portion of the maximum token lock limit that is allocated exclusively for known users from the previous round.
([\#220](https://github.com/informalsystems/hydro/pull/220))
- Introduced SnapshotMaps for tracking the historical voting power for each user as well as the round total voting power.
([\#220](https://github.com/informalsystems/hydro/pull/220))
- Added support for integrating Hydro as a voting module in DAO DAO governance smart contracts.
([\#226](https://github.com/informalsystems/hydro/pull/226))

## v3.0.0

Date: January 20th, 2025
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
a9802b8f85c49a6b277c32e50857be28d57e918d49ad8288f1d91610a4e23a0d dao_voting_adapter.wasm
cdfbd156b88aac7562caab3373231225429714b0c395b57bf52e793385ce21fc hydro.wasm
6e179ce31797c9a99e82fb5a8d2e46c5dfa9d4cbda78cf61693f4f097ce729b6 tribute.wasm
5774e9ab9b8c54b8304d27111209b271a610ef31c50e6f539ad44a5a202ab3b0 dao_voting_adapter.wasm
b62a691c948def77d79d7f0eca6c4d2e3b27aa3c8d90db2c474ab26b049f3ac5 hydro.wasm
7c6834be989d327bce530307d76f3a4ee11f04eadb7a396eed393efa0c776d96 tribute.wasm
Binary file modified artifacts/dao_voting_adapter.wasm
Binary file not shown.
Binary file modified artifacts/hydro.wasm
Binary file not shown.
Binary file modified artifacts/tribute.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion contracts/dao-voting-adapter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dao-voting-adapter"
version = "1.0.0"
version = "3.1.0"
authors = ["Dusan Maksimovic", "Philip Offtermatt"]
edition = "2021"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,57 @@
"migrate": {},
"sudo": {},
"responses": {
"dao": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "DaoResponse",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
],
"definitions": {
"Addr": {
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
}
}
},
"config": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ConfigResponse",
"type": "object",
"required": [
"config"
],
"properties": {
"config": {
"$ref": "#/definitions/Config"
}
},
"additionalProperties": false,
"definitions": {
"Addr": {
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"Config": {
"type": "object",
"required": [
"dao_contract",
"hydro_contract"
],
"properties": {
"dao_contract": {
"$ref": "#/definitions/Addr"
},
"hydro_contract": {
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
}
}
},
"info": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InfoResponse",
Expand Down Expand Up @@ -157,24 +208,9 @@
}
}
},
"dao": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "DaoResponse",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
],
"definitions": {
"Addr": {
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
}
}
},
"voting_power_at_height": {
"total_power_at_height": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VotingPowerAtHeightResponse",
"title": "TotalPowerAtHeightResponse",
"type": "object",
"required": [
"height",
Expand All @@ -198,45 +234,9 @@
}
}
},
"config": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ConfigResponse",
"type": "object",
"required": [
"config"
],
"properties": {
"config": {
"$ref": "#/definitions/Config"
}
},
"additionalProperties": false,
"definitions": {
"Addr": {
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"Config": {
"type": "object",
"required": [
"dao_contract",
"hydro_contract"
],
"properties": {
"dao_contract": {
"$ref": "#/definitions/Addr"
},
"hydro_contract": {
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
}
}
},
"total_power_at_height": {
"voting_power_at_height": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "TotalPowerAtHeightResponse",
"title": "VotingPowerAtHeightResponse",
"type": "object",
"required": [
"height",
Expand Down
2 changes: 1 addition & 1 deletion contracts/hydro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hydro"
version = "4.0.0"
version = "3.1.0"
authors = ["Jehan Tremback", "Philip Offtermatt", "Dusan Maksimovic"]
edition = "2021"

Expand Down
Loading

0 comments on commit bfd7316

Please sign in to comment.