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);
}
Last updated