Commit Graph

508 Commits

Author SHA1 Message Date
jordansexton b865087de8 remove old pyth hook 2021-06-25 17:04:21 -05:00
jordansexton 0027e7d5af add devnet tokens from mango 2021-06-25 17:03:42 -05:00
jordansexton aeadf50cd5 refresh reserves and obligation as needed 2021-06-25 17:03:23 -05:00
jordansexton f811d7a4d0 working on fixing dex market init 2021-06-22 19:13:01 -05:00
jordansexton 4580be5514 fixing config 2021-06-22 19:12:40 -05:00
jordansexton f39b03ef1f fixing pubkeys 2021-06-22 19:12:17 -05:00
jordansexton 29b352aec3 update serum, buffer-layout deps 2021-06-18 15:22:47 -05:00
jordansexton 258a01cf88 Merge branch 'main' into lending/xcl 2021-06-18 15:17:45 -05:00
jordansexton 99783c00db add placeholders for lending program ids 2021-06-18 15:17:21 -05:00
jordansexton c2b1dc3ee9 remove unused import 2021-06-18 14:01:53 -05:00
jordansexton e751324b2a use oyster/common from file 2021-06-18 14:01:44 -05:00
jordansexton 47697063a4 add pyth program id 2021-06-18 14:01:28 -05:00
jordansexton b95301d94b remove bad connections 2021-06-18 14:01:04 -05:00
jordansexton 33a3fa3e09 don't parse liquidity oracle as dex market 2021-06-17 18:40:23 -05:00
jordansexton 9827db6801 pyth context + refactor 2021-06-17 18:40:06 -05:00
jordansexton dfc05c4acb revise fixme comments 2021-06-17 16:39:44 -05:00
jordansexton 30e26bad5b mintPubkey is defined 2021-06-17 16:39:32 -05:00
jordansexton b013894451 add pyth client + hook 2021-06-17 16:39:15 -05: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
jordansexton 4a5362b880 fix all typescript and lint errors 2021-06-15 18:45:35 -05:00
jordansexton 86ed2f1e5e sort exports 2021-06-15 17:58:55 -05:00
jordansexton 934cf0679d todos 2021-06-15 17:58:48 -05:00
jordansexton 5e6daf6941 add and fix buffer layout types 2021-06-15 17:46:10 -05:00
jordansexton df62cdc8da fix all actions 2021-06-15 15:31:16 -05:00
jordansexton c054734e7d oracle/dex fixes 2021-06-15 15:30:46 -05:00
jordansexton 3d021c1b91 add pyth program id 2021-06-15 15:30:06 -05: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
jordansexton 5c89ff1b2a remove quote token mint 2021-06-10 22:43:56 -05:00
jordansexton 955ade8ae5 update state and instructions 2021-06-10 22:43:35 -05:00
jordansexton 002723fa44 Merge branch 'main' into lending/xcl-master 2021-06-10 18:51:19 -05:00
bartosz-lipinski 3c66d0c624 feat: improve style and filter duplicate tokens 2021-05-22 15:32:56 -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
Juan Diego García 4b1d3cfdab
fixed firefox and safari svg compatibility (#109) 2021-05-07 16:29:06 -05:00
Jordan Prince 5cb88d4844 Fixes for governance 2021-05-06 15:58:31 -05:00
jordansexton cee89c00d3 refactoring 2021-05-06 12:41:07 -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
Juan Diego García ea2af3b06f
fixed button with no provider (#106) 2021-05-01 10:52:05 -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 6ae50cfe57 Merge remote-tracking branch 'origin/main' into feature/m 2021-04-30 19:01:45 -05:00
Jose 7533b80d0f
Metaplex: Feature/m (#103)
* unused components

* dont count up, display finished label

* clean file names (spaces dont work)

* hide auction end time when no auction

* style artcard countdown
2021-04-30 18:50:43 -05:00
Juan Diego García 9f2ceaafb5
Refactor bridge-sdk library (#104)
* moved bridge interaction to bridge-sdk library

* typo
2021-04-30 18:50:27 -05:00
bartosz-lipinski 7f11a55478 feat: update torus 2021-04-30 15:41:44 -05:00