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

feat(sdk): add trader v3 with gomu order book #17

Merged
merged 1 commit into from
Jul 28, 2022
Merged

Conversation

leeyikjiun
Copy link
Contributor

Add a trader v3 marketplace (mostly copied from trader v4) that uses the gomu order book.

Right now, the order book is a simple CRUD backend that is not monitoring events from the chain. For simplicity, we could post status updates to the order book after confirmation from ethers after cancelling and taking (but isn't done so in this PR).

What is more important is the query pattern required to fetch orders. Right now I only have a very simple query params of maker address, maker asset, taker address, taker asset. We'll probably need an active, cancelled, expired status, which I can add next. Let me know what else is required.

}

function makeAnyAsset(asset: Asset): AnyAsset {
if (asset.type === "ERC721") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Curios - why the special treatment specifically for 721?

@yongwee yongwee merged commit faf75c1 into main Jul 28, 2022
@yongwee yongwee deleted the feat/add-trader-v3 branch July 28, 2022 07:38
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