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

Custom bids duration #165

Merged
merged 5 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changelog/unreleased/features/165-custom-bid-durations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Custom bids duration.
dusan-maksimovic marked this conversation as resolved.
Show resolved Hide resolved
([\#165](https://github.com/informalsystems/hydro/pull/165))
4 changes: 2 additions & 2 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
c3ea7048ad77b537be0f379684a4fc27ac66092d5a7439596d4eab6f94c00448 hydro.wasm
15f128cecba67f135a89feaec83bf0fafd05c4ab9c830ada0a86a145823b3b2d tribute.wasm
2309768ae0b362bf329da788fa96edbb018b2f79ae1bf567df8f5b1fedbd2798 hydro.wasm
580051b9e5210280bb3d4025378f3ea96e0ba7fade6be1fa02d3aa1f93edb951 tribute.wasm
Binary file modified artifacts/hydro.wasm
Binary file not shown.
Binary file modified artifacts/tribute.wasm
Binary file not shown.
6 changes: 6 additions & 0 deletions contracts/hydro/schema/constants_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"icq_update_period",
"is_in_pilot_mode",
"lock_epoch_length",
"max_bid_duration",
"max_locked_tokens",
"max_validator_shares_participating",
"paused",
Expand Down Expand Up @@ -49,6 +50,11 @@
"format": "uint64",
"minimum": 0.0
},
"max_bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"max_locked_tokens": {
"type": "integer",
"format": "uint128",
Expand Down
26 changes: 20 additions & 6 deletions contracts/hydro/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,17 @@
"create_proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"title",
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down Expand Up @@ -176,17 +182,25 @@
{
"type": "object",
"required": [
"update_max_locked_tokens"
"update_config"
],
"properties": {
"update_max_locked_tokens": {
"update_config": {
"type": "object",
"required": [
"max_locked_tokens"
],
"properties": {
"max_bid_duration": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"max_locked_tokens": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint128",
"minimum": 0.0
}
Expand Down
56 changes: 50 additions & 6 deletions contracts/hydro/schema/hydro_full_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"initial_whitelist",
"is_in_pilot_mode",
"lock_epoch_length",
"max_bid_duration",
"max_locked_tokens",
"max_validator_shares_participating",
"round_length",
Expand Down Expand Up @@ -53,6 +54,11 @@
"format": "uint64",
"minimum": 0.0
},
"max_bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"max_locked_tokens": {
"$ref": "#/definitions/Uint128"
},
Expand Down Expand Up @@ -196,11 +202,17 @@
"create_proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"title",
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down Expand Up @@ -293,17 +305,25 @@
{
"type": "object",
"required": [
"update_max_locked_tokens"
"update_config"
],
"properties": {
"update_max_locked_tokens": {
"update_config": {
"type": "object",
"required": [
"max_locked_tokens"
],
"properties": {
"max_bid_duration": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"max_locked_tokens": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint128",
"minimum": 0.0
}
Expand Down Expand Up @@ -973,6 +993,7 @@
"Proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"percentage",
"power",
Expand All @@ -982,6 +1003,11 @@
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down Expand Up @@ -1156,6 +1182,7 @@
"icq_update_period",
"is_in_pilot_mode",
"lock_epoch_length",
"max_bid_duration",
"max_locked_tokens",
"max_validator_shares_participating",
"paused",
Expand Down Expand Up @@ -1184,6 +1211,11 @@
"format": "uint64",
"minimum": 0.0
},
"max_bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"max_locked_tokens": {
"type": "integer",
"format": "uint128",
Expand Down Expand Up @@ -1255,6 +1287,7 @@
"Proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"percentage",
"power",
Expand All @@ -1264,6 +1297,11 @@
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down Expand Up @@ -1501,6 +1539,7 @@
"Proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"percentage",
"power",
Expand All @@ -1510,6 +1549,11 @@
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down
6 changes: 6 additions & 0 deletions contracts/hydro/schema/instantiate_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"initial_whitelist",
"is_in_pilot_mode",
"lock_epoch_length",
"max_bid_duration",
"max_locked_tokens",
"max_validator_shares_participating",
"round_length",
Expand Down Expand Up @@ -52,6 +53,11 @@
"format": "uint64",
"minimum": 0.0
},
"max_bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"max_locked_tokens": {
"$ref": "#/definitions/Uint128"
},
Expand Down
6 changes: 6 additions & 0 deletions contracts/hydro/schema/proposal_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"Proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"percentage",
"power",
Expand All @@ -24,6 +25,11 @@
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down
6 changes: 6 additions & 0 deletions contracts/hydro/schema/round_proposals_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"percentage",
"power",
Expand All @@ -27,6 +28,11 @@
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down
6 changes: 6 additions & 0 deletions contracts/hydro/schema/top_n_proposals_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Proposal": {
"type": "object",
"required": [
"bid_duration",
"description",
"percentage",
"power",
Expand All @@ -27,6 +28,11 @@
"tranche_id"
],
"properties": {
"bid_duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"description": {
"type": "string"
},
Expand Down
Loading