Open
Conversation
* fixed ledger wallet and filtering out sollet tokens * sanity check for token amounts * added wallet adapter * added math wallet to available wallet * fixed string case * lint common package
* feat: add Realms view * feat: create governance form * wip: create governances * wip: working create governance * wip: create governance instruction * wip: deserialise Governance account * chore: remove diagnostic code * feat: show realm governances * chore: rename index to RealmView * feat: show realm details * feat: implement deposit governing tokens * chore: rename instruction builders to have with prefix * wip: scaffold withdraw tokens * feat: working tokens withdrawal * chore: move accounts and instructions to separate files * chore: move GOVERNANCE_PROGRAM_SEED to acocunts * feat: use TokenOwnerRecord to track deposited tokens * fix: realm actions layout * chore: cleanup realms * chore: cleanup home view * fix: order realms and governances * wip: createProposal * feat: use actual values to create proposal * chore: remove dummy dashboard * chore: rename Dashboard view to GovernanceDashboard * chore: rename Proposals view to Governance * chore: rename Dashboard to Diagnostic view * chore: rename registerrealm * feat: Proposal account serialization * feat: show governance proposals * wip: wire ProposalView to new accounts * feat: show signatories, and votes counts * feat: add proposal creator as the default signatory * chore: update serialization * chore: update serialisation * feat: sign off proposal * feat: show Yeah/Nay buttons * chore: rename legacy actions * chore: rename legacy instruction creators * feat: implement cast vote * feat: deserialise vote records * chore: clenup lints * feat: implement relinquish vote * feat: implement CrateProgramGovernance * wip: InsertInstruction instruction * wip: executeInstruction * feat: Add new instructions * feat: execute instructions * chore: prune legacy governance code * chore: rename GovernanceContextProvider * chore: use Record for SignatoryRecord * chore: Use Record for TokenOwnerRecords * chore: rename diagnostics to DevTools * chore: setup dev tools to create artefacts * fix: execute button states * feat: implement removeInstruction * fix: withdraw vote / release token fix * fix: disable add proposal when not enough tokens * feat: implement CancelProposal * feat: support council mints * fix: single mint proposals * feat: display vote results * fix: sundries * chore: prune legacy code * chore: move proposal components to view * feat: add pre canned Upgrade program instruction * feat: add pre canned MintTo instruction * feat: show council token badge * chore: set primary buttons * feat: show governance avatars * fix: add error message when trying to withdraw tokens with staked proposals * feat: implement FinalizeVote * feat: add timeout badge while proposal is in voting state * fix: set isBeyondSlot to false when status resolved
* chore: load Realms and Governances using rpc * fix: use bas64 encoding to get accounts * chore: load governances on demand * chore: remove legacy GovernanceVotingRecord * chore: remove governances from context * chore: remove proposals from ctx * fix: ensure updates are also filtered using filters * chore: use useGovernanceAccountsByFilter for Governances * chore: use useGovernanceAccountsByFilter for useTokenOwnerRecords * chore: remove tokenOwnerRecords from ctx * chore: remove signatory records and proposal instructions from ctx * chore: remove vote records from ctx * chore: request realms only to get all realms accounts * chore: use changeTracker to react to account removals * chore: update comments
* chore: create RealmBadge component * chore: constrain account type * feat: create mintFormItem with validator * feat: validate RegisterRealm form * fix: use correct link in tx error link * fix: handle transaction errors * chore: create ModalFormAction componet * chore: use ModalFormAction for RegisterRealm * feat: use ModalFormAction to register governance * fix: use account validator for governed account input * feat: use ModalFormAction for AddNewProposal action * chore: code cleanup
* fix: add GenericAccountParser to account validator lookup * fix: do not use cache for accounts validation * fix: correct deposit/withdraw actions notifications * fix: update all actions notifications to show transaction link * fix: display vote scores for large mint supplies * fix: accept u64 for approve amount * fix: check for number type to do coercion * fix: make deposit and withdraw working with large token amounts * fix: make new proposal working with large token amounts * fix: make proposal view working with large token amounts * fix: fix voter table links and vote weight
* feat: setup CreateMintInstruction * fix: change instruction and enum layout to avoid braking changes
* feat: implement TokenGovernance * feat: use governance badge on GovernanceView * feat: add accounts descriptions to governance items
* feat: use timestamps instead of slots * feat: show amount of deposited tokens
* chore: update Governance account * chore: update Proposal account * chore: Update ProposalInstruction account * chore: Update Realm account * chore: update TokenOwnerRecord account * fix: add spill address to upgrade instruction * fix: display units for hold up time * chore: update program id
* feat: use programId to get realms * feat: use programId to register Realm * feat: use programId for depositGoverningTokens * feat: use program id for withdrawGoverningTokens * feat: use program id for registerGovernance * feat: use program id for createProposal * feat: use program id for cancelProposal * feat: use program id for signOffProposal * feat: use program id for castVote * feat: use program id for relinquishVote * feat: use program id for finalizeVote * feat: use program id for insertInstruction * feat: use program id for removeInstruction * feat: use program id for executeInstruction * feat: use program id for pdas * feat: update routes to use programId * fix: use program id for home url * chore: revert error * chore: update HomeLink name
* feat: add SetGovernanceConfig instruction * chore: change reserved to ['u8'] * chore: Add None enum values * chore: update enums serialisation
* feat: handle transaction timeout errors * feat: add anchor idl instruction helper * chore: split instruction creators components * feat: add anchor instruction creator to program form * fix: show anchor instructions only when idl account exists * feat: move program id to instruction inputs
* feat: show governance config details * feat: add set-governance-config creator * feat: add instruction creator to account governance * feat: add spl-token instructions form * feat: add spl-mint instructions form
…e UI (solana-labs#132) * fix: use mint decimals for min tokens to crate proposals in the UI * chore: fix names
* chore: cleanup proposal components * chore: update proposalView name
* feat: add instruction simulation and inspector link * chore: update instruction buttons * chore: use instructionData for dry run * feat: add instruction dry run to new instruction form * fix: show error when can't run simulation * fix: change tracking
* chore: make the box animation more subtle * feat: validate upgradable program buffer
* wip: proc for raydium add liquidity instruction * feat: create staking account * feat: setup Raydium deposit instruction * fix: set clock to readonly for raydium deposit instruction * feat: add RAY stake/harvest instruction * feat: add RAY deposit and harvest instructions * feat: use governance accounts and amounts for addLiquidity * fix: do not show governing token choice when community supply is 0 * feat: use RAY/SRM rate to avoid slippage errors * feat: limit RAY instruction to yield farming governances * chore: add comments * feat: add stake/harvest RAY-SRM farm * feat: add stake/harvest RAY farm instructions * chore: comment out create farm account
* chore: invoke createRealm using version specific instruction * feat: add RealmConfigAccount * feat: add governanceAuhtority to createGovernance instructions * feat: update createSetRealmConfig to support voter weight addin * feat: add useCommunityVoterWeightAddin to RealmConfig * feat: resolve version using deploy slot
feat: add chat accounts feat: add PostMessage instruction feat: add postChatMessage button and action feat: add getGovernanceChatMessages api call chore: unify account fetching api
…bs#405) * chore: add logs to account changes * chore: add more logging * fix: explicitly fetch instruction and publish and update for it
* use wallet-adapter lib * hide wallet dialog footer * update wallet-adapter versions * use abbreviated address * remove FC * move wallet-adapter dependency to oyster common * update yarn.lock * update wallets and reexport parts used by other packages * update common package to use local context exports * update other packages to use oyster common wallet exports * add missing eslint-config-react-app dev dependency * use WalletSigner from @oyster/common * fixed function reference leading to recursion * update wallet-adapter-react to fix autoconnect
…rm (solana-labs#428) * fixes * feat: fix minCommunityTokensToCreateGovernance Co-authored-by: Sebastian.Bor <sebastian_bor@hotmail.com>
* feat: set default hold up time to 0 * feat: use select for realm authority
…-labs#432) * chore: use explorer rpc nodes * chore: add crate mint to devtools * fix minCommunityTokensToCreateGovernance for large thresholds
…sal to have a very threshold
…eProposals fix/governance/governanceConfig allow minCommunityTokensToCreatePropo…
* fix: update errors * feat: createProposal V2 * feat: serialise ProposalV2 account * feat: serialise VoteRecordV2 * feat: serialise/deserialise Vote * fix: use versioned schema to fetch accounts * feat: serialise ProposalInstruction account and args * feat: use only v2 in api calls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr is used to have an environment where we can create and and execute proposal for our currently deployed governance program:
UXGA4U6nmCkdpVnhrhRzgFWYtmY4uHpNzLn3h9nVXNaaccess:
vercelUrl + #/governance/9z4yj1PqnVMqaSG3G4w86fq8dL4CWK2w6TXpfbLjmrvL?programId=UXGA4U6nmCkdpVnhrhRzgFWYtmY4uHpNzLn3h9nVXNa