Market Contract
Address
Address : (not yet deployed)
on Klaytn Blockchain Main-net
Summary
Market contracts define the rules for secondary trading of Collection Items provided to Otherworld.
Defines the maximum number of valid days that can be set on 'List' and 'Offer'.
Defines the maximum number of valid days that can be set on 'List' and 'Offer'.
Defines the maximum amount that can be set in the ‘list’.
Defines the 'list' details.
Defines the collection to which the list item belongs.
Defines the list items.
Defines the quantity of the list item.
Defines the currency to use for transactions.
Defines list prices.
Defines the list validity period.
Defines the seller.
Defines designated buyers.
Defines the list status.
Defines the 'offer' details.
Defines the collection to which the offer item belongs.
Defines the offer items.
Defines the quantity of the offer item.
Defines the currency to use for transactions.
Defines the offer price.
Defines the offer validity period.
Defines buyers.
Define offer status.
Data
Base
Max Expiration Day
Max Offer Count
Max List Price
Created Timestamp
List
ID
Collection ID
Token ID
Quantity
Currency ID
Price
Expiration Timestamp
Seller
Specific Buyer
State
Created Timestamp
Offer
ID
Collection ID
Token ID
Quantity
Currency ID
Price
Expiration Timestamp
Buyer
State
Created Timestamp
Event
Listed
Collection ID
Token ID
Seller
Token Contract
List ID
Offered
Collection ID
Token ID
Buyer
Token Contract
Offer ID
List Canceled
Collection ID
Token ID
Seller
List ID
Offer Canceled
Collection ID
Token ID
Buyer
Offer ID
Sale
Collection ID
Token ID
Seller
Buyer
Token Contract
List ID
Royalty Invoice
Collection ID
Token ID
List ID
Royalty
Provider
To Provider
Operator
To Operator
Associator
To Associator
Creator
To Creator
DAO
To DAO
Interface
interface IOWMarket {
function list(
uint256 _collectionId,
uint256 _tokenId,
uint256 _quantity,
uint256 _currencyId,
uint256 _price,
uint16 _expirationDay,
address _specificBuyer
) external;
function listOfAdmin(
uint256 _collectionId,
uint256 _tokenId,
uint256 _quantity,
uint256 _currencyId,
uint256 _price,
uint16 _expirationDay,
address _seller,
address _specificBuyer
) external;
function cancelList(uint256 _listId) external;
function cancelLists(uint256[] memory _listIds) external;
function isListing(uint256 _listId) external view returns (bool);
function isTokenListing(
address _seller,
uint256 _collectionId,
uint256 _tokenId
) external view returns (bool);
function isExistListById(uint256 _listId) external view returns (bool);
function getListById(uint256 _listId)
external
view
returns (MarketBase.List memory);
function offer(
uint256 _collectionId,
uint256 _tokenId,
uint256 _quantity,
uint256 _currencyId,
uint256 _price,
uint16 _expirationDay
) external payable;
function offerOfAdmin(
uint256 _collectionId,
uint256 _tokenId,
uint256 _quantity,
uint256 _currencyId,
uint256 _price,
uint16 _expirationDay,
address _buyer
) external payable;
function cancelOffer(uint256 _offerId) external;
function cancelOffers(uint256[] memory _offerIds) external;
function isOffering(uint256 _offerId) external view returns (bool);
function isExistOfferById(uint256 _offerId) external view returns (bool);
function getOfferById(uint256 _offerId)
external
view
returns (MarketBase.Offer memory);
function buy(uint256 _listId) external payable;
function sell(uint256 _offerId) external;
function setMaxExpirationDay(uint16 _maxExpirationDay) external;
function setMaxOfferCount(uint8 _maxOfferCount) external;
function setMaxListPrice(uint256 _maxListPrice) external;
function getMaxExpirationDay() external view returns (uint16);
function getMaxOfferCount() external view returns (uint8);
function getMaxListPrice() external view returns (uint256);
}
Last updated