Contract 0x6C7256cf7C003dD85683339F75DdE9971f98f2FD 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcb100ac7f28fa4593f3bbf5bb4ac885c11edb4bc1312f35795c26a138165ec170x60806040127952632021-04-03 0:24:10170 days 11 hrs ago0xf6839085f692bde6a8062573e3da35e7e947c21e IN  Contract Creation0 MATIC0.000371297
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InstaMemory

Compiler Version
v0.7.0+commit.9e61f92b

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at polygonscan.com on 2021-06-13
*/

// Sources flattened with hardhat v2.0.8 https://hardhat.org

// File contracts/v1/memory.sol

pragma solidity ^0.7.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 ABI

[{"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"}]

608060405234801561001057600080fd5b506105c2806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063455ded9e1461006757806357bc2ef31461009f57806361e3c944146100e1578063a9c70eaa14610119578063d81f84b71461015b578063eba36dbd146101b3575b600080fd5b61009d6004803603604081101561007d57600080fd5b810190808035906020019092919080359060200190929190505050610201565b005b6100cb600480360360208110156100b557600080fd5b8101908080359060200190929190505050610259565b6040518082815260200191505060405180910390f35b610117600480360360408110156100f757600080fd5b810190808035906020019092919080359060200190929190505050610305565b005b6101456004803603602081101561012f57600080fd5b810190808035906020019092919050505061035e565b6040518082815260200191505060405180910390f35b6101876004803603602081101561017157600080fd5b810190808035906020019092919050505061040c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101ff600480360360408110156101c957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104f9565b005b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020819055505050565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000205490506000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009055919050565b80600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020819055505050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020549050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009055919050565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055919050565b80600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505056fea26469706673582212204dd54f6b35f8771f63c5a0d2af1d85acdab729006864315a75938a3cb446061364736f6c63430007000033

Deployed ByteCode Sourcemap

201:2006:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;961:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1148:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1419:93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1598:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2055:147;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;1868:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;961:100;1048:5;1022:6;:18;1029:10;1022:18;;;;;;;;;;;;;;;:23;1041:3;1022:23;;;;;;;;;;;:31;;;;961:100;;:::o;1148:150::-;1192:13;1226:6;:18;1233:10;1226:18;;;;;;;;;;;;;;;:23;1245:3;1226:23;;;;;;;;;;;;1218:31;;1267:6;:18;1274:10;1267:18;;;;;;;;;;;;;;;:23;1286:3;1267:23;;;;;;;;;;;1260:30;;;1148:150;;;:::o;1419:93::-;1500:4;1475:5;:17;1481:10;1475:17;;;;;;;;;;;;;;;:22;1493:3;1475:22;;;;;;;;;;;:29;;;;1419:93;;:::o;1598:142::-;1641:9;1670:5;:17;1676:10;1670:17;;;;;;;;;;;;;;;:22;1688:3;1670:22;;;;;;;;;;;;1663:29;;1710:5;:17;1716:10;1710:17;;;;;;;;;;;;;;;:22;1728:3;1710:22;;;;;;;;;;;1703:29;;;1598:142;;;:::o;2055:147::-;2098:13;2132:5;:17;2138:10;2132:17;;;;;;;;;;;;;;;:22;2150:3;2132:22;;;;;;;;;;;;;;;;;;;;;2124:30;;2172:5;:17;2178:10;2172:17;;;;;;;;;;;;;;;:22;2190:3;2172:22;;;;;;;;;;;;2165:29;;;;;;;;;;;2055:147;;;:::o;1868:98::-;1953:5;1928;:17;1934:10;1928:17;;;;;;;;;;;;;;;:22;1946:3;1928:22;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;1868:98;;:::o

Swarm Source

ipfs://4dd54f6b35f8771f63c5a0d2af1d85acdab729006864315a75938a3cb4460613
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.