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

refactor: update x/group relevant logic in x/foundation #698

Merged
merged 4 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (refactor) [\#685](https://github.com/line/lbm-sdk/pull/685) remove x/foundation UpdateValidatorAuthsProposal
* (x/foundation) [\#686](https://github.com/line/lbm-sdk/pull/686) remove `Minthreshold` and `MinPercentage` from x/foundation config
* (x/foundation) [\#693](https://github.com/line/lbm-sdk/pull/693) add pool to the state of x/foundation
* (x/foundation) [\#698](https://github.com/line/lbm-sdk/pull/698) update x/group relevant logic in x/foundation

### Bug Fixes
* (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path
Expand Down
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

147 changes: 21 additions & 126 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33888,12 +33888,6 @@ paths:
address:
type: string
description: address is the member's account address.
participating:
type: boolean
format: boolean
description: >-
participating is the flag which allows one to remove the
member by setting the flag to false.
metadata:
type: string
description: >-
Expand Down Expand Up @@ -34194,12 +34188,6 @@ paths:
address:
type: string
description: address is the member's account address.
participating:
type: boolean
format: boolean
description: >-
participating is the flag which allows one to remove the
member by setting the flag to false.
metadata:
type: string
description: >-
Expand Down Expand Up @@ -35146,24 +35134,11 @@ paths:
enum:
- PROPOSAL_STATUS_UNSPECIFIED
- PROPOSAL_STATUS_SUBMITTED
- PROPOSAL_STATUS_CLOSED
- PROPOSAL_STATUS_ACCEPTED
- PROPOSAL_STATUS_REJECTED
- PROPOSAL_STATUS_ABORTED
- PROPOSAL_STATUS_WITHDRAWN
default: PROPOSAL_STATUS_UNSPECIFIED
result:
description: >-
result is the final result based on the votes and
election rule. Initial value is unfinalized.

The result is persisted so that clients can always rely
on this state and not have to replicate the logic.
type: string
enum:
- PROPOSAL_RESULT_UNSPECIFIED
- PROPOSAL_RESULT_UNFINALIZED
- PROPOSAL_RESULT_ACCEPTED
- PROPOSAL_RESULT_REJECTED
default: PROPOSAL_RESULT_UNSPECIFIED
final_tally_result:
description: >-
final_tally_result contains the sums of all votes for
Expand Down Expand Up @@ -35731,24 +35706,11 @@ paths:
enum:
- PROPOSAL_STATUS_UNSPECIFIED
- PROPOSAL_STATUS_SUBMITTED
- PROPOSAL_STATUS_CLOSED
- PROPOSAL_STATUS_ACCEPTED
- PROPOSAL_STATUS_REJECTED
- PROPOSAL_STATUS_ABORTED
- PROPOSAL_STATUS_WITHDRAWN
default: PROPOSAL_STATUS_UNSPECIFIED
result:
description: >-
result is the final result based on the votes and election
rule. Initial value is unfinalized.

The result is persisted so that clients can always rely on
this state and not have to replicate the logic.
type: string
enum:
- PROPOSAL_RESULT_UNSPECIFIED
- PROPOSAL_RESULT_UNFINALIZED
- PROPOSAL_RESULT_ACCEPTED
- PROPOSAL_RESULT_REJECTED
default: PROPOSAL_RESULT_UNSPECIFIED
final_tally_result:
description: >-
final_tally_result contains the sums of all votes for this
Expand Down Expand Up @@ -68613,12 +68575,6 @@ definitions:
address:
type: string
description: address is the member's account address.
participating:
type: boolean
format: boolean
description: >-
participating is the flag which allows one to remove the member by
setting the flag to false.
metadata:
type: string
description: metadata is any arbitrary metadata to attached to the member.
Expand Down Expand Up @@ -68674,24 +68630,11 @@ definitions:
enum:
- PROPOSAL_STATUS_UNSPECIFIED
- PROPOSAL_STATUS_SUBMITTED
- PROPOSAL_STATUS_CLOSED
- PROPOSAL_STATUS_ACCEPTED
- PROPOSAL_STATUS_REJECTED
- PROPOSAL_STATUS_ABORTED
- PROPOSAL_STATUS_WITHDRAWN
default: PROPOSAL_STATUS_UNSPECIFIED
result:
description: >-
result is the final result based on the votes and election rule.
Initial value is unfinalized.

The result is persisted so that clients can always rely on this state
and not have to replicate the logic.
type: string
enum:
- PROPOSAL_RESULT_UNSPECIFIED
- PROPOSAL_RESULT_UNFINALIZED
- PROPOSAL_RESULT_ACCEPTED
- PROPOSAL_RESULT_REJECTED
default: PROPOSAL_RESULT_UNSPECIFIED
final_tally_result:
description: >-
final_tally_result contains the sums of all votes for this
Expand Down Expand Up @@ -68935,39 +68878,29 @@ definitions:
- PROPOSAL_EXECUTOR_RESULT_NOT_RUN: We have not yet run the executor.
- PROPOSAL_EXECUTOR_RESULT_SUCCESS: The executor was successful and proposed action updated state.
- PROPOSAL_EXECUTOR_RESULT_FAILURE: The executor returned an error and proposed action didn't update state.
lbm.foundation.v1.ProposalResult:
type: string
enum:
- PROPOSAL_RESULT_UNSPECIFIED
- PROPOSAL_RESULT_UNFINALIZED
- PROPOSAL_RESULT_ACCEPTED
- PROPOSAL_RESULT_REJECTED
default: PROPOSAL_RESULT_UNSPECIFIED
description: |-
ProposalResult defines types of proposal results.

- PROPOSAL_RESULT_UNSPECIFIED: An empty value is invalid and not allowed
- PROPOSAL_RESULT_UNFINALIZED: Until a final tally has happened the status is unfinalized
- PROPOSAL_RESULT_ACCEPTED: Final result of the tally
- PROPOSAL_RESULT_REJECTED: Final result of the tally
lbm.foundation.v1.ProposalStatus:
type: string
enum:
- PROPOSAL_STATUS_UNSPECIFIED
- PROPOSAL_STATUS_SUBMITTED
- PROPOSAL_STATUS_CLOSED
- PROPOSAL_STATUS_ACCEPTED
- PROPOSAL_STATUS_REJECTED
- PROPOSAL_STATUS_ABORTED
- PROPOSAL_STATUS_WITHDRAWN
default: PROPOSAL_STATUS_UNSPECIFIED
description: |-
ProposalStatus defines proposal statuses.

- PROPOSAL_STATUS_UNSPECIFIED: An empty value is invalid and not allowed.
- PROPOSAL_STATUS_SUBMITTED: Initial status of a proposal when persisted.
- PROPOSAL_STATUS_CLOSED: Final status of a proposal when the final tally was executed.
- PROPOSAL_STATUS_ABORTED: Final status of a proposal when the group was modified before the final tally.
- PROPOSAL_STATUS_WITHDRAWN: A proposal can be deleted before the voting start time by the owner. When this happens the final status
is Withdrawn.
- PROPOSAL_STATUS_SUBMITTED: Initial status of a proposal when submitted.
- PROPOSAL_STATUS_ACCEPTED: Final status of a proposal when the final tally is done and the outcome
passes the foundation's decision policy.
- PROPOSAL_STATUS_REJECTED: Final status of a proposal when the final tally is done and the outcome
is rejected by the foundation's decision policy.
- PROPOSAL_STATUS_ABORTED: Final status of a proposal when the decision policy is modified before the
final tally.
- PROPOSAL_STATUS_WITHDRAWN: A proposal can be withdrawn before the voting start time by the owner.
When this happens the final status is Withdrawn.
lbm.foundation.v1.QueryFoundationInfoResponse:
type: object
properties:
Expand Down Expand Up @@ -69257,12 +69190,6 @@ definitions:
address:
type: string
description: address is the member's account address.
participating:
type: boolean
format: boolean
description: >-
participating is the flag which allows one to remove the member by
setting the flag to false.
metadata:
type: string
description: metadata is any arbitrary metadata to attached to the member.
Expand All @@ -69285,12 +69212,6 @@ definitions:
address:
type: string
description: address is the member's account address.
participating:
type: boolean
format: boolean
description: >-
participating is the flag which allows one to remove the member
by setting the flag to false.
metadata:
type: string
description: metadata is any arbitrary metadata to attached to the member.
Expand Down Expand Up @@ -69375,24 +69296,11 @@ definitions:
enum:
- PROPOSAL_STATUS_UNSPECIFIED
- PROPOSAL_STATUS_SUBMITTED
- PROPOSAL_STATUS_CLOSED
- PROPOSAL_STATUS_ACCEPTED
- PROPOSAL_STATUS_REJECTED
- PROPOSAL_STATUS_ABORTED
- PROPOSAL_STATUS_WITHDRAWN
default: PROPOSAL_STATUS_UNSPECIFIED
result:
description: >-
result is the final result based on the votes and election rule.
Initial value is unfinalized.

The result is persisted so that clients can always rely on this
state and not have to replicate the logic.
type: string
enum:
- PROPOSAL_RESULT_UNSPECIFIED
- PROPOSAL_RESULT_UNFINALIZED
- PROPOSAL_RESULT_ACCEPTED
- PROPOSAL_RESULT_REJECTED
default: PROPOSAL_RESULT_UNSPECIFIED
final_tally_result:
description: >-
final_tally_result contains the sums of all votes for this
Expand Down Expand Up @@ -69673,24 +69581,11 @@ definitions:
enum:
- PROPOSAL_STATUS_UNSPECIFIED
- PROPOSAL_STATUS_SUBMITTED
- PROPOSAL_STATUS_CLOSED
- PROPOSAL_STATUS_ACCEPTED
- PROPOSAL_STATUS_REJECTED
- PROPOSAL_STATUS_ABORTED
- PROPOSAL_STATUS_WITHDRAWN
default: PROPOSAL_STATUS_UNSPECIFIED
result:
description: >-
result is the final result based on the votes and election rule.
Initial value is unfinalized.

The result is persisted so that clients can always rely on this
state and not have to replicate the logic.
type: string
enum:
- PROPOSAL_RESULT_UNSPECIFIED
- PROPOSAL_RESULT_UNFINALIZED
- PROPOSAL_RESULT_ACCEPTED
- PROPOSAL_RESULT_REJECTED
default: PROPOSAL_RESULT_UNSPECIFIED
final_tally_result:
description: >-
final_tally_result contains the sums of all votes for this
Expand Down
Loading