/** * Copyright 2017–2019, LaborX PTY * Licensed under the AGPL Version 3 license. */ pragma solidity ^0.4.25; import "@laborx/solidity-eventshistory-contracts/contracts/EventsHistorySourceAdapter.sol"; /// @title ERC20 Manager emitter contract /// /// Contains all the original event emitting function definitions and events. /// In case of new events needed later, additional emitters can be developed. /// All the functions is meant to be called using delegatecall. contract ERC20ManagerEmitter is EventsHistorySourceAdapter { event LogAddToken ( address indexed self, address token, bytes32 name, bytes32 symbol, bytes32 url, uint8 decimals, bytes32 ipfsHash, bytes32 swarmHash ); event LogTokenChange ( address indexed self, address oldToken, address token, bytes32 name, bytes32 symbol, bytes32 url, uint8 decimals, bytes32 ipfsHash, bytes32 swarmHash ); event LogRemoveToken ( address indexed self, address token, bytes32 name, bytes32 symbol, bytes32 url, uint8 decimals, bytes32 ipfsHash, bytes32 swarmHash ); event Error(address indexed self, uint errorCode); function _emitLogAddToken ( address token, bytes32 name, bytes32 symbol, bytes32 url, uint8 decimals, bytes32 ipfsHash, bytes32 swarmHash ) internal { emit LogAddToken(_self(), token, name, symbol, url, decimals, ipfsHash, swarmHash); } function _emitLogTokenChange ( address oldToken, address token, bytes32 name, bytes32 symbol, bytes32 url, uint8 decimals, bytes32 ipfsHash, bytes32 swarmHash ) internal { emit LogTokenChange(_self(), oldToken, token, name, symbol, url, decimals, ipfsHash, swarmHash); } function _emitLogRemoveToken ( address token, bytes32 name, bytes32 symbol, bytes32 url, uint8 decimals, bytes32 ipfsHash, bytes32 swarmHash ) internal { emit LogRemoveToken(_self(), token, name, symbol, url, decimals, ipfsHash, swarmHash); } function _emitError(uint error) internal returns (uint) { emit Error(_self(), error); return error; } }