🇺🇸
Protocol
HubSoTWTutorialPartners
ENG
ENG
  • Otherworld's Protocol
  • Smart Contracts
    • Providing Contract
    • Currency Contract
    • Milestone Contract
    • NFT(ERC-721) Contract
    • Minting Contract
    • Offering Contract
    • OD Contract
    • ERD Contract
    • Market Contract
    • oKLAY(ERC-20) Contract
    • Governance Power Contract
    • Proxy Contract
  • PROVIDING - DIMENSION
    • Providing
      • Project
      • Universe
      • Collection
      • Item
      • Milestone
      • Milestone-Comment
    • R&R
      • Player
      • Provider
      • Operator
      • Associator
      • Creator
    • DAO Fund
    • Currency
      • Service Currency
      • Project Currency
    • Launchpad
      • Offering
      • Round
      • Whitelist
      • Minting
    • Marketplace
      • Exchange
      • List
      • Offer
      • Effect of Proposal
      • Market Fee
      • Royalty
    • Governance
      • Governance Power
      • Governance Standard
    • License
      • License A : Full Access
      • License Standard
  • SOCIAL-DIMENSION
    • Other Wallet
    • Other Board
    • Other Channel
    • Other Messenger
    • Gamification
  • DAO-TOOL AS A SERVICE
    • Open Governance
    • Open Launchpad
    • Open Marketplace
    • Open Providing
Powered by GitBook
On this page
  • Address
  • Summary
  • Data
  • Base
  • List
  • Offer
  • Event
  • Listed
  • Offered
  • List Canceled
  • Offer Canceled
  • Sale
  • Royalty Invoice
  • Interface
  1. Smart Contracts

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

Name
Type

Max Expiration Day

Uint

Max Offer Count

Uint

Max List Price

Uint

Created Timestamp

Uint

List

Name
Type

ID

Uint

Collection ID

Uint

Token ID

Uint

Quantity

Uint

Currency ID

Uint

Price

Uint

Expiration Timestamp

Uint

Seller

Address

Specific Buyer

Address

State

Uint

Created Timestamp

Uint

Offer

Name
Type

ID

Uint

Collection ID

Uint

Token ID

Uint

Quantity

Uint

Currency ID

Uint

Price

Uint

Expiration Timestamp

Uint

Buyer

Address

State

Uint

Created Timestamp

Uint

Event

Listed

Name
Type

Collection ID

Uint

Token ID

Uint

Seller

Address

Token Contract

Address

List ID

Uint

Offered

Name
Type

Collection ID

Uint

Token ID

Uint

Buyer

Address

Token Contract

Address

Offer ID

Uint

List Canceled

Name
Type

Collection ID

Uint

Token ID

Uint

Seller

Address

List ID

Uint

Offer Canceled

Name
Type

Collection ID

Uint

Token ID

Uint

Buyer

Address

Offer ID

Uint

Sale

Name
Type

Collection ID

Uint

Token ID

Uint

Seller

Address

Buyer

Address

Token Contract

Address

List ID

Uint

Royalty Invoice

Name
Type

Collection ID

Uint

Token ID

Uint

List ID

Uint

Royalty

Uint

Provider

Address

To Provider

Uint

Operator

Address

To Operator

Uint

Associator

Address

To Associator

Uint

Creator

Address

To Creator

Uint

DAO

Address

To DAO

Uint

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);
}
PreviousERD ContractNextoKLAY(ERC-20) Contract

Last updated 2 years ago