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