Commit Graph

763 Commits

Author SHA1 Message Date
Juan Diego García 4f5f0db2e6
Fixed cache getting program accounts instead of wallet ASA (#192)
* fixed button with no provider

* fixed mint key on native sol tokens and wwt eth, eth -> sol

* fixed cached getting program accounts instead of wallet ASA
2021-08-19 15:35:42 -05:00
Sebastian Bor e0c9ca80a7
Governance: Increase tx timeout to 30s and show timeout msg (#187) 2021-08-17 22:20:09 +02:00
Sebastian Bor 137321e7a3
Governance: Support mints with 0 supply (#184) 2021-08-13 21:41:01 +02:00
Sebastian Bor dfd9f88b20
Governance: Fix mint and transfer instruction decimals (#183)
* fix: use mint decimals for mintTo amount input

* fix: use mint decimals for transfer amount input
2021-08-13 20:22:19 +02:00
Juan Diego García ed065c2902
Fixed mint key on native sol tokens and wwt eth, eth -> sol (#181)
* fixed button with no provider

* fixed mint key on native sol tokens and wwt eth, eth -> sol
2021-08-13 11:38:15 -05:00
Sebastian Bor ad55dfa829
Governance: Constrain active proposals per wallet (#178) 2021-08-12 21:50:39 +02:00
Sebastian Bor b11588d442
fix: use vote time expiration to show/hide relinquish vote button (#175) 2021-08-06 15:11:22 +01:00
Sebastian Bor 59a776e880
Governance: Optimise proposal accounts loading (#174)
* chore: move proposal buttons to ActionBar

* fix: minimise number of requests to get Proposal buttons state
2021-08-06 09:06:15 +01:00
Sebastian Bor d5dbc29b0b
Governance: Do not show Yes/No buttons when voter record can't be loaded (#173) 2021-08-05 23:14:35 +01:00
Juan Diego García e05ecbc9a2
Added renbtc debug page (#172)
* fixed button with no provider

* Added renbtc debug page
2021-08-04 10:03:56 -05:00
Juan Diego García c4b7d17457
Fixed wwt wrapped tokens not showing up balances on eth side (#171)
* fixed button with no provider

* fixed supply number too high

* fixed wwt wrapped tokens not showing up balances on eth side

* use mint in wwt tokens

* fixed non wwt tokens
2021-08-03 18:01:04 -05:00
Maximilian Schneider a92214a6b5
Common: fix less build #168 2021-08-03 12:42:35 +01:00
Sebastian Bor 209c6a8a56
Governance: Add NotEnoughTokensToCreateGovernance error (#169) 2021-08-03 12:40:24 +01:00
Sebastian Bor 543398a97b
Governance: Remove mint account from input accounts (#167) 2021-08-03 08:56:31 +01:00
Sebastian Bor 876bad040b
Governance: Min tokens to create governance (#166)
* chore: update accounts and instruction layout

* feat: pass token owner and mint to create governances

* feat: capture min tokens to create proposal on realm screen

* chore: update comments
2021-08-03 08:13:53 +01:00
Sebastian Bor d2d172fa16
Governance: Add signatory list (#165) 2021-08-02 20:02:56 +01:00
Sebastian Bor 7dade0ed93
Governance: Simplify realm actions (#164)
* chore: move bpfUpgradeableLoader instructions to tools

* feat: move register governance and set authority to advanced options
2021-08-02 17:58:32 +01:00
Sebastian Bor 8bc6ad8467
Governance: Realm configs and max vote weight fraction (#162)
* chore: update CreateRealm instruction

* chore: update RealmConfigArgs

* feat: add SetRealmConfigArgs instruction

* feat: capture max vote weight supply fraction when realm created

* chore: rename registerRealm

* chore: move AccountDescription to components

* feat: add SetRealmAuthorityButton

* feat: show badge for realm authority governance

* feat: add realm config instruction creator

* feat: generate SetRealmConfig instruction

* feat: add realm config instruction creator

* feat: show fractional max vote weight

* chore: update test mints
2021-08-01 20:23:36 +01:00
Sebastian Bor 714bd98350
Governance: Set config when creating realm (#160) 2021-07-30 18:41:43 +01:00
Sebastian Bor 0936c54d85
Governance: Realm config (#157)
* chore: update accounts

* chore: update mintMaxVoteWeightSource
2021-07-29 17:06:14 +01:00
Juan Diego García 652736b15f
Fixed issue with high integers supplies (#156)
* fixed button with no provider

* fixed supply number too high
2021-07-29 10:55:32 -05:00
Sebastian Bor d9b22a5858
Governance: Add countdown timer (#152)
* wip: vote countdown

* feat: vote time countdown

* chore: review clenaup

* fix: show voting ended when in voting state but past the voting time

* fix: catch account loading errors
2021-07-29 00:31:49 +01:00
Juan Diego García daee80a909
fixes balances not showing up for eth tokens with more than 9 decimals (#151)
* fixed button with no provider

* fixes balances not showing up for eth tokens with more than 9 decimals

* added warning popover
2021-07-28 17:53:47 -05:00
Sebastian Bor ec73ffdaac
feat: use vote threshold from proposal for voted on proposals (#149) 2021-07-27 23:15:27 +01:00
Sebastian Bor 7b34bb5d70
fix: use URL to compose explorer url (#148) 2021-07-27 12:58:26 +01:00
Sebastian Bor cd933a195b
chore: upgrade @solana/web3 to 1.22.0 (#147) 2021-07-27 12:24:42 +01:00
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 1b981f6d0b
Governance: Format mints amounts for governances (#141)
* fix: format mints amounts for governances

* chore: remove log statement
2021-07-23 16:55:09 +01:00
Sebastian Bor 8e56e17f0f
Governance: SetRealmAuthority (#140)
* fix: allow partial failures when loading accounts

* chore: revert capturing mint supply when signing off

* chore: cleanup realm view components

* chore: fix realmView file name

* feat: add SetRealmAuthority

* chore: fix SetRealmAuthorityArgs class name
2021-07-23 16:14:00 +01:00
Sebastian Bor 94fa1ce224
Governance: Capture realm authority and proposal mint supply (#139)
* fix: update accounts layouts

* feat: pass realmAuthority to CreateRealm instruction

* feat: add governing token mint to SignOff instruction
2021-07-22 16:41:21 +01:00
Sebastian Bor 4c1cd0c794
Governance: Implement different council and community tokens thresholds (#138) 2021-07-21 19:27:37 +01:00
Ryan M. Shea b3d6640595
Add disclaimer 2021-07-20 23:51:30 -06:00
Sebastian.Bor b15429dd21 feat: validate token account for mintTo instruction 2021-07-20 18:48:41 +01:00
Sebastian.Bor 2149df6d92 chore: move buffer validator to validators 2021-07-20 18:43:46 +01:00
Sebastian.Bor 43fd7ddf05 feat: validate instruction token account 2021-07-20 18:38:50 +01:00
Sebastian Bor 5d1906cfcf
Governance: Upgrade buffer validation (#137)
* chore: make the box animation more subtle

* feat: validate upgradable program buffer
2021-07-20 16:33:07 +01: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 ca7882342d
Governance: cleanup proposal components (#135)
* chore: cleanup proposal components

* chore: update proposalView name
2021-07-17 14:45:03 +01:00
Sebastian Bor 65516c533f
feat: add an option to flag instruction as broken (#134) 2021-07-16 22:52:18 +01:00
Sebastian Bor b64d15ea33
feat: add app error banner (#133) 2021-07-15 14:57:51 +01:00
Sebastian Bor 5166cb89f9
Governance: use mint decimals for min tokens to crate proposals in the UI (#132)
* fix: use mint decimals for min tokens to crate proposals in the UI

* chore: fix names
2021-07-15 12:36:38 +01:00
Sebastian Bor 7315293718
fix: remove dead rpc endpoints from settings options (#131) 2021-07-14 13:22:39 +01:00
Sebastian Bor 65bf7a2318
Governance: Implement set governance config (#129)
* 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
2021-07-10 21:03:06 +01:00
Sebastian Bor fc5ceab079
chore: remove realm and account from config (#128) 2021-07-10 14:34:01 +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 b07fb33569
Governance: Update program structures (#126)
* feat: add SetGovernanceConfig instruction

* chore: change reserved to ['u8']

* chore: Add None enum values

* chore: update enums serialisation
2021-07-07 19:29:52 +01:00
Sebastian.Bor a1b95ee307 feat: add docs link 2021-07-03 14:04:04 +01:00
Sebastian.Bor cb89af5eb4 fix: map governance errors using 500 offset and add token errors 2021-07-03 14:03:49 +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