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

Events File with sections #111

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
294 changes: 0 additions & 294 deletions docs/for-developers/sdk/events.md

This file was deleted.

67 changes: 67 additions & 0 deletions docs/for-developers/sdk/events/auction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
sidebar_position: 6
sidebar_label: Auction
---

# Auction

The Auction events


- ## AuctionCreatedEvent
- **Summary:** An auction for an NFT has been created.
- **Datas returned:**
- nftId: *number*
- marketplaceId: *number*
- creator: *string as AccountId32*
- startPrice: *string as u128*
- startPriceRounded: *number*
- buyItPrice: *string as u128*
- buyItPriceRounded: *number*
- startBlock: *number*
- endBlock: *number*


- ## AuctionCancelledEvent
- **Summary:** An auction for an NFT has been cancelled.
- **Datas returned:**
- nftId: *number*


- ## AuctionCompletedEvent
- **Summary:** An auction for an NFT has been completed.
- **Datas returned:**
- nftId: *number*
- newOwner: *string as AccountId32*
- amount: *string as u128*
- amountRounded: *number*
- marketplaceCut: *string as u128*
- marketplaceCutRounded: *number*
- royaltyCut: *string as u128*
- royaltyCutRounded: *number*


- ## BidAddedEvent
- **Summary:** The bidder has added a new bid offer.
- **Datas returned:**
- nftId: *number*
- bidder: *string as AccountId32*
- amount: *string as u128*
- amountRounded: *number*


- ## BidRemovedEvent
- **Summary:** The bidder has removed his bid offer.
- **Datas returned:**
- nftId: *number*
- bidder: *string as AccountId32*
- amount: *string as u128*
- amountRounded: *number*


- ## BalanceClaimedEvent
- **Summary:** Bidders that did not win the auction have claimed back their bids balance after an auction ends.
- **Datas returned:**
- account: *string as AccountId32*
- amount: *string as u128*
- amountRounded: *number*
Loading