Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Create Bid to Auction House #172

Merged
merged 25 commits into from
Jul 20, 2022
Merged

Add Create Bid to Auction House #172

merged 25 commits into from
Jul 20, 2022

Conversation

zaxozhu
Copy link
Contributor

@zaxozhu zaxozhu commented Jul 18, 2022

  • Includes loading of LazyBid & Bid.

@zaxozhu zaxozhu requested a review from lorisleiva July 18, 2022 06:21
Copy link
Contributor

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for that! You followed the structure very well. The base is here but I'm afraid we're not quite there yet. Have a look at the comments below.

src/plugins/auctionHouseModule/AuctionHouseClient.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/AuctionHouseClient.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/AuctionHouseClient.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/AuctionsBuildersClient.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/Bid.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/findBidByAddress.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/loadBid.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/plugin.ts Outdated Show resolved Hide resolved
test/plugins/auctionHouseModule/createBid.test.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's much better thank you. I've left some more comments. When are you planning on supporting Auctioneer instructions? It should be quite simple as you just need to swap the instruction factory based on the input.

src/plugins/auctionHouseModule/Bid.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/Bid.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/createBid.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/createBid.ts Show resolved Hide resolved
src/plugins/nftModule/NftClient.ts Show resolved Hide resolved
test/plugins/auctionHouseModule/createBid.test.ts Outdated Show resolved Hide resolved
test/plugins/auctionHouseModule/createBid.test.ts Outdated Show resolved Hide resolved
test/plugins/auctionHouseModule/createBid.test.ts Outdated Show resolved Hide resolved
test/plugins/auctionHouseModule/createBid.test.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I've just left two little comments and then LGTM. 🍺

test/plugins/auctionHouseModule/createBid.test.ts Outdated Show resolved Hide resolved
test/plugins/auctionHouseModule/createBid.test.ts Outdated Show resolved Hide resolved
@lorisleiva
Copy link
Contributor

@zaxozhu Thanks for the changes. Not sure why the tests aren't passing. You can run a local Solana validator with the right programs loaded by running yarn amman:start on a different terminal window.

Then you can run

  • yarn test to run all the tests.
  • or esr test/**/createBid* to only run the bid tests.
  • or esr test/**/createBid* | tap-spec with a slightly better console output but you'll need to download tap-spec first.

@zaxozhu
Copy link
Contributor Author

zaxozhu commented Jul 20, 2022

@lorisleiva thanks! That time I was on a different machine, where I don't have the solana test validator, so just pushed the changes to check tests here :)

Copy link
Contributor

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there! 🙂

src/plugins/auctionHouseModule/createBid.ts Outdated Show resolved Hide resolved
src/plugins/auctionHouseModule/Bid.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀
Thank you!

@lorisleiva lorisleiva merged commit 25fb853 into main Jul 20, 2022
@lorisleiva lorisleiva deleted the michael/create-bid branch July 21, 2022 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants