POL Price: $0.378975 (+0.88%)
Gas: 51 GWei
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Change Admin270802382022-04-13 8:01:29909 days ago1649836889IN
ARCx: Sapphire Passport Scores
0 POL0.0008542330.00999999
Set Current Epoc...270802062022-04-13 8:00:25909 days ago1649836825IN
ARCx: Sapphire Passport Scores
0 POL0.0020050130.11030193
Set Merkle Root ...270355552022-04-12 5:01:01911 days ago1649739661IN
ARCx: Sapphire Passport Scores
0 POL0.0010588530.07000717
Set Current Epoc...268728712022-04-08 1:46:04915 days ago1649382364IN
ARCx: Sapphire Passport Scores
0 POL0.0048935657.04182015
Set Merkle Root ...268727742022-04-08 1:41:07915 days ago1649382067IN
ARCx: Sapphire Passport Scores
0 POL0.0018671952.94764549
Set Pause Operat...268138042022-04-06 12:49:27916 days ago1649249367IN
ARCx: Sapphire Passport Scores
0 POL0.0010584430.02180543
Set Pause268137882022-04-06 12:48:55916 days ago1649249335IN
ARCx: Sapphire Passport Scores
0 POL0.0009060830.05866619
Init268134172022-04-06 12:36:09916 days ago1649248569IN
ARCx: Sapphire Passport Scores
0 POL0.0052891231.05932875
0x60806040268134112022-04-06 12:35:57916 days ago1649248557IN
 Create: ArcProxy
0 POL0.0177979139.99999111

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ArcProxy

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : ArcProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

contract ArcProxy {

    /**
    * @dev Emitted when the implementation is upgraded.
    * @param implementation Address of the new implementation.
    */
    event Upgraded(address indexed implementation);

    /**
    * @dev Emitted when the administration has been transferred.
    * @param previousAdmin Address of the previous admin.
    * @param newAdmin Address of the new admin.
    */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
    * @dev Storage slot with the admin of the contract.
    * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
    * validated in the constructor.
    */

    /* solhint-disable-next-line */
    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
    * @dev Storage slot with the address of the current implementation.
    * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
    * validated in the constructor.
    */

    /* solhint-disable-next-line */
    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
    * @dev Modifier to check whether the `msg.sender` is the admin.
    * If it is, it will run the function. Otherwise, it will delegate the call
    * to the implementation.
    */
    modifier ifAdmin() {
        if (msg.sender == _admin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
    * Contract constructor.
    * @param _logic address of the initial implementation.
    * @param admin_ Address of the proxy administrator.
    * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.
    * It should include the signature and the parameters of the function to be called, as described in
    * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
    * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.
    */
    constructor(
        address _logic,
        address admin_,
        bytes memory _data
    )
        payable
    {
        assert(
            IMPLEMENTATION_SLOT == bytes32(
                uint256(keccak256("eip1967.proxy.implementation")) - 1
            )
        );

        _setImplementation(_logic);

        if (_data.length > 0) {
            /* solhint-disable-next-line */
            (bool success,) = _logic.delegatecall(_data);
            /* solhint-disable-next-line */
            require(success);
        }

        assert(
            ADMIN_SLOT == bytes32(
                uint256(keccak256("eip1967.proxy.admin")) - 1
            )
        );

        _setAdmin(admin_);
    }

    /**
     * @dev Fallback function.
     * Implemented entirely in `_fallback`.
     */
    fallback() external payable {
        _fallback();
    }

    /**
     * @dev fallback implementation.
     * Extracted to enable manual triggering.
     */
    function _fallback() internal {
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`.
     *      Will run if call data is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Delegates execution to an implementation contract.
     * This is a low level function that doesn't return to its internal call site.
     * It will return to the external caller whatever the implementation returns.
     * @param implementation_ Address to delegate.
     */
    function _delegate(address implementation_) internal {
        /* solhint-disable-next-line */
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation_, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 { revert(0, returndatasize()) }
            default { return(0, returndatasize()) }
        }
    }

    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        /* solhint-disable-next-line */
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
    * @dev Returns the current implementation.
    * @return impl Address of the current implementation
    */
    function _implementation() internal view returns (address impl) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        /* solhint-disable-next-line */
        assembly {
            impl := sload(slot)
        }
    }

    /**
    * @dev Upgrades the proxy to a new implementation.
    * @param newImplementation Address of the new implementation.
    */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
    * @dev Sets the implementation address of the proxy.
    * @param newImplementation Address of the new implementation.
    */
    function _setImplementation(address newImplementation) internal {
        require(
            isContract(newImplementation),
            "Cannot set a proxy implementation to a non-contract address"
        );

        bytes32 slot = IMPLEMENTATION_SLOT;

        /* solhint-disable-next-line */
        assembly {
            sstore(slot, newImplementation)
        }
    }

    /**
    * @return admin_ The address of the proxy admin.
    */
    function admin() external ifAdmin returns (address admin_) {
        admin_ = _admin();
    }

    /**
    * @return implementation_ The address of the implementation.
    */
    function implementation() external ifAdmin returns (address implementation_) {
        implementation_ = _implementation();
    }

    /**
    * @dev Changes the admin of the proxy.
    * Only the current admin can call this function.
    * @param newAdmin Address to transfer proxy administration to.
    */
    function changeAdmin(address newAdmin) external ifAdmin {
        require(
            newAdmin != address(0),
            "Cannot change the admin of a proxy to the zero address"
        );

        emit AdminChanged(_admin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
    * @dev Upgrade the backing implementation of the proxy.
    * Only the admin can call this function.
    * @param newImplementation Address of the new implementation.
    */
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeTo(newImplementation);
    }

    /**
    * @dev Upgrade the backing implementation of the proxy and call a function
    * on the new implementation.
    * This is useful to initialize the proxied contract.
    * @param newImplementation Address of the new implementation.
    * @param data Data to send as msg.data in the low level call.
    * It should include the signature and the parameters of the function to be called, as described in
    * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
    */
    function upgradeToAndCall(
        address newImplementation,
        bytes calldata data
    )
        external
        payable
        ifAdmin
    {
        _upgradeTo(newImplementation);
        /* solhint-disable-next-line */
        (bool success,) = newImplementation.delegatecall(data);
        /* solhint-disable-next-line */
        require(success);
    }

    /**
    * @return adm The admin slot.
    */
    function _admin() internal view returns (address adm) {
        bytes32 slot = ADMIN_SLOT;

        /* solhint-disable-next-line */
        assembly {
            adm := sload(slot)
        }
    }

    /**
    * @dev Sets the address of the proxy admin.
    * @param newAdmin Address of the new proxy admin.
    */
    function _setAdmin(address newAdmin) internal {
        bytes32 slot = ADMIN_SLOT;

        /* solhint-disable-next-line */
        assembly {
            sstore(slot, newAdmin)
        }
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052604051620009cd380380620009cd833981016040819052620000269162000224565b6200005360017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6200031e565b600080516020620009ad833981519152146200007f57634e487b7160e01b600052600160045260246000fd5b6200008a836200017b565b80511562000101576000836001600160a01b031682604051620000ae919062000300565b600060405180830381855af49150503d8060008114620000eb576040519150601f19603f3d011682016040523d82523d6000602084013e620000f0565b606091505b5050905080620000ff57600080fd5b505b6200012e60017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61046200031e565b6000805160206200098d833981519152146200015a57634e487b7160e01b600052600160045260246000fd5b62000172826000805160206200098d83398151915255565b5050506200038b565b803b620001f45760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e747261637420616464726573730000000000606482015260840160405180910390fd5b600080516020620009ad83398151915255565b80516001600160a01b03811681146200021f57600080fd5b919050565b60008060006060848603121562000239578283fd5b620002448462000207565b9250620002546020850162000207565b60408501519092506001600160401b038082111562000271578283fd5b818601915086601f83011262000285578283fd5b8151818111156200029a576200029a62000375565b604051601f8201601f19908116603f01168101908382118183101715620002c557620002c562000375565b81604052828152896020848701011115620002de578586fd5b620002f183602083016020880162000342565b80955050505050509250925092565b600082516200031481846020870162000342565b9190910192915050565b6000828210156200033d57634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156200035f57818101518382015260200162000345565b838111156200036f576000848401525b50505050565b634e487b7160e01b600052604160045260246000fd5b6105f2806200039b6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c9578063f851a440146100e95761005d565b3661005d5761005b6100fe565b005b61005b6100fe565b34801561007157600080fd5b5061005b6100803660046104ed565b610130565b61005b61009336600461050e565b61016d565b3480156100a457600080fd5b506100ad61021c565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d557600080fd5b5061005b6100e43660046104ed565b61027e565b3480156100f557600080fd5b506100ad610390565b61012e6101297f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b6103d5565b565b60008051602061059d833981519152546001600160a01b0316336001600160a01b0316141561016557610162816103f9565b50565b6101626100fe565b60008051602061059d833981519152546001600160a01b0316336001600160a01b0316141561020f5761019f836103f9565b6000836001600160a01b031683836040516101bb92919061058c565b600060405180830381855af49150503d80600081146101f6576040519150601f19603f3d011682016040523d82523d6000602084013e6101fb565b606091505b505090508061020957600080fd5b50505050565b6102176100fe565b505050565b600061023460008051602061059d8339815191525490565b6001600160a01b0316336001600160a01b0316141561027357507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b61027b6100fe565b90565b60008051602061059d833981519152546001600160a01b0316336001600160a01b03161415610165576001600160a01b0381166103215760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f604482015275787920746f20746865207a65726f206164647265737360501b60648201526084015b60405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61035860008051602061059d8339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a16101628160008051602061059d83398151915255565b60006103a860008051602061059d8339815191525490565b6001600160a01b0316336001600160a01b03161415610273575060008051602061059d8339815191525490565b3660008037600080366000845af43d6000803e8080156103f4573d6000f35b3d6000fd5b61040281610439565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b803b6104ad5760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000006064820152608401610318565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b80356001600160a01b03811681146104e857600080fd5b919050565b6000602082840312156104fe578081fd5b610507826104d1565b9392505050565b600080600060408486031215610522578182fd5b61052b846104d1565b9250602084013567ffffffffffffffff80821115610547578384fd5b818601915086601f83011261055a578384fd5b813581811115610568578485fd5b876020828501011115610579578485fd5b6020830194508093505050509250925092565b818382376000910190815291905056feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103a2646970667358221220cde9ff8559836b28355dc59063adf3dda8023ac04886957d5bc272c2a5d5d1d864736f6c63430008040033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc000000000000000000000000714691b0254136ed03303c348edb1252940da3e00000000000000000000000009c767178528c8a205df63305ebda4bb6b147889b00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c9578063f851a440146100e95761005d565b3661005d5761005b6100fe565b005b61005b6100fe565b34801561007157600080fd5b5061005b6100803660046104ed565b610130565b61005b61009336600461050e565b61016d565b3480156100a457600080fd5b506100ad61021c565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d557600080fd5b5061005b6100e43660046104ed565b61027e565b3480156100f557600080fd5b506100ad610390565b61012e6101297f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b6103d5565b565b60008051602061059d833981519152546001600160a01b0316336001600160a01b0316141561016557610162816103f9565b50565b6101626100fe565b60008051602061059d833981519152546001600160a01b0316336001600160a01b0316141561020f5761019f836103f9565b6000836001600160a01b031683836040516101bb92919061058c565b600060405180830381855af49150503d80600081146101f6576040519150601f19603f3d011682016040523d82523d6000602084013e6101fb565b606091505b505090508061020957600080fd5b50505050565b6102176100fe565b505050565b600061023460008051602061059d8339815191525490565b6001600160a01b0316336001600160a01b0316141561027357507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b61027b6100fe565b90565b60008051602061059d833981519152546001600160a01b0316336001600160a01b03161415610165576001600160a01b0381166103215760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f604482015275787920746f20746865207a65726f206164647265737360501b60648201526084015b60405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61035860008051602061059d8339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a16101628160008051602061059d83398151915255565b60006103a860008051602061059d8339815191525490565b6001600160a01b0316336001600160a01b03161415610273575060008051602061059d8339815191525490565b3660008037600080366000845af43d6000803e8080156103f4573d6000f35b3d6000fd5b61040281610439565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b803b6104ad5760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000006064820152608401610318565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b80356001600160a01b03811681146104e857600080fd5b919050565b6000602082840312156104fe578081fd5b610507826104d1565b9392505050565b600080600060408486031215610522578182fd5b61052b846104d1565b9250602084013567ffffffffffffffff80821115610547578384fd5b818601915086601f83011261055a578384fd5b813581811115610568578485fd5b876020828501011115610579578485fd5b6020830194508093505050509250925092565b818382376000910190815291905056feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103a2646970667358221220cde9ff8559836b28355dc59063adf3dda8023ac04886957d5bc272c2a5d5d1d864736f6c63430008040033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000714691b0254136ed03303c348edb1252940da3e00000000000000000000000009c767178528c8a205df63305ebda4bb6b147889b00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _logic (address): 0x714691B0254136ed03303c348eDb1252940da3E0
Arg [1] : admin_ (address): 0x9c767178528c8a205DF63305ebdA4BB6B147889b
Arg [2] : _data (bytes): 0x

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000714691b0254136ed03303c348edb1252940da3e0
Arg [1] : 0000000000000000000000009c767178528c8a205df63305ebda4bb6b147889b
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

OVERVIEW

This contract stores the Merkle root containing all the scores uploaded by ARCx.

Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.