ETH Price: $3,237.98 (-2.92%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CommonValidationsLibrary

Compiler Version
v0.5.7+commit.6da8b019

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-05-07
*/

/*
    Copyright 2018 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity 0.5.7;


library CommonValidationsLibrary {

    /**
     * Ensures that an address array is not empty.
     *
     * @param  _addressArray       Address array input
     */    
    function validateNonEmpty(
        address[] calldata _addressArray
    )
        external
        pure
    {
        require(
            _addressArray.length > 0,
            "Address array length must be > 0"
        ); 
    }

    /**
     * Ensures that an address array and uint256 array are equal length
     *
     * @param  _addressArray       Address array input
     * @param  _uint256Array       Uint256 array input
     */    
    function validateEqualLength(
        address[] calldata _addressArray,
        uint256[] calldata _uint256Array
    )
        external
        pure
    {
        require(
            _addressArray.length == _uint256Array.length,
            "Input length mismatch"
        );
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_addressArray","type":"address[]"},{"name":"_uint256Array","type":"uint256[]"}],"name":"validateEqualLength","outputs":[],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_addressArray","type":"address[]"}],"name":"validateNonEmpty","outputs":[],"payable":false,"stateMutability":"pure","type":"function"}]

6102a5610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061005c577c010000000000000000000000000000000000000000000000000000000060003504632c183f43811461006157806364cf166f14610125575b600080fd5b6101236004803603604081101561007757600080fd5b81019060208101813564010000000081111561009257600080fd5b8201836020820111156100a457600080fd5b803590602001918460208302840111640100000000831117156100c657600080fd5b9193909290916020810190356401000000008111156100e457600080fd5b8201836020820111156100f657600080fd5b8035906020019184602083028401116401000000008311171561011857600080fd5b509092509050610195565b005b6101236004803603602081101561013b57600080fd5b81019060208101813564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184602083028401116401000000008311171561018a57600080fd5b509092509050610209565b82811461020357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e707574206c656e677468206d69736d617463680000000000000000000000604482015290519081900360640190fd5b50505050565b8061027557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f41646472657373206172726179206c656e677468206d757374206265203e2030604482015290519081900360640190fd5b505056fea165627a7a723058209aaae30bbe3eac44be0f373b9e396cf21e15811231f22b97c1bbff369197b9220029

Deployed Bytecode

0x73c269e9396556b6afb0c38eef4a590321ff9e8d3a301460806040526004361061005c577c010000000000000000000000000000000000000000000000000000000060003504632c183f43811461006157806364cf166f14610125575b600080fd5b6101236004803603604081101561007757600080fd5b81019060208101813564010000000081111561009257600080fd5b8201836020820111156100a457600080fd5b803590602001918460208302840111640100000000831117156100c657600080fd5b9193909290916020810190356401000000008111156100e457600080fd5b8201836020820111156100f657600080fd5b8035906020019184602083028401116401000000008311171561011857600080fd5b509092509050610195565b005b6101236004803603602081101561013b57600080fd5b81019060208101813564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184602083028401116401000000008311171561018a57600080fd5b509092509050610209565b82811461020357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e707574206c656e677468206d69736d617463680000000000000000000000604482015290519081900360640190fd5b50505050565b8061027557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f41646472657373206172726179206c656e677468206d757374206265203e2030604482015290519081900360640190fd5b505056fea165627a7a723058209aaae30bbe3eac44be0f373b9e396cf21e15811231f22b97c1bbff369197b9220029

Deployed Bytecode Sourcemap

641:938:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1283:293;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1283:293:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;1283:293:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1283:293:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;1283:293:0;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;1283:293:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1283:293:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;1283:293:0;;-1:-1:-1;1283:293:0;-1:-1:-1;1283:293:0;:::i;:::-;;821:239;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;821:239:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;821:239:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;821:239:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;821:239:0;;-1:-1:-1;821:239:0;-1:-1:-1;821:239:0;:::i;1283:293::-;1475:44;;;1453:115;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1283:293;;;;:::o;821:239::-;967:24;945:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;821:239;;:::o

Swarm Source

bzzr://9aaae30bbe3eac44be0f373b9e396cf21e15811231f22b97c1bbff369197b922

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.