Commit Graph

80 Commits

Author SHA1 Message Date
Jordan Prince b71adad26f
Dont validate edition info ownership if token only transfer since it is not used for token only (#169) 2021-07-26 18:19:55 -05:00
Yuriy Savchenko 18c3b0b1b7
Cancelling bid only if the auction has not ended yet (#165) 2021-07-25 16:38:27 -05:00
Yuriy Savchenko 1857649730 Added name to the auction data 2021-07-25 12:00:40 +03:00
Vadim 300fef21f8 Refactor after review 2021-07-23 20:02:48 +03:00
Vadim ca23b371a4 Refactor tests for Auction program 2021-07-23 16:35:30 +03:00
Vadim eb798f9825 Add instant_sale_price check to metaplex common redeem check util 2021-07-23 16:35:30 +03:00
Vadim 727b5fc10a Add tests for instant_sale_price feature 2021-07-23 16:35:30 +03:00
Vadim 3f43c2b45b Add instant_sale_price check to ClancelBid instruction 2021-07-23 16:35:30 +03:00
Vadim e4c670bec9 Add instant_sale_price check to ClaimBid instruction 2021-07-23 16:35:30 +03:00
Vadim e38684dd4f Add instant_sale_price check to PlaiceBid instruction 2021-07-23 16:35:30 +03:00
Vadim c2507c8287 Add check of instant_sale_price parameter to PlaceBid instruction 2021-07-23 16:35:30 +03:00
Vadim b47705253d Add instant_sale_price parameter to AuctionDataExtended 2021-07-23 16:35:30 +03:00
Jordan Prince 397bf8dbdc
Fix for bad state calculation (#139) 2021-07-17 15:06:36 -05:00
Jordan Prince c3b9c5eb4a
Master edition refactor (#108)
* WIP on new instructions

* WIP on refactor

* Lot of wip here on refactoring to a new master edition v2. too much to mention.

* Next wip state on new master edition

* More work, unfortunately had to add proxy call to vault to get access to authority to use store token

* A bit of a checkpoint here - removed all the old cli code since we have deviated so much it is not worth maintaining anymore and there is no real use for it given it doesnt use sol wrapped accounts, and we are ready to start integration testing with the remaining CLIs. No front end changes yet.

* Adding a bunch of new actions for the front end...still need to hook up more.

* Working on integration testing all of this but really have a CPU problem

* Got redeem bid working for the simplest case. Need to test more tomorrow.

* Cut down on CPU time by cutting out the O(n) scan of bidders

* Smarter withdraw that takes participation and empty auctions into account.

* After much pain and misery, i have working participation bids as well.

* More fixes for redemption

* Add a double check in case account mint is empty for send participation bid because if that one messes up yo end up with dupes

* A bunch of super optimizations to get 50 person auction sto pass muster even on the old system.

* Working on more fixes for v2

* Moratorium on alotted address size check for 2weeks

* Working on a new set of methods that allow me to get rid of deserializing auction entirely in redemption for metaplex...

* Went medieval on auction manager and wrote my own save function, and removed auction from being deserialized at all. Going to test a 50 person auction now in v2.

* A working autoredeemer, nearly

* Work in progress on multiple edition redemptions

* Updates to site for edition redemption

* Add conversion button and update sale happened if it should be in auction creation process
2021-07-16 15:06:27 -05:00
Jordan Prince 42a8d1d309
Edgecase for res list (#109)
* Super quick hotfix to token cli

* Account for edgecase in res list when you for some reason overwrite yourself

* Another fix, keeping track of population.
2021-07-02 22:13:03 -05:00
Jordan Prince 2fd58e5b2b
Edgecase for res list (#107)
* Super quick hotfix to token cli

* Account for edgecase in res list when you for some reason overwrite yourself
2021-07-02 14:47:20 -05:00
Jordan Prince 56351bfc62
Super quick hotfix to token cli (#106) 2021-07-02 14:18:32 -05:00
Jordan Prince bc729d73b7 Ensure nobody but the authorities on the vault and auction (which should themselves be equal) can be authority on the auction manager. 2021-06-28 20:40:24 -07:00
Jordan Prince e838546d7f Fixes for cli 2021-06-28 19:59:15 -07:00
Jordan Prince 921ad45044
Fix case where it's possible to assign authority to AuctionManager that does not yet exist (#94)
* A lovely wip commit on fixing a little loophole that could cause trouble when auction managers get front run.

* Finish up loophole closing
2021-06-28 18:28:10 -05:00
Jordan Prince 3ec50ee190
Tick Size and Gap Tick Size (#66)
* Draft code for tick sizes

* Hooking up front to back end, need to test it now.

* Don't adjust ids.

* Fully working tick size and gap tick percentage

* Final fixes and validations for tick and gap

* Update cargo.lock
2021-06-27 19:34:38 -05:00
Jordan Prince 7bfbf0f0af
I feel really guilty about this, but this hack was required to scale to 200 reservations in the current reservation system. We will soon deprecate in favor of an authority based system, but didnt want to leave people behind in the mean time. (#80) 2021-06-27 14:17:28 -05:00
Jordan Prince 566c52ac40
Add current spots as a way to cut down on cpu time (#76) 2021-06-24 20:40:20 -05:00
Jordan Prince 312002e4f2 Some last minute fixes for res lsit 2021-06-24 18:01:03 -07:00
Jordan Prince 5a4086738b
reservation list fix for scaling (#70) 2021-06-24 19:07:29 -05:00
Jordan Prince 8c46e6906c
Auction Manager Unwinder [2/2] (#63)
* Add the next level of unwinder - the auction manager unwinder.

* Remove print
2021-06-19 21:39:46 -05:00
praskoson 9f65bcf325
Re-add testing tools to the build path (#55)
* Re-add the testing tools to build path

* Correct the default RPC URL.

The URLs for the RPC nodes were updated to use the api prefix. The older URLs no longer work.

* Harmless misspelling

* Use Key enum for Vault contract

* Re-order imports so rustfmt passes
2021-06-19 13:22:28 -05:00
Jordan Prince 434e1c5a11
Unwinding Unused Auctions (#38)
* First draft of unwinding code - cleverly use the redemption framework to allow auctioneers to redeem their own goods. No idea if it works, will begin testing tomorrow.

* Added missing instruction I noticd hadnt been created

* Update rust to fix issues with draft impl

* Comments for clarity

* Everything is working for unwinding

* Remove myself from .env

* Bring back proper ids

* Fix for case where auctioneer IS one of the winners...need to rethink how we check. Just check winner at the desired index and if it exists, disallow.

* Protect against mismatched winner attacks
2021-06-17 08:59:14 -05:00
Jordan Prince 377f6cd521
Minimum Price Support in UI + Minor contract fix (#37)
* Hook up minimum price to the front end with some borsh hacks, and fix a minor bug in the auction contract for minimum price checks

* Remove excess definitions we dont need from the hack.

* feat: no hacks allowed

Co-authored-by: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com>
2021-06-15 11:31:51 -05:00
Jordan Prince 983647bc74 History doesn't repeat itself, but it does rhyme. 2021-06-12 12:27:51 -05:00