Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AllocatorRegistry
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-FileCopyrightText: © 2023 Dai Foundation <www.daifoundation.org> // SPDX-License-Identifier: AGPL-3.0-or-later // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. pragma solidity ^0.8.16; contract AllocatorRegistry { // --- storage variables --- mapping(address => uint256) public wards; mapping(bytes32 => address) public buffers; // --- events --- event Rely(address indexed usr); event Deny(address indexed usr); event File(bytes32 indexed ilk, bytes32 indexed what, address data); // --- modifiers --- modifier auth() { require(wards[msg.sender] == 1, "AllocatorRegistry/not-authorized"); _; } // --- constructor --- constructor() { wards[msg.sender] = 1; emit Rely(msg.sender); } // --- administration --- function rely(address usr) external auth { wards[usr] = 1; emit Rely(usr); } function deny(address usr) external auth { wards[usr] = 0; emit Deny(usr); } function file(bytes32 ilk, bytes32 what, address data) external auth { if (what == "buffer") { buffers[ilk] = data; } else revert("AllocatorRegistry/file-unrecognized-param"); emit File(ilk, what, data); } }
{ "remappings": [ "ds-test/=lib/dss-test/lib/forge-std/lib/ds-test/src/", "dss-interfaces/=lib/dss-test/lib/dss-interfaces/src/", "dss-test/=lib/dss-test/src/", "forge-std/=lib/dss-test/lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"usr","type":"address"}],"name":"Deny","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"ilk","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"what","type":"bytes32"},{"indexed":false,"internalType":"address","name":"data","type":"address"}],"name":"File","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"usr","type":"address"}],"name":"Rely","type":"event"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"buffers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"address","name":"data","type":"address"}],"name":"file","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b503360008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a26103fc806100596000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806365fae35e1461005c5780636610bf7f146100715780639c52a7f1146100b7578063bf353dbb146100ca578063ebecb39d146100f8575b600080fd5b61006f61006a366004610321565b61010b565b005b61009a61007f366004610343565b6001602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61006f6100c5366004610321565b610188565b6100ea6100d8366004610321565b60006020819052908152604090205481565b6040519081526020016100ae565b61006f61010636600461035c565b6101fb565b336000908152602081905260409020546001146101435760405162461bcd60e51b815260040161013a90610391565b60405180910390fd5b6001600160a01b03811660008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a250565b336000908152602081905260409020546001146101b75760405162461bcd60e51b815260040161013a90610391565b6001600160a01b038116600081815260208190526040808220829055517f184450df2e323acec0ed3b5c7531b81f9b4cdef7914dfd4c0a4317416bb5251b9190a250565b3360009081526020819052604090205460011461022a5760405162461bcd60e51b815260040161013a90610391565b8165313ab33332b960d11b0361026657600083815260016020526040902080546001600160a01b0319166001600160a01b0383161790556102c0565b60405162461bcd60e51b815260206004820152602960248201527f416c6c6f6361746f7252656769737472792f66696c652d756e7265636f676e696044820152687a65642d706172616d60b81b606482015260840161013a565b6040516001600160a01b0382168152829084907f4ff2caaa972a7c6629ea01fae9c93d73cc307d13ea4c369f9bbbb7f9b7e9461d9060200160405180910390a3505050565b80356001600160a01b038116811461031c57600080fd5b919050565b60006020828403121561033357600080fd5b61033c82610305565b9392505050565b60006020828403121561035557600080fd5b5035919050565b60008060006060848603121561037157600080fd5b833592506020840135915061038860408501610305565b90509250925092565b6020808252818101527f416c6c6f6361746f7252656769737472792f6e6f742d617574686f72697a656460408201526060019056fea264697066735822122008ac4747fe7adc8e0637a44a0af38a311b3dcd1c138e3ae88353643b43e35d0564736f6c63430008150033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c806365fae35e1461005c5780636610bf7f146100715780639c52a7f1146100b7578063bf353dbb146100ca578063ebecb39d146100f8575b600080fd5b61006f61006a366004610321565b61010b565b005b61009a61007f366004610343565b6001602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61006f6100c5366004610321565b610188565b6100ea6100d8366004610321565b60006020819052908152604090205481565b6040519081526020016100ae565b61006f61010636600461035c565b6101fb565b336000908152602081905260409020546001146101435760405162461bcd60e51b815260040161013a90610391565b60405180910390fd5b6001600160a01b03811660008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a250565b336000908152602081905260409020546001146101b75760405162461bcd60e51b815260040161013a90610391565b6001600160a01b038116600081815260208190526040808220829055517f184450df2e323acec0ed3b5c7531b81f9b4cdef7914dfd4c0a4317416bb5251b9190a250565b3360009081526020819052604090205460011461022a5760405162461bcd60e51b815260040161013a90610391565b8165313ab33332b960d11b0361026657600083815260016020526040902080546001600160a01b0319166001600160a01b0383161790556102c0565b60405162461bcd60e51b815260206004820152602960248201527f416c6c6f6361746f7252656769737472792f66696c652d756e7265636f676e696044820152687a65642d706172616d60b81b606482015260840161013a565b6040516001600160a01b0382168152829084907f4ff2caaa972a7c6629ea01fae9c93d73cc307d13ea4c369f9bbbb7f9b7e9461d9060200160405180910390a3505050565b80356001600160a01b038116811461031c57600080fd5b919050565b60006020828403121561033357600080fd5b61033c82610305565b9392505050565b60006020828403121561035557600080fd5b5035919050565b60008060006060848603121561037157600080fd5b833592506020840135915061038860408501610305565b90509250925092565b6020808252818101527f416c6c6f6361746f7252656769737472792f6e6f742d617574686f72697a656460408201526060019056fea264697066735822122008ac4747fe7adc8e0637a44a0af38a311b3dcd1c138e3ae88353643b43e35d0564736f6c63430008150033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.