ETH Price: $3,277.08 (-0.08%)
Gas: 4 Gwei

Contract

0x94C1702F522EE1235792a44cB8D50485ccb25863
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040149293542022-06-08 23:10:26779 days ago1654729826IN
 Create: ERC1155VerificationHelperGlobal
0 ETH0.0081601753.18397467

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

Contract Source Code Verified (Exact Match)

Contract Name:
ERC1155VerificationHelperGlobal

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-06-08
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

//////////////////////////////////////////////////////////
//     _______  _______________ ____                    //
//    / __/ _ \/ ___<  <  / __// __/                    //
//   / _// , _/ /__ / // /__ \/__ \                     //
//  /___/_/|_|\___//_//_/____/____/                     //
//                                                      //
//    _   __        _ ____          __  _               //
//   | | / /__ ____(_) _(_)______ _/ /_(_)__  ___       //
//   | |/ / -_) __/ / _/ / __/ _ `/ __/ / _ \/ _ \      //
//   |___/\__/_/ /_/_//_/\__/\_,_/\__/_/\___/_//_/      //
//                                                      //
//     __ __    __                                      //
//    / // /__ / /__  ___ ____                          //
//   / _  / -_) / _ \/ -_) __/                          //
//  /_//_/\__/_/ .__/\__/_/                             //
//            /_/                                       //
//                                                      //
//   by: 0xInuarashi.eth                                //
//                                                      //
//////////////////////////////////////////////////////////

interface IERC1155 {
    function balanceOf(address owner_, uint256 tokenId_) external view returns (uint256);
}

contract ERC1155VerificationHelperGlobal {
    function getTotalERC1155Balances(address contract_, address owner_, uint256 start_, uint256 end_) external view returns (uint256) {
        uint256 _balance;
        for (uint256 i = start_; i <= end_;) {
            _balance += IERC1155(contract_).balanceOf(owner_, i);
            unchecked { ++i; }
        }
        return _balance;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"contract_","type":"address"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"start_","type":"uint256"},{"internalType":"uint256","name":"end_","type":"uint256"}],"name":"getTotalERC1155Balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506101d0806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063bb2b204d14610030575b600080fd5b61004361003e366004610119565b610055565b60405190815260200160405180910390f35b600080835b8381116100f357604051627eeac760e11b81526001600160a01b0387811660048301526024820183905288169062fdd58e9060440160206040518083038186803b1580156100a757600080fd5b505afa1580156100bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100df919061015b565b6100e99083610174565b915060010161005a565b5095945050505050565b80356001600160a01b038116811461011457600080fd5b919050565b6000806000806080858703121561012f57600080fd5b610138856100fd565b9350610146602086016100fd565b93969395505050506040820135916060013590565b60006020828403121561016d57600080fd5b5051919050565b6000821982111561019557634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212208289cafda6252a19da802814fb78b7494129060bdbcf079d16596e864277a1d264736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063bb2b204d14610030575b600080fd5b61004361003e366004610119565b610055565b60405190815260200160405180910390f35b600080835b8381116100f357604051627eeac760e11b81526001600160a01b0387811660048301526024820183905288169062fdd58e9060440160206040518083038186803b1580156100a757600080fd5b505afa1580156100bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100df919061015b565b6100e99083610174565b915060010161005a565b5095945050505050565b80356001600160a01b038116811461011457600080fd5b919050565b6000806000806080858703121561012f57600080fd5b610138856100fd565b9350610146602086016100fd565b93969395505050506040820135916060013590565b60006020828403121561016d57600080fd5b5051919050565b6000821982111561019557634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212208289cafda6252a19da802814fb78b7494129060bdbcf079d16596e864277a1d264736f6c63430008070033

Deployed Bytecode Sourcemap

1380:400:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1428:349;;;;;;:::i;:::-;;:::i;:::-;;;1208:25:1;;;1196:2;1181:18;1428:349:0;;;;;;;;1549:7;;1613:6;1596:148;1626:4;1621:1;:9;1596:148;;1660:40;;-1:-1:-1;;;1660:40:0;;-1:-1:-1;;;;;975:32:1;;;1660:40:0;;;957:51:1;1024:18;;;1017:34;;;1660:29:0;;;;;930:18:1;;1660:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1648:52;;;;:::i;:::-;;-1:-1:-1;1727:3:0;;1596:148;;;-1:-1:-1;1761:8:0;1428:349;-1:-1:-1;;;;;1428:349:0:o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:397::-;278:6;286;294;302;355:3;343:9;334:7;330:23;326:33;323:53;;;372:1;369;362:12;323:53;395:29;414:9;395:29;:::i;:::-;385:39;;443:38;477:2;466:9;462:18;443:38;:::i;:::-;192:397;;433:48;;-1:-1:-1;;;;528:2:1;513:18;;500:32;;579:2;564:18;551:32;;192:397::o;594:184::-;664:6;717:2;705:9;696:7;692:23;688:32;685:52;;;733:1;730;723:12;685:52;-1:-1:-1;756:16:1;;594:184;-1:-1:-1;594:184:1:o;1244:225::-;1284:3;1315:1;1311:6;1308:1;1305:13;1302:136;;;1360:10;1355:3;1351:20;1348:1;1341:31;1395:4;1392:1;1385:15;1423:4;1420:1;1413:15;1302:136;-1:-1:-1;1454:9:1;;1244:225::o

Swarm Source

ipfs://8289cafda6252a19da802814fb78b7494129060bdbcf079d16596e864277a1d2

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
[ 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.