Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
IterableMapping
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-09-22
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
library IterableMapping {
// Iterable mapping from address to uint;
struct Map {
address[] keys;
mapping(address => uint) values;
mapping(address => uint) indexOf;
mapping(address => bool) inserted;
}
function get(Map storage map, address key) public view returns (uint) {
return map.values[key];
}
function getIndexOfKey(Map storage map, address key) public view returns (int) {
if(!map.inserted[key]) {
return -1;
}
return int(map.indexOf[key]);
}
function getKeyAtIndex(Map storage map, uint index) public view returns (address) {
return map.keys[index];
}
function size(Map storage map) public view returns (uint) {
return map.keys.length;
}
function set(Map storage map, address key, uint val) public {
if (map.inserted[key]) {
map.values[key] = val;
} else {
map.inserted[key] = true;
map.values[key] = val;
map.indexOf[key] = map.keys.length;
map.keys.push(key);
}
}
function remove(Map storage map, address key) public {
if (!map.inserted[key]) {
return;
}
delete map.inserted[key];
delete map.values[key];
uint index = map.indexOf[key];
uint lastIndex = map.keys.length - 1;
address lastKey = map.keys[lastIndex];
map.indexOf[lastKey] = index;
delete map.indexOf[key];
map.keys[index] = lastKey;
map.keys.pop();
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract Creation Code
61044e610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806317e142d1146100715780634c60db9c146100af578063732a2ccf146100ea578063bc2b405c14610116578063d1aa9e7e14610155578063deb3d89614610194575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b1565b60408051918252519081900360200190f35b8180156100bb57600080fd5b506100e8600480360360408110156100d257600080fd5b50803590602001356001600160a01b03166101ff565b005b61009d6004803603604081101561010057600080fd5b50803590602001356001600160a01b031661031e565b81801561012257600080fd5b506100e86004803603606081101561013957600080fd5b508035906001600160a01b03602082013516906040013561033d565b6101786004803603604081101561016b57600080fd5b50803590602001356103e7565b604080516001600160a01b039092168252519081900360200190f35b61009d600480360360208110156101aa57600080fd5b5035610414565b6001600160a01b038116600090815260038301602052604081205460ff166101dc57506000196101f9565b506001600160a01b03811660009081526002830160205260409020545b92915050565b6001600160a01b038116600090815260038301602052604090205460ff166102265761031a565b6001600160a01b03811660009081526003830160209081526040808320805460ff19169055600185018252808320839055600285019091528120548354909160001982019185908390811061027757fe5b60009182526020808320909101546001600160a01b039081168084526002890190925260408084208790559087168352822091909155855490915081908690859081106102c057fe5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905584548590806102f457fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050505b5050565b6001600160a01b03166000908152600191909101602052604090205490565b6001600160a01b038216600090815260038401602052604090205460ff1615610382576001600160a01b038216600090815260018401602052604090208190556103e2565b6001600160a01b03821660008181526003850160209081526040808320805460ff19166001908117909155878101835281842086905587546002890184529184208290558101875586835291200180546001600160a01b03191690911790555b505050565b60008260000182815481106103f857fe5b6000918252602090912001546001600160a01b03169392505050565b549056fea264697066735822122084d61d41a19b20a9e778d37a841963b9dc83adc36900681504a162d7fc655e8864736f6c634300060c0033
Deployed Bytecode
0x7307e2c587a19429cf4e4e2e9a00f4087c2dcbddad301460806040526004361061006c5760003560e01c806317e142d1146100715780634c60db9c146100af578063732a2ccf146100ea578063bc2b405c14610116578063d1aa9e7e14610155578063deb3d89614610194575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b1565b60408051918252519081900360200190f35b8180156100bb57600080fd5b506100e8600480360360408110156100d257600080fd5b50803590602001356001600160a01b03166101ff565b005b61009d6004803603604081101561010057600080fd5b50803590602001356001600160a01b031661031e565b81801561012257600080fd5b506100e86004803603606081101561013957600080fd5b508035906001600160a01b03602082013516906040013561033d565b6101786004803603604081101561016b57600080fd5b50803590602001356103e7565b604080516001600160a01b039092168252519081900360200190f35b61009d600480360360208110156101aa57600080fd5b5035610414565b6001600160a01b038116600090815260038301602052604081205460ff166101dc57506000196101f9565b506001600160a01b03811660009081526002830160205260409020545b92915050565b6001600160a01b038116600090815260038301602052604090205460ff166102265761031a565b6001600160a01b03811660009081526003830160209081526040808320805460ff19169055600185018252808320839055600285019091528120548354909160001982019185908390811061027757fe5b60009182526020808320909101546001600160a01b039081168084526002890190925260408084208790559087168352822091909155855490915081908690859081106102c057fe5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905584548590806102f457fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050505b5050565b6001600160a01b03166000908152600191909101602052604090205490565b6001600160a01b038216600090815260038401602052604090205460ff1615610382576001600160a01b038216600090815260018401602052604090208190556103e2565b6001600160a01b03821660008181526003850160209081526040808320805460ff19166001908117909155878101835281842086905587546002890184529184208290558101875586835291200180546001600160a01b03191690911790555b505050565b60008260000182815481106103f857fe5b6000918252602090912001546001600160a01b03169392505050565b549056fea264697066735822122084d61d41a19b20a9e778d37a841963b9dc83adc36900681504a162d7fc655e8864736f6c634300060c0033
Deployed Bytecode Sourcemap
60:1631:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;438:195;;;;;;;;;;;;;;;;-1:-1:-1;438:195:0;;;;;;-1:-1:-1;;;;;438:195:0;;:::i;:::-;;;;;;;;;;;;;;;;1215:473;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1215:473:0;;;;;;-1:-1:-1;;;;;1215:473:0;;:::i;:::-;;319:111;;;;;;;;;;;;;;;;-1:-1:-1;319:111:0;;;;;;-1:-1:-1;;;;;319:111:0;;:::i;883:324::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;883:324:0;;;-1:-1:-1;;;;;883:324:0;;;;;;;;;;:::i;641:123::-;;;;;;;;;;;;;;;;-1:-1:-1;641:123:0;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;641:123:0;;;;;;;;;;;;;;776:99;;;;;;;;;;;;;;;;-1:-1:-1;776:99:0;;:::i;438:195::-;-1:-1:-1;;;;;532:17:0;;512:3;532:17;;;:12;;;:17;;;;;;;;528:59;;-1:-1:-1;;;566:9:0;;528:59;-1:-1:-1;;;;;;608:16:0;;;;;;:11;;;:16;;;;;;438:195;;;;;:::o;1215:473::-;-1:-1:-1;;;;;1284:17:0;;;;;;:12;;;:17;;;;;;;;1279:57;;1318:7;;1279:57;-1:-1:-1;;;;;1355:17:0;;;;;;:12;;;:17;;;;;;;;1348:24;;-1:-1:-1;;1348:24:0;;;;1390:10;;:15;;;;;1383:22;;;1431:11;;;:16;;;;;;1475:15;;1431:16;;-1:-1:-1;;1475:19:0;;;1355:3;;1475:19;;1523;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1523:19:0;;;1555:20;;;:11;;;:20;;;;;;;:28;;;1601:16;;;;;;;1594:23;;;;1630:15;;1523:19;;-1:-1:-1;1523:19:0;;1555:3;;1578:5;;1630:15;;;;;;;;;;;;;;;:25;;-1:-1:-1;;;;;;1630:25:0;-1:-1:-1;;;;;1630:25:0;;;;;;;;;;1666:14;;;;;;;;;;;;;;;;;;-1:-1:-1;;1666:14:0;;;;;-1:-1:-1;;;;;;1666:14:0;;;;;;-1:-1:-1;;;1215:473:0;;;:::o;319:111::-;-1:-1:-1;;;;;407:15:0;383:4;407:15;;;:10;;;;;:15;;;;;;;319:111::o;883:324::-;-1:-1:-1;;;;;958:17:0;;;;;;:12;;;:17;;;;;;;;954:246;;;-1:-1:-1;;;;;992:15:0;;;;;;:10;;;:15;;;;;:21;;;954:246;;;-1:-1:-1;;;;;1046:17:0;;;;;;:12;;;:17;;;;;;;;:24;;-1:-1:-1;;1046:24:0;1066:4;1046:24;;;;;;1085:10;;;:15;;;;;:21;;;1140:15;;1121:11;;;:16;;;;;:34;;;1170:18;;;;;;;;;;;;-1:-1:-1;;;;;;1170:18:0;;;;;;954:246;883:324;;;:::o;641:123::-;714:7;741:3;:8;;750:5;741:15;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;741:15:0;;641:123;-1:-1:-1;;;641:123:0:o;776:99::-;852:15;;776:99::o
Swarm Source
ipfs://84d61d41a19b20a9e778d37a841963b9dc83adc36900681504a162d7fc655e88
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.