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 Name:
InstaMemory
Compiler Version
v0.6.0+commit.26b70077
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-03-26 */ pragma solidity ^0.6.0; /** * @title InstaMemory. * @dev Store Data For Cast Function. */ contract InstaMemory { // Memory Bytes (Smart Account Address => Storage ID => Bytes). mapping (address => mapping (uint => bytes32)) internal mbytes; // Use it to store execute data and delete in the same transaction // Memory Uint (Smart Account Address => Storage ID => Uint). mapping (address => mapping (uint => uint)) internal muint; // Use it to store execute data and delete in the same transaction // Memory Address (Smart Account Address => Storage ID => Address). mapping (address => mapping (uint => address)) internal maddr; // Use it to store execute data and delete in the same transaction /** * @dev Store Bytes. * @param _id Storage ID. * @param _byte bytes data to store. */ function setBytes(uint _id, bytes32 _byte) public { mbytes[msg.sender][_id] = _byte; } /** * @dev Get Stored Bytes. * @param _id Storage ID. */ function getBytes(uint _id) public returns (bytes32 _byte) { _byte = mbytes[msg.sender][_id]; delete mbytes[msg.sender][_id]; } /** * @dev Store Uint. * @param _id Storage ID. * @param _num uint data to store. */ function setUint(uint _id, uint _num) public { muint[msg.sender][_id] = _num; } /** * @dev Get Stored Uint. * @param _id Storage ID. */ function getUint(uint _id) public returns (uint _num) { _num = muint[msg.sender][_id]; delete muint[msg.sender][_id]; } /** * @dev Store Address. * @param _id Storage ID. * @param _addr Address data to store. */ function setAddr(uint _id, address _addr) public { maddr[msg.sender][_id] = _addr; } /** * @dev Get Stored Address. * @param _id Storage ID. */ function getAddr(uint _id) public returns (address _addr) { _addr = maddr[msg.sender][_id]; delete maddr[msg.sender][_id]; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getAddr","outputs":[{"internalType":"address","name":"_addr","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getBytes","outputs":[{"internalType":"bytes32","name":"_byte","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getUint","outputs":[{"internalType":"uint256","name":"_num","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"name":"setAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_byte","type":"bytes32"}],"name":"setBytes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"setUint","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506105d8806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063455ded9e1461006757806357bc2ef31461009f57806361e3c944146100e1578063a9c70eaa14610119578063d81f84b71461015b578063eba36dbd146101c9575b600080fd5b61009d6004803603604081101561007d57600080fd5b810190808035906020019092919080359060200190929190505050610217565b005b6100cb600480360360208110156100b557600080fd5b810190808035906020019092919050505061026f565b6040518082815260200191505060405180910390f35b610117600480360360408110156100f757600080fd5b81019080803590602001909291908035906020019092919050505061031b565b005b6101456004803603602081101561012f57600080fd5b8101908080359060200190929190505050610374565b6040518082815260200191505060405180910390f35b6101876004803603602081101561017157600080fd5b8101908080359060200190929190505050610422565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610215600480360360408110156101df57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061050f565b005b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020819055505050565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000205490506000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009055919050565b80600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020819055505050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020549050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009055919050565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055919050565b80600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505056fea2646970667358221220061a3a72d0ad4fe6db17fc7e2cfd0446448c401cf4c0ef33e9b96e821bf7f3d664736f6c63430006000033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063455ded9e1461006757806357bc2ef31461009f57806361e3c944146100e1578063a9c70eaa14610119578063d81f84b71461015b578063eba36dbd146101c9575b600080fd5b61009d6004803603604081101561007d57600080fd5b810190808035906020019092919080359060200190929190505050610217565b005b6100cb600480360360208110156100b557600080fd5b810190808035906020019092919050505061026f565b6040518082815260200191505060405180910390f35b610117600480360360408110156100f757600080fd5b81019080803590602001909291908035906020019092919050505061031b565b005b6101456004803603602081101561012f57600080fd5b8101908080359060200190929190505050610374565b6040518082815260200191505060405180910390f35b6101876004803603602081101561017157600080fd5b8101908080359060200190929190505050610422565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610215600480360360408110156101df57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061050f565b005b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020819055505050565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000205490506000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009055919050565b80600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020819055505050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020549050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009055919050565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055919050565b80600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505056fea2646970667358221220061a3a72d0ad4fe6db17fc7e2cfd0446448c401cf4c0ef33e9b96e821bf7f3d664736f6c63430006000033
Deployed Bytecode Sourcemap
102:2006:0:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;102:2006:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;862:100;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;862:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1049:150;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1049:150:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1320:93;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1320:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1499:142;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1499:142:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1956:147;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1956:147:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1769:98;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1769:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;862:100;949:5;923:6;:18;930:10;923:18;;;;;;;;;;;;;;;:23;942:3;923:23;;;;;;;;;;;:31;;;;862:100;;:::o;1049:150::-;1093:13;1127:6;:18;1134:10;1127:18;;;;;;;;;;;;;;;:23;1146:3;1127:23;;;;;;;;;;;;1119:31;;1168:6;:18;1175:10;1168:18;;;;;;;;;;;;;;;:23;1187:3;1168:23;;;;;;;;;;;1161:30;;;1049:150;;;:::o;1320:93::-;1401:4;1376:5;:17;1382:10;1376:17;;;;;;;;;;;;;;;:22;1394:3;1376:22;;;;;;;;;;;:29;;;;1320:93;;:::o;1499:142::-;1542:9;1571:5;:17;1577:10;1571:17;;;;;;;;;;;;;;;:22;1589:3;1571:22;;;;;;;;;;;;1564:29;;1611:5;:17;1617:10;1611:17;;;;;;;;;;;;;;;:22;1629:3;1611:22;;;;;;;;;;;1604:29;;;1499:142;;;:::o;1956:147::-;1999:13;2033:5;:17;2039:10;2033:17;;;;;;;;;;;;;;;:22;2051:3;2033:22;;;;;;;;;;;;;;;;;;;;;2025:30;;2073:5;:17;2079:10;2073:17;;;;;;;;;;;;;;;:22;2091:3;2073:22;;;;;;;;;;;;2066:29;;;;;;;;;;;1956:147;;;:::o;1769:98::-;1854:5;1829;:17;1835:10;1829:17;;;;;;;;;;;;;;;:22;1847:3;1829:22;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;1769:98;;:::o
Swarm Source
ipfs://061a3a72d0ad4fe6db17fc7e2cfd0446448c401cf4c0ef33e9b96e821bf7f3d6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.