Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 79 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Save Code | 24672762 | 3 days ago | IN | 0 ETH | 0.00027362 | ||||
| Save Code | 24178125 | 72 days ago | IN | 0 ETH | 0.00009214 | ||||
| Save Code | 24027772 | 93 days ago | IN | 0 ETH | 0.00002904 | ||||
| Save Code | 23999639 | 97 days ago | IN | 0 ETH | 0.00002776 | ||||
| Save Code | 23700597 | 139 days ago | IN | 0 ETH | 0.00008673 | ||||
| Save Code | 23700593 | 139 days ago | IN | 0 ETH | 0.00006925 | ||||
| Save Code | 23700589 | 139 days ago | IN | 0 ETH | 0.00009263 | ||||
| Save Code | 23700578 | 139 days ago | IN | 0 ETH | 0.00006416 | ||||
| Save Code | 23700551 | 139 days ago | IN | 0 ETH | 0.00009083 | ||||
| Save Code | 23700533 | 139 days ago | IN | 0 ETH | 0.0001159 | ||||
| Save Code | 23623648 | 149 days ago | IN | 0 ETH | 0.0003021 | ||||
| Save Code | 23623638 | 149 days ago | IN | 0 ETH | 0.00043371 | ||||
| Save Code | 23623630 | 149 days ago | IN | 0 ETH | 0.00007837 | ||||
| Save Code | 23623615 | 149 days ago | IN | 0 ETH | 0.00036906 | ||||
| Save Code | 23623602 | 149 days ago | IN | 0 ETH | 0.00028831 | ||||
| Save Code | 23194127 | 209 days ago | IN | 0 ETH | 0.00030348 | ||||
| Save Code | 23193907 | 209 days ago | IN | 0 ETH | 0.0002859 | ||||
| Save Code | 23193153 | 210 days ago | IN | 0 ETH | 0.0001655 | ||||
| Save Code | 23047901 | 230 days ago | IN | 0 ETH | 0.00118405 | ||||
| Save Code | 23047877 | 230 days ago | IN | 0 ETH | 0.00071639 | ||||
| Save Code | 23047803 | 230 days ago | IN | 0 ETH | 0.00046148 | ||||
| Save Code | 23034945 | 232 days ago | IN | 0 ETH | 0.0078955 | ||||
| Save Code | 23034925 | 232 days ago | IN | 0 ETH | 0.00188982 | ||||
| Save Code | 22826762 | 261 days ago | IN | 0 ETH | 0.00550594 | ||||
| Save Code | 22826723 | 261 days ago | IN | 0 ETH | 0.00802762 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x60a06040 | 24672762 | 3 days ago | Contract Creation | 0 ETH | |||
| 0x60a06040 | 24178125 | 72 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 24027772 | 93 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23999639 | 97 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23700597 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23700593 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23700589 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23700578 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23700551 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23700533 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23623648 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23623638 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23623630 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23623615 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23623602 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23194127 | 209 days ago | Contract Creation | 0 ETH | |||
| 0x60a06040 | 23193907 | 209 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23193153 | 210 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23047901 | 230 days ago | Contract Creation | 0 ETH | |||
| 0x60a06040 | 23047877 | 230 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23047803 | 230 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23034945 | 232 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23034925 | 232 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22826762 | 261 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22826723 | 261 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
CodeJar
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;
/**
* @title Code Jar
* @notice Deploys contract code to deterministic addresses
* @author Compound Labs, Inc.
*/
contract CodeJar {
/**
* @notice Deploys the code via Code Jar, no-op if it already exists
* @dev This call is meant to be idemponent and fairly inexpensive on a second call
* @param code The creation bytecode of the code to save
* @return The address of the contract that matches the input code's contructor output
*/
function saveCode(bytes memory code) external returns (address) {
address codeAddress = getCodeAddress(code);
if (codeAddress.code.length > 0) {
// Code is already deployed
return codeAddress;
} else {
// The code has not been deployed here (or it was deployed and destructed).
address script;
assembly {
script := create2(0, add(code, 0x20), mload(code), 0)
}
// Posit: these cannot fail and are purely defense-in-depth
require(script == codeAddress);
uint256 scriptSz;
assembly {
scriptSz := extcodesize(script)
}
// Disallow the empty code and self-destructing constructors
// Note: Script can still self-destruct after being deployed until Dencun
require(scriptSz > 0);
return codeAddress;
}
}
/**
* @notice Checks if code was already deployed by CodeJar
* @param code The runtime bytecode of the code to check
* @return True if code already exists in Code Jar
*/
function codeExists(bytes calldata code) external view returns (bool) {
address codeAddress = getCodeAddress(code);
return codeAddress.code.length > 0;
}
/**
* @dev Returns the create2 address based on the creation code
* @return The create2 address to deploy this code (via init code)
*/
function getCodeAddress(bytes memory code) public view returns (address) {
return address(
uint160(uint256(keccak256(abi.encodePacked(bytes1(0xff), address(this), uint256(0), keccak256(code)))))
);
}
}{
"remappings": [
"test/=test/",
"codejar/=src/codejar/",
"legend-scripts/=src/legend-scripts/",
"quark-core/=src/quark-core/",
"quark-core-scripts/=src/quark-core-scripts/",
"quark-factory/=src/quark-factory/",
"quark-proxy/=src/quark-proxy/",
"@uniswap/=lib/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin/=lib/openzeppelin-contracts/contracts/",
"v3-core/=lib/v3-core/",
"v3-periphery/=lib/v3-periphery/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": true,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"bytes","name":"code","type":"bytes"}],"name":"codeExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"code","type":"bytes"}],"name":"getCodeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"code","type":"bytes"}],"name":"saveCode","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080806040523461001657610287908161001c8239f35b600080fdfe6080604052600436101561001257600080fd5b6000803560e01c90816332a518c61461004a57508063d6d38d3f146100455763fe9e9edf1461004057600080fd5b6101a2565b610178565b346100c35760203660031901126100c3576004359067ffffffffffffffff908183116100c357366023840112156100c35782600401359182116100c35736602483850101116100c3576100bf6100ac6100a73685602488016100dc565b6101f7565b604051903b151581529081906020820190565b0390f35b80fd5b634e487b7160e01b600052604160045260246000fd5b92919267ffffffffffffffff918281116101345760405192601f8201601f19908116603f01168401908111848210176101345760405282948184528183011161012f578281602093846000960137010152565b600080fd5b6100c6565b602060031982011261012f576004359067ffffffffffffffff821161012f578060238301121561012f57816024610175936004013591016100dc565b90565b3461012f57602061019061018b36610139565b6101b5565b6040516001600160a01b039091168152f35b3461012f5760206101906100a736610139565b6101be816101f7565b90813b156101ca575090565b6000816020829351910182f56001600160a01b03838116908216036101f3573b156100c3575090565b5080fd5b6020815191012060405190602082019060ff60f81b82523060601b6021840152600060358401526055830152605582526080820182811067ffffffffffffffff82111761013457604052905190206001600160a01b03169056fea2646970667358221220bce996c33325b98013170bef4f70f4661964d47b63b87b3c34a701d3ffa460ee64736f6c63430008170033
Deployed Bytecode
0x6080604052600436101561001257600080fd5b6000803560e01c90816332a518c61461004a57508063d6d38d3f146100455763fe9e9edf1461004057600080fd5b6101a2565b610178565b346100c35760203660031901126100c3576004359067ffffffffffffffff908183116100c357366023840112156100c35782600401359182116100c35736602483850101116100c3576100bf6100ac6100a73685602488016100dc565b6101f7565b604051903b151581529081906020820190565b0390f35b80fd5b634e487b7160e01b600052604160045260246000fd5b92919267ffffffffffffffff918281116101345760405192601f8201601f19908116603f01168401908111848210176101345760405282948184528183011161012f578281602093846000960137010152565b600080fd5b6100c6565b602060031982011261012f576004359067ffffffffffffffff821161012f578060238301121561012f57816024610175936004013591016100dc565b90565b3461012f57602061019061018b36610139565b6101b5565b6040516001600160a01b039091168152f35b3461012f5760206101906100a736610139565b6101be816101f7565b90813b156101ca575090565b6000816020829351910182f56001600160a01b03838116908216036101f3573b156100c3575090565b5080fd5b6020815191012060405190602082019060ff60f81b82523060601b6021840152600060358401526055830152605582526080820182811067ffffffffffffffff82111761013457604052905190206001600160a01b03169056fea2646970667358221220bce996c33325b98013170bef4f70f4661964d47b63b87b3c34a701d3ffa460ee64736f6c63430008170033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.