Polygon Sponsored slots available. Book your slot here!
Overview
POL Balance
0 POL
POL Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deploy From Fact... | 45016423 | 519 days ago | IN | 0 POL | 0.17530652 |
Latest 2 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
45016423 | 519 days ago | Contract Creation | 0 POL | |||
45016423 | 519 days ago | Contract Creation | 0 POL |
Loading...
Loading
Contract Name:
ListenerFactory
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSE pragma solidity ^0.8.9; import "./ListenerAccessControl.sol"; import "./ListenerDB.sol"; contract ListenerFactory { string public name; string public symbol; event AccessControlSet( address indexed oldAccessControl, address indexed newAccessControl, address updater ); event ListenerFactoryDeployed( address pkpAddress, address listenerAccessControlAddress, address listenerDBAddress, address indexed deployer, uint256 timestamp ); mapping(address => address[]) private _deployedListenerAccessControl; mapping(address => address[]) private _mintedPKPs; mapping(address => address[]) private _deployedListenerDB; constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } function deployFromFactory( address _mintedPKPAddress, string memory _mintedPKPPublicKey, uint256 _mintedPKPTokenId ) public { address _instantiatorAddress = msg.sender; // Deploy ListenerAccessControl ListenerAccessControl newListenerAccessControl = new ListenerAccessControl( "ListenerAccessControl", "LAC", _instantiatorAddress ); // Deploy ListenerDB ListenerDB newListenerDB = new ListenerDB( "ListenerDB", "LDB", _mintedPKPPublicKey, address(newListenerAccessControl), _mintedPKPAddress, _mintedPKPTokenId ); _mintedPKPs[_instantiatorAddress].push(_mintedPKPAddress); _deployedListenerDB[_instantiatorAddress].push(address(newListenerDB)); _deployedListenerAccessControl[_instantiatorAddress].push( address(newListenerAccessControl) ); emit ListenerFactoryDeployed( _mintedPKPAddress, address(newListenerAccessControl), address(newListenerDB), msg.sender, block.timestamp ); } function getMintedPKPs( address _deployerAddress ) public view returns (address[] memory) { return _mintedPKPs[_deployerAddress]; } function getDeployedListenerAccessControl( address _deployerAddress ) public view returns (address[] memory) { return _deployedListenerAccessControl[_deployerAddress]; } function getDeployedListenerDB( address _deployerAddress ) public view returns (address[] memory) { return _deployedListenerDB[_deployerAddress]; } }
// SPDX-License-Identifier: UNLICENSE pragma solidity ^0.8.9; contract ListenerAccessControl { string public symbol; string public name; mapping(address => bool) private admins; event AdminAdded(address indexed admin); event AdminRemoved(address indexed admin); modifier onlyAdmin() { require( admins[msg.sender], "LegendAccessControl: Only admins can perform this action" ); _; } constructor( string memory _name, string memory _symbol, address _externalOwner ) { symbol = _symbol; name = _name; admins[_externalOwner] = true; } function addAdmin(address _admin) external onlyAdmin { require( !admins[_admin] && _admin != msg.sender, "Cannot add existing admin or yourself" ); admins[_admin] = true; emit AdminAdded(_admin); } function removeAdmin(address _admin) external onlyAdmin { require(_admin != msg.sender, "Cannot remove yourself as admin"); admins[_admin] = false; emit AdminRemoved(_admin); } function isAdmin(address _address) public view returns (bool) { return admins[_address]; } }
// SPDX-License-Identifier: UNLICENSE pragma solidity ^0.8.9; import "./ListenerAccessControl.sol"; contract ListenerDB { string public name; string public symbol; string private _pkpAssignedPublicKey; address private _pkpAssignedAddress; uint256 private _pkpAssignedTokenId; ListenerAccessControl private _listenerAccessControl; struct Circuit { string _id; string _circuitInformation; string _status; address _instantiatorAddress; } modifier onlyAdmin(address _sender) { require( _listenerAccessControl.isAdmin(_sender), "Only Admin can update the assigned PKP Address." ); _; } modifier onlyPKP(address _sender) { require( _sender == _pkpAssignedAddress, "Only assigned PKP can perform this function." ); _; } // address to Circuit and Log strings mapping(address => mapping(string => Circuit)) private _addressIdToCircuit; mapping(address => mapping(string => string[])) private _addressIdToLogs; event PKPSet( address indexed oldPKPAddress, address indexed newPKPAddress, address updater ); event LogAdded( string indexed circuitId, string[] stringifiedLogs, address instantiatorAddress ); event CircuitAdded( string indexed circuitId, string circuitInformation, address instantiatorAddress ); event CircuitInterrupted( string indexed circuitId, address instantiatorAddress ); event CircuitCompleted( string indexed circuitId, address instantiatorAddress ); constructor( string memory _name, string memory _symbol, string memory _pkpPublicKey, address _listenerAccessControlAddress, address _pkpAddress, uint256 _pkpTokenId ) { name = _name; symbol = _symbol; _listenerAccessControl = ListenerAccessControl( _listenerAccessControlAddress ); _pkpAssignedAddress = _pkpAddress; _pkpAssignedPublicKey = _pkpPublicKey; _pkpAssignedTokenId = _pkpTokenId; } function addCircuitOnChain( string memory _circuitId, string memory _circuitInformation, address _instantiatorAddress ) external onlyPKP(msg.sender) { Circuit memory newCircuit = Circuit({ _id: _circuitId, _circuitInformation: _circuitInformation, _status: "running", _instantiatorAddress: _instantiatorAddress }); _addressIdToCircuit[_instantiatorAddress][_circuitId] = (newCircuit); emit CircuitAdded( _circuitId, _circuitInformation, _instantiatorAddress ); } function addLogToCircuit( address _instantiatorAddress, string memory _circuitId, string[] memory _stringifiedLogs ) external onlyPKP(msg.sender) { for (uint256 i; i < _stringifiedLogs.length; i++) { _addressIdToLogs[_instantiatorAddress][_circuitId].push( _stringifiedLogs[i] ); } emit LogAdded(_circuitId, _stringifiedLogs, _instantiatorAddress); } function interruptCircuit( string memory _circuitId, address _instantiatorAddress ) external onlyPKP(msg.sender) { _addressIdToCircuit[_instantiatorAddress][_circuitId] ._status = "interrupted"; emit CircuitInterrupted(_circuitId, _instantiatorAddress); } function completeCircuit( string memory _circuitId, address _instantiatorAddress ) external onlyPKP(msg.sender) { _addressIdToCircuit[_instantiatorAddress][_circuitId] ._status = "completed"; emit CircuitCompleted(_circuitId, _instantiatorAddress); } function getPKPAssignedAddress() public view returns (address) { return (_pkpAssignedAddress); } function getPKPAssignedPublicKey() public view returns (string memory) { return (_pkpAssignedPublicKey); } function getPKPAssignedTokenId() public view returns (uint256) { return (_pkpAssignedTokenId); } function getListenerAccessControl() public view returns (address) { return (address(_listenerAccessControl)); } function getCircuitStatus( string memory _circuitId, address _instantiatorAddress ) public view returns (string memory) { return (_addressIdToCircuit[_instantiatorAddress][_circuitId]._status); } function getCircuitInformation( string memory _circuitId, address _instantiatorAddress ) public view returns (string memory) { return ( _addressIdToCircuit[_instantiatorAddress][_circuitId] ._circuitInformation ); } function getCircuitLogs( string memory _circuitId, address _instantiatorAddress ) public view returns (string[] memory) { return (_addressIdToLogs[_instantiatorAddress][_circuitId]); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAccessControl","type":"address"},{"indexed":true,"internalType":"address","name":"newAccessControl","type":"address"},{"indexed":false,"internalType":"address","name":"updater","type":"address"}],"name":"AccessControlSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pkpAddress","type":"address"},{"indexed":false,"internalType":"address","name":"listenerAccessControlAddress","type":"address"},{"indexed":false,"internalType":"address","name":"listenerDBAddress","type":"address"},{"indexed":true,"internalType":"address","name":"deployer","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ListenerFactoryDeployed","type":"event"},{"inputs":[{"internalType":"address","name":"_mintedPKPAddress","type":"address"},{"internalType":"string","name":"_mintedPKPPublicKey","type":"string"},{"internalType":"uint256","name":"_mintedPKPTokenId","type":"uint256"}],"name":"deployFromFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_deployerAddress","type":"address"}],"name":"getDeployedListenerAccessControl","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_deployerAddress","type":"address"}],"name":"getDeployedListenerDB","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_deployerAddress","type":"address"}],"name":"getMintedPKPs","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620023f5380380620023f58339810160408190526200003491620001db565b81516200004990600090602085019062000068565b5080516200005f90600190602084019062000068565b50505062000282565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b602082108114156200027c57634e487b7160e01b600052602260045260246000fd5b50919050565b61216380620002926000396000f3fe60806040523480156200001157600080fd5b50600436106200006a5760003560e01c806306fdde03146200006f578063676e722b14620000915780636d94962f14620000aa5780638056266614620000d057806395d89b4114620000e7578063fc215fee14620000f1575b600080fd5b6200007962000108565b6040516200008891906200052a565b60405180910390f35b620000a8620000a236600462000579565b6200019e565b005b620000c1620000bb36600462000650565b6200034b565b6040516200008891906200066e565b620000c1620000e136600462000650565b620003c3565b6200007962000439565b620000c16200010236600462000650565b62000448565b600080546200011790620006bd565b80601f01602080910402602001604051908101604052809291908181526020018280546200014590620006bd565b8015620001965780601f106200016a5761010080835404028352916020019162000196565b820191906000526020600020905b8154815290600101906020018083116200017857829003601f168201915b505050505081565b6000339050600081604051620001b490620004be565b606080825260159082015274131a5cdd195b995c9058d8d95cdcd0dbdb9d1c9bdb605a1b608082015260a060208201819052600390820152624c414360e81b60c08201526001600160a01b03909116604082015260e001604051809103906000f08015801562000228573d6000803e3d6000fd5b5090506000848287866040516200023f90620004cc565b6200024e9493929190620006fa565b604051809103906000f0801580156200026b573d6000803e3d6000fd5b506001600160a01b0384811660008181526003602090815260408083208054600180820183559185528385200180548e88166001600160a01b0319918216811790925586865260048552838620805480850182559087528587200180548a8a16908316811790915596865260028552838620805493840181558652948490209091018054968a169690941686179093558051928352908201939093529182015242606082015290915033907f0ebdb21180f7b89fd23d919e369c5f3ec9d39b619d7a26d96a69853b9ceee2379060800160405180910390a2505050505050565b6001600160a01b038116600090815260026020908152604091829020805483518184028101840190945280845260609392830182828015620003b757602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000398575b50505050509050919050565b6001600160a01b038116600090815260046020908152604091829020805483518184028101840190945280845260609392830182828015620003b7576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311620003985750505050509050919050565b600180546200011790620006bd565b6001600160a01b038116600090815260036020908152604091829020805483518184028101840190945280845260609392830182828015620003b7576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311620003985750505050509050919050565b610760806200077383390190565b61125b8062000ed383390190565b6000815180845260005b818110156200050257602081850181015186830182015201620004e4565b8181111562000515576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006200053f6020830184620004da565b9392505050565b80356001600160a01b03811681146200055e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156200058f57600080fd5b6200059a8462000546565b9250602084013567ffffffffffffffff80821115620005b857600080fd5b818601915086601f830112620005cd57600080fd5b813581811115620005e257620005e262000563565b604051601f8201601f19908116603f011681019083821181831017156200060d576200060d62000563565b816040528281528960208487010111156200062757600080fd5b826020860160208301376000602084830101528096505050505050604084013590509250925092565b6000602082840312156200066357600080fd5b6200053f8262000546565b6020808252825182820181905260009190848201906040850190845b81811015620006b15783516001600160a01b0316835292840192918401916001016200068a565b50909695505050505050565b600181811c90821680620006d257607f821691505b60208210811415620006f457634e487b7160e01b600052602260045260246000fd5b50919050565b60c08152600a60c0820152692634b9ba32b732b9222160b11b60e08201526000610100806020840152600381840152506226222160e91b6101208301526101408060408401526200074e81840188620004da565b6001600160a01b0396871660608501529490951660808301525060a001529291505056fe608060405234801561001057600080fd5b5060405161076038038061076083398101604081905261002f916101dc565b8151610042906000906020850190610081565b508251610056906001906020860190610081565b506001600160a01b03166000908152600260205260409020805460ff191660011790555061029c9050565b82805461008d90610261565b90600052602060002090601f0160209004810192826100af57600085556100f5565b82601f106100c857805160ff19168380011785556100f5565b828001600101855582156100f5579182015b828111156100f55782518255916020019190600101906100da565b50610101929150610105565b5090565b5b808211156101015760008155600101610106565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261014157600080fd5b81516001600160401b038082111561015b5761015b61011a565b604051601f8301601f19908116603f011681019082821181831017156101835761018361011a565b8160405283815260209250868385880101111561019f57600080fd5b600091505b838210156101c157858201830151818301840152908201906101a4565b838211156101d25760008385830101525b9695505050505050565b6000806000606084860312156101f157600080fd5b83516001600160401b038082111561020857600080fd5b61021487838801610130565b9450602086015191508082111561022a57600080fd5b5061023786828701610130565b604086015190935090506001600160a01b038116811461025657600080fd5b809150509250925092565b600181811c9082168061027557607f821691505b6020821081141561029657634e487b7160e01b600052602260045260246000fd5b50919050565b6104b5806102ab6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806306fdde031461005c5780631785f53c1461007a57806324d7806c1461008f57806370480275146100cb57806395d89b41146100de575b600080fd5b6100646100e6565b6040516100719190610362565b60405180910390f35b61008d6100883660046103b7565b610174565b005b6100bb61009d3660046103b7565b6001600160a01b031660009081526002602052604090205460ff1690565b6040519015158152602001610071565b61008d6100d93660046103b7565b61024e565b610064610355565b600180546100f3906103e7565b80601f016020809104026020016040519081016040528092919081815260200182805461011f906103e7565b801561016c5780601f106101415761010080835404028352916020019161016c565b820191906000526020600020905b81548152906001019060200180831161014f57829003601f168201915b505050505081565b3360009081526002602052604090205460ff166101ac5760405162461bcd60e51b81526004016101a390610422565b60405180910390fd5b6001600160a01b0381163314156102055760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f742072656d6f766520796f757273656c662061732061646d696e0060448201526064016101a3565b6001600160a01b038116600081815260026020526040808220805460ff19169055517fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f9190a250565b3360009081526002602052604090205460ff1661027d5760405162461bcd60e51b81526004016101a390610422565b6001600160a01b03811660009081526002602052604090205460ff161580156102af57506001600160a01b0381163314155b6103095760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f7420616464206578697374696e672061646d696e206f7220796f756044820152643939b2b63360d91b60648201526084016101a3565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399190a250565b600080546100f3906103e7565b600060208083528351808285015260005b8181101561038f57858101830151858201604001528201610373565b818111156103a1576000604083870101525b50601f01601f1916929092016040019392505050565b6000602082840312156103c957600080fd5b81356001600160a01b03811681146103e057600080fd5b9392505050565b600181811c908216806103fb57607f821691505b6020821081141561041c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526038908201527f4c6567656e64416363657373436f6e74726f6c3a204f6e6c792061646d696e7360408201527f2063616e20706572666f726d207468697320616374696f6e000000000000000060608201526080019056fea26469706673582212204da78aa1362c6f03b9f2d99c96c4fcfdbbcdfd4c347e1321deebf3e88849a2fa64736f6c6343000809003360806040523480156200001157600080fd5b506040516200125b3803806200125b833981016040819052620000349162000245565b855162000049906000906020890190620000b5565b5084516200005f906001906020880190620000b5565b50600580546001600160a01b038086166001600160a01b03199283161790925560038054928516929091169190911790558351620000a5906002906020870190620000b5565b5060045550620003419350505050565b828054620000c39062000304565b90600052602060002090601f016020900481019282620000e7576000855562000132565b82601f106200010257805160ff191683800117855562000132565b8280016001018555821562000132579182015b828111156200013257825182559160200191906001019062000115565b506200014092915062000144565b5090565b5b8082111562000140576000815560010162000145565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018357600080fd5b81516001600160401b0380821115620001a057620001a06200015b565b604051601f8301601f19908116603f01168101908282118183101715620001cb57620001cb6200015b565b81604052838152602092508683858801011115620001e857600080fd5b600091505b838210156200020c5785820183015181830184015290820190620001ed565b838211156200021e5760008385830101525b9695505050505050565b80516001600160a01b03811681146200024057600080fd5b919050565b60008060008060008060c087890312156200025f57600080fd5b86516001600160401b03808211156200027757600080fd5b620002858a838b0162000171565b975060208901519150808211156200029c57600080fd5b620002aa8a838b0162000171565b96506040890151915080821115620002c157600080fd5b50620002d089828a0162000171565b945050620002e16060880162000228565b9250620002f16080880162000228565b915060a087015190509295509295509295565b600181811c908216806200031957607f821691505b602082108114156200033b57634e487b7160e01b600052602260045260246000fd5b50919050565b610f0a80620003516000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806344bc0afb1161008c57806395d89b411161006657806395d89b411461019e578063a24dc9c2146101a6578063bedcd0f2146101b9578063e43578cc146101ca57600080fd5b806344bc0afb14610167578063479ca60a1461017a5780634d7745aa1461018d57600080fd5b806306fdde03146100d4578063098462e4146100f257806315bad5fc146101075780632710e75a1461012c5780632f30daf91461013f5780633495e1b01461015f575b600080fd5b6100dc6101dd565b6040516100e99190610aa7565b60405180910390f35b610105610100366004610b94565b61026b565b005b6005546001600160a01b03165b6040516001600160a01b0390911681526020016100e9565b61010561013a366004610be2565b610373565b61015261014d366004610b94565b61048d565b6040516100e99190610d2e565b6100dc61059e565b6100dc610175366004610b94565b610630565b610105610188366004610b94565b6106fd565b6003546001600160a01b0316610114565b6100dc6107f1565b6101056101b4366004610d41565b6107fe565b6004546040519081526020016100e9565b6100dc6101d8366004610b94565b61096b565b600080546101ea90610db5565b80601f016020809104026020016040519081016040528092919081815260200182805461021690610db5565b80156102635780601f1061023857610100808354040283529160200191610263565b820191906000526020600020905b81548152906001019060200180831161024657829003601f168201915b505050505081565b60035433906001600160a01b031681146102a05760405162461bcd60e51b815260040161029790610df0565b60405180910390fd5b6040518060400160405280600b81526020016a1a5b9d195c9c9d5c1d195960aa1b81525060066000846001600160a01b03166001600160a01b03168152602001908152602001600020846040516102f79190610e3c565b9081526020016040518091039020600201908051906020019061031b9291906109b2565b508260405161032a9190610e3c565b6040519081900381206001600160a01b0384168252907f5ad66988e980609c4179da9a752a5f0370cb809ce23d94b39f4279b511d2d7a9906020015b60405180910390a2505050565b60035433906001600160a01b0316811461039f5760405162461bcd60e51b815260040161029790610df0565b60005b8251811015610437576001600160a01b0385166000908152600760205260409081902090516103d2908690610e3c565b90815260200160405180910390208382815181106103f2576103f2610e58565b6020908102919091018101518254600181018455600093845292829020815161042494919091019291909101906109b2565b508061042f81610e6e565b9150506103a2565b50826040516104469190610e3c565b60405180910390207f71964e393a163294867645fa7f29655172f1a8c9ce5f25956622a28c85a834ab838660405161047f929190610e97565b60405180910390a250505050565b6001600160a01b038116600090815260076020526040908190209051606091906104b8908590610e3c565b9081526020016040518091039020805480602002602001604051908101604052809291908181526020016000905b8282101561059257838290600052602060002001805461050590610db5565b80601f016020809104026020016040519081016040528092919081815260200182805461053190610db5565b801561057e5780601f106105535761010080835404028352916020019161057e565b820191906000526020600020905b81548152906001019060200180831161056157829003601f168201915b5050505050815260200190600101906104e6565b50505050905092915050565b6060600280546105ad90610db5565b80601f01602080910402602001604051908101604052809291908181526020018280546105d990610db5565b80156106265780601f106105fb57610100808354040283529160200191610626565b820191906000526020600020905b81548152906001019060200180831161060957829003601f168201915b5050505050905090565b6001600160a01b0381166000908152600660205260409081902090516060919061065b908590610e3c565b9081526020016040518091039020600101805461067790610db5565b80601f01602080910402602001604051908101604052809291908181526020018280546106a390610db5565b80156106f05780601f106106c5576101008083540402835291602001916106f0565b820191906000526020600020905b8154815290600101906020018083116106d357829003601f168201915b5050505050905092915050565b60035433906001600160a01b031681146107295760405162461bcd60e51b815260040161029790610df0565b6040518060400160405280600981526020016818dbdb5c1b195d195960ba1b81525060066000846001600160a01b03166001600160a01b031681526020019081526020016000208460405161077e9190610e3c565b908152602001604051809103902060020190805190602001906107a29291906109b2565b50826040516107b19190610e3c565b6040519081900381206001600160a01b0384168252907f9ff8250d0029443ccd787317723f8a5217eaa976f75a78cf59b56e5b6a35770790602001610366565b600180546101ea90610db5565b60035433906001600160a01b0316811461082a5760405162461bcd60e51b815260040161029790610df0565b60408051608081018252858152602080820186905282518084018452600781526672756e6e696e6760c81b81830152828401526001600160a01b038516606083018190526000908152600690915282902091519091829161088c908890610e3c565b908152602001604051809103902060008201518160000190805190602001906108b69291906109b2565b5060208281015180516108cf92600185019201906109b2565b50604082015180516108eb9160028401916020909101906109b2565b5060609190910151600390910180546001600160a01b0319166001600160a01b03909216919091179055604051610923908690610e3c565b60405180910390207fcc473e4a0cb018127b3bcd010410b83e20e0c9b698f56a94846fb68eb4d56549858560405161095c929190610ec1565b60405180910390a25050505050565b6001600160a01b03811660009081526006602052604090819020905160609190610996908590610e3c565b9081526020016040518091039020600201805461067790610db5565b8280546109be90610db5565b90600052602060002090601f0160209004810192826109e05760008555610a26565b82601f106109f957805160ff1916838001178555610a26565b82800160010185558215610a26579182015b82811115610a26578251825591602001919060010190610a0b565b50610a32929150610a36565b5090565b5b80821115610a325760008155600101610a37565b60005b83811015610a66578181015183820152602001610a4e565b83811115610a75576000848401525b50505050565b60008151808452610a93816020860160208601610a4b565b601f01601f19169290920160200192915050565b602081526000610aba6020830184610a7b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b0057610b00610ac1565b604052919050565b600082601f830112610b1957600080fd5b813567ffffffffffffffff811115610b3357610b33610ac1565b610b46601f8201601f1916602001610ad7565b818152846020838601011115610b5b57600080fd5b816020850160208301376000918101602001919091529392505050565b80356001600160a01b0381168114610b8f57600080fd5b919050565b60008060408385031215610ba757600080fd5b823567ffffffffffffffff811115610bbe57600080fd5b610bca85828601610b08565b925050610bd960208401610b78565b90509250929050565b600080600060608486031215610bf757600080fd5b610c0084610b78565b925060208085013567ffffffffffffffff80821115610c1e57600080fd5b610c2a88838901610b08565b94506040870135915080821115610c4057600080fd5b818701915087601f830112610c5457600080fd5b813581811115610c6657610c66610ac1565b8060051b610c75858201610ad7565b918252838101850191858101908b841115610c8f57600080fd5b86860192505b83831015610ccb57823585811115610cad5760008081fd5b610cbb8d89838a0101610b08565b8352509186019190860190610c95565b809750505050505050509250925092565b6000815180845260208085019450848260051b860182860160005b85811015610d21578383038952610d0f838351610a7b565b98850198925090840190600101610cf7565b5090979650505050505050565b602081526000610aba6020830184610cdc565b600080600060608486031215610d5657600080fd5b833567ffffffffffffffff80821115610d6e57600080fd5b610d7a87838801610b08565b94506020860135915080821115610d9057600080fd5b50610d9d86828701610b08565b925050610dac60408501610b78565b90509250925092565b600181811c90821680610dc957607f821691505b60208210811415610dea57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602c908201527f4f6e6c792061737369676e656420504b502063616e20706572666f726d20746860408201526b34b990333ab731ba34b7b71760a11b606082015260800190565b60008251610e4e818460208701610a4b565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610e9057634e487b7160e01b600052601160045260246000fd5b5060010190565b604081526000610eaa6040830185610cdc565b905060018060a01b03831660208301529392505050565b604081526000610eaa6040830185610a7b56fea26469706673582212204bc488b08171f0d55d7ae8c4b3d2b323a1939e9300120bf5c462bde9fdf2150c64736f6c63430008090033a264697066735822122060a542b77867f50fbeb3e6aa90851ef761abcaea7d307fab186ce2934e69da0064736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4c697374656e6572466163746f7279000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c46414354000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040523480156200001157600080fd5b50600436106200006a5760003560e01c806306fdde03146200006f578063676e722b14620000915780636d94962f14620000aa5780638056266614620000d057806395d89b4114620000e7578063fc215fee14620000f1575b600080fd5b6200007962000108565b6040516200008891906200052a565b60405180910390f35b620000a8620000a236600462000579565b6200019e565b005b620000c1620000bb36600462000650565b6200034b565b6040516200008891906200066e565b620000c1620000e136600462000650565b620003c3565b6200007962000439565b620000c16200010236600462000650565b62000448565b600080546200011790620006bd565b80601f01602080910402602001604051908101604052809291908181526020018280546200014590620006bd565b8015620001965780601f106200016a5761010080835404028352916020019162000196565b820191906000526020600020905b8154815290600101906020018083116200017857829003601f168201915b505050505081565b6000339050600081604051620001b490620004be565b606080825260159082015274131a5cdd195b995c9058d8d95cdcd0dbdb9d1c9bdb605a1b608082015260a060208201819052600390820152624c414360e81b60c08201526001600160a01b03909116604082015260e001604051809103906000f08015801562000228573d6000803e3d6000fd5b5090506000848287866040516200023f90620004cc565b6200024e9493929190620006fa565b604051809103906000f0801580156200026b573d6000803e3d6000fd5b506001600160a01b0384811660008181526003602090815260408083208054600180820183559185528385200180548e88166001600160a01b0319918216811790925586865260048552838620805480850182559087528587200180548a8a16908316811790915596865260028552838620805493840181558652948490209091018054968a169690941686179093558051928352908201939093529182015242606082015290915033907f0ebdb21180f7b89fd23d919e369c5f3ec9d39b619d7a26d96a69853b9ceee2379060800160405180910390a2505050505050565b6001600160a01b038116600090815260026020908152604091829020805483518184028101840190945280845260609392830182828015620003b757602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000398575b50505050509050919050565b6001600160a01b038116600090815260046020908152604091829020805483518184028101840190945280845260609392830182828015620003b7576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311620003985750505050509050919050565b600180546200011790620006bd565b6001600160a01b038116600090815260036020908152604091829020805483518184028101840190945280845260609392830182828015620003b7576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311620003985750505050509050919050565b610760806200077383390190565b61125b8062000ed383390190565b6000815180845260005b818110156200050257602081850181015186830182015201620004e4565b8181111562000515576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006200053f6020830184620004da565b9392505050565b80356001600160a01b03811681146200055e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156200058f57600080fd5b6200059a8462000546565b9250602084013567ffffffffffffffff80821115620005b857600080fd5b818601915086601f830112620005cd57600080fd5b813581811115620005e257620005e262000563565b604051601f8201601f19908116603f011681019083821181831017156200060d576200060d62000563565b816040528281528960208487010111156200062757600080fd5b826020860160208301376000602084830101528096505050505050604084013590509250925092565b6000602082840312156200066357600080fd5b6200053f8262000546565b6020808252825182820181905260009190848201906040850190845b81811015620006b15783516001600160a01b0316835292840192918401916001016200068a565b50909695505050505050565b600181811c90821680620006d257607f821691505b60208210811415620006f457634e487b7160e01b600052602260045260246000fd5b50919050565b60c08152600a60c0820152692634b9ba32b732b9222160b11b60e08201526000610100806020840152600381840152506226222160e91b6101208301526101408060408401526200074e81840188620004da565b6001600160a01b0396871660608501529490951660808301525060a001529291505056fe608060405234801561001057600080fd5b5060405161076038038061076083398101604081905261002f916101dc565b8151610042906000906020850190610081565b508251610056906001906020860190610081565b506001600160a01b03166000908152600260205260409020805460ff191660011790555061029c9050565b82805461008d90610261565b90600052602060002090601f0160209004810192826100af57600085556100f5565b82601f106100c857805160ff19168380011785556100f5565b828001600101855582156100f5579182015b828111156100f55782518255916020019190600101906100da565b50610101929150610105565b5090565b5b808211156101015760008155600101610106565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261014157600080fd5b81516001600160401b038082111561015b5761015b61011a565b604051601f8301601f19908116603f011681019082821181831017156101835761018361011a565b8160405283815260209250868385880101111561019f57600080fd5b600091505b838210156101c157858201830151818301840152908201906101a4565b838211156101d25760008385830101525b9695505050505050565b6000806000606084860312156101f157600080fd5b83516001600160401b038082111561020857600080fd5b61021487838801610130565b9450602086015191508082111561022a57600080fd5b5061023786828701610130565b604086015190935090506001600160a01b038116811461025657600080fd5b809150509250925092565b600181811c9082168061027557607f821691505b6020821081141561029657634e487b7160e01b600052602260045260246000fd5b50919050565b6104b5806102ab6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806306fdde031461005c5780631785f53c1461007a57806324d7806c1461008f57806370480275146100cb57806395d89b41146100de575b600080fd5b6100646100e6565b6040516100719190610362565b60405180910390f35b61008d6100883660046103b7565b610174565b005b6100bb61009d3660046103b7565b6001600160a01b031660009081526002602052604090205460ff1690565b6040519015158152602001610071565b61008d6100d93660046103b7565b61024e565b610064610355565b600180546100f3906103e7565b80601f016020809104026020016040519081016040528092919081815260200182805461011f906103e7565b801561016c5780601f106101415761010080835404028352916020019161016c565b820191906000526020600020905b81548152906001019060200180831161014f57829003601f168201915b505050505081565b3360009081526002602052604090205460ff166101ac5760405162461bcd60e51b81526004016101a390610422565b60405180910390fd5b6001600160a01b0381163314156102055760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f742072656d6f766520796f757273656c662061732061646d696e0060448201526064016101a3565b6001600160a01b038116600081815260026020526040808220805460ff19169055517fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f9190a250565b3360009081526002602052604090205460ff1661027d5760405162461bcd60e51b81526004016101a390610422565b6001600160a01b03811660009081526002602052604090205460ff161580156102af57506001600160a01b0381163314155b6103095760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f7420616464206578697374696e672061646d696e206f7220796f756044820152643939b2b63360d91b60648201526084016101a3565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399190a250565b600080546100f3906103e7565b600060208083528351808285015260005b8181101561038f57858101830151858201604001528201610373565b818111156103a1576000604083870101525b50601f01601f1916929092016040019392505050565b6000602082840312156103c957600080fd5b81356001600160a01b03811681146103e057600080fd5b9392505050565b600181811c908216806103fb57607f821691505b6020821081141561041c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526038908201527f4c6567656e64416363657373436f6e74726f6c3a204f6e6c792061646d696e7360408201527f2063616e20706572666f726d207468697320616374696f6e000000000000000060608201526080019056fea26469706673582212204da78aa1362c6f03b9f2d99c96c4fcfdbbcdfd4c347e1321deebf3e88849a2fa64736f6c6343000809003360806040523480156200001157600080fd5b506040516200125b3803806200125b833981016040819052620000349162000245565b855162000049906000906020890190620000b5565b5084516200005f906001906020880190620000b5565b50600580546001600160a01b038086166001600160a01b03199283161790925560038054928516929091169190911790558351620000a5906002906020870190620000b5565b5060045550620003419350505050565b828054620000c39062000304565b90600052602060002090601f016020900481019282620000e7576000855562000132565b82601f106200010257805160ff191683800117855562000132565b8280016001018555821562000132579182015b828111156200013257825182559160200191906001019062000115565b506200014092915062000144565b5090565b5b8082111562000140576000815560010162000145565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018357600080fd5b81516001600160401b0380821115620001a057620001a06200015b565b604051601f8301601f19908116603f01168101908282118183101715620001cb57620001cb6200015b565b81604052838152602092508683858801011115620001e857600080fd5b600091505b838210156200020c5785820183015181830184015290820190620001ed565b838211156200021e5760008385830101525b9695505050505050565b80516001600160a01b03811681146200024057600080fd5b919050565b60008060008060008060c087890312156200025f57600080fd5b86516001600160401b03808211156200027757600080fd5b620002858a838b0162000171565b975060208901519150808211156200029c57600080fd5b620002aa8a838b0162000171565b96506040890151915080821115620002c157600080fd5b50620002d089828a0162000171565b945050620002e16060880162000228565b9250620002f16080880162000228565b915060a087015190509295509295509295565b600181811c908216806200031957607f821691505b602082108114156200033b57634e487b7160e01b600052602260045260246000fd5b50919050565b610f0a80620003516000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806344bc0afb1161008c57806395d89b411161006657806395d89b411461019e578063a24dc9c2146101a6578063bedcd0f2146101b9578063e43578cc146101ca57600080fd5b806344bc0afb14610167578063479ca60a1461017a5780634d7745aa1461018d57600080fd5b806306fdde03146100d4578063098462e4146100f257806315bad5fc146101075780632710e75a1461012c5780632f30daf91461013f5780633495e1b01461015f575b600080fd5b6100dc6101dd565b6040516100e99190610aa7565b60405180910390f35b610105610100366004610b94565b61026b565b005b6005546001600160a01b03165b6040516001600160a01b0390911681526020016100e9565b61010561013a366004610be2565b610373565b61015261014d366004610b94565b61048d565b6040516100e99190610d2e565b6100dc61059e565b6100dc610175366004610b94565b610630565b610105610188366004610b94565b6106fd565b6003546001600160a01b0316610114565b6100dc6107f1565b6101056101b4366004610d41565b6107fe565b6004546040519081526020016100e9565b6100dc6101d8366004610b94565b61096b565b600080546101ea90610db5565b80601f016020809104026020016040519081016040528092919081815260200182805461021690610db5565b80156102635780601f1061023857610100808354040283529160200191610263565b820191906000526020600020905b81548152906001019060200180831161024657829003601f168201915b505050505081565b60035433906001600160a01b031681146102a05760405162461bcd60e51b815260040161029790610df0565b60405180910390fd5b6040518060400160405280600b81526020016a1a5b9d195c9c9d5c1d195960aa1b81525060066000846001600160a01b03166001600160a01b03168152602001908152602001600020846040516102f79190610e3c565b9081526020016040518091039020600201908051906020019061031b9291906109b2565b508260405161032a9190610e3c565b6040519081900381206001600160a01b0384168252907f5ad66988e980609c4179da9a752a5f0370cb809ce23d94b39f4279b511d2d7a9906020015b60405180910390a2505050565b60035433906001600160a01b0316811461039f5760405162461bcd60e51b815260040161029790610df0565b60005b8251811015610437576001600160a01b0385166000908152600760205260409081902090516103d2908690610e3c565b90815260200160405180910390208382815181106103f2576103f2610e58565b6020908102919091018101518254600181018455600093845292829020815161042494919091019291909101906109b2565b508061042f81610e6e565b9150506103a2565b50826040516104469190610e3c565b60405180910390207f71964e393a163294867645fa7f29655172f1a8c9ce5f25956622a28c85a834ab838660405161047f929190610e97565b60405180910390a250505050565b6001600160a01b038116600090815260076020526040908190209051606091906104b8908590610e3c565b9081526020016040518091039020805480602002602001604051908101604052809291908181526020016000905b8282101561059257838290600052602060002001805461050590610db5565b80601f016020809104026020016040519081016040528092919081815260200182805461053190610db5565b801561057e5780601f106105535761010080835404028352916020019161057e565b820191906000526020600020905b81548152906001019060200180831161056157829003601f168201915b5050505050815260200190600101906104e6565b50505050905092915050565b6060600280546105ad90610db5565b80601f01602080910402602001604051908101604052809291908181526020018280546105d990610db5565b80156106265780601f106105fb57610100808354040283529160200191610626565b820191906000526020600020905b81548152906001019060200180831161060957829003601f168201915b5050505050905090565b6001600160a01b0381166000908152600660205260409081902090516060919061065b908590610e3c565b9081526020016040518091039020600101805461067790610db5565b80601f01602080910402602001604051908101604052809291908181526020018280546106a390610db5565b80156106f05780601f106106c5576101008083540402835291602001916106f0565b820191906000526020600020905b8154815290600101906020018083116106d357829003601f168201915b5050505050905092915050565b60035433906001600160a01b031681146107295760405162461bcd60e51b815260040161029790610df0565b6040518060400160405280600981526020016818dbdb5c1b195d195960ba1b81525060066000846001600160a01b03166001600160a01b031681526020019081526020016000208460405161077e9190610e3c565b908152602001604051809103902060020190805190602001906107a29291906109b2565b50826040516107b19190610e3c565b6040519081900381206001600160a01b0384168252907f9ff8250d0029443ccd787317723f8a5217eaa976f75a78cf59b56e5b6a35770790602001610366565b600180546101ea90610db5565b60035433906001600160a01b0316811461082a5760405162461bcd60e51b815260040161029790610df0565b60408051608081018252858152602080820186905282518084018452600781526672756e6e696e6760c81b81830152828401526001600160a01b038516606083018190526000908152600690915282902091519091829161088c908890610e3c565b908152602001604051809103902060008201518160000190805190602001906108b69291906109b2565b5060208281015180516108cf92600185019201906109b2565b50604082015180516108eb9160028401916020909101906109b2565b5060609190910151600390910180546001600160a01b0319166001600160a01b03909216919091179055604051610923908690610e3c565b60405180910390207fcc473e4a0cb018127b3bcd010410b83e20e0c9b698f56a94846fb68eb4d56549858560405161095c929190610ec1565b60405180910390a25050505050565b6001600160a01b03811660009081526006602052604090819020905160609190610996908590610e3c565b9081526020016040518091039020600201805461067790610db5565b8280546109be90610db5565b90600052602060002090601f0160209004810192826109e05760008555610a26565b82601f106109f957805160ff1916838001178555610a26565b82800160010185558215610a26579182015b82811115610a26578251825591602001919060010190610a0b565b50610a32929150610a36565b5090565b5b80821115610a325760008155600101610a37565b60005b83811015610a66578181015183820152602001610a4e565b83811115610a75576000848401525b50505050565b60008151808452610a93816020860160208601610a4b565b601f01601f19169290920160200192915050565b602081526000610aba6020830184610a7b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b0057610b00610ac1565b604052919050565b600082601f830112610b1957600080fd5b813567ffffffffffffffff811115610b3357610b33610ac1565b610b46601f8201601f1916602001610ad7565b818152846020838601011115610b5b57600080fd5b816020850160208301376000918101602001919091529392505050565b80356001600160a01b0381168114610b8f57600080fd5b919050565b60008060408385031215610ba757600080fd5b823567ffffffffffffffff811115610bbe57600080fd5b610bca85828601610b08565b925050610bd960208401610b78565b90509250929050565b600080600060608486031215610bf757600080fd5b610c0084610b78565b925060208085013567ffffffffffffffff80821115610c1e57600080fd5b610c2a88838901610b08565b94506040870135915080821115610c4057600080fd5b818701915087601f830112610c5457600080fd5b813581811115610c6657610c66610ac1565b8060051b610c75858201610ad7565b918252838101850191858101908b841115610c8f57600080fd5b86860192505b83831015610ccb57823585811115610cad5760008081fd5b610cbb8d89838a0101610b08565b8352509186019190860190610c95565b809750505050505050509250925092565b6000815180845260208085019450848260051b860182860160005b85811015610d21578383038952610d0f838351610a7b565b98850198925090840190600101610cf7565b5090979650505050505050565b602081526000610aba6020830184610cdc565b600080600060608486031215610d5657600080fd5b833567ffffffffffffffff80821115610d6e57600080fd5b610d7a87838801610b08565b94506020860135915080821115610d9057600080fd5b50610d9d86828701610b08565b925050610dac60408501610b78565b90509250925092565b600181811c90821680610dc957607f821691505b60208210811415610dea57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602c908201527f4f6e6c792061737369676e656420504b502063616e20706572666f726d20746860408201526b34b990333ab731ba34b7b71760a11b606082015260800190565b60008251610e4e818460208701610a4b565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610e9057634e487b7160e01b600052601160045260246000fd5b5060010190565b604081526000610eaa6040830185610cdc565b905060018060a01b03831660208301529392505050565b604081526000610eaa6040830185610a7b56fea26469706673582212204bc488b08171f0d55d7ae8c4b3d2b323a1939e9300120bf5c462bde9fdf2150c64736f6c63430008090033a264697066735822122060a542b77867f50fbeb3e6aa90851ef761abcaea7d307fab186ce2934e69da0064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4c697374656e6572466163746f7279000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c46414354000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): ListenerFactory
Arg [1] : _symbol (string): LFACT
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 4c697374656e6572466163746f72790000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 4c46414354000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.