Commit Graph

95 Commits

Author SHA1 Message Date
Sebastian.Bor 43e2c9060c chore: rename timelock props to governance 2021-04-24 13:29:08 +01:00
Sebastian.Bor 10ae7359da chore: disable render tracking 2021-04-24 13:24:47 +01:00
Sebastian.Bor 6394bf7a88 chore: rename timelockType 2021-04-24 13:24:28 +01:00
Sebastian.Bor 598af20deb chore: rename params to Governance 2021-04-24 13:06:55 +01:00
Sebastian.Bor 05992a5ea7 chore: rename instructions and actions to Governance 2021-04-24 12:57:30 +01:00
Sebastian.Bor 5c994fe9c5 chore: rename instructions to Governance 2021-04-24 12:19:10 +01:00
Sebastian.Bor c19e7fe219 chore: rename state structs to Governance 2021-04-24 12:12:44 +01:00
Sebastian.Bor 9464d80d2c fix: show instruction program id and data 2021-04-24 11:09:23 +01:00
Sebastian.Bor 4082949802 chore: suppress lint warnings 2021-04-24 09:21:05 +01:00
Sebastian.Bor 50326a2298 chore: fix lint issues 2021-04-23 23:21:49 +01:00
Sebastian.Bor 61f4be3cbd chore: lint errors 2021-04-23 23:06:56 +01:00
Sebastian.Bor 90546db0e5 fix: use button for execute action 2021-04-23 23:06:28 +01:00
Sebastian.Bor 0d0f8c8763 feat: use only program id for governance pda 2021-04-23 11:17:46 +01:00
Sebastian.Bor 690ebd85c4 chore: fix lint warnings 2021-04-22 22:27:22 +01:00
Sebastian.Bor 3eba1d580a fix: update lookup offset for proposal 2021-04-22 22:00:10 +01:00
Sebastian.Bor c8a7c726f0 chore: fix linter warnings 2021-04-22 21:59:41 +01:00
Sebastian.Bor 358d80ed03 feat: pass program data account and upgrade authority accounts 2021-04-22 11:10:22 +01:00
Sebastian.Bor bbc56843dc feat/use vote threshold instead of consensus algorithm 2021-04-17 19:45:03 +01:00
Sebastian.Bor 86a6e62b2a fix: add missing CustomSingleSignerTransaction account type 2021-04-17 13:13:05 +01:00
Sebastian.Bor 7523c142f6 chore: use account type enum for CustomSingleSignerTransaction 2021-04-17 13:02:56 +01:00
Sebastian.Bor ed72e20ef8 chore: use account type enum for VoreRecord 2021-04-17 12:33:00 +01:00
Sebastian.Bor 57b389007b chore: use account type enum for ProposalState 2021-04-17 12:20:04 +01:00
Sebastian.Bor 065700babf chore: use account type enum for TimelockSet 2021-04-17 12:03:49 +01:00
Sebastian.Bor cb3bb03ba4 chore: remove Ping instruction and add GovernanceAccountType 2021-04-17 11:37:22 +01:00
Sebastian.Bor adb5d81a09 fix/ensure-transactions-sent-in-sequence 2021-04-17 10:59:56 +01:00
Jordan Prince 73fd0aac7e
Merge pull request #71 from SebastianBor/fix/transfer-authority-signers
Governance: Fix transfer authority signers
2021-04-16 13:04:36 -05:00
Jordan Prince 1748f99e7e
Merge pull request #72 from SebastianBor/fix/use-prefixes-for-PDAs-to-avoid-collision-attacks
Fix: Use prefixes for PDAs to avoid collision attacks
2021-04-16 10:45:02 -05:00
Sebastian.Bor dd09bb1de9 fix: use single pda prefix 2021-04-16 16:26:27 +01:00
Sebastian.Bor 7795efd1a1 chore: fix naming convention 2021-04-16 15:59:21 +01:00
Sebastian.Bor 66271c0c1d fix: use prefixes for PDAs to avoid collision attacks 2021-04-16 15:24:44 +01:00
Sebastian.Bor e6c4ebd32c fix: transfer authority signers 2021-04-16 10:45:39 +01:00
Sebastian.Bor c33bf0e11e fix: use optional for council mint 2021-04-16 10:27:37 +01:00
bartosz-lipinski 5d1f45c79c fix: build error 2021-04-15 23:52:56 -05:00
Jordan Sexton cfaecafba6
Fix tsconfig (#62)
* make typeRoots consistent

* config/tokens.json doesn't exist

* simplify parent paths
2021-04-14 23:42:19 -05:00
Jordan Prince 7aba9b761c Change approve token to allow existing authority and use it to not duplicate keys across the three different voting blcoks 2021-04-11 16:38:37 -05:00
Jordan Prince 68fb3d85de Remove timelock program in a refactor 2021-04-10 17:59:26 -05:00
Sebastian Bor 92d2c151c2
Proposals: fix transaction signatures warnings (#55)
* chore: cleanup lint errors

* fix: transaction signatures warnings

* chore: cleanup code
2021-04-08 16:13:08 -05:00
Jordan Prince ce7cb6729f
Merge pull request #51 from SebastianBor/fix-show-up-to-date-voting-records
Proposals: show up to date voting records
2021-04-08 09:05:34 -05:00
Sebastian.Bor 501829d9fc fix: validate new governance public key inputs 2021-04-08 14:57:40 +01:00
Sebastian.Bor f9fec80e08 fix: show uo to date voting records 2021-04-08 11:46:06 +01:00
Sebastian.Bor 408cc78c7a fix: use source mint decimals for voting mints 2021-04-06 20:44:13 +01:00
Sebastian.Bor e6a6122142 fix: fix vote refund and token withdrawal messages 2021-04-06 11:00:57 +01:00
Sebastian.Bor af2969ea35 fix: update voting messages and icons 2021-04-06 10:19:58 +01:00
Sebastian.Bor a3129aaab7 feat: split vote button into yeah/nay buttons on proposal page 2021-04-05 22:11:22 +01:00
Sebastian.Bor 4524838aa2 choore: move useThatState hook to commom package 2021-04-05 20:50:17 +01:00
Sebastian.Bor 8f76caf7ed feat: simplified withdraw vote workflow 2021-04-05 19:41:24 +01:00
Sebastian.Bor 63467f1acb fix: combine deposit source toenas and vote into a single transaction 2021-04-03 00:50:15 +01:00
Sebastian.Bor 15958d211a feat: change votting on/off toggle to radio buttons 2021-04-02 22:01:54 +01:00
Sebastian.Bor 5816cbda5e fix: restrict voting to Voting state and governance token avaliability 2021-04-02 19:08:13 +01:00
Sebastian.Bor a47b1043b6 fix: create and use useLatestState hook to get up to date useState hook state 2021-04-02 18:49:12 +01:00