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

NFT marketplace V2 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aj-maz
Copy link

@aj-maz aj-maz commented Apr 24, 2022

It's my first commit to completing the Pancake swap bounty at the revelation hackathon.

I have created a version 2 marketplace based on the v1 and its tests. Added the Cake as a payment method.

In the constructor, the deployer specifies the Cake contract address + cake min price + cake max price.

Added an enum which is called currency which contains two currencies: BNB and Cake

Modified Ask struct to also have a currency property, also updated the events belonging to it.

Added another public function called buyTokenUsingCake which can be used for asks that are based on Cake.

Added a cakePendingRevenue which will be used for pending revenues based on the cake.

Updated _buyToken and claimPendingRevenue to act as expected.

Modified old tests to work with the current version, and also added new tests for new features.

==========

This is a work in progress. I will add offers and erc1155 in the coming days.

I'm also creating a new indexer here: https://github.com/Ajand/evm-nft-indexer
Since your old indexer was developed using java and I'm not a good java developer, the old one needed HUGE changes to be useable for the new marketplace, since you need dynamic collections and the ability to index erc1155, I'm creating a new one from scratch.

@aj-maz aj-maz marked this pull request as draft April 24, 2022 14:05
@aj-maz aj-maz marked this pull request as ready for review May 5, 2022 12:20
@aj-maz
Copy link
Author

aj-maz commented May 5, 2022

Hey guys, I was very busy these weeks and I did not make time to complete what was in my mind.
Cake as a payment method is already added so I decided to apply anyway.

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.

1 participant