Commit Graph

163 Commits

Author SHA1 Message Date
Sebastian Bor 3bab38bfa5
Governance: Show vote results as progress (#146)
* fix: add realm authority error codes

* feat: add community token link to realm

* feat: add realm popover details

* fix: total supply for finalised votes

* fix: formatting for voters table scores

* chore: fix governance files

* chore: fix governance view file name

* fix: proposals sort order

* chore: fix lint

* chore: update comments

* fix: explorer urls in voters graph

* feat: show voting results using progress with tooltips

* fix: make red more subtle
2021-07-26 23:12:11 +01:00
Jordan Sexton 8e86d41974
fix: remove defunct connection endpoints (#130) 2021-07-26 08:25:34 -05:00
Sebastian Bor 0919c146dd
Governance: Instruction dry run (#136)
* 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
2021-07-19 23:45:50 +01:00
Sebastian Bor 7315293718
fix: remove dead rpc endpoints from settings options (#131) 2021-07-14 13:22:39 +01:00
Sebastian Bor 517756e4ec
Governance: anchor IDL set-buffer instruction (#127)
* 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
2021-07-09 20:13:41 +01:00
Sebastian Bor b13bd0e521
Governance: support program clones (#125)
* 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
2021-07-02 18:08:20 +01:00
Sebastian Bor 778265c0d6
Governance: future proofing for v2 (#124)
* 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
2021-07-01 12:21:55 +01:00
Sebastian Bor dd22e823f0
Governance: support mints with large supply (#120)
* 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
2021-06-25 18:39:14 +01:00
Sebastian Bor 988d1f72d4
Governance: actions UI feedback (#118)
* 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
2021-06-19 19:30:23 +01:00
Sebastian Bor 4c4d0bfd9c
Governance: lazy account loading (#117)
* 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
2021-06-17 17:53:01 +01:00
Sebastian Bor 8a60c54467
Governance: MVP UI (#115)
* 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
2021-06-15 11:15:11 -05:00
Juan Diego García cf8f124f8f
Added MathWallet Provider (#110)
* 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
2021-05-08 15:48:08 -05:00
Jordan Prince 5cb88d4844 Fixes for governance 2021-05-06 15:58:31 -05:00
bartosz-lipinski 6a0821991a feat: update recent transactions to selected token only 2021-05-01 23:18:59 -05:00
bartosz-lipinski d488e5bdc1 Merge branch 'feature/m' 2021-05-01 23:09:15 -05:00
bartosz-lipinski ef1803647e fix: unselected 2021-05-01 20:53:13 -05:00
bartosz-lipinski 6bafbb226d chore: test 2021-05-01 20:23:21 -05:00
Juan Diego García 18bda5527f
only show and fetch own transactions (#107)
* fixed button with no provider

* feat: fix bridge transactions

* fix: connection selection

* only show and fetch own transactions

* Added better messages

* added memo to columns

Co-authored-by: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com>
2021-05-01 19:59:01 -05:00
bartosz-lipinski b1842c0c92 fix: connection selection 2021-04-30 23:56:46 -05:00
bartosz-lipinski b76f91a58d feat: fix bridge transactions 2021-04-30 23:19:02 -05:00
bartosz-lipinski 3347e30111 Merge remote-tracking branch 'origin/main' into feature/m 2021-04-30 19:31:56 -05:00
Juan Diego García 3e142b3ef1
identify wrapped assets from eth (#105) 2021-04-30 19:31:44 -05:00
bartosz-lipinski b5b2be7931 fix: build issues 2021-04-30 19:27:52 -05:00
bartosz-lipinski 7f11a55478 feat: update torus 2021-04-30 15:41:44 -05:00
bartosz-lipinski 14b5bdc1f4 Merge remote-tracking branch 'origin/main' into feature/m 2021-04-29 21:42:17 -05:00
bartosz-lipinski 0a0e247cb3 feat: update torus 2021-04-29 21:42:07 -05:00
Sebastian Bor 39b1fa63ef
Governance: devnet program api update (#101)
* chore: use single create instruction to create governance

* chore: remove yes/no dump accounts

* chore: remove single value enums

* chore: remove token from proposal account

* chore: remove governance program account from createEmptyGovernanceVotingRecord

* chore: remove number_of_extra_accounts from Execute

* chore: update program id
2021-04-29 18:30:29 -05:00
Jose fee9d34287
fix time-to-end auction countdown (#98) 2021-04-28 21:46:07 -05:00
bartosz-lipinski 2b19e61ac9 feat: query for metadata/image 2021-04-28 21:17:27 -05:00
bartosz-lipinski 3891bdcc47 Merge remote-tracking branch 'origin/main' into feature/m 2021-04-27 22:30:30 -05:00
bartosz-lipinski ada2fc035b Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-27 22:22:52 -05:00
Jordan Prince c5d2a98404 Selling master editions work 2021-04-27 22:14:58 -05:00
bartosz-lipinski fa203e280e Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-27 16:42:05 -05:00
bartosz-lipinski a04f607fa5 feat: add bids 2021-04-27 16:25:36 -05:00
Jordan Prince 09885f6a2f Bid redemption 2021-04-27 15:33:20 -05:00
Jordan Prince 0be625108f Ok, lot of rough draft work getting redemption action ready to go. Need to sleep now, test it in the morning. 2021-04-27 02:25:10 -05:00
Jordan Prince 4bb72e82e1 Merge branch 'feature/m' into feature/m-jordan 2021-04-26 23:55:24 -05:00
Jordan Prince ce33240b85 Latest fixes to bidder metadata 2021-04-26 23:54:36 -05:00
bartosz-lipinski 6d4c03809b Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 23:19:59 -05:00
bartosz-lipinski a43cdebae6 feat: art selector 2021-04-26 23:19:53 -05:00
Jordan Prince 59c1fc5c54 Fix a nasty borsh issue by re-arranging auction data 2021-04-26 23:00:25 -05:00
Jordan Prince 7ab009e0e6 I can bid 2021-04-26 21:46:30 -05:00
Jordan Prince a46537221a Index and show pages for auctions 2021-04-26 16:59:16 -05:00
Jordan Prince 2f036f7009 Can create auction managers 2021-04-26 13:18:27 -05:00
Jordan Prince 4c89a1667c Pushing what i've got 2021-04-26 03:07:46 -05:00
Jordan Prince e658d81eed Some more changes 2021-04-25 23:52:31 -05:00
bartosz-lipinski f0cbbc2461 fix: undefined 2021-04-25 23:11:03 -05:00
Jordan Prince 3807f564c3 Massive WIP on useArt, adding safety deposit draft eveyrwhere 2021-04-25 21:38:22 -05:00
Jordan Prince 03a4cab50b Forgot a few steps to truly create an auction manager 2021-04-25 20:02:29 -05:00
Jordan Prince 5355fa8248 Got create auction manager superfunction created 2021-04-25 19:26:28 -05:00