Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 49 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 117192707 | 312 days ago | IN | 0 ETH | 0.000078466784 | ||||
Set Address | 117192480 | 312 days ago | IN | 0 ETH | 0.000075403311 | ||||
Set Address | 117192474 | 312 days ago | IN | 0 ETH | 0.000076114538 | ||||
Set Address | 117192465 | 312 days ago | IN | 0 ETH | 0.000079577191 | ||||
Set Address | 117192457 | 312 days ago | IN | 0 ETH | 0.000076277291 | ||||
Set Address | 117192449 | 312 days ago | IN | 0 ETH | 0.000071864441 | ||||
Set Address | 117192444 | 312 days ago | IN | 0 ETH | 0.000073916142 | ||||
Transfer Ownersh... | 106679241 | 555 days ago | IN | 0 ETH | 0.00005466606 | ||||
Set Address | 106469506 | 560 days ago | IN | 0 ETH | 0.000082007231 | ||||
Set Address | 106469470 | 560 days ago | IN | 0 ETH | 0.000076785992 | ||||
Set Address | 106383432 | 562 days ago | IN | 0 ETH | 0.000024794727 | ||||
Set Address | 106383375 | 562 days ago | IN | 0 ETH | 0.000023308225 | ||||
Set Address | 106383332 | 562 days ago | IN | 0 ETH | 0.000022064934 | ||||
Set Address | 106202831 | 566 days ago | IN | 0 ETH | 0.000035647135 | ||||
Set Address | 105993831 | 571 days ago | IN | 0 ETH | 0.000019649594 | ||||
Set Address | 105993825 | 571 days ago | IN | 0 ETH | 0.000019868833 | ||||
Set Address | 105993748 | 571 days ago | IN | 0 ETH | 0.00002209631 | ||||
Set Address | 105993678 | 571 days ago | IN | 0 ETH | 0.000022780483 | ||||
Set Address | 105992400 | 571 days ago | IN | 0 ETH | 0.000020012821 | ||||
Set Address | 105992118 | 571 days ago | IN | 0 ETH | 0.000024528494 | ||||
Set Address | 105992090 | 571 days ago | IN | 0 ETH | 0.000023142219 | ||||
Set Address | 105992055 | 571 days ago | IN | 0 ETH | 0.000021206761 | ||||
Set Address | 105870703 | 574 days ago | IN | 0 ETH | 0.000024448349 | ||||
Set Address | 105352272 | 586 days ago | IN | 0 ETH | 0.000032931308 | ||||
Set Address | 102525107 | 597 days ago | IN | 0 ETH | 0.000105026999 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
107558388 | 535 days ago | 0 ETH | ||||
107558374 | 535 days ago | 0 ETH | ||||
107558337 | 535 days ago | 0 ETH | ||||
107558328 | 535 days ago | 0 ETH | ||||
107558328 | 535 days ago | 0 ETH | ||||
107558328 | 535 days ago | 0 ETH | ||||
107558328 | 535 days ago | 0 ETH | ||||
107558310 | 535 days ago | 0 ETH | ||||
107558272 | 535 days ago | 0 ETH | ||||
107558271 | 535 days ago | 0 ETH | ||||
107558271 | 535 days ago | 0 ETH | ||||
107558271 | 535 days ago | 0 ETH | ||||
107558271 | 535 days ago | 0 ETH | ||||
107558238 | 535 days ago | 0 ETH | ||||
107558228 | 535 days ago | 0 ETH | ||||
107558228 | 535 days ago | 0 ETH | ||||
107558228 | 535 days ago | 0 ETH | ||||
107558197 | 535 days ago | 0 ETH | ||||
107558053 | 535 days ago | 0 ETH | ||||
107557985 | 535 days ago | 0 ETH | ||||
107557985 | 535 days ago | 0 ETH | ||||
107557985 | 535 days ago | 0 ETH | ||||
107557985 | 535 days ago | 0 ETH | ||||
107557958 | 535 days ago | 0 ETH | ||||
107557958 | 535 days ago | 0 ETH |
Loading...
Loading
Contract Name:
AddressRegistry
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./external/openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IAddressRegistry.sol"; contract AddressRegistry is IAddressRegistry, Ownable { mapping(uint256 => address) libraryAndContractAddresses; constructor(address _weth9) { setAddress(AddressId.ADDRESS_ID_WETH9, _weth9); } function setAddress(uint256 id, address _addr) public onlyOwner { libraryAndContractAddresses[id] = _addr; emit SetAddress(_msgSender(), id, _addr); } function getAddress(uint256 id) external view returns (address) { return libraryAndContractAddresses[id]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: gpl-3.0 pragma solidity ^0.8.0; import "../libraries/helpers/AddressId.sol"; interface IAddressRegistry { event SetAddress( address indexed setter, uint256 indexed id, address newAddress ); function getAddress(uint256 id) external view returns (address); }
// SPDX-License-Identifier: gpl-3.0 pragma solidity ^0.8.0; pragma abicoder v2; library AddressId { uint256 constant ADDRESS_ID_WETH9 = 1; uint256 constant ADDRESS_ID_UNI_V3_FACTORY = 2; uint256 constant ADDRESS_ID_UNI_V3_NONFUNGIBLE_POSITION_MANAGER = 3; uint256 constant ADDRESS_ID_UNI_V3_SWAP_ROUTER = 4; uint256 constant ADDRESS_ID_VELO_ROUTER = 5; uint256 constant ADDRESS_ID_VELO_FACTORY = 6; uint256 constant ADDRESS_ID_VAULT_POSITION_MANAGER = 7; uint256 constant ADDRESS_ID_SWAP_EXECUTOR_MANAGER = 8; uint256 constant ADDRESS_ID_LENDING_POOL = 9; uint256 constant ADDRESS_ID_VAULT_FACTORY = 10; uint256 constant ADDRESS_ID_TREASURY = 11; uint256 constant ADDRESS_ID_VE_TOKEN = 12; uint256 constant ADDRESS_ID_VELO_VAULT_DEPLOYER = 101; uint256 constant ADDRESS_ID_VELO_VAULT_INITIALIZER = 102; uint256 constant ADDRESS_ID_VELO_VAULT_POSITION_LOGIC = 103; uint256 constant ADDRESS_ID_VELO_VAULT_REWARDS_LOGIC = 104; uint256 constant ADDRESS_ID_VELO_VAULT_OWNER_ACTIONS = 105; uint256 constant ADDRESS_ID_VELO_SWAP_PATH_MANAGER = 106; }
{ "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":"address","name":"_weth9","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"setter","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetAddress","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516104ff3803806104ff83398101604081905261002f91610176565b61003833610049565b610043600182610099565b506101a6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100a1610116565b600082815260016020526040902080546001600160a01b0319166001600160a01b038316179055816100d03390565b6040516001600160a01b03848116825291909116907f453811a02dd40261e64dc61727fa8822ec9b04f1889fdd90ef99eadeca21b63f9060200160405180910390a35050565b6000546001600160a01b031633146101745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b60006020828403121561018857600080fd5b81516001600160a01b038116811461019f57600080fd5b9392505050565b61034a806101b56000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780638da5cb5b14610066578063ac4ce2c61461008f578063b93f9b0a146100a2578063f2fde38b146100cb575b600080fd5b6100646100de565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006461009d3660046102ad565b6100f2565b6100736100b03660046102d9565b6000908152600160205260409020546001600160a01b031690565b6100646100d93660046102f2565b610169565b6100e66101e7565b6100f06000610241565b565b6100fa6101e7565b600082815260016020526040902080546001600160a01b0319166001600160a01b03831617905581336040516001600160a01b03848116825291909116907f453811a02dd40261e64dc61727fa8822ec9b04f1889fdd90ef99eadeca21b63f9060200160405180910390a35050565b6101716101e7565b6001600160a01b0381166101db5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6101e481610241565b50565b6000546001600160a01b031633146100f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101d2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146102a857600080fd5b919050565b600080604083850312156102c057600080fd5b823591506102d060208401610291565b90509250929050565b6000602082840312156102eb57600080fd5b5035919050565b60006020828403121561030457600080fd5b61030d82610291565b939250505056fea2646970667358221220cb74cf30b6b8bfc1117d1d79c6bc653aec7a775f76d6cf62e19c0f4be1a2fedb64736f6c634300081200330000000000000000000000004200000000000000000000000000000000000006
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780638da5cb5b14610066578063ac4ce2c61461008f578063b93f9b0a146100a2578063f2fde38b146100cb575b600080fd5b6100646100de565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006461009d3660046102ad565b6100f2565b6100736100b03660046102d9565b6000908152600160205260409020546001600160a01b031690565b6100646100d93660046102f2565b610169565b6100e66101e7565b6100f06000610241565b565b6100fa6101e7565b600082815260016020526040902080546001600160a01b0319166001600160a01b03831617905581336040516001600160a01b03848116825291909116907f453811a02dd40261e64dc61727fa8822ec9b04f1889fdd90ef99eadeca21b63f9060200160405180910390a35050565b6101716101e7565b6001600160a01b0381166101db5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6101e481610241565b50565b6000546001600160a01b031633146100f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101d2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146102a857600080fd5b919050565b600080604083850312156102c057600080fd5b823591506102d060208401610291565b90509250929050565b6000602082840312156102eb57600080fd5b5035919050565b60006020828403121561030457600080fd5b61030d82610291565b939250505056fea2646970667358221220cb74cf30b6b8bfc1117d1d79c6bc653aec7a775f76d6cf62e19c0f4be1a2fedb64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004200000000000000000000000000000000000006
-----Decoded View---------------
Arg [0] : _weth9 (address): 0x4200000000000000000000000000000000000006
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000006
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.