🇺🇸
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
  • Currency
  • Interface
  1. Smart Contracts

Currency Contract

Currency Contract

Address

Address : (not yet deployed)

on Klaytn Blockchain Main-net

Summary

A currency contract defines the rules of tokens that can be used to conduct offerings and secondary transactions on Otherworld.

  • Defines the currency details.

    • Defines the FT contract (KIP-7) in currency units.

    • Currencies are divided into service currency and project currency.

    • The service currency can be used regardless of the project.

    • A project currency can only be used within a project to which you belong.

Data

Base

Name
Type

Created Timestamp

Uint

Currency

Name
Type

ID

Uint

Project ID

Uint

Token Contract

Address

Is Active

Boolean

Created Timestamp

Uint

Interface

interface IOWCurrency {
    function addCurrency(uint256 _projectId, address _tokenContract) external;

    function setCurrencyProject(uint256 _currencyId, uint256 _projectId)
        external;

    function setCurrencyActive(uint256 _currencyId, bool _isActive) external;

    function setCurrencyTokenContract(
        uint256 _currencyId,
        address _tokenContract
    ) external;

    function isExistCurrencyById(uint256 _currencyId)
        external
        view
        returns (bool);

    function isExistCurrencyByToken(uint256 _projectId, address _tokenContract)
        external
        view
        returns (bool);

    function getCurrencyOfProject(uint256 _projectId)
        external
        view
        returns (CurrencyBase.Currency[] memory);

    function getActiveCurrencyIdOfProject(uint256 _projectId)
        external
        view
        returns (uint256[] memory);

    function getCurrencyById(uint256 _currencyId)
        external
        view
        returns (CurrencyBase.Currency memory);

    function getTokenContractByCurrencyId(uint256 _currencyId)
        external
        view
        returns (address);

    function isValidCurrency(uint256 _currencyId, uint256 _projectId)
        external
        view
        returns (bool);

    function isActiveCurrency(uint256 _currencyId) external view returns (bool);

    function isServiceCurrency(uint256 _currencyId)
        external
        view
        returns (bool);
}
PreviousProviding ContractNextMilestone Contract

Last updated 2 years ago