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

adding marketplace #747

Closed

Conversation

MartianSiddharth
Copy link

Motivation

Writing the first Marketplace contract for Aptos. This is based on the TODO item of this issue.

The implementation is based on TokenTransfers.move.

The flow is:

  1. Market Owner initiates the marketplace, all the tokens will be escrowed using this account
  2. Seller lists the token for sale
  3. Buyer buys the token using the token id: this includes sending the listing fees to the market owner and buying price to the seller of the token.

The only rule of the marketplace is that the buyer cannot be the seller.

When a token is listed for sale, the token is escrowed to the market owner account. When a buyer buys the token, the token is claimed by the buyer and removed from escrow from the owner account.

(Write your motivation for proposed changes here.)

Have you read the Contributing Guidelines on pull requests?

Yes

(You must have submitted a signed CLA that includes your GitHub handle prior to us accepting and landing your work. Write your answer here.)

Test Plan

Added a test for the move module as the function (list_buy_test).
Also, tested the script by publishing it and testing the functions.

@davidiw
Copy link
Contributor

davidiw commented Jun 8, 2022

I think this PR has been superseded, so will focus over there :)

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