Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
IterableMapping
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-29 */ 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
61044e610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806317e142d1146100715780634c60db9c146100af578063732a2ccf146100ea578063bc2b405c14610116578063d1aa9e7e14610155578063deb3d89614610194575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b1565b60408051918252519081900360200190f35b8180156100bb57600080fd5b506100e8600480360360408110156100d257600080fd5b50803590602001356001600160a01b03166101ff565b005b61009d6004803603604081101561010057600080fd5b50803590602001356001600160a01b031661031e565b81801561012257600080fd5b506100e86004803603606081101561013957600080fd5b508035906001600160a01b03602082013516906040013561033d565b6101786004803603604081101561016b57600080fd5b50803590602001356103e7565b604080516001600160a01b039092168252519081900360200190f35b61009d600480360360208110156101aa57600080fd5b5035610414565b6001600160a01b038116600090815260038301602052604081205460ff166101dc57506000196101f9565b506001600160a01b03811660009081526002830160205260409020545b92915050565b6001600160a01b038116600090815260038301602052604090205460ff166102265761031a565b6001600160a01b03811660009081526003830160209081526040808320805460ff19169055600185018252808320839055600285019091528120548354909160001982019185908390811061027757fe5b60009182526020808320909101546001600160a01b039081168084526002890190925260408084208790559087168352822091909155855490915081908690859081106102c057fe5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905584548590806102f457fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050505b5050565b6001600160a01b03166000908152600191909101602052604090205490565b6001600160a01b038216600090815260038401602052604090205460ff1615610382576001600160a01b038216600090815260018401602052604090208190556103e2565b6001600160a01b03821660008181526003850160209081526040808320805460ff19166001908117909155878101835281842086905587546002890184529184208290558101875586835291200180546001600160a01b03191690911790555b505050565b60008260000182815481106103f857fe5b6000918252602090912001546001600160a01b03169392505050565b549056fea26469706673582212204c3c8157070bec5b3053eeb20916403ba338dd92c8aa7313c3697cae7fb41e7664736f6c63430007050033
Deployed Bytecode
0x73398112a65e3160e121f319e2976ac2bea0a48323301460806040526004361061006c5760003560e01c806317e142d1146100715780634c60db9c146100af578063732a2ccf146100ea578063bc2b405c14610116578063d1aa9e7e14610155578063deb3d89614610194575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b1565b60408051918252519081900360200190f35b8180156100bb57600080fd5b506100e8600480360360408110156100d257600080fd5b50803590602001356001600160a01b03166101ff565b005b61009d6004803603604081101561010057600080fd5b50803590602001356001600160a01b031661031e565b81801561012257600080fd5b506100e86004803603606081101561013957600080fd5b508035906001600160a01b03602082013516906040013561033d565b6101786004803603604081101561016b57600080fd5b50803590602001356103e7565b604080516001600160a01b039092168252519081900360200190f35b61009d600480360360208110156101aa57600080fd5b5035610414565b6001600160a01b038116600090815260038301602052604081205460ff166101dc57506000196101f9565b506001600160a01b03811660009081526002830160205260409020545b92915050565b6001600160a01b038116600090815260038301602052604090205460ff166102265761031a565b6001600160a01b03811660009081526003830160209081526040808320805460ff19169055600185018252808320839055600285019091528120548354909160001982019185908390811061027757fe5b60009182526020808320909101546001600160a01b039081168084526002890190925260408084208790559087168352822091909155855490915081908690859081106102c057fe5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905584548590806102f457fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050505b5050565b6001600160a01b03166000908152600191909101602052604090205490565b6001600160a01b038216600090815260038401602052604090205460ff1615610382576001600160a01b038216600090815260018401602052604090208190556103e2565b6001600160a01b03821660008181526003850160209081526040808320805460ff19166001908117909155878101835281842086905587546002890184529184208290558101875586835291200180546001600160a01b03191690911790555b505050565b60008260000182815481106103f857fe5b6000918252602090912001546001600160a01b03169392505050565b549056fea26469706673582212204c3c8157070bec5b3053eeb20916403ba338dd92c8aa7313c3697cae7fb41e7664736f6c63430007050033
Deployed Bytecode Sourcemap
0:1631:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;378:197;;;;;;;;;;;;;;;;-1:-1:-1;378:197:0;;;;;;-1:-1:-1;;;;;378:197:0;;:::i;:::-;;;;;;;;;;;;;;;;1155:473;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1155:473:0;;;;;;-1:-1:-1;;;;;1155:473:0;;:::i;:::-;;259:111;;;;;;;;;;;;;;;;-1:-1:-1;259:111:0;;;;;;-1:-1:-1;;;;;259:111:0;;:::i;823:324::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;823:324:0;;;-1:-1:-1;;;;;823:324:0;;;;;;;;;;:::i;583:123::-;;;;;;;;;;;;;;;;-1:-1:-1;583:123:0;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;583:123:0;;;;;;;;;;;;;;716:99;;;;;;;;;;;;;;;;-1:-1:-1;716:99:0;;:::i;378:197::-;-1:-1:-1;;;;;473:17:0;;452:3;473:17;;;:12;;;:17;;;;;;;;468:61;;-1:-1:-1;;;507:10:0;;468:61;-1:-1:-1;;;;;;550:16:0;;;;;;:11;;;:16;;;;;;378:197;;;;;:::o;1155:473::-;-1:-1:-1;;;;;1224:17:0;;;;;;:12;;;:17;;;;;;;;1219:57;;1258:7;;1219:57;-1:-1:-1;;;;;1295:17:0;;;;;;:12;;;:17;;;;;;;;1288:24;;-1:-1:-1;;1288:24:0;;;;1330:10;;:15;;;;;1323:22;;;1371:11;;;:16;;;;;;1415:15;;1371:16;;-1:-1:-1;;1415:19:0;;;1295:3;;1415:19;;1463;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1463:19:0;;;1495:20;;;:11;;;:20;;;;;;;:28;;;1541:16;;;;;;;1534:23;;;;1570:15;;1463:19;;-1:-1:-1;1463:19:0;;1495:3;;1518:5;;1570:15;;;;;;;;;;;;;;;:25;;-1:-1:-1;;;;;;1570:25:0;-1:-1:-1;;;;;1570:25:0;;;;;;;;;;1606:14;;;;;;;;;;;;;;;;;;-1:-1:-1;;1606:14:0;;;;;-1:-1:-1;;;;;;1606:14:0;;;;;;-1:-1:-1;;;1155:473:0;;;:::o;259:111::-;-1:-1:-1;;;;;347:15:0;323:4;347:15;;;:10;;;;;:15;;;;;;;259:111::o;823:324::-;-1:-1:-1;;;;;898:17:0;;;;;;:12;;;:17;;;;;;;;894:246;;;-1:-1:-1;;;;;932:15:0;;;;;;:10;;;:15;;;;;:21;;;894:246;;;-1:-1:-1;;;;;986:17:0;;;;;;:12;;;:17;;;;;;;;:24;;-1:-1:-1;;986:24:0;1006:4;986:24;;;;;;1025:10;;;:15;;;;;:21;;;1080:15;;1061:11;;;:16;;;;;:34;;;1110:18;;;;;;;;;;;;-1:-1:-1;;;;;;1110:18:0;;;;;;894:246;823:324;;;:::o;583:123::-;656:7;683:3;:8;;692:5;683:15;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;683:15:0;;583:123;-1:-1:-1;;;583:123:0:o;716:99::-;792:15;;716:99::o
Swarm Source
ipfs://4c3c8157070bec5b3053eeb20916403ba338dd92c8aa7313c3697cae7fb41e76
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.