The `account_type` member of `ConcurrentMerkleTreeHeader` is currently
an `#[repr(u32)]` enum, but borsh only uses one byte to serialize or
deserialize an enum tag, which leads to issues with `try_from_slice`
calls that get passed slices computed based on applying `size_of` to
`ConcurrentMerkleTreeHeader`. This commit replaces the underlying
type of `account_type` with an integer type.
Signed-off-by: Alexandru Agache <alexandruag@gmail.com>
Signed-off-by: Alexandru Agache <alexandruag@gmail.com>
* suport for amountToUiAmount instruction
* support for uiamount to amount instruction
* upgrade @solana/web3.js to 1.47.4
* move amount.test from e2e-2022 to e2e
* fix and sort imports
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
* cli: add --enable-close flag to create-token which sets its close authority to mint authority
* cli: add support to changing a mint close authority to authorize
* cli: add close-mint, a new command for closing a mint
* cli: update authorize and close-account to go through the token client
* client: change set_authority and close_account to support multisigners
* Fix Memo program ESM exports
* fix repository link
* Fix Token program ESM exports
* web3.js is a peer dependency
* memo/ts -> memo/js (same as token)
* add gh-pages dev dep
* add explicit js extensions
* use explicit js imports
* lint fixes for type imports
* fix version
* check in package-lock.json
* check in package-lock.json
* update spl-memo dep
* reorg imports
* move spl-memo to dev deps
* remove editorconfig
* update spl-memo
* update node version in CI
* memo and token use npm now
* use npm ci commands
* reorder imports
* Fix Memo program ESM exports
* fix repository link
* web3.js is a peer dependency
* memo/ts -> memo/js (same as token)
* add gh-pages dev dep
* fix version
* check in package-lock.json
* remove editorconfig
* wip: Add council_vote_tipping
* feat: Use VoteTipping for relevant mint
* chore: test_cast_early_council_vote_with_disabled_community_vote_tipping
* chore: test_cast_community_vote_with_early_council_and_disabled_community_vote_tipping
* Update help text for `propose` (#3505)
* Governance: Use mint authority to revoke membership tokens (#3498)
* chore: fix process_revoke_governing_tokens feature
* feat: Use governing token mint authority to authorise token revocation
* chore: Fix authority spelling
* Governance: Do not tip on max vote weight when tipping Disabled (#3499)
* fix: Do not tip on max vote weight when tipping Disabled
* chore: test_cast_vote_with_strict_tipping_and_inflated_max_voter_weight_votes
* chore: fix test name
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* wip: Add council_vote_tipping
* feat: Use VoteTipping for relevant mint
* chore: test_cast_early_council_vote_with_disabled_community_vote_tipping
* chore: test_cast_community_vote_with_early_council_and_disabled_community_vote_tipping
* chore: Fix merge conflicts
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* extends withdraw to merge if stake account is provided
* check if account is stake account and delegated to same validator
* fixing tests and defining withdraw accounts for delegated stake reciever
* implementation improvements in cli
* fix js tests
* added test for uninitialized stake account
* fix: Do not tip on max vote weight when tipping Disabled
* chore: test_cast_vote_with_strict_tipping_and_inflated_max_voter_weight_votes
* chore: fix test name
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>