hana
65769ce23d
Update rust to 1.60, solana to 1.11.6 ( #3492 )
...
also change bpf to sbf throughout the codebase
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-08-18 12:16:02 -07:00
Sebastian Bor
3d3b32dcf6
Governance: Veto vote ( #3156 )
...
* chore: remove #[repr(C)]
* wip: resolve proposal governing token mint
* fix: remove optionality from veto vote
* feat: implement tipping for veto vote
* fix: move vote_threshold to the end of Proposal struct
* chore: remove use super
* chore: make clippy happy
* chore: add change log
* feat: add council_veto_vote_threshold
* fix: resolve vote threshold for voting token mint
* chore: revert old function name
* fix: calculate max veto in coerce_max_voter_weight
* chore: make clippy happy
* chore: make clippy happy
* feat: Implement RelinquishVote for Veto
* chore: update comments
* chore: rename with_cast_vote to with_cast_yes_no_vote
* chore: rename with_cast_multi_option_vote to with_cast_vote
* chore: create use_veto_vote test scenario
* chore: Add veto vote disabled tests
* chore: Add partial Veto vote tests
* chore: update comments
* chore: test_cast_veto_vote_with_no_council_error
* chore: test_relinquish_veto_vote
* chore: rename with_token_owner_record to with_community_token_owner_record
* chore: test_relinquish_veto_vote_with_vote_record_for_different_voting_mint_error
* chore: test_cast_veto_vote_with_invalid_voting_mint_error
* chore: fix chat build
* chore: test_cast_veto_vote_with_council_only_allowed_to_veto
* fix: Use VoteKind to distinguish between Veto and Electorate votes
* chore: make clippy happy
* Update change log
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* chore: rename voting_token_mint to vote_governing_token_mint
* chore: test_cast_yes_and_veto_votes_with_yes_as_winning_vote
* fix: throw error for Community veto
* chore: Update comments
* chore: Update names and commnents
* chore: split try_get_tipped_vote_state into Electorate and Veto cases
* chore: Update comments
* chore: remove #[allow(clippy::float_cmp)]
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-05-17 16:37:43 +01:00
Sebastian Bor
851efed467
Governance: Rename AccountGovernance to Governance ( #2836 )
...
* chore: rename AccountGovernance to Governance
* chore: make governed_account optional
* chore: rename account_governance to governance
2022-01-29 18:14:27 +00:00
Sebastian Bor
aefbebe3ae
Governance: Multiple instructions per proposal transaction ( #2833 )
...
* feat: support multiple instructions per proposal instruction
* chore: rename instruction to transaction
* chore: rename ProposalInstruction to ProposalTransaction
* chore: rename instruction to transaction
* chore: rename InstructionExecutionStatus to TransactionExecutionStatus
* chore: rename proposal instruction to proposal transaction
* chore: make clippy happy
* chore: update instruction names to transactions
* chore: fix compilation
* chore: rename instruction to transaction
* chore: rename instruction to transaction
* chore rename instruction to transaction
Co-authored-by: Jon Cinque jon.cinque@gmail.com
2022-01-29 12:43:22 +00:00
Sebastian Bor
24bb1c8158
Governance: Native Treasuries ( #2692 )
...
* feat: Implement CreateNativeTreasury instruction
* chore: fix fmt
* chore: make clippy happy
* chore: remove account check
* feat: sign with treasury account seeds
* chore: comment out unused code
* feat: Use system as the treasury account owner
* feat: Assert valid governance account
* chore: Make clippy happy
* fix: Use explicit system program id
* feat: add treasury seeds only when required by the instruction
* chore: review celanup
* chore: make clippy happy
* chore: rename create_and_serialize_account_signed2
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* chore: update create_and_serialize_account_signed2 name
* fix: remove NativeTreasury from account enums
* chore: update treasury seeds prefix
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-01-03 22:30:34 +00:00