Commit Graph

529 Commits

Author SHA1 Message Date
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
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 7f60b40d7a
Governance: Change slots to timestamps (#123)
* feat: use timestamps instead of slots

* feat: show amount of deposited tokens
2021-06-30 12:36:24 +01:00
Sebastian Bor e60ce1b307
Governance: Create token governance (#122)
* feat: implement TokenGovernance

* feat: use governance badge on GovernanceView

* feat: add accounts descriptions to governance items
2021-06-26 18:58:29 +01:00
Sebastian Bor ac8d8e21c0
Governance: Create mint instruction (#121)
* feat: setup CreateMintInstruction

* fix: change instruction and enum layout to avoid braking changes
2021-06-25 22:09:00 +01:00
Maximilian Schneider 3db71073f7
fix import case (#119) 2021-06-25 20:49:48 +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
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
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
bartosz-lipinski 98337f4fd7 feat: excude solana SRM 2021-04-30 07:55:34 -05:00
bartosz-lipinski 82753a6ed9 feat: update style 2021-04-29 21:51:47 -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
Juan Diego García 3a9e3854fc
Refactor texts and added additional pages (#102)
* fixed home css, removed usd- tokens and fixed commitment

* Added proof of assets and help pages
2021-04-29 18:29:59 -05:00
Jose bafab714be
Metaplex: finished countdown (#100)
* unused components

* dont count up, display finished label
2021-04-29 11:16:32 -05:00
Jose b094b60241
Metaplex: artcard countdown (#99)
* fix time-to-end auction countdown

* artcard countdown

* unswap vars

* dont add this again
2021-04-28 23:26:39 -05:00
bartosz-lipinski 3ba8ed72cd feat: use art 2021-04-28 21:53:10 -05:00
Jose fee9d34287
fix time-to-end auction countdown (#98) 2021-04-28 21:46:07 -05:00
bartosz-lipinski 74de9c47e0 feat: remove pre-sale card 2021-04-28 21:26:46 -05:00
bartosz-lipinski 2b19e61ac9 feat: query for metadata/image 2021-04-28 21:17:27 -05:00
Jose 6aab8ef5ab
Feature/m (#97)
* artselector for tiered auction

* useArt id

* modal size, scroll body

* format go live ts

* fix progress circle

* hide steps when publishing

* auction congrats buttons

* landing page, image height

* revert key

* art creation congrats buttons
2021-04-28 20:35:04 -05:00
bartosz-lipinski 4b2e2f1e1d feat: add artworks page 2021-04-28 20:34:14 -05:00
Jose a7a32d464c
Feature/m (#96)
* artselector for tiered auction

* useArt id

* modal size, scroll body

* format go live ts

* fix progress circle

* hide steps when publishing

* auction congrats buttons

* landing page, image height

* revert key
2021-04-28 20:07:09 -05:00
bartosz-lipinski e1d4cadb8b fix: caching 2021-04-28 20:06:30 -05:00
bartosz-lipinski 9d302ef016 fix: aggressive cache 2021-04-28 19:57:32 -05:00
bartosz-lipinski 8f5e41e06a Merge remote-tracking branch 'r/metaplex-land' into feature/m 2021-04-28 19:18:17 -05:00
bartosz-lipinski 35e284fa9b fix: bids 2021-04-28 19:15:45 -05:00
rmshea 3cc2ce70a3 Fix fonts, add new Typeform 2021-04-28 19:13:31 -04:00
bartosz-lipinski 45ce75fc1b Merge remote-tracking branch 'origin/main' into feature/m 2021-04-28 17:31:01 -05:00
Tim Hagn 4aa29029aa
Add DOCTYPE & test vercel (#92)
* add doctype

* add charset

* rename landing.html to index.html
2021-04-28 17:30:23 -05:00
Jose 8bec1e0746
Metaplex: fixes (#94)
* artselector for tiered auction

* useArt id

* modal size, scroll body

* format go live ts

* fix progress circle

* hide steps when publishing
2021-04-28 17:06:48 -05:00
bartosz-lipinski 3169f97e01 feat: fix commitment 2021-04-28 17:05:50 -05:00
bartosz-lipinski a6107cc2df Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-28 16:39:35 -05:00
bartosz-lipinski ccf8a790b9 feat: add mint 2021-04-28 16:39:29 -05:00
bartosz-lipinski 54af77bb6d feat: bids 2021-04-28 15:09:22 -05:00
Jordan Prince e00f4bd33b Fixed for multi auctions 2021-04-28 14:23:18 -05:00
Jordan Prince 676c7c7440 Limited editions 2021-04-28 12:40:32 -05:00
Jordan Prince 3f209d9baa Fix states 2021-04-28 11:40:20 -05:00
Jordan Prince b026cd1088 Merge branch 'feature/m' into feature/m-jordan 2021-04-28 11:24:26 -05:00
Jordan Prince 6016185052 Reset times 2021-04-28 11:23:45 -05:00
bartosz-lipinski e79c5a66ed chore: cleanup 2021-04-27 22:31:17 -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 84ee5f8c8f feat: max width 2021-04-27 21:34:42 -05:00
bartosz-lipinski 3e2ec40dd6 feat: icon 2021-04-27 19:55:09 -05:00
bartosz-lipinski 5b83fa9333 feat: add bidder info 2021-04-27 19:52:57 -05:00
Jose 4248648f76
Metaplex: winners range, datetime fields (#91)
* winners range

* store datetime fields on attributes

* initial landing page

* responsiveness with bootstrap
2021-04-27 17:32:53 -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 bb952ced4e Resolve conflicts and remove print stmts 2021-04-26 23:57:18 -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
bartosz-lipinski 5dfc8d6f7f Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 22:09:52 -05:00
Jordan Prince 4d83cddf45 Fix for my nft messup 2021-04-26 22:09:27 -05:00
bartosz-lipinski 15a6a41443 fix: tabs layout 2021-04-26 21:54:35 -05:00
bartosz-lipinski bb3f9fd192 Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 21:48:02 -05:00
Jordan Prince 7ab009e0e6 I can bid 2021-04-26 21:46:30 -05:00
bartosz-lipinski bd9251ee9d Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 18:50:29 -05:00
Jordan Prince b46406d61b Another fix for balance 2021-04-26 18:50:15 -05:00
bartosz-lipinski 3614cc4db8 Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 18:48:53 -05:00
Jordan Prince e1984d5945 Some fixes for hooks 2021-04-26 18:48:08 -05:00
bartosz-lipinski 878e471c05 Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 17:06:12 -05:00
bartosz-lipinski 127eeb03cf fix: art selector 2021-04-26 17:05:45 -05:00
Jordan Prince a46537221a Index and show pages for auctions 2021-04-26 16:59:16 -05:00
bartosz-lipinski f8c5458d48 Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 13:26:34 -05:00
Jordan Prince 2f036f7009 Can create auction managers 2021-04-26 13:18:27 -05:00
bartosz-lipinski cc2d58a264 Merge remote-tracking branch 'origin/feature/m-jordan' into feature/m 2021-04-26 08:55:10 -05:00
Jordan Prince 4c89a1667c Pushing what i've got 2021-04-26 03:07:46 -05:00
bartosz-lipinski b89a841a52 fix: await confirmation 2021-04-26 00:42:29 -05:00