Address Details
contract

0x60483A552391b4388C1F03af4cEf38e51ab00FA2

Contract Name
SingletonFactory
Creator
0x7fc0f0–d2cf2b at 0x1b7b46–eb8db2
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
9 Transactions
Transfers
0 Transfers
Gas Used
11,177,669
Last Balance Update
7894716
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
SingletonFactory




Optimization enabled
true
Compiler version
v0.8.4+commit.c7e474f2




Optimization runs
200
EVM Version
istanbul




Verified at
2021-08-03T08:49:09.397190Z

Contract source code

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Singleton Factory (EIP-2470)
 * @notice Exposes CREATE2 (EIP-1014) to deploy bytecode on deterministic addresses based on initialization code and salt.
 * @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
 */
contract SingletonFactory {
  /**
   * @notice Deploys `_initCode` using `_salt` for defining the deterministic address.
   * @param _initCode Initialization code.
   * @param _salt Arbitrary value to modify resulting address.
   * @return createdContract Created contract address.
   */
  function deploy(bytes memory _initCode, bytes32 _salt) public returns (address payable createdContract) {
    assembly {
      createdContract := create2(0, add(_initCode, 0x20), mload(_initCode), _salt)
    }
  }
}
// IV is a value changed to generate the vanity address.
// IV: 6583047
        

Contract ABI

[{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"createdContract","internalType":"address payable"}],"name":"deploy","inputs":[{"type":"bytes","name":"_initCode","internalType":"bytes"},{"type":"bytes32","name":"_salt","internalType":"bytes32"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b50610170806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80634af63f0214610030575b600080fd5b61004361003e366004610072565b61005f565b6040516001600160a01b03909116815260200160405180910390f35b6000818351602085016000f59392505050565b60008060408385031215610084578182fd5b823567ffffffffffffffff8082111561009b578384fd5b818501915085601f8301126100ae578384fd5b8135818111156100c0576100c0610124565b604051601f8201601f19908116603f011681019083821181831017156100e8576100e8610124565b81604052828152886020848701011115610100578687fd5b82602086016020830137918201602090810196909652509694909301359450505050565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220c05ecbe8d2baec1e014753179d159b2734758357ebcc33cb708a721016cbe3d464736f6c63430008040033

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80634af63f0214610030575b600080fd5b61004361003e366004610072565b61005f565b6040516001600160a01b03909116815260200160405180910390f35b6000818351602085016000f59392505050565b60008060408385031215610084578182fd5b823567ffffffffffffffff8082111561009b578384fd5b818501915085601f8301126100ae578384fd5b8135818111156100c0576100c0610124565b604051601f8201601f19908116603f011681019083821181831017156100e8576100e8610124565b81604052828152886020848701011115610100578687fd5b82602086016020830137918201602090810196909652509694909301359450505050565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220c05ecbe8d2baec1e014753179d159b2734758357ebcc33cb708a721016cbe3d464736f6c63430008040033