Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbriceno/a0f3c91c80df40f655c7b5db05833795 to your computer and use it in GitHub Desktop.
Save mbriceno/a0f3c91c80df40f655c7b5db05833795 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
accounts[2] = 0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db;
accounts[3] = 0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB;
accounts[4] = 0x617F2E2fD72FD9D5503197092aC168c91465E7f2;
accounts[5] = 0x17F6AD8Ef982297579C203069C1DbfFE4348c372;
accounts[6] = 0x5c6B0f7Bf3E7ce046039Bd8FABdfD3f9F5021678;
accounts[7] = 0x03C6FcED478cBbC9a4FAB34eF9f40767739D1Ff7;
accounts[8] = 0x1aE0EA34a72D944a8C7603FfB3eC30a6669E454C;
accounts[9] = 0x0A098Eda01Ce92ff4A4CCb7A4fFFb5A43EBC70DC;
accounts[10] = 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c;
accounts[11] = 0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C;
accounts[12] = 0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB;
accounts[13] = 0x583031D1113aD414F02576BD6afaBfb302140225;
accounts[14] = 0xdD870fA1b7C4700F2BD7f44238821C26f7392148;
return accounts[index];
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library Assert {
event AssertionEvent(
bool passed,
string message,
string methodName
);
event AssertionEventUint(
bool passed,
string message,
string methodName,
uint256 returned,
uint256 expected
);
event AssertionEventInt(
bool passed,
string message,
string methodName,
int256 returned,
int256 expected
);
event AssertionEventBool(
bool passed,
string message,
string methodName,
bool returned,
bool expected
);
event AssertionEventAddress(
bool passed,
string message,
string methodName,
address returned,
address expected
);
event AssertionEventBytes32(
bool passed,
string message,
string methodName,
bytes32 returned,
bytes32 expected
);
event AssertionEventString(
bool passed,
string message,
string methodName,
string returned,
string expected
);
event AssertionEventUintInt(
bool passed,
string message,
string methodName,
uint256 returned,
int256 expected
);
event AssertionEventIntUint(
bool passed,
string message,
string methodName,
int256 returned,
uint256 expected
);
function ok(bool a, string memory message) public returns (bool result) {
result = a;
emit AssertionEvent(result, message, "ok");
}
function equal(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventUint(result, message, "equal", a, b);
}
function equal(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventInt(result, message, "equal", a, b);
}
function equal(bool a, bool b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventBool(result, message, "equal", a, b);
}
// TODO: only for certain versions of solc
//function equal(fixed a, fixed b, string message) public returns (bool result) {
// result = (a == b);
// emit AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function equal(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a == b);
// emit AssertionEvent(result, message);
//}
function equal(address a, address b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventAddress(result, message, "equal", a, b);
}
function equal(bytes32 a, bytes32 b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventBytes32(result, message, "equal", a, b);
}
function equal(string memory a, string memory b, string memory message) public returns (bool result) {
result = (keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)));
emit AssertionEventString(result, message, "equal", a, b);
}
function notEqual(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventUint(result, message, "notEqual", a, b);
}
function notEqual(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventInt(result, message, "notEqual", a, b);
}
function notEqual(bool a, bool b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventBool(result, message, "notEqual", a, b);
}
// TODO: only for certain versions of solc
//function notEqual(fixed a, fixed b, string message) public returns (bool result) {
// result = (a != b);
// emit AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function notEqual(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a != b);
// emit AssertionEvent(result, message);
//}
function notEqual(address a, address b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventAddress(result, message, "notEqual", a, b);
}
function notEqual(bytes32 a, bytes32 b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventBytes32(result, message, "notEqual", a, b);
}
function notEqual(string memory a, string memory b, string memory message) public returns (bool result) {
result = (keccak256(abi.encodePacked(a)) != keccak256(abi.encodePacked(b)));
emit AssertionEventString(result, message, "notEqual", a, b);
}
/*----------------- Greater than --------------------*/
function greaterThan(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a > b);
emit AssertionEventUint(result, message, "greaterThan", a, b);
}
function greaterThan(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a > b);
emit AssertionEventInt(result, message, "greaterThan", a, b);
}
// TODO: safely compare between uint and int
function greaterThan(uint256 a, int256 b, string memory message) public returns (bool result) {
if(b < int(0)) {
// int is negative uint "a" always greater
result = true;
} else {
result = (a > uint(b));
}
emit AssertionEventUintInt(result, message, "greaterThan", a, b);
}
function greaterThan(int256 a, uint256 b, string memory message) public returns (bool result) {
if(a < int(0)) {
// int is negative uint "b" always greater
result = false;
} else {
result = (uint(a) > b);
}
emit AssertionEventIntUint(result, message, "greaterThan", a, b);
}
/*----------------- Lesser than --------------------*/
function lesserThan(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a < b);
emit AssertionEventUint(result, message, "lesserThan", a, b);
}
function lesserThan(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a < b);
emit AssertionEventInt(result, message, "lesserThan", a, b);
}
// TODO: safely compare between uint and int
function lesserThan(uint256 a, int256 b, string memory message) public returns (bool result) {
if(b < int(0)) {
// int is negative int "b" always lesser
result = false;
} else {
result = (a < uint(b));
}
emit AssertionEventUintInt(result, message, "lesserThan", a, b);
}
function lesserThan(int256 a, uint256 b, string memory message) public returns (bool result) {
if(a < int(0)) {
// int is negative int "a" always lesser
result = true;
} else {
result = (uint(a) < b);
}
emit AssertionEventIntUint(result, message, "lesserThan", a, b);
}
}
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
The 'scripts' folder contains example async/await scripts for deploying the 'Storage' contract.
For the deployment of any other contract, 'contractName' and 'constructorArgs' should be updated (along with other code if required).
Scripts have full access to the web3.js and ethers.js libraries.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Owner
* @dev Set & change owner
*/
contract Owner {
address private owner;
// event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner
modifier isOwner() {
// If the first argument of 'require' evaluates to 'false', execution terminates and all
// changes to the state and to Ether balances are reverted.
// This used to consume all gas in old EVM versions, but not anymore.
// It is often a good idea to use 'require' to check if functions are called correctly.
// As a second argument, you can also provide an explanation about what went wrong.
require(msg.sender == owner, "Caller is not owner");
_;
}
/**
* @dev Set contract deployer as owner
*/
constructor() {
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
emit OwnerSet(address(0), owner);
}
/**
* @dev Change owner
* @param newOwner address of new owner
*/
function changeOwner(address newOwner) public isOwner {
emit OwnerSet(owner, newOwner);
owner = newOwner;
}
/**
* @dev Return owner address
* @return address of owner
*/
function getOwner() external view returns (address) {
return owner;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Ballot
* @dev Implements voting process along with vote delegation
*/
contract Ballot {
struct Voter {
uint weight; // weight is accumulated by delegation
bool voted; // if true, that person already voted
address delegate; // person delegated to
uint vote; // index of the voted proposal
}
struct Proposal {
// If you can limit the length to a certain number of bytes,
// always use one of bytes1 to bytes32 because they are much cheaper
bytes32 name; // short name (up to 32 bytes)
uint voteCount; // number of accumulated votes
}
address public chairperson;
mapping(address => Voter) public voters;
Proposal[] public proposals;
/**
* @dev Create a new ballot to choose one of 'proposalNames'.
* @param proposalNames names of proposals
*/
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
voters[chairperson].weight = 1;
for (uint i = 0; i < proposalNames.length; i++) {
// 'Proposal({...})' creates a temporary
// Proposal object and 'proposals.push(...)'
// appends it to the end of 'proposals'.
proposals.push(Proposal({
name: proposalNames[i],
voteCount: 0
}));
}
}
/**
* @dev Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.
* @param voter address of voter
*/
function giveRightToVote(address voter) public {
require(
msg.sender == chairperson,
"Only chairperson can give right to vote."
);
require(
!voters[voter].voted,
"The voter already voted."
);
require(voters[voter].weight == 0);
voters[voter].weight = 1;
}
/**
* @dev Delegate your vote to the voter 'to'.
* @param to address to which vote is delegated
*/
function delegate(address to) public {
Voter storage sender = voters[msg.sender];
require(!sender.voted, "You already voted.");
require(to != msg.sender, "Self-delegation is disallowed.");
while (voters[to].delegate != address(0)) {
to = voters[to].delegate;
// We found a loop in the delegation, not allowed.
require(to != msg.sender, "Found loop in delegation.");
}
sender.voted = true;
sender.delegate = to;
Voter storage delegate_ = voters[to];
if (delegate_.voted) {
// If the delegate already voted,
// directly add to the number of votes
proposals[delegate_.vote].voteCount += sender.weight;
} else {
// If the delegate did not vote yet,
// add to her weight.
delegate_.weight += sender.weight;
}
}
/**
* @dev Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.
* @param proposal index of proposal in the proposals array
*/
function vote(uint proposal) public {
Voter storage sender = voters[msg.sender];
require(sender.weight != 0, "Has no right to vote");
require(!sender.voted, "Already voted.");
sender.voted = true;
sender.vote = proposal;
// If 'proposal' is out of the range of the array,
// this will throw automatically and revert all
// changes.
proposals[proposal].voteCount += sender.weight;
}
/**
* @dev Computes the winning proposal taking all previous votes into account.
* @return winningProposal_ index of winning proposal in the proposals array
*/
function winningProposal() public view
returns (uint winningProposal_)
{
uint winningVoteCount = 0;
for (uint p = 0; p < proposals.length; p++) {
if (proposals[p].voteCount > winningVoteCount) {
winningVoteCount = proposals[p].voteCount;
winningProposal_ = p;
}
}
}
/**
* @dev Calls winningProposal() function to get the index of the winner contained in the proposals array and then
* @return winnerName_ the name of the winner
*/
function winnerName() public view
returns (bytes32 winnerName_)
{
winnerName_ = proposals[winningProposal()].name;
}
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405260f6806100126000396000f3fe60806040526004361060265760003560e01c806312065fe014602b578063b32fe94f14603f575b600080fd5b348015603657600080fd5b50603d606a565b005b606860048036036020811015605357600080fd5b810190808035906020019092919050505060b2565b005b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801560af573d6000803e3d6000fd5b50565b80341460bd57600080fd5b5056fea264697066735822122092cf066097c0d672197f4bb34fda160dce345772983d176fc5d8c71873b14ddc64736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0xF6 DUP1 PUSH2 0x12 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x26 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH1 0x2B JUMPI DUP1 PUSH4 0xB32FE94F EQ PUSH1 0x3F JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x36 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3D PUSH1 0x6A JUMP JUMPDEST STOP JUMPDEST PUSH1 0x68 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x53 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xB2 JUMP JUMPDEST STOP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC SELFBALANCE SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH1 0xAF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 CALLVALUE EQ PUSH1 0xBD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP3 0xCF MOD PUSH1 0x97 0xC0 0xD6 PUSH19 0x197F4BB34FDA160DCE345772983D176FC5D8C7 XOR PUSH20 0xB14DDC64736F6C63430007060033000000000000 ",
"sourceMap": "65:261:0:-:0;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "60806040526004361060265760003560e01c806312065fe014602b578063b32fe94f14603f575b600080fd5b348015603657600080fd5b50603d606a565b005b606860048036036020811015605357600080fd5b810190808035906020019092919050505060b2565b005b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801560af573d6000803e3d6000fd5b50565b80341460bd57600080fd5b5056fea264697066735822122092cf066097c0d672197f4bb34fda160dce345772983d176fc5d8c71873b14ddc64736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x26 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH1 0x2B JUMPI DUP1 PUSH4 0xB32FE94F EQ PUSH1 0x3F JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x36 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3D PUSH1 0x6A JUMP JUMPDEST STOP JUMPDEST PUSH1 0x68 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x53 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xB2 JUMP JUMPDEST STOP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC SELFBALANCE SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH1 0xAF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 CALLVALUE EQ PUSH1 0xBD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP3 0xCF MOD PUSH1 0x97 0xC0 0xD6 PUSH19 0x197F4BB34FDA160DCE345772983D176FC5D8C7 XOR PUSH20 0xB14DDC64736F6C63430007060033000000000000 ",
"sourceMap": "65:261:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;234:90;;;;;;;;;;;;;:::i;:::-;;124:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;234:90;273:10;:19;;:44;294:21;273:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;234:90::o;124:104::-;213:7;200:9;:20;192:29;;;;;;124:104;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "49200",
"executionCost": "75",
"totalCost": "49275"
},
"external": {
"getBalance()": "infinite",
"incrementBalance(uint256)": "226"
}
},
"methodIdentifiers": {
"getBalance()": "12065fe0",
"incrementBalance(uint256)": "b32fe94f"
}
},
"abi": [
{
"inputs": [],
"stateMutability": "payable",
"type": "constructor"
},
{
"inputs": [],
"name": "getBalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "incrementBalance",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.7.6+commit.7338295f"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "payable",
"type": "constructor"
},
{
"inputs": [],
"name": "getBalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "incrementBalance",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/Banco.sol": "Banco"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/Banco.sol": {
"keccak256": "0x8af77e2a6f0094f2cf5ec04180026eaf0ec7ecb5a4b4526a8a75b366931cb542",
"license": "MIT",
"urls": [
"bzz-raw://757c8ea1eb89d04cb713ba026adc3446ffe8004e402c8a4a9cd34899790fcff2",
"dweb:/ipfs/QmWkqYDKQGVW41at7psqBgAPs4LKz1GVmHke4694Kg9gKf"
]
}
},
"version": 1
}
{
"id": "00f22f3307d3b543a9f1fd16f79b349d",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.7.6",
"solcLongVersion": "0.7.6+commit.7338295f",
"input": {
"language": "Solidity",
"sources": {
"contracts/Banco.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.7.0 <0.9.0;\n\ncontract Banco {\n\n\n constructor() payable public {\n\n }\n\n function incrementBalance(uint256 _amount) payable public {\n require(msg.value == _amount);\n }\n\n function getBalance() public {\n msg.sender.transfer( address(this).balance );\n }\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"contracts": {
"contracts/Banco.sol": {
"Banco": {
"abi": [
{
"inputs": [],
"stateMutability": "payable",
"type": "constructor"
},
{
"inputs": [],
"name": "getBalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "incrementBalance",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"contracts/Banco.sol\":65:333 contract Banco {... */\n mstore(0x40, 0x80)\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/Banco.sol\":65:333 contract Banco {... */\n mstore(0x40, 0x80)\n jumpi(tag_1, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0x12065fe0\n eq\n tag_2\n jumpi\n dup1\n 0xb32fe94f\n eq\n tag_3\n jumpi\n tag_1:\n 0x00\n dup1\n revert\n /* \"contracts/Banco.sol\":241:331 function getBalance() public {... */\n tag_2:\n callvalue\n dup1\n iszero\n tag_4\n jumpi\n 0x00\n dup1\n revert\n tag_4:\n pop\n tag_5\n tag_6\n jump\t// in\n tag_5:\n stop\n /* \"contracts/Banco.sol\":131:235 function incrementBalance(uint256 _amount) payable public {... */\n tag_3:\n tag_7\n 0x04\n dup1\n calldatasize\n sub\n 0x20\n dup2\n lt\n iszero\n tag_8\n jumpi\n 0x00\n dup1\n revert\n tag_8:\n dup2\n add\n swap1\n dup1\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n tag_9\n jump\t// in\n tag_7:\n stop\n /* \"contracts/Banco.sol\":241:331 function getBalance() public {... */\n tag_6:\n /* \"contracts/Banco.sol\":280:290 msg.sender */\n caller\n /* \"contracts/Banco.sol\":280:299 msg.sender.transfer */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"contracts/Banco.sol\":280:324 msg.sender.transfer( address(this).balance ) */\n 0x08fc\n /* \"contracts/Banco.sol\":301:322 address(this).balance */\n selfbalance\n /* \"contracts/Banco.sol\":280:324 msg.sender.transfer( address(this).balance ) */\n swap1\n dup2\n iszero\n mul\n swap1\n mload(0x40)\n 0x00\n mload(0x40)\n dup1\n dup4\n sub\n dup2\n dup6\n dup9\n dup9\n call\n swap4\n pop\n pop\n pop\n pop\n iszero\n dup1\n iszero\n tag_12\n jumpi\n returndatasize\n 0x00\n dup1\n returndatacopy\n revert(0x00, returndatasize)\n tag_12:\n pop\n /* \"contracts/Banco.sol\":241:331 function getBalance() public {... */\n jump\t// out\n /* \"contracts/Banco.sol\":131:235 function incrementBalance(uint256 _amount) payable public {... */\n tag_9:\n /* \"contracts/Banco.sol\":220:227 _amount */\n dup1\n /* \"contracts/Banco.sol\":207:216 msg.value */\n callvalue\n /* \"contracts/Banco.sol\":207:227 msg.value == _amount */\n eq\n /* \"contracts/Banco.sol\":199:228 require(msg.value == _amount) */\n tag_14\n jumpi\n 0x00\n dup1\n revert\n tag_14:\n /* \"contracts/Banco.sol\":131:235 function incrementBalance(uint256 _amount) payable public {... */\n pop\n jump\t// out\n\n auxdata: 0xa2646970667358221220a5d48b5ed9b56cb9219edb6899be1fd049689233294b68b93f045c54f0d277c664736f6c63430007060033\n}\n",
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405260f6806100126000396000f3fe60806040526004361060265760003560e01c806312065fe014602b578063b32fe94f14603f575b600080fd5b348015603657600080fd5b50603d606a565b005b606860048036036020811015605357600080fd5b810190808035906020019092919050505060b2565b005b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801560af573d6000803e3d6000fd5b50565b80341460bd57600080fd5b5056fea2646970667358221220a5d48b5ed9b56cb9219edb6899be1fd049689233294b68b93f045c54f0d277c664736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0xF6 DUP1 PUSH2 0x12 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x26 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH1 0x2B JUMPI DUP1 PUSH4 0xB32FE94F EQ PUSH1 0x3F JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x36 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3D PUSH1 0x6A JUMP JUMPDEST STOP JUMPDEST PUSH1 0x68 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x53 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xB2 JUMP JUMPDEST STOP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC SELFBALANCE SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH1 0xAF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 CALLVALUE EQ PUSH1 0xBD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xA5 0xD4 DUP12 0x5E 0xD9 0xB5 PUSH13 0xB9219EDB6899BE1FD049689233 0x29 0x4B PUSH9 0xB93F045C54F0D277C6 PUSH5 0x736F6C6343 STOP SMOD MOD STOP CALLER ",
"sourceMap": "65:268:0:-:0;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "60806040526004361060265760003560e01c806312065fe014602b578063b32fe94f14603f575b600080fd5b348015603657600080fd5b50603d606a565b005b606860048036036020811015605357600080fd5b810190808035906020019092919050505060b2565b005b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801560af573d6000803e3d6000fd5b50565b80341460bd57600080fd5b5056fea2646970667358221220a5d48b5ed9b56cb9219edb6899be1fd049689233294b68b93f045c54f0d277c664736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x26 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH1 0x2B JUMPI DUP1 PUSH4 0xB32FE94F EQ PUSH1 0x3F JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x36 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3D PUSH1 0x6A JUMP JUMPDEST STOP JUMPDEST PUSH1 0x68 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x53 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xB2 JUMP JUMPDEST STOP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC SELFBALANCE SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH1 0xAF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 CALLVALUE EQ PUSH1 0xBD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xA5 0xD4 DUP12 0x5E 0xD9 0xB5 PUSH13 0xB9219EDB6899BE1FD049689233 0x29 0x4B PUSH9 0xB93F045C54F0D277C6 PUSH5 0x736F6C6343 STOP SMOD MOD STOP CALLER ",
"sourceMap": "65:268:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;241:90;;;;;;;;;;;;;:::i;:::-;;131:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;241:90;280:10;:19;;:44;301:21;280:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;241:90::o;131:104::-;220:7;207:9;:20;199:29;;;;;;131:104;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "49200",
"executionCost": "75",
"totalCost": "49275"
},
"external": {
"getBalance()": "infinite",
"incrementBalance(uint256)": "226"
}
},
"legacyAssembly": {
".code": [
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 65,
"end": 333,
"name": "MSTORE",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 65,
"end": 333,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 333,
"name": "CODECOPY",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 333,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220a5d48b5ed9b56cb9219edb6899be1fd049689233294b68b93f045c54f0d277c664736f6c63430007060033",
".code": [
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 65,
"end": 333,
"name": "MSTORE",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 65,
"end": 333,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "LT",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 65,
"end": 333,
"name": "JUMPI",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 333,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "E0"
},
{
"begin": 65,
"end": 333,
"name": "SHR",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "12065FE0"
},
{
"begin": 65,
"end": 333,
"name": "EQ",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 65,
"end": 333,
"name": "JUMPI",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "B32FE94F"
},
{
"begin": 65,
"end": 333,
"name": "EQ",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 65,
"end": 333,
"name": "JUMPI",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 65,
"end": 333,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 333,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 333,
"name": "REVERT",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 241,
"end": 331,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "DUP1",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "ISZERO",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 241,
"end": 331,
"name": "JUMPI",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 241,
"end": 331,
"name": "DUP1",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "REVERT",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 241,
"end": 331,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "POP",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 241,
"end": 331,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 241,
"end": 331,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 241,
"end": 331,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 241,
"end": 331,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "STOP",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 131,
"end": 235,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 131,
"end": 235,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 131,
"end": 235,
"name": "DUP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "SUB",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 131,
"end": 235,
"name": "DUP2",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "LT",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "ISZERO",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 131,
"end": 235,
"name": "JUMPI",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 131,
"end": 235,
"name": "DUP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "REVERT",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 131,
"end": 235,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "DUP2",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "ADD",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "SWAP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "DUP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "DUP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "SWAP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 131,
"end": 235,
"name": "ADD",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "SWAP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "SWAP3",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "SWAP2",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "SWAP1",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "POP",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "POP",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "POP",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 131,
"end": 235,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 131,
"end": 235,
"name": "tag",
"source": 0,
"value": "7"
},
{
"begin": 131,
"end": 235,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "STOP",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "tag",
"source": 0,
"value": "6"
},
{
"begin": 241,
"end": 331,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 280,
"end": 290,
"name": "CALLER",
"source": 0
},
{
"begin": 280,
"end": 299,
"name": "PUSH",
"source": 0,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 280,
"end": 299,
"name": "AND",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "PUSH",
"source": 0,
"value": "8FC"
},
{
"begin": 301,
"end": 322,
"name": "SELFBALANCE",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "SWAP1",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP2",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "ISZERO",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "MUL",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "SWAP1",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 280,
"end": 324,
"name": "MLOAD",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 280,
"end": 324,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 280,
"end": 324,
"name": "MLOAD",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP1",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP4",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "SUB",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP2",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP6",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP9",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP9",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "CALL",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "SWAP4",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "POP",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "POP",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "POP",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "POP",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "ISZERO",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "DUP1",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "ISZERO",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "PUSH [tag]",
"source": 0,
"value": "12"
},
{
"begin": 280,
"end": 324,
"name": "JUMPI",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "RETURNDATASIZE",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 280,
"end": 324,
"name": "DUP1",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "RETURNDATACOPY",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "RETURNDATASIZE",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 280,
"end": 324,
"name": "REVERT",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "tag",
"source": 0,
"value": "12"
},
{
"begin": 280,
"end": 324,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 280,
"end": 324,
"name": "POP",
"source": 0
},
{
"begin": 241,
"end": 331,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 131,
"end": 235,
"name": "tag",
"source": 0,
"value": "9"
},
{
"begin": 131,
"end": 235,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 220,
"end": 227,
"name": "DUP1",
"source": 0
},
{
"begin": 207,
"end": 216,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 207,
"end": 227,
"name": "EQ",
"source": 0
},
{
"begin": 199,
"end": 228,
"name": "PUSH [tag]",
"source": 0,
"value": "14"
},
{
"begin": 199,
"end": 228,
"name": "JUMPI",
"source": 0
},
{
"begin": 199,
"end": 228,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 199,
"end": 228,
"name": "DUP1",
"source": 0
},
{
"begin": 199,
"end": 228,
"name": "REVERT",
"source": 0
},
{
"begin": 199,
"end": 228,
"name": "tag",
"source": 0,
"value": "14"
},
{
"begin": 199,
"end": 228,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "POP",
"source": 0
},
{
"begin": 131,
"end": 235,
"name": "JUMP",
"source": 0,
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"getBalance()": "12065fe0",
"incrementBalance(uint256)": "b32fe94f"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"incrementBalance\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Banco.sol\":\"Banco\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/Banco.sol\":{\"keccak256\":\"0xb0673156dcda695339b402d47cd5c21256da4578fe9000eb5cae7e3b704366e9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://082f6e608c4f856dfc00146129e284c82fc28bbd745184671763d0e70ea1c42d\",\"dweb:/ipfs/QmWV7xeDiUzDiB3Ba9bnTUqLywSNHT7NA7MJP2pt8XKQuX\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"errors": [
{
"component": "general",
"errorCode": "2462",
"formattedMessage": "contracts/Banco.sol:7:5: Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it \"abstract\" is sufficient.\n constructor() payable public {\n ^ (Relevant source part starts here and spans across multiple lines).\n",
"message": "Visibility for constructor is ignored. If you want the contract to be non-deployable, making it \"abstract\" is sufficient.",
"severity": "warning",
"sourceLocation": {
"end": 125,
"file": "contracts/Banco.sol",
"start": 88
},
"type": "Warning"
}
],
"sources": {
"contracts/Banco.sol": {
"ast": {
"absolutePath": "contracts/Banco.sol",
"exportedSymbols": {
"Banco": [
35
]
},
"id": 36,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
">=",
"0.7",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:31:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 35,
"linearizedBaseContracts": [
35
],
"name": "Banco",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 4,
"nodeType": "Block",
"src": "117:8:0",
"statements": []
},
"id": 5,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2,
"nodeType": "ParameterList",
"parameters": [],
"src": "99:2:0"
},
"returnParameters": {
"id": 3,
"nodeType": "ParameterList",
"parameters": [],
"src": "117:0:0"
},
"scope": 35,
"src": "88:37:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 17,
"nodeType": "Block",
"src": "189:46:0",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 14,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"expression": {
"id": 11,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "207:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 12,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "value",
"nodeType": "MemberAccess",
"src": "207:9:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"id": 13,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "220:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "207:20:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 10,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "199:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 15,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "199:29:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 16,
"nodeType": "ExpressionStatement",
"src": "199:29:0"
}
]
},
"functionSelector": "b32fe94f",
"id": 18,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "incrementBalance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 8,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 18,
"src": "157:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "157:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "156:17:0"
},
"returnParameters": {
"id": 9,
"nodeType": "ParameterList",
"parameters": [],
"src": "189:0:0"
},
"scope": 35,
"src": "131:104:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 33,
"nodeType": "Block",
"src": "270:61:0",
"statements": [
{
"expression": {
"arguments": [
{
"expression": {
"arguments": [
{
"id": 28,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "309:4:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Banco_$35",
"typeString": "contract Banco"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Banco_$35",
"typeString": "contract Banco"
}
],
"id": 27,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "301:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 26,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "301:7:0",
"typeDescriptions": {}
}
},
"id": 29,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "301:13:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 30,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "balance",
"nodeType": "MemberAccess",
"src": "301:21:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"expression": {
"id": 21,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "280:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 24,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"src": "280:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"id": 25,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"src": "280:19:0",
"typeDescriptions": {
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 31,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "280:44:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 32,
"nodeType": "ExpressionStatement",
"src": "280:44:0"
}
]
},
"functionSelector": "12065fe0",
"id": 34,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getBalance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 19,
"nodeType": "ParameterList",
"parameters": [],
"src": "260:2:0"
},
"returnParameters": {
"id": 20,
"nodeType": "ParameterList",
"parameters": [],
"src": "270:0:0"
},
"scope": 35,
"src": "241:90:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
}
],
"scope": 36,
"src": "65:268:0"
}
],
"src": "32:301:0"
},
"id": 0
}
}
}
}
{
"id": "0aaef8a7b9cd340e5a88c00ebc2ddbe6",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.7.6",
"solcLongVersion": "0.7.6+commit.7338295f",
"input": {
"language": "Solidity",
"sources": {
"contracts/Contador.sol": {
"content": "pragma solidity ^0.7.0;\n\ncontract Contador {\n uint256 count;\n\n constructor(uint256 _count) public {\n count = _count;\n }\n\n function setCount(uint256 _count) public {\n count = _count;\n }\n\n function incrementCount() public {\n count += 1;\n }\n\n function getCount() public view returns(uint256) {\n return count;\n }\n\n function getNumber() public pure returns(uint256) {\n return 34;\n }\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"contracts": {
"contracts/Contador.sol": {
"Contador": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumber",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "incrementCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"name": "setCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"contracts/Contador.sol\":25:447 contract Contador {... */\n mstore(0x40, 0x80)\n /* \"contracts/Contador.sol\":69:135 constructor(uint256 _count) public {... */\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n mload(0x40)\n sub(codesize, bytecodeSize)\n dup1\n bytecodeSize\n dup4\n codecopy\n dup2\n dup2\n add\n 0x40\n mstore\n 0x20\n dup2\n lt\n iszero\n tag_2\n jumpi\n 0x00\n dup1\n revert\ntag_2:\n dup2\n add\n swap1\n dup1\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n /* \"contracts/Contador.sol\":122:128 _count */\n dup1\n /* \"contracts/Contador.sol\":114:119 count */\n 0x00\n /* \"contracts/Contador.sol\":114:128 count = _count */\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":69:135 constructor(uint256 _count) public {... */\n pop\n /* \"contracts/Contador.sol\":25:447 contract Contador {... */\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/Contador.sol\":25:447 contract Contador {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\n tag_1:\n pop\n jumpi(tag_2, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0xa87d942c\n eq\n tag_3\n jumpi\n dup1\n 0xd14e62b8\n eq\n tag_4\n jumpi\n dup1\n 0xe5071b8e\n eq\n tag_5\n jumpi\n dup1\n 0xf2c9ecd8\n eq\n tag_6\n jumpi\n tag_2:\n 0x00\n dup1\n revert\n /* \"contracts/Contador.sol\":285:363 function getCount() public view returns(uint256) {... */\n tag_3:\n tag_7\n tag_8\n jump\t// in\n tag_7:\n mload(0x40)\n dup1\n dup3\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/Contador.sol\":141:213 function setCount(uint256 _count) public {... */\n tag_4:\n tag_9\n 0x04\n dup1\n calldatasize\n sub\n 0x20\n dup2\n lt\n iszero\n tag_10\n jumpi\n 0x00\n dup1\n revert\n tag_10:\n dup2\n add\n swap1\n dup1\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n tag_11\n jump\t// in\n tag_9:\n stop\n /* \"contracts/Contador.sol\":219:279 function incrementCount() public {... */\n tag_5:\n tag_12\n tag_13\n jump\t// in\n tag_12:\n stop\n /* \"contracts/Contador.sol\":369:445 function getNumber() public pure returns(uint256) {... */\n tag_6:\n tag_14\n tag_15\n jump\t// in\n tag_14:\n mload(0x40)\n dup1\n dup3\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/Contador.sol\":285:363 function getCount() public view returns(uint256) {... */\n tag_8:\n /* \"contracts/Contador.sol\":325:332 uint256 */\n 0x00\n /* \"contracts/Contador.sol\":351:356 count */\n dup1\n sload\n /* \"contracts/Contador.sol\":344:356 return count */\n swap1\n pop\n /* \"contracts/Contador.sol\":285:363 function getCount() public view returns(uint256) {... */\n swap1\n jump\t// out\n /* \"contracts/Contador.sol\":141:213 function setCount(uint256 _count) public {... */\n tag_11:\n /* \"contracts/Contador.sol\":200:206 _count */\n dup1\n /* \"contracts/Contador.sol\":192:197 count */\n 0x00\n /* \"contracts/Contador.sol\":192:206 count = _count */\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":141:213 function setCount(uint256 _count) public {... */\n pop\n jump\t// out\n /* \"contracts/Contador.sol\":219:279 function incrementCount() public {... */\n tag_13:\n /* \"contracts/Contador.sol\":271:272 1 */\n 0x01\n /* \"contracts/Contador.sol\":262:267 count */\n 0x00\n dup1\n /* \"contracts/Contador.sol\":262:272 count += 1 */\n dup3\n dup3\n sload\n add\n swap3\n pop\n pop\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":219:279 function incrementCount() public {... */\n jump\t// out\n /* \"contracts/Contador.sol\":369:445 function getNumber() public pure returns(uint256) {... */\n tag_15:\n /* \"contracts/Contador.sol\":410:417 uint256 */\n 0x00\n /* \"contracts/Contador.sol\":436:438 34 */\n 0x22\n /* \"contracts/Contador.sol\":429:438 return 34 */\n swap1\n pop\n /* \"contracts/Contador.sol\":369:445 function getNumber() public pure returns(uint256) {... */\n swap1\n jump\t// out\n\n auxdata: 0xa26469706673582212200700bb8d645c9f8dd0d28334e3a790e651844e63822e5b51e7dcf8cbcc48c27564736f6c63430007060033\n}\n",
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506040516101753803806101758339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000819055505061011a8061005b6000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea26469706673582212200700bb8d645c9f8dd0d28334e3a790e651844e63822e5b51e7dcf8cbcc48c27564736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x175 CODESIZE SUB DUP1 PUSH2 0x175 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0x11A DUP1 PUSH2 0x5B PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SMOD STOP 0xBB DUP14 PUSH5 0x5C9F8DD0D2 DUP4 CALLVALUE 0xE3 0xA7 SWAP1 0xE6 MLOAD DUP5 0x4E PUSH4 0x822E5B51 0xE7 0xDC 0xF8 0xCB 0xCC 0x48 0xC2 PUSH22 0x64736F6C634300070600330000000000000000000000 ",
"sourceMap": "25:422:0:-:0;;;69:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122:6;114:5;:14;;;;69:66;25:422;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea26469706673582212200700bb8d645c9f8dd0d28334e3a790e651844e63822e5b51e7dcf8cbcc48c27564736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SMOD STOP 0xBB DUP14 PUSH5 0x5C9F8DD0D2 DUP4 CALLVALUE 0xE3 0xA7 SWAP1 0xE6 MLOAD DUP5 0x4E PUSH4 0x822E5B51 0xE7 0xDC 0xF8 0xCB 0xCC 0x48 0xC2 PUSH22 0x64736F6C634300070600330000000000000000000000 ",
"sourceMap": "25:422:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;285:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;141:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;219:60;;;:::i;:::-;;369:76;;;:::i;:::-;;;;;;;;;;;;;;;;;;;285:78;325:7;351:5;;344:12;;285:78;:::o;141:72::-;200:6;192:5;:14;;;;141:72;:::o;219:60::-;271:1;262:5;;:10;;;;;;;;;;;219:60::o;369:76::-;410:7;436:2;429:9;;369:76;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "56400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"getCount()": "991",
"getNumber()": "257",
"incrementCount()": "20999",
"setCount(uint256)": "20242"
}
},
"legacyAssembly": {
".code": [
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 25,
"end": 447,
"name": "MSTORE",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "ISZERO",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 69,
"end": 135,
"name": "JUMPI",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 69,
"end": 135,
"name": "DUP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "REVERT",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 69,
"end": 135,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "POP",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 69,
"end": 135,
"name": "MLOAD",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSHSIZE",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "CODESIZE",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "SUB",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSHSIZE",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP4",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "CODECOPY",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP2",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP2",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "ADD",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 69,
"end": 135,
"name": "MSTORE",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 69,
"end": 135,
"name": "DUP2",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "LT",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "ISZERO",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 69,
"end": 135,
"name": "JUMPI",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 69,
"end": 135,
"name": "DUP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "REVERT",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 69,
"end": 135,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP2",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "ADD",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "SWAP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "DUP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "MLOAD",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "SWAP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 69,
"end": 135,
"name": "ADD",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "SWAP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "SWAP3",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "SWAP2",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "SWAP1",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "POP",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "POP",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "POP",
"source": 0
},
{
"begin": 122,
"end": 128,
"name": "DUP1",
"source": 0
},
{
"begin": 114,
"end": 119,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 114,
"end": 128,
"name": "DUP2",
"source": 0
},
{
"begin": 114,
"end": 128,
"name": "SWAP1",
"source": 0
},
{
"begin": 114,
"end": 128,
"name": "SSTORE",
"source": 0
},
{
"begin": 114,
"end": 128,
"name": "POP",
"source": 0
},
{
"begin": 69,
"end": 135,
"name": "POP",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 25,
"end": 447,
"name": "CODECOPY",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 25,
"end": 447,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a26469706673582212200700bb8d645c9f8dd0d28334e3a790e651844e63822e5b51e7dcf8cbcc48c27564736f6c63430007060033",
".code": [
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 25,
"end": 447,
"name": "MSTORE",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "ISZERO",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 25,
"end": 447,
"name": "JUMPI",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "REVERT",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 25,
"end": 447,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "POP",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 25,
"end": 447,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "LT",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 25,
"end": 447,
"name": "JUMPI",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 25,
"end": 447,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "E0"
},
{
"begin": 25,
"end": 447,
"name": "SHR",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "A87D942C"
},
{
"begin": 25,
"end": 447,
"name": "EQ",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 25,
"end": 447,
"name": "JUMPI",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "D14E62B8"
},
{
"begin": 25,
"end": 447,
"name": "EQ",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 25,
"end": 447,
"name": "JUMPI",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "E5071B8E"
},
{
"begin": 25,
"end": 447,
"name": "EQ",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 25,
"end": 447,
"name": "JUMPI",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "F2C9ECD8"
},
{
"begin": 25,
"end": 447,
"name": "EQ",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 25,
"end": 447,
"name": "JUMPI",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 25,
"end": 447,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 25,
"end": 447,
"name": "DUP1",
"source": 0
},
{
"begin": 25,
"end": 447,
"name": "REVERT",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 285,
"end": 363,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 285,
"end": 363,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 285,
"end": 363,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 285,
"end": 363,
"name": "tag",
"source": 0,
"value": "7"
},
{
"begin": 285,
"end": 363,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 285,
"end": 363,
"name": "MLOAD",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "DUP1",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "DUP3",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "DUP2",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "MSTORE",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 285,
"end": 363,
"name": "ADD",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "SWAP2",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "POP",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "POP",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 285,
"end": 363,
"name": "MLOAD",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "DUP1",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "SWAP2",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "SUB",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "SWAP1",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "RETURN",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 141,
"end": 213,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 141,
"end": 213,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 141,
"end": 213,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "SUB",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 141,
"end": 213,
"name": "DUP2",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "LT",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "ISZERO",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "PUSH [tag]",
"source": 0,
"value": "10"
},
{
"begin": 141,
"end": 213,
"name": "JUMPI",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 141,
"end": 213,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "REVERT",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "tag",
"source": 0,
"value": "10"
},
{
"begin": 141,
"end": 213,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "DUP2",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "ADD",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "SWAP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "SWAP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 141,
"end": 213,
"name": "ADD",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "SWAP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "SWAP3",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "SWAP2",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "SWAP1",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "POP",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "POP",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "POP",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "PUSH [tag]",
"source": 0,
"value": "11"
},
{
"begin": 141,
"end": 213,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 141,
"end": 213,
"name": "tag",
"source": 0,
"value": "9"
},
{
"begin": 141,
"end": 213,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "STOP",
"source": 0
},
{
"begin": 219,
"end": 279,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 219,
"end": 279,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 219,
"end": 279,
"name": "PUSH [tag]",
"source": 0,
"value": "12"
},
{
"begin": 219,
"end": 279,
"name": "PUSH [tag]",
"source": 0,
"value": "13"
},
{
"begin": 219,
"end": 279,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 219,
"end": 279,
"name": "tag",
"source": 0,
"value": "12"
},
{
"begin": 219,
"end": 279,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 219,
"end": 279,
"name": "STOP",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "tag",
"source": 0,
"value": "6"
},
{
"begin": 369,
"end": 445,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "PUSH [tag]",
"source": 0,
"value": "14"
},
{
"begin": 369,
"end": 445,
"name": "PUSH [tag]",
"source": 0,
"value": "15"
},
{
"begin": 369,
"end": 445,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 369,
"end": 445,
"name": "tag",
"source": 0,
"value": "14"
},
{
"begin": 369,
"end": 445,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 369,
"end": 445,
"name": "MLOAD",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "DUP1",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "DUP3",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "DUP2",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "MSTORE",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 369,
"end": 445,
"name": "ADD",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "SWAP2",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "POP",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "POP",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 369,
"end": 445,
"name": "MLOAD",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "DUP1",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "SWAP2",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "SUB",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "SWAP1",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "RETURN",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 285,
"end": 363,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 325,
"end": 332,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 351,
"end": 356,
"name": "DUP1",
"source": 0
},
{
"begin": 351,
"end": 356,
"name": "SLOAD",
"source": 0
},
{
"begin": 344,
"end": 356,
"name": "SWAP1",
"source": 0
},
{
"begin": 344,
"end": 356,
"name": "POP",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "SWAP1",
"source": 0
},
{
"begin": 285,
"end": 363,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 141,
"end": 213,
"name": "tag",
"source": 0,
"value": "11"
},
{
"begin": 141,
"end": 213,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 200,
"end": 206,
"name": "DUP1",
"source": 0
},
{
"begin": 192,
"end": 197,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 192,
"end": 206,
"name": "DUP2",
"source": 0
},
{
"begin": 192,
"end": 206,
"name": "SWAP1",
"source": 0
},
{
"begin": 192,
"end": 206,
"name": "SSTORE",
"source": 0
},
{
"begin": 192,
"end": 206,
"name": "POP",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "POP",
"source": 0
},
{
"begin": 141,
"end": 213,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 219,
"end": 279,
"name": "tag",
"source": 0,
"value": "13"
},
{
"begin": 219,
"end": 279,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 271,
"end": 272,
"name": "PUSH",
"source": 0,
"value": "1"
},
{
"begin": 262,
"end": 267,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 262,
"end": 267,
"name": "DUP1",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "DUP3",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "DUP3",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "SLOAD",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "ADD",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "SWAP3",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "POP",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "POP",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "DUP2",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "SWAP1",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "SSTORE",
"source": 0
},
{
"begin": 262,
"end": 272,
"name": "POP",
"source": 0
},
{
"begin": 219,
"end": 279,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 369,
"end": 445,
"name": "tag",
"source": 0,
"value": "15"
},
{
"begin": 369,
"end": 445,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 410,
"end": 417,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 436,
"end": 438,
"name": "PUSH",
"source": 0,
"value": "22"
},
{
"begin": 429,
"end": 438,
"name": "SWAP1",
"source": 0
},
{
"begin": 429,
"end": 438,
"name": "POP",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "SWAP1",
"source": 0
},
{
"begin": 369,
"end": 445,
"name": "JUMP",
"source": 0,
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"getCount()": "a87d942c",
"getNumber()": "f2c9ecd8",
"incrementCount()": "e5071b8e",
"setCount(uint256)": "d14e62b8"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incrementCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"name\":\"setCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Contador.sol\":\"Contador\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/Contador.sol\":{\"keccak256\":\"0xb636f12c816810e823bae815c33d59375475e167b2657e5fd3f120152745d13d\",\"urls\":[\"bzz-raw://89969980827cbc32f5e750e779bd11215bfa7a451d441d0419004910e5444e2e\",\"dweb:/ipfs/QmWQnm2UhKiymEA1Z32viFfdQFej5MyVMA59Gh7BrQKVGp\"]}},\"version\":1}",
"storageLayout": {
"storage": [
{
"astId": 3,
"contract": "contracts/Contador.sol:Contador",
"label": "count",
"offset": 0,
"slot": "0",
"type": "t_uint256"
}
],
"types": {
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"errors": [
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "contracts/Contador.sol: Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n",
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "contracts/Contador.sol",
"start": -1
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "2462",
"formattedMessage": "contracts/Contador.sol:6:5: Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it \"abstract\" is sufficient.\n constructor(uint256 _count) public {\n ^ (Relevant source part starts here and spans across multiple lines).\n",
"message": "Visibility for constructor is ignored. If you want the contract to be non-deployable, making it \"abstract\" is sufficient.",
"severity": "warning",
"sourceLocation": {
"end": 135,
"file": "contracts/Contador.sol",
"start": 69
},
"type": "Warning"
}
],
"sources": {
"contracts/Contador.sol": {
"ast": {
"absolutePath": "contracts/Contador.sol",
"exportedSymbols": {
"Contador": [
48
]
},
"id": 49,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 48,
"linearizedBaseContracts": [
48
],
"name": "Contador",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3,
"mutability": "mutable",
"name": "count",
"nodeType": "VariableDeclaration",
"scope": 48,
"src": "49:13:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "49:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"body": {
"id": 12,
"nodeType": "Block",
"src": "104:31:0",
"statements": [
{
"expression": {
"id": 10,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 8,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "114:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 9,
"name": "_count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5,
"src": "122:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "114:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 11,
"nodeType": "ExpressionStatement",
"src": "114:14:0"
}
]
},
"id": 13,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5,
"mutability": "mutable",
"name": "_count",
"nodeType": "VariableDeclaration",
"scope": 13,
"src": "81:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "81:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "80:16:0"
},
"returnParameters": {
"id": 7,
"nodeType": "ParameterList",
"parameters": [],
"src": "104:0:0"
},
"scope": 48,
"src": "69:66:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 22,
"nodeType": "Block",
"src": "182:31:0",
"statements": [
{
"expression": {
"id": 20,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 18,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "192:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 19,
"name": "_count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15,
"src": "200:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "192:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 21,
"nodeType": "ExpressionStatement",
"src": "192:14:0"
}
]
},
"functionSelector": "d14e62b8",
"id": 23,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "setCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 16,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 15,
"mutability": "mutable",
"name": "_count",
"nodeType": "VariableDeclaration",
"scope": 23,
"src": "159:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "159:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "158:16:0"
},
"returnParameters": {
"id": 17,
"nodeType": "ParameterList",
"parameters": [],
"src": "182:0:0"
},
"scope": 48,
"src": "141:72:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 30,
"nodeType": "Block",
"src": "252:27:0",
"statements": [
{
"expression": {
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 26,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "262:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "+=",
"rightHandSide": {
"hexValue": "31",
"id": 27,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "271:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "262:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 29,
"nodeType": "ExpressionStatement",
"src": "262:10:0"
}
]
},
"functionSelector": "e5071b8e",
"id": 31,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "incrementCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 24,
"nodeType": "ParameterList",
"parameters": [],
"src": "242:2:0"
},
"returnParameters": {
"id": 25,
"nodeType": "ParameterList",
"parameters": [],
"src": "252:0:0"
},
"scope": 48,
"src": "219:60:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 38,
"nodeType": "Block",
"src": "334:29:0",
"statements": [
{
"expression": {
"id": 36,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "351:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 35,
"id": 37,
"nodeType": "Return",
"src": "344:12:0"
}
]
},
"functionSelector": "a87d942c",
"id": 39,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 32,
"nodeType": "ParameterList",
"parameters": [],
"src": "302:2:0"
},
"returnParameters": {
"id": 35,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 34,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 39,
"src": "325:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 33,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "325:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "324:9:0"
},
"scope": 48,
"src": "285:78:0",
"stateMutability": "view",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 46,
"nodeType": "Block",
"src": "419:26:0",
"statements": [
{
"expression": {
"hexValue": "3334",
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "436:2:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_34_by_1",
"typeString": "int_const 34"
},
"value": "34"
},
"functionReturnParameters": 43,
"id": 45,
"nodeType": "Return",
"src": "429:9:0"
}
]
},
"functionSelector": "f2c9ecd8",
"id": 47,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getNumber",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 40,
"nodeType": "ParameterList",
"parameters": [],
"src": "387:2:0"
},
"returnParameters": {
"id": 43,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 42,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "410:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 41,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "410:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "409:9:0"
},
"scope": 48,
"src": "369:76:0",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
"scope": 49,
"src": "25:422:0"
}
],
"src": "0:447:0"
},
"id": 0
}
}
}
}
{
"id": "45f8180c0e82a99befe93f1b0670ef83",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.7.6",
"solcLongVersion": "0.7.6+commit.7338295f",
"input": {
"language": "Solidity",
"sources": {
"contracts/1_Storage.sol": {
"content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.7.0 <0.9.0;\n\n/**\n * @title Storage\n * @dev Store & retrieve value in a variable\n */\ncontract Storage {\n\n uint256 number;\n\n /**\n * @dev Store value in variable\n * @param num value to store\n */\n function store(uint256 num) public {\n number = num;\n }\n\n /**\n * @dev Return value \n * @return value of 'number'\n */\n function retrieve() public view returns (uint256){\n return number;\n }\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"contracts": {
"contracts/1_Storage.sol": {
"Storage": {
"abi": [
{
"inputs": [],
"name": "retrieve",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "num",
"type": "uint256"
}
],
"name": "store",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Store & retrieve value in a variable",
"kind": "dev",
"methods": {
"retrieve()": {
"details": "Return value ",
"returns": {
"_0": "value of 'number'"
}
},
"store(uint256)": {
"details": "Store value in variable",
"params": {
"num": "value to store"
}
}
},
"title": "Storage",
"version": 1
},
"evm": {
"assembly": " /* \"contracts/1_Storage.sol\":141:497 contract Storage {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/1_Storage.sol\":141:497 contract Storage {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\n tag_1:\n pop\n jumpi(tag_2, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0x2e64cec1\n eq\n tag_3\n jumpi\n dup1\n 0x6057361d\n eq\n tag_4\n jumpi\n tag_2:\n 0x00\n dup1\n revert\n /* \"contracts/1_Storage.sol\":416:495 function retrieve() public view returns (uint256){... */\n tag_3:\n tag_5\n tag_6\n jump\t// in\n tag_5:\n mload(0x40)\n dup1\n dup3\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/1_Storage.sol\":271:335 function store(uint256 num) public {... */\n tag_4:\n tag_7\n 0x04\n dup1\n calldatasize\n sub\n 0x20\n dup2\n lt\n iszero\n tag_8\n jumpi\n 0x00\n dup1\n revert\n tag_8:\n dup2\n add\n swap1\n dup1\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n tag_9\n jump\t// in\n tag_7:\n stop\n /* \"contracts/1_Storage.sol\":416:495 function retrieve() public view returns (uint256){... */\n tag_6:\n /* \"contracts/1_Storage.sol\":457:464 uint256 */\n 0x00\n /* \"contracts/1_Storage.sol\":482:488 number */\n dup1\n sload\n /* \"contracts/1_Storage.sol\":475:488 return number */\n swap1\n pop\n /* \"contracts/1_Storage.sol\":416:495 function retrieve() public view returns (uint256){... */\n swap1\n jump\t// out\n /* \"contracts/1_Storage.sol\":271:335 function store(uint256 num) public {... */\n tag_9:\n /* \"contracts/1_Storage.sol\":325:328 num */\n dup1\n /* \"contracts/1_Storage.sol\":316:322 number */\n 0x00\n /* \"contracts/1_Storage.sol\":316:328 number = num */\n dup2\n swap1\n sstore\n pop\n /* \"contracts/1_Storage.sol\":271:335 function store(uint256 num) public {... */\n pop\n jump\t// out\n\n auxdata: 0xa2646970667358221220b04233bd1b62562f54d2da74c5ab0892bb45e826ddab1414d5be042b3cd7e3f664736f6c63430007060033\n}\n",
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b5060c78061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80632e64cec11460375780636057361d146053575b600080fd5b603d607e565b6040518082815260200191505060405180910390f35b607c60048036036020811015606757600080fd5b81019080803590602001909291905050506087565b005b60008054905090565b806000819055505056fea2646970667358221220b04233bd1b62562f54d2da74c5ab0892bb45e826ddab1414d5be042b3cd7e3f664736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xC7 DUP1 PUSH2 0x1F PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x32 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2E64CEC1 EQ PUSH1 0x37 JUMPI DUP1 PUSH4 0x6057361D EQ PUSH1 0x53 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3D PUSH1 0x7E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x7C PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x67 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0x87 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB0 TIMESTAMP CALLER 0xBD SHL PUSH3 0x562F54 0xD2 0xDA PUSH21 0xC5AB0892BB45E826DDAB1414D5BE042B3CD7E3F664 PUSH20 0x6F6C634300070600330000000000000000000000 ",
"sourceMap": "141:356:0:-:0;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060325760003560e01c80632e64cec11460375780636057361d146053575b600080fd5b603d607e565b6040518082815260200191505060405180910390f35b607c60048036036020811015606757600080fd5b81019080803590602001909291905050506087565b005b60008054905090565b806000819055505056fea2646970667358221220b04233bd1b62562f54d2da74c5ab0892bb45e826ddab1414d5be042b3cd7e3f664736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x32 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2E64CEC1 EQ PUSH1 0x37 JUMPI DUP1 PUSH4 0x6057361D EQ PUSH1 0x53 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3D PUSH1 0x7E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x7C PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x67 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0x87 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB0 TIMESTAMP CALLER 0xBD SHL PUSH3 0x562F54 0xD2 0xDA PUSH21 0xC5AB0892BB45E826DDAB1414D5BE042B3CD7E3F664 PUSH20 0x6F6C634300070600330000000000000000000000 ",
"sourceMap": "141:356:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;416:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;271:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;416:79;457:7;482:6;;475:13;;416:79;:::o;271:64::-;325:3;316:6;:12;;;;271:64;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "39800",
"executionCost": "93",
"totalCost": "39893"
},
"external": {
"retrieve()": "991",
"store(uint256)": "20242"
}
},
"legacyAssembly": {
".code": [
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 141,
"end": 497,
"name": "MSTORE",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "ISZERO",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 141,
"end": 497,
"name": "JUMPI",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "REVERT",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 141,
"end": 497,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "POP",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 141,
"end": 497,
"name": "CODECOPY",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 141,
"end": 497,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220b04233bd1b62562f54d2da74c5ab0892bb45e826ddab1414d5be042b3cd7e3f664736f6c63430007060033",
".code": [
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 141,
"end": 497,
"name": "MSTORE",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "ISZERO",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 141,
"end": 497,
"name": "JUMPI",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "REVERT",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 141,
"end": 497,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "POP",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 141,
"end": 497,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "LT",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 141,
"end": 497,
"name": "JUMPI",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 141,
"end": 497,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "E0"
},
{
"begin": 141,
"end": 497,
"name": "SHR",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "2E64CEC1"
},
{
"begin": 141,
"end": 497,
"name": "EQ",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 141,
"end": 497,
"name": "JUMPI",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "6057361D"
},
{
"begin": 141,
"end": 497,
"name": "EQ",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 141,
"end": 497,
"name": "JUMPI",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 141,
"end": 497,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 141,
"end": 497,
"name": "DUP1",
"source": 0
},
{
"begin": 141,
"end": 497,
"name": "REVERT",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 416,
"end": 495,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 416,
"end": 495,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 416,
"end": 495,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 416,
"end": 495,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 416,
"end": 495,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 416,
"end": 495,
"name": "MLOAD",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "DUP1",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "DUP3",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "DUP2",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "MSTORE",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 416,
"end": 495,
"name": "ADD",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "SWAP2",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "POP",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "POP",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 416,
"end": 495,
"name": "MLOAD",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "DUP1",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "SWAP2",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "SUB",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "SWAP1",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "RETURN",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 271,
"end": 335,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 271,
"end": 335,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 271,
"end": 335,
"name": "DUP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "SUB",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 271,
"end": 335,
"name": "DUP2",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "LT",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "ISZERO",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 271,
"end": 335,
"name": "JUMPI",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 271,
"end": 335,
"name": "DUP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "REVERT",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 271,
"end": 335,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "DUP2",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "ADD",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "SWAP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "DUP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "DUP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "SWAP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 271,
"end": 335,
"name": "ADD",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "SWAP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "SWAP3",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "SWAP2",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "SWAP1",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "POP",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "POP",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "POP",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 271,
"end": 335,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 271,
"end": 335,
"name": "tag",
"source": 0,
"value": "7"
},
{
"begin": 271,
"end": 335,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "STOP",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "tag",
"source": 0,
"value": "6"
},
{
"begin": 416,
"end": 495,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 457,
"end": 464,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 482,
"end": 488,
"name": "DUP1",
"source": 0
},
{
"begin": 482,
"end": 488,
"name": "SLOAD",
"source": 0
},
{
"begin": 475,
"end": 488,
"name": "SWAP1",
"source": 0
},
{
"begin": 475,
"end": 488,
"name": "POP",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "SWAP1",
"source": 0
},
{
"begin": 416,
"end": 495,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 271,
"end": 335,
"name": "tag",
"source": 0,
"value": "9"
},
{
"begin": 271,
"end": 335,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 325,
"end": 328,
"name": "DUP1",
"source": 0
},
{
"begin": 316,
"end": 322,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 316,
"end": 328,
"name": "DUP2",
"source": 0
},
{
"begin": 316,
"end": 328,
"name": "SWAP1",
"source": 0
},
{
"begin": 316,
"end": 328,
"name": "SSTORE",
"source": 0
},
{
"begin": 316,
"end": 328,
"name": "POP",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "POP",
"source": 0
},
{
"begin": 271,
"end": 335,
"name": "JUMP",
"source": 0,
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"retrieve()": "2e64cec1",
"store(uint256)": "6057361d"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"retrieve\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"}],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Store & retrieve value in a variable\",\"kind\":\"dev\",\"methods\":{\"retrieve()\":{\"details\":\"Return value \",\"returns\":{\"_0\":\"value of 'number'\"}},\"store(uint256)\":{\"details\":\"Store value in variable\",\"params\":{\"num\":\"value to store\"}}},\"title\":\"Storage\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/1_Storage.sol\":\"Storage\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/1_Storage.sol\":{\"keccak256\":\"0xb6ee9d528b336942dd70d3b41e2811be10a473776352009fd73f85604f5ed206\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://fe52c6e3c04ba5d83ede6cc1a43c45fa43caa435b207f64707afb17d3af1bcf1\",\"dweb:/ipfs/QmawU3NM1WNWkBauRudYCiFvuFE1tTLHB98akyBvb9UWwA\"]}},\"version\":1}",
"storageLayout": {
"storage": [
{
"astId": 4,
"contract": "contracts/1_Storage.sol:Storage",
"label": "number",
"offset": 0,
"slot": "0",
"type": "t_uint256"
}
],
"types": {
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/1_Storage.sol": {
"ast": {
"absolutePath": "contracts/1_Storage.sol",
"exportedSymbols": {
"Storage": [
25
]
},
"id": 26,
"license": "GPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
">=",
"0.7",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:31:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "70:70:0",
"text": " @title Storage\n @dev Store & retrieve value in a variable"
},
"fullyImplemented": true,
"id": 25,
"linearizedBaseContracts": [
25
],
"name": "Storage",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 4,
"mutability": "mutable",
"name": "number",
"nodeType": "VariableDeclaration",
"scope": 25,
"src": "165:14:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "165:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"body": {
"id": 14,
"nodeType": "Block",
"src": "306:29:0",
"statements": [
{
"expression": {
"id": 12,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 10,
"name": "number",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4,
"src": "316:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 11,
"name": "num",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "325:3:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "316:12:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 13,
"nodeType": "ExpressionStatement",
"src": "316:12:0"
}
]
},
"documentation": {
"id": 5,
"nodeType": "StructuredDocumentation",
"src": "186:80:0",
"text": " @dev Store value in variable\n @param num value to store"
},
"functionSelector": "6057361d",
"id": 15,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "store",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 8,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7,
"mutability": "mutable",
"name": "num",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "286:11:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "286:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "285:13:0"
},
"returnParameters": {
"id": 9,
"nodeType": "ParameterList",
"parameters": [],
"src": "306:0:0"
},
"scope": 25,
"src": "271:64:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 23,
"nodeType": "Block",
"src": "465:30:0",
"statements": [
{
"expression": {
"id": 21,
"name": "number",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4,
"src": "482:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 20,
"id": 22,
"nodeType": "Return",
"src": "475:13:0"
}
]
},
"documentation": {
"id": 16,
"nodeType": "StructuredDocumentation",
"src": "341:70:0",
"text": " @dev Return value \n @return value of 'number'"
},
"functionSelector": "2e64cec1",
"id": 24,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "retrieve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 17,
"nodeType": "ParameterList",
"parameters": [],
"src": "433:2:0"
},
"returnParameters": {
"id": 20,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "457:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "457:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "456:9:0"
},
"scope": 25,
"src": "416:79:0",
"stateMutability": "view",
"virtual": false,
"visibility": "public"
}
],
"scope": 26,
"src": "141:356:0"
}
],
"src": "37:460:0"
},
"id": 0
}
}
}
}
{
"id": "4f2bd950f8a81d7332d933c09bb5bcd9",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.7.6",
"solcLongVersion": "0.7.6+commit.7338295f",
"input": {
"language": "Solidity",
"sources": {
"contracts/Contador.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.7.0;\n\ncontract Contador {\n uint256 count;\n\n constructor(uint256 _count) {\n count = _count;\n }\n\n function setCount(uint256 _count) public {\n count = _count;\n }\n\n function incrementCount() public {\n count += 1;\n }\n\n function getCount() public view returns(uint256) {\n return count;\n }\n\n function getNumber() public pure returns(uint256) {\n return 34;\n }\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"contracts": {
"contracts/Contador.sol": {
"Contador": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumber",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "incrementCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"name": "setCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"contracts/Contador.sol\":57:472 contract Contador {... */\n mstore(0x40, 0x80)\n /* \"contracts/Contador.sol\":101:160 constructor(uint256 _count) {... */\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n mload(0x40)\n sub(codesize, bytecodeSize)\n dup1\n bytecodeSize\n dup4\n codecopy\n dup2\n dup2\n add\n 0x40\n mstore\n 0x20\n dup2\n lt\n iszero\n tag_2\n jumpi\n 0x00\n dup1\n revert\ntag_2:\n dup2\n add\n swap1\n dup1\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n /* \"contracts/Contador.sol\":147:153 _count */\n dup1\n /* \"contracts/Contador.sol\":139:144 count */\n 0x00\n /* \"contracts/Contador.sol\":139:153 count = _count */\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":101:160 constructor(uint256 _count) {... */\n pop\n /* \"contracts/Contador.sol\":57:472 contract Contador {... */\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/Contador.sol\":57:472 contract Contador {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\n tag_1:\n pop\n jumpi(tag_2, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0xa87d942c\n eq\n tag_3\n jumpi\n dup1\n 0xd14e62b8\n eq\n tag_4\n jumpi\n dup1\n 0xe5071b8e\n eq\n tag_5\n jumpi\n dup1\n 0xf2c9ecd8\n eq\n tag_6\n jumpi\n tag_2:\n 0x00\n dup1\n revert\n /* \"contracts/Contador.sol\":310:388 function getCount() public view returns(uint256) {... */\n tag_3:\n tag_7\n tag_8\n jump\t// in\n tag_7:\n mload(0x40)\n dup1\n dup3\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/Contador.sol\":166:238 function setCount(uint256 _count) public {... */\n tag_4:\n tag_9\n 0x04\n dup1\n calldatasize\n sub\n 0x20\n dup2\n lt\n iszero\n tag_10\n jumpi\n 0x00\n dup1\n revert\n tag_10:\n dup2\n add\n swap1\n dup1\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n tag_11\n jump\t// in\n tag_9:\n stop\n /* \"contracts/Contador.sol\":244:304 function incrementCount() public {... */\n tag_5:\n tag_12\n tag_13\n jump\t// in\n tag_12:\n stop\n /* \"contracts/Contador.sol\":394:470 function getNumber() public pure returns(uint256) {... */\n tag_6:\n tag_14\n tag_15\n jump\t// in\n tag_14:\n mload(0x40)\n dup1\n dup3\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/Contador.sol\":310:388 function getCount() public view returns(uint256) {... */\n tag_8:\n /* \"contracts/Contador.sol\":350:357 uint256 */\n 0x00\n /* \"contracts/Contador.sol\":376:381 count */\n dup1\n sload\n /* \"contracts/Contador.sol\":369:381 return count */\n swap1\n pop\n /* \"contracts/Contador.sol\":310:388 function getCount() public view returns(uint256) {... */\n swap1\n jump\t// out\n /* \"contracts/Contador.sol\":166:238 function setCount(uint256 _count) public {... */\n tag_11:\n /* \"contracts/Contador.sol\":225:231 _count */\n dup1\n /* \"contracts/Contador.sol\":217:222 count */\n 0x00\n /* \"contracts/Contador.sol\":217:231 count = _count */\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":166:238 function setCount(uint256 _count) public {... */\n pop\n jump\t// out\n /* \"contracts/Contador.sol\":244:304 function incrementCount() public {... */\n tag_13:\n /* \"contracts/Contador.sol\":296:297 1 */\n 0x01\n /* \"contracts/Contador.sol\":287:292 count */\n 0x00\n dup1\n /* \"contracts/Contador.sol\":287:297 count += 1 */\n dup3\n dup3\n sload\n add\n swap3\n pop\n pop\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":244:304 function incrementCount() public {... */\n jump\t// out\n /* \"contracts/Contador.sol\":394:470 function getNumber() public pure returns(uint256) {... */\n tag_15:\n /* \"contracts/Contador.sol\":435:442 uint256 */\n 0x00\n /* \"contracts/Contador.sol\":461:463 34 */\n 0x22\n /* \"contracts/Contador.sol\":454:463 return 34 */\n swap1\n pop\n /* \"contracts/Contador.sol\":394:470 function getNumber() public pure returns(uint256) {... */\n swap1\n jump\t// out\n\n auxdata: 0xa26469706673582212200d99cbb34a5a94c092807427e2f4bcb516b95be5718fdf7bf6bafaf6602048b364736f6c63430007060033\n}\n",
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506040516101753803806101758339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000819055505061011a8061005b6000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea26469706673582212200d99cbb34a5a94c092807427e2f4bcb516b95be5718fdf7bf6bafaf6602048b364736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x175 CODESIZE SUB DUP1 PUSH2 0x175 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0x11A DUP1 PUSH2 0x5B PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD SWAP10 0xCB 0xB3 0x4A GAS SWAP5 0xC0 SWAP3 DUP1 PUSH21 0x27E2F4BCB516B95BE5718FDF7BF6BAFAF6602048B3 PUSH5 0x736F6C6343 STOP SMOD MOD STOP CALLER ",
"sourceMap": "57:415:0:-:0;;;101:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147:6;139:5;:14;;;;101:59;57:415;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea26469706673582212200d99cbb34a5a94c092807427e2f4bcb516b95be5718fdf7bf6bafaf6602048b364736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD SWAP10 0xCB 0xB3 0x4A GAS SWAP5 0xC0 SWAP3 DUP1 PUSH21 0x27E2F4BCB516B95BE5718FDF7BF6BAFAF6602048B3 PUSH5 0x736F6C6343 STOP SMOD MOD STOP CALLER ",
"sourceMap": "57:415:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;310:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;166:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;244:60;;;:::i;:::-;;394:76;;;:::i;:::-;;;;;;;;;;;;;;;;;;;310:78;350:7;376:5;;369:12;;310:78;:::o;166:72::-;225:6;217:5;:14;;;;166:72;:::o;244:60::-;296:1;287:5;;:10;;;;;;;;;;;244:60::o;394:76::-;435:7;461:2;454:9;;394:76;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "56400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"getCount()": "991",
"getNumber()": "257",
"incrementCount()": "20999",
"setCount(uint256)": "20242"
}
},
"legacyAssembly": {
".code": [
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 57,
"end": 472,
"name": "MSTORE",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "ISZERO",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 101,
"end": 160,
"name": "JUMPI",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 101,
"end": 160,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "REVERT",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 101,
"end": 160,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 101,
"end": 160,
"name": "MLOAD",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSHSIZE",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "CODESIZE",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "SUB",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSHSIZE",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP4",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "CODECOPY",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "ADD",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 101,
"end": 160,
"name": "MSTORE",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 101,
"end": 160,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "LT",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "ISZERO",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 101,
"end": 160,
"name": "JUMPI",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 101,
"end": 160,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "REVERT",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 101,
"end": 160,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "ADD",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "MLOAD",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 101,
"end": 160,
"name": "ADD",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "SWAP3",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "SWAP2",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "POP",
"source": 0
},
{
"begin": 147,
"end": 153,
"name": "DUP1",
"source": 0
},
{
"begin": 139,
"end": 144,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 139,
"end": 153,
"name": "DUP2",
"source": 0
},
{
"begin": 139,
"end": 153,
"name": "SWAP1",
"source": 0
},
{
"begin": 139,
"end": 153,
"name": "SSTORE",
"source": 0
},
{
"begin": 139,
"end": 153,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 160,
"name": "POP",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 472,
"name": "CODECOPY",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 472,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a26469706673582212200d99cbb34a5a94c092807427e2f4bcb516b95be5718fdf7bf6bafaf6602048b364736f6c63430007060033",
".code": [
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 57,
"end": 472,
"name": "MSTORE",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "ISZERO",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 57,
"end": 472,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "REVERT",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 57,
"end": 472,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "POP",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 57,
"end": 472,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "LT",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 57,
"end": 472,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 472,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "E0"
},
{
"begin": 57,
"end": 472,
"name": "SHR",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "A87D942C"
},
{
"begin": 57,
"end": 472,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 57,
"end": 472,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "D14E62B8"
},
{
"begin": 57,
"end": 472,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 57,
"end": 472,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "E5071B8E"
},
{
"begin": 57,
"end": 472,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 57,
"end": 472,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "F2C9ECD8"
},
{
"begin": 57,
"end": 472,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 57,
"end": 472,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 57,
"end": 472,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 472,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 472,
"name": "REVERT",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 310,
"end": 388,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 310,
"end": 388,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 310,
"end": 388,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 310,
"end": 388,
"name": "tag",
"source": 0,
"value": "7"
},
{
"begin": 310,
"end": 388,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 310,
"end": 388,
"name": "MLOAD",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "DUP1",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "DUP3",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "DUP2",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "MSTORE",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 310,
"end": 388,
"name": "ADD",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "SWAP2",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "POP",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "POP",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 310,
"end": 388,
"name": "MLOAD",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "DUP1",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "SWAP2",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "SUB",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "SWAP1",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "RETURN",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 166,
"end": 238,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 166,
"end": 238,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 166,
"end": 238,
"name": "DUP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "SUB",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 166,
"end": 238,
"name": "DUP2",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "LT",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "ISZERO",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "PUSH [tag]",
"source": 0,
"value": "10"
},
{
"begin": 166,
"end": 238,
"name": "JUMPI",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 166,
"end": 238,
"name": "DUP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "REVERT",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "tag",
"source": 0,
"value": "10"
},
{
"begin": 166,
"end": 238,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "DUP2",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "ADD",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "SWAP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "DUP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "DUP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "SWAP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 166,
"end": 238,
"name": "ADD",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "SWAP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "SWAP3",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "SWAP2",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "SWAP1",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "POP",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "POP",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "POP",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "PUSH [tag]",
"source": 0,
"value": "11"
},
{
"begin": 166,
"end": 238,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 166,
"end": 238,
"name": "tag",
"source": 0,
"value": "9"
},
{
"begin": 166,
"end": 238,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "STOP",
"source": 0
},
{
"begin": 244,
"end": 304,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 244,
"end": 304,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 244,
"end": 304,
"name": "PUSH [tag]",
"source": 0,
"value": "12"
},
{
"begin": 244,
"end": 304,
"name": "PUSH [tag]",
"source": 0,
"value": "13"
},
{
"begin": 244,
"end": 304,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 244,
"end": 304,
"name": "tag",
"source": 0,
"value": "12"
},
{
"begin": 244,
"end": 304,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 244,
"end": 304,
"name": "STOP",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "tag",
"source": 0,
"value": "6"
},
{
"begin": 394,
"end": 470,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "PUSH [tag]",
"source": 0,
"value": "14"
},
{
"begin": 394,
"end": 470,
"name": "PUSH [tag]",
"source": 0,
"value": "15"
},
{
"begin": 394,
"end": 470,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 394,
"end": 470,
"name": "tag",
"source": 0,
"value": "14"
},
{
"begin": 394,
"end": 470,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 394,
"end": 470,
"name": "MLOAD",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "DUP1",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "DUP3",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "DUP2",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "MSTORE",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 394,
"end": 470,
"name": "ADD",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "SWAP2",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "POP",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "POP",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 394,
"end": 470,
"name": "MLOAD",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "DUP1",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "SWAP2",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "SUB",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "SWAP1",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "RETURN",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 310,
"end": 388,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 350,
"end": 357,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 376,
"end": 381,
"name": "DUP1",
"source": 0
},
{
"begin": 376,
"end": 381,
"name": "SLOAD",
"source": 0
},
{
"begin": 369,
"end": 381,
"name": "SWAP1",
"source": 0
},
{
"begin": 369,
"end": 381,
"name": "POP",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "SWAP1",
"source": 0
},
{
"begin": 310,
"end": 388,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 166,
"end": 238,
"name": "tag",
"source": 0,
"value": "11"
},
{
"begin": 166,
"end": 238,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 225,
"end": 231,
"name": "DUP1",
"source": 0
},
{
"begin": 217,
"end": 222,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 217,
"end": 231,
"name": "DUP2",
"source": 0
},
{
"begin": 217,
"end": 231,
"name": "SWAP1",
"source": 0
},
{
"begin": 217,
"end": 231,
"name": "SSTORE",
"source": 0
},
{
"begin": 217,
"end": 231,
"name": "POP",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "POP",
"source": 0
},
{
"begin": 166,
"end": 238,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 244,
"end": 304,
"name": "tag",
"source": 0,
"value": "13"
},
{
"begin": 244,
"end": 304,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 296,
"end": 297,
"name": "PUSH",
"source": 0,
"value": "1"
},
{
"begin": 287,
"end": 292,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 287,
"end": 292,
"name": "DUP1",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "DUP3",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "DUP3",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "SLOAD",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "ADD",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "SWAP3",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "POP",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "POP",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "DUP2",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "SWAP1",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "SSTORE",
"source": 0
},
{
"begin": 287,
"end": 297,
"name": "POP",
"source": 0
},
{
"begin": 244,
"end": 304,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 394,
"end": 470,
"name": "tag",
"source": 0,
"value": "15"
},
{
"begin": 394,
"end": 470,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 435,
"end": 442,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 461,
"end": 463,
"name": "PUSH",
"source": 0,
"value": "22"
},
{
"begin": 454,
"end": 463,
"name": "SWAP1",
"source": 0
},
{
"begin": 454,
"end": 463,
"name": "POP",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "SWAP1",
"source": 0
},
{
"begin": 394,
"end": 470,
"name": "JUMP",
"source": 0,
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"getCount()": "a87d942c",
"getNumber()": "f2c9ecd8",
"incrementCount()": "e5071b8e",
"setCount(uint256)": "d14e62b8"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incrementCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"name\":\"setCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Contador.sol\":\"Contador\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/Contador.sol\":{\"keccak256\":\"0xc5bc491690fef4f6956b0fa89bc64fa2503ec5e953ee1d64589a591387571c2d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://28dd5e023dcc71dab70be98ad194e9ae73d03353c8daba772584f37e650358f1\",\"dweb:/ipfs/QmXZ5wK9hSWf2M9H2HNhWsxLPWiLT46uR6i8ruamYcUgdA\"]}},\"version\":1}",
"storageLayout": {
"storage": [
{
"astId": 3,
"contract": "contracts/Contador.sol:Contador",
"label": "count",
"offset": 0,
"slot": "0",
"type": "t_uint256"
}
],
"types": {
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/Contador.sol": {
"ast": {
"absolutePath": "contracts/Contador.sol",
"exportedSymbols": {
"Contador": [
48
]
},
"id": 49,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 48,
"linearizedBaseContracts": [
48
],
"name": "Contador",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3,
"mutability": "mutable",
"name": "count",
"nodeType": "VariableDeclaration",
"scope": 48,
"src": "81:13:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "81:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"body": {
"id": 12,
"nodeType": "Block",
"src": "129:31:0",
"statements": [
{
"expression": {
"id": 10,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 8,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "139:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 9,
"name": "_count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5,
"src": "147:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "139:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 11,
"nodeType": "ExpressionStatement",
"src": "139:14:0"
}
]
},
"id": 13,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5,
"mutability": "mutable",
"name": "_count",
"nodeType": "VariableDeclaration",
"scope": 13,
"src": "113:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "113:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "112:16:0"
},
"returnParameters": {
"id": 7,
"nodeType": "ParameterList",
"parameters": [],
"src": "129:0:0"
},
"scope": 48,
"src": "101:59:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 22,
"nodeType": "Block",
"src": "207:31:0",
"statements": [
{
"expression": {
"id": 20,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 18,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "217:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 19,
"name": "_count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15,
"src": "225:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "217:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 21,
"nodeType": "ExpressionStatement",
"src": "217:14:0"
}
]
},
"functionSelector": "d14e62b8",
"id": 23,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "setCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 16,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 15,
"mutability": "mutable",
"name": "_count",
"nodeType": "VariableDeclaration",
"scope": 23,
"src": "184:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "184:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "183:16:0"
},
"returnParameters": {
"id": 17,
"nodeType": "ParameterList",
"parameters": [],
"src": "207:0:0"
},
"scope": 48,
"src": "166:72:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 30,
"nodeType": "Block",
"src": "277:27:0",
"statements": [
{
"expression": {
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 26,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "287:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "+=",
"rightHandSide": {
"hexValue": "31",
"id": 27,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "296:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "287:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 29,
"nodeType": "ExpressionStatement",
"src": "287:10:0"
}
]
},
"functionSelector": "e5071b8e",
"id": 31,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "incrementCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 24,
"nodeType": "ParameterList",
"parameters": [],
"src": "267:2:0"
},
"returnParameters": {
"id": 25,
"nodeType": "ParameterList",
"parameters": [],
"src": "277:0:0"
},
"scope": 48,
"src": "244:60:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 38,
"nodeType": "Block",
"src": "359:29:0",
"statements": [
{
"expression": {
"id": 36,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "376:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 35,
"id": 37,
"nodeType": "Return",
"src": "369:12:0"
}
]
},
"functionSelector": "a87d942c",
"id": 39,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 32,
"nodeType": "ParameterList",
"parameters": [],
"src": "327:2:0"
},
"returnParameters": {
"id": 35,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 34,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 39,
"src": "350:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 33,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "350:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "349:9:0"
},
"scope": 48,
"src": "310:78:0",
"stateMutability": "view",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 46,
"nodeType": "Block",
"src": "444:26:0",
"statements": [
{
"expression": {
"hexValue": "3334",
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "461:2:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_34_by_1",
"typeString": "int_const 34"
},
"value": "34"
},
"functionReturnParameters": 43,
"id": 45,
"nodeType": "Return",
"src": "454:9:0"
}
]
},
"functionSelector": "f2c9ecd8",
"id": 47,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getNumber",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 40,
"nodeType": "ParameterList",
"parameters": [],
"src": "412:2:0"
},
"returnParameters": {
"id": 43,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 42,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "435:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 41,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "435:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "434:9:0"
},
"scope": 48,
"src": "394:76:0",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
"scope": 49,
"src": "57:415:0"
}
],
"src": "32:440:0"
},
"id": 0
}
}
}
}
{
"id": "f436cbfb56389b393967849ed1c66348",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.7.6",
"solcLongVersion": "0.7.6+commit.7338295f",
"input": {
"language": "Solidity",
"sources": {
"contracts/Contador.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.7.0;\n\ncontract Contador {\n uint256 count;\n\n constructor(uint256 _count) public {\n count = _count;\n }\n\n function setCount(uint256 _count) public {\n count = _count;\n }\n\n function incrementCount() public {\n count += 1;\n }\n\n function getCount() public view returns(uint256) {\n return count;\n }\n\n function getNumber() public pure returns(uint256) {\n return 34;\n }\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"contracts": {
"contracts/Contador.sol": {
"Contador": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumber",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "incrementCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"name": "setCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"contracts/Contador.sol\":57:479 contract Contador {... */\n mstore(0x40, 0x80)\n /* \"contracts/Contador.sol\":101:167 constructor(uint256 _count) public {... */\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n mload(0x40)\n sub(codesize, bytecodeSize)\n dup1\n bytecodeSize\n dup4\n codecopy\n dup2\n dup2\n add\n 0x40\n mstore\n 0x20\n dup2\n lt\n iszero\n tag_2\n jumpi\n 0x00\n dup1\n revert\ntag_2:\n dup2\n add\n swap1\n dup1\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n /* \"contracts/Contador.sol\":154:160 _count */\n dup1\n /* \"contracts/Contador.sol\":146:151 count */\n 0x00\n /* \"contracts/Contador.sol\":146:160 count = _count */\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":101:167 constructor(uint256 _count) public {... */\n pop\n /* \"contracts/Contador.sol\":57:479 contract Contador {... */\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/Contador.sol\":57:479 contract Contador {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\n tag_1:\n pop\n jumpi(tag_2, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0xa87d942c\n eq\n tag_3\n jumpi\n dup1\n 0xd14e62b8\n eq\n tag_4\n jumpi\n dup1\n 0xe5071b8e\n eq\n tag_5\n jumpi\n dup1\n 0xf2c9ecd8\n eq\n tag_6\n jumpi\n tag_2:\n 0x00\n dup1\n revert\n /* \"contracts/Contador.sol\":317:395 function getCount() public view returns(uint256) {... */\n tag_3:\n tag_7\n tag_8\n jump\t// in\n tag_7:\n mload(0x40)\n dup1\n dup3\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/Contador.sol\":173:245 function setCount(uint256 _count) public {... */\n tag_4:\n tag_9\n 0x04\n dup1\n calldatasize\n sub\n 0x20\n dup2\n lt\n iszero\n tag_10\n jumpi\n 0x00\n dup1\n revert\n tag_10:\n dup2\n add\n swap1\n dup1\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n tag_11\n jump\t// in\n tag_9:\n stop\n /* \"contracts/Contador.sol\":251:311 function incrementCount() public {... */\n tag_5:\n tag_12\n tag_13\n jump\t// in\n tag_12:\n stop\n /* \"contracts/Contador.sol\":401:477 function getNumber() public pure returns(uint256) {... */\n tag_6:\n tag_14\n tag_15\n jump\t// in\n tag_14:\n mload(0x40)\n dup1\n dup3\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/Contador.sol\":317:395 function getCount() public view returns(uint256) {... */\n tag_8:\n /* \"contracts/Contador.sol\":357:364 uint256 */\n 0x00\n /* \"contracts/Contador.sol\":383:388 count */\n dup1\n sload\n /* \"contracts/Contador.sol\":376:388 return count */\n swap1\n pop\n /* \"contracts/Contador.sol\":317:395 function getCount() public view returns(uint256) {... */\n swap1\n jump\t// out\n /* \"contracts/Contador.sol\":173:245 function setCount(uint256 _count) public {... */\n tag_11:\n /* \"contracts/Contador.sol\":232:238 _count */\n dup1\n /* \"contracts/Contador.sol\":224:229 count */\n 0x00\n /* \"contracts/Contador.sol\":224:238 count = _count */\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":173:245 function setCount(uint256 _count) public {... */\n pop\n jump\t// out\n /* \"contracts/Contador.sol\":251:311 function incrementCount() public {... */\n tag_13:\n /* \"contracts/Contador.sol\":303:304 1 */\n 0x01\n /* \"contracts/Contador.sol\":294:299 count */\n 0x00\n dup1\n /* \"contracts/Contador.sol\":294:304 count += 1 */\n dup3\n dup3\n sload\n add\n swap3\n pop\n pop\n dup2\n swap1\n sstore\n pop\n /* \"contracts/Contador.sol\":251:311 function incrementCount() public {... */\n jump\t// out\n /* \"contracts/Contador.sol\":401:477 function getNumber() public pure returns(uint256) {... */\n tag_15:\n /* \"contracts/Contador.sol\":442:449 uint256 */\n 0x00\n /* \"contracts/Contador.sol\":468:470 34 */\n 0x22\n /* \"contracts/Contador.sol\":461:470 return 34 */\n swap1\n pop\n /* \"contracts/Contador.sol\":401:477 function getNumber() public pure returns(uint256) {... */\n swap1\n jump\t// out\n\n auxdata: 0xa2646970667358221220891f838651c73ff4141815384146bb51c866381ecf2f4bf54196a4045535d46164736f6c63430007060033\n}\n",
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506040516101753803806101758339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000819055505061011a8061005b6000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea2646970667358221220891f838651c73ff4141815384146bb51c866381ecf2f4bf54196a4045535d46164736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x175 CODESIZE SUB DUP1 PUSH2 0x175 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0x11A DUP1 PUSH2 0x5B PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP10 0x1F DUP4 DUP7 MLOAD 0xC7 EXTCODEHASH DELEGATECALL EQ XOR ISZERO CODESIZE COINBASE CHAINID 0xBB MLOAD 0xC8 PUSH7 0x381ECF2F4BF541 SWAP7 LOG4 DIV SSTORE CALLDATALOAD 0xD4 PUSH2 0x6473 PUSH16 0x6C634300070600330000000000000000 ",
"sourceMap": "57:422:0:-:0;;;101:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;154:6;146:5;:14;;;;101:66;57:422;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea2646970667358221220891f838651c73ff4141815384146bb51c866381ecf2f4bf54196a4045535d46164736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP10 0x1F DUP4 DUP7 MLOAD 0xC7 EXTCODEHASH DELEGATECALL EQ XOR ISZERO CODESIZE COINBASE CHAINID 0xBB MLOAD 0xC8 PUSH7 0x381ECF2F4BF541 SWAP7 LOG4 DIV SSTORE CALLDATALOAD 0xD4 PUSH2 0x6473 PUSH16 0x6C634300070600330000000000000000 ",
"sourceMap": "57:422:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;317:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;173:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;251:60;;;:::i;:::-;;401:76;;;:::i;:::-;;;;;;;;;;;;;;;;;;;317:78;357:7;383:5;;376:12;;317:78;:::o;173:72::-;232:6;224:5;:14;;;;173:72;:::o;251:60::-;303:1;294:5;;:10;;;;;;;;;;;251:60::o;401:76::-;442:7;468:2;461:9;;401:76;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "56400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"getCount()": "991",
"getNumber()": "257",
"incrementCount()": "20999",
"setCount(uint256)": "20242"
}
},
"legacyAssembly": {
".code": [
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 57,
"end": 479,
"name": "MSTORE",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "ISZERO",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 101,
"end": 167,
"name": "JUMPI",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 101,
"end": 167,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "REVERT",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 101,
"end": 167,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 101,
"end": 167,
"name": "MLOAD",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSHSIZE",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "CODESIZE",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "SUB",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSHSIZE",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP4",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "CODECOPY",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "ADD",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 101,
"end": 167,
"name": "MSTORE",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 101,
"end": 167,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "LT",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "ISZERO",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 101,
"end": 167,
"name": "JUMPI",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 101,
"end": 167,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "REVERT",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 101,
"end": 167,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP2",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "ADD",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "DUP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "MLOAD",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 101,
"end": 167,
"name": "ADD",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "SWAP3",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "SWAP2",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "SWAP1",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "POP",
"source": 0
},
{
"begin": 154,
"end": 160,
"name": "DUP1",
"source": 0
},
{
"begin": 146,
"end": 151,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 146,
"end": 160,
"name": "DUP2",
"source": 0
},
{
"begin": 146,
"end": 160,
"name": "SWAP1",
"source": 0
},
{
"begin": 146,
"end": 160,
"name": "SSTORE",
"source": 0
},
{
"begin": 146,
"end": 160,
"name": "POP",
"source": 0
},
{
"begin": 101,
"end": 167,
"name": "POP",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 479,
"name": "CODECOPY",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 479,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220891f838651c73ff4141815384146bb51c866381ecf2f4bf54196a4045535d46164736f6c63430007060033",
".code": [
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 57,
"end": 479,
"name": "MSTORE",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "ISZERO",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 57,
"end": 479,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "REVERT",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 57,
"end": 479,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "POP",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 57,
"end": 479,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "LT",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 57,
"end": 479,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 479,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "E0"
},
{
"begin": 57,
"end": 479,
"name": "SHR",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "A87D942C"
},
{
"begin": 57,
"end": 479,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 57,
"end": 479,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "D14E62B8"
},
{
"begin": 57,
"end": 479,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 57,
"end": 479,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "E5071B8E"
},
{
"begin": 57,
"end": 479,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 57,
"end": 479,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "F2C9ECD8"
},
{
"begin": 57,
"end": 479,
"name": "EQ",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 57,
"end": 479,
"name": "JUMPI",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 57,
"end": 479,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 57,
"end": 479,
"name": "DUP1",
"source": 0
},
{
"begin": 57,
"end": 479,
"name": "REVERT",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 317,
"end": 395,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 317,
"end": 395,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 317,
"end": 395,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 317,
"end": 395,
"name": "tag",
"source": 0,
"value": "7"
},
{
"begin": 317,
"end": 395,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 317,
"end": 395,
"name": "MLOAD",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "DUP1",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "DUP3",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "DUP2",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "MSTORE",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 317,
"end": 395,
"name": "ADD",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "SWAP2",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "POP",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "POP",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 317,
"end": 395,
"name": "MLOAD",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "DUP1",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "SWAP2",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "SUB",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "SWAP1",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "RETURN",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 173,
"end": 245,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 173,
"end": 245,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 173,
"end": 245,
"name": "DUP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "SUB",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 173,
"end": 245,
"name": "DUP2",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "LT",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "ISZERO",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "PUSH [tag]",
"source": 0,
"value": "10"
},
{
"begin": 173,
"end": 245,
"name": "JUMPI",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 173,
"end": 245,
"name": "DUP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "REVERT",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "tag",
"source": 0,
"value": "10"
},
{
"begin": 173,
"end": 245,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "DUP2",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "ADD",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "SWAP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "DUP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "DUP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "SWAP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 173,
"end": 245,
"name": "ADD",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "SWAP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "SWAP3",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "SWAP2",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "SWAP1",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "POP",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "POP",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "POP",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "PUSH [tag]",
"source": 0,
"value": "11"
},
{
"begin": 173,
"end": 245,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 173,
"end": 245,
"name": "tag",
"source": 0,
"value": "9"
},
{
"begin": 173,
"end": 245,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "STOP",
"source": 0
},
{
"begin": 251,
"end": 311,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 251,
"end": 311,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 251,
"end": 311,
"name": "PUSH [tag]",
"source": 0,
"value": "12"
},
{
"begin": 251,
"end": 311,
"name": "PUSH [tag]",
"source": 0,
"value": "13"
},
{
"begin": 251,
"end": 311,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 251,
"end": 311,
"name": "tag",
"source": 0,
"value": "12"
},
{
"begin": 251,
"end": 311,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 251,
"end": 311,
"name": "STOP",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "tag",
"source": 0,
"value": "6"
},
{
"begin": 401,
"end": 477,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "PUSH [tag]",
"source": 0,
"value": "14"
},
{
"begin": 401,
"end": 477,
"name": "PUSH [tag]",
"source": 0,
"value": "15"
},
{
"begin": 401,
"end": 477,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 401,
"end": 477,
"name": "tag",
"source": 0,
"value": "14"
},
{
"begin": 401,
"end": 477,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 401,
"end": 477,
"name": "MLOAD",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "DUP1",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "DUP3",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "DUP2",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "MSTORE",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 401,
"end": 477,
"name": "ADD",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "SWAP2",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "POP",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "POP",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 401,
"end": 477,
"name": "MLOAD",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "DUP1",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "SWAP2",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "SUB",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "SWAP1",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "RETURN",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 317,
"end": 395,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 357,
"end": 364,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 383,
"end": 388,
"name": "DUP1",
"source": 0
},
{
"begin": 383,
"end": 388,
"name": "SLOAD",
"source": 0
},
{
"begin": 376,
"end": 388,
"name": "SWAP1",
"source": 0
},
{
"begin": 376,
"end": 388,
"name": "POP",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "SWAP1",
"source": 0
},
{
"begin": 317,
"end": 395,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 173,
"end": 245,
"name": "tag",
"source": 0,
"value": "11"
},
{
"begin": 173,
"end": 245,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 232,
"end": 238,
"name": "DUP1",
"source": 0
},
{
"begin": 224,
"end": 229,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 224,
"end": 238,
"name": "DUP2",
"source": 0
},
{
"begin": 224,
"end": 238,
"name": "SWAP1",
"source": 0
},
{
"begin": 224,
"end": 238,
"name": "SSTORE",
"source": 0
},
{
"begin": 224,
"end": 238,
"name": "POP",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "POP",
"source": 0
},
{
"begin": 173,
"end": 245,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 251,
"end": 311,
"name": "tag",
"source": 0,
"value": "13"
},
{
"begin": 251,
"end": 311,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 303,
"end": 304,
"name": "PUSH",
"source": 0,
"value": "1"
},
{
"begin": 294,
"end": 299,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 294,
"end": 299,
"name": "DUP1",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "DUP3",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "DUP3",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "SLOAD",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "ADD",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "SWAP3",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "POP",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "POP",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "DUP2",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "SWAP1",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "SSTORE",
"source": 0
},
{
"begin": 294,
"end": 304,
"name": "POP",
"source": 0
},
{
"begin": 251,
"end": 311,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 401,
"end": 477,
"name": "tag",
"source": 0,
"value": "15"
},
{
"begin": 401,
"end": 477,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 442,
"end": 449,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 468,
"end": 470,
"name": "PUSH",
"source": 0,
"value": "22"
},
{
"begin": 461,
"end": 470,
"name": "SWAP1",
"source": 0
},
{
"begin": 461,
"end": 470,
"name": "POP",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "SWAP1",
"source": 0
},
{
"begin": 401,
"end": 477,
"name": "JUMP",
"source": 0,
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"getCount()": "a87d942c",
"getNumber()": "f2c9ecd8",
"incrementCount()": "e5071b8e",
"setCount(uint256)": "d14e62b8"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incrementCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_count\",\"type\":\"uint256\"}],\"name\":\"setCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Contador.sol\":\"Contador\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/Contador.sol\":{\"keccak256\":\"0x38606c4d9fda971d3080d2cc65593ead95e04a744da0d326665140f97517e0b4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2400c4848384f9b79cd9f0c32a8204b84174b77545a0f087da8e6a7f13aed183\",\"dweb:/ipfs/QmcS7LsKDQ14b1KdowByVDtGj317UUfU7VEc89D5xQ4P6f\"]}},\"version\":1}",
"storageLayout": {
"storage": [
{
"astId": 3,
"contract": "contracts/Contador.sol:Contador",
"label": "count",
"offset": 0,
"slot": "0",
"type": "t_uint256"
}
],
"types": {
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"errors": [
{
"component": "general",
"errorCode": "2462",
"formattedMessage": "contracts/Contador.sol:7:5: Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it \"abstract\" is sufficient.\n constructor(uint256 _count) public {\n ^ (Relevant source part starts here and spans across multiple lines).\n",
"message": "Visibility for constructor is ignored. If you want the contract to be non-deployable, making it \"abstract\" is sufficient.",
"severity": "warning",
"sourceLocation": {
"end": 167,
"file": "contracts/Contador.sol",
"start": 101
},
"type": "Warning"
}
],
"sources": {
"contracts/Contador.sol": {
"ast": {
"absolutePath": "contracts/Contador.sol",
"exportedSymbols": {
"Contador": [
48
]
},
"id": 49,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 48,
"linearizedBaseContracts": [
48
],
"name": "Contador",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3,
"mutability": "mutable",
"name": "count",
"nodeType": "VariableDeclaration",
"scope": 48,
"src": "81:13:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "81:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"body": {
"id": 12,
"nodeType": "Block",
"src": "136:31:0",
"statements": [
{
"expression": {
"id": 10,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 8,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "146:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 9,
"name": "_count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5,
"src": "154:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "146:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 11,
"nodeType": "ExpressionStatement",
"src": "146:14:0"
}
]
},
"id": 13,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5,
"mutability": "mutable",
"name": "_count",
"nodeType": "VariableDeclaration",
"scope": 13,
"src": "113:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "113:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "112:16:0"
},
"returnParameters": {
"id": 7,
"nodeType": "ParameterList",
"parameters": [],
"src": "136:0:0"
},
"scope": 48,
"src": "101:66:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 22,
"nodeType": "Block",
"src": "214:31:0",
"statements": [
{
"expression": {
"id": 20,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 18,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "224:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 19,
"name": "_count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15,
"src": "232:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "224:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 21,
"nodeType": "ExpressionStatement",
"src": "224:14:0"
}
]
},
"functionSelector": "d14e62b8",
"id": 23,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "setCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 16,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 15,
"mutability": "mutable",
"name": "_count",
"nodeType": "VariableDeclaration",
"scope": 23,
"src": "191:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "191:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "190:16:0"
},
"returnParameters": {
"id": 17,
"nodeType": "ParameterList",
"parameters": [],
"src": "214:0:0"
},
"scope": 48,
"src": "173:72:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 30,
"nodeType": "Block",
"src": "284:27:0",
"statements": [
{
"expression": {
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 26,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "294:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "+=",
"rightHandSide": {
"hexValue": "31",
"id": 27,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "303:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "294:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 29,
"nodeType": "ExpressionStatement",
"src": "294:10:0"
}
]
},
"functionSelector": "e5071b8e",
"id": 31,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "incrementCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 24,
"nodeType": "ParameterList",
"parameters": [],
"src": "274:2:0"
},
"returnParameters": {
"id": 25,
"nodeType": "ParameterList",
"parameters": [],
"src": "284:0:0"
},
"scope": 48,
"src": "251:60:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 38,
"nodeType": "Block",
"src": "366:29:0",
"statements": [
{
"expression": {
"id": 36,
"name": "count",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "383:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 35,
"id": 37,
"nodeType": "Return",
"src": "376:12:0"
}
]
},
"functionSelector": "a87d942c",
"id": 39,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getCount",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 32,
"nodeType": "ParameterList",
"parameters": [],
"src": "334:2:0"
},
"returnParameters": {
"id": 35,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 34,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 39,
"src": "357:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 33,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "357:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "356:9:0"
},
"scope": 48,
"src": "317:78:0",
"stateMutability": "view",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 46,
"nodeType": "Block",
"src": "451:26:0",
"statements": [
{
"expression": {
"hexValue": "3334",
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "468:2:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_34_by_1",
"typeString": "int_const 34"
},
"value": "34"
},
"functionReturnParameters": 43,
"id": 45,
"nodeType": "Return",
"src": "461:9:0"
}
]
},
"functionSelector": "f2c9ecd8",
"id": 47,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getNumber",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 40,
"nodeType": "ParameterList",
"parameters": [],
"src": "419:2:0"
},
"returnParameters": {
"id": 43,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 42,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "442:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 41,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "442:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "441:9:0"
},
"scope": 48,
"src": "401:76:0",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
"scope": 49,
"src": "57:422:0"
}
],
"src": "32:447:0"
},
"id": 0
}
}
}
}
{
"id": "fe4f45e1b4be9cdeae5c600ab069600b",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.7.6",
"solcLongVersion": "0.7.6+commit.7338295f",
"input": {
"language": "Solidity",
"sources": {
"contracts/Banco.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.7.0 <0.9.0;\n\ncontract Banco {\n\n\n constructor() payable {\n\n }\n\n function incrementBalance(uint256 _amount) payable public {\n require(msg.value == _amount);\n }\n\n function getBalance() public {\n msg.sender.transfer( address(this).balance );\n }\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"contracts": {
"contracts/Banco.sol": {
"Banco": {
"abi": [
{
"inputs": [],
"stateMutability": "payable",
"type": "constructor"
},
{
"inputs": [],
"name": "getBalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "incrementBalance",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"contracts/Banco.sol\":65:326 contract Banco {... */\n mstore(0x40, 0x80)\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/Banco.sol\":65:326 contract Banco {... */\n mstore(0x40, 0x80)\n jumpi(tag_1, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0x12065fe0\n eq\n tag_2\n jumpi\n dup1\n 0xb32fe94f\n eq\n tag_3\n jumpi\n tag_1:\n 0x00\n dup1\n revert\n /* \"contracts/Banco.sol\":234:324 function getBalance() public {... */\n tag_2:\n callvalue\n dup1\n iszero\n tag_4\n jumpi\n 0x00\n dup1\n revert\n tag_4:\n pop\n tag_5\n tag_6\n jump\t// in\n tag_5:\n stop\n /* \"contracts/Banco.sol\":124:228 function incrementBalance(uint256 _amount) payable public {... */\n tag_3:\n tag_7\n 0x04\n dup1\n calldatasize\n sub\n 0x20\n dup2\n lt\n iszero\n tag_8\n jumpi\n 0x00\n dup1\n revert\n tag_8:\n dup2\n add\n swap1\n dup1\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n swap3\n swap2\n swap1\n pop\n pop\n pop\n tag_9\n jump\t// in\n tag_7:\n stop\n /* \"contracts/Banco.sol\":234:324 function getBalance() public {... */\n tag_6:\n /* \"contracts/Banco.sol\":273:283 msg.sender */\n caller\n /* \"contracts/Banco.sol\":273:292 msg.sender.transfer */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"contracts/Banco.sol\":273:317 msg.sender.transfer( address(this).balance ) */\n 0x08fc\n /* \"contracts/Banco.sol\":294:315 address(this).balance */\n selfbalance\n /* \"contracts/Banco.sol\":273:317 msg.sender.transfer( address(this).balance ) */\n swap1\n dup2\n iszero\n mul\n swap1\n mload(0x40)\n 0x00\n mload(0x40)\n dup1\n dup4\n sub\n dup2\n dup6\n dup9\n dup9\n call\n swap4\n pop\n pop\n pop\n pop\n iszero\n dup1\n iszero\n tag_12\n jumpi\n returndatasize\n 0x00\n dup1\n returndatacopy\n revert(0x00, returndatasize)\n tag_12:\n pop\n /* \"contracts/Banco.sol\":234:324 function getBalance() public {... */\n jump\t// out\n /* \"contracts/Banco.sol\":124:228 function incrementBalance(uint256 _amount) payable public {... */\n tag_9:\n /* \"contracts/Banco.sol\":213:220 _amount */\n dup1\n /* \"contracts/Banco.sol\":200:209 msg.value */\n callvalue\n /* \"contracts/Banco.sol\":200:220 msg.value == _amount */\n eq\n /* \"contracts/Banco.sol\":192:221 require(msg.value == _amount) */\n tag_14\n jumpi\n 0x00\n dup1\n revert\n tag_14:\n /* \"contracts/Banco.sol\":124:228 function incrementBalance(uint256 _amount) payable public {... */\n pop\n jump\t// out\n\n auxdata: 0xa264697066735822122092cf066097c0d672197f4bb34fda160dce345772983d176fc5d8c71873b14ddc64736f6c63430007060033\n}\n",
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405260f6806100126000396000f3fe60806040526004361060265760003560e01c806312065fe014602b578063b32fe94f14603f575b600080fd5b348015603657600080fd5b50603d606a565b005b606860048036036020811015605357600080fd5b810190808035906020019092919050505060b2565b005b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801560af573d6000803e3d6000fd5b50565b80341460bd57600080fd5b5056fea264697066735822122092cf066097c0d672197f4bb34fda160dce345772983d176fc5d8c71873b14ddc64736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0xF6 DUP1 PUSH2 0x12 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x26 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH1 0x2B JUMPI DUP1 PUSH4 0xB32FE94F EQ PUSH1 0x3F JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x36 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3D PUSH1 0x6A JUMP JUMPDEST STOP JUMPDEST PUSH1 0x68 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x53 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xB2 JUMP JUMPDEST STOP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC SELFBALANCE SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH1 0xAF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 CALLVALUE EQ PUSH1 0xBD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP3 0xCF MOD PUSH1 0x97 0xC0 0xD6 PUSH19 0x197F4BB34FDA160DCE345772983D176FC5D8C7 XOR PUSH20 0xB14DDC64736F6C63430007060033000000000000 ",
"sourceMap": "65:261:0:-:0;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "60806040526004361060265760003560e01c806312065fe014602b578063b32fe94f14603f575b600080fd5b348015603657600080fd5b50603d606a565b005b606860048036036020811015605357600080fd5b810190808035906020019092919050505060b2565b005b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801560af573d6000803e3d6000fd5b50565b80341460bd57600080fd5b5056fea264697066735822122092cf066097c0d672197f4bb34fda160dce345772983d176fc5d8c71873b14ddc64736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x26 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH1 0x2B JUMPI DUP1 PUSH4 0xB32FE94F EQ PUSH1 0x3F JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x36 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3D PUSH1 0x6A JUMP JUMPDEST STOP JUMPDEST PUSH1 0x68 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x53 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xB2 JUMP JUMPDEST STOP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC SELFBALANCE SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH1 0xAF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 CALLVALUE EQ PUSH1 0xBD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP3 0xCF MOD PUSH1 0x97 0xC0 0xD6 PUSH19 0x197F4BB34FDA160DCE345772983D176FC5D8C7 XOR PUSH20 0xB14DDC64736F6C63430007060033000000000000 ",
"sourceMap": "65:261:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;234:90;;;;;;;;;;;;;:::i;:::-;;124:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;234:90;273:10;:19;;:44;294:21;273:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;234:90::o;124:104::-;213:7;200:9;:20;192:29;;;;;;124:104;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "49200",
"executionCost": "75",
"totalCost": "49275"
},
"external": {
"getBalance()": "infinite",
"incrementBalance(uint256)": "226"
}
},
"legacyAssembly": {
".code": [
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 65,
"end": 326,
"name": "MSTORE",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 65,
"end": 326,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 326,
"name": "CODECOPY",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 326,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a264697066735822122092cf066097c0d672197f4bb34fda160dce345772983d176fc5d8c71873b14ddc64736f6c63430007060033",
".code": [
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 65,
"end": 326,
"name": "MSTORE",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 65,
"end": 326,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "LT",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 65,
"end": 326,
"name": "JUMPI",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 326,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "E0"
},
{
"begin": 65,
"end": 326,
"name": "SHR",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "12065FE0"
},
{
"begin": 65,
"end": 326,
"name": "EQ",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 65,
"end": 326,
"name": "JUMPI",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "B32FE94F"
},
{
"begin": 65,
"end": 326,
"name": "EQ",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 65,
"end": 326,
"name": "JUMPI",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 65,
"end": 326,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 65,
"end": 326,
"name": "DUP1",
"source": 0
},
{
"begin": 65,
"end": 326,
"name": "REVERT",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 234,
"end": 324,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "DUP1",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "ISZERO",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 234,
"end": 324,
"name": "JUMPI",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 234,
"end": 324,
"name": "DUP1",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "REVERT",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 234,
"end": 324,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "POP",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 234,
"end": 324,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 234,
"end": 324,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 234,
"end": 324,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 234,
"end": 324,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "STOP",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 124,
"end": 228,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 124,
"end": 228,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 124,
"end": 228,
"name": "DUP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "SUB",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 124,
"end": 228,
"name": "DUP2",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "LT",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "ISZERO",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 124,
"end": 228,
"name": "JUMPI",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 124,
"end": 228,
"name": "DUP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "REVERT",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 124,
"end": 228,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "DUP2",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "ADD",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "SWAP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "DUP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "DUP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "SWAP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 124,
"end": 228,
"name": "ADD",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "SWAP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "SWAP3",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "SWAP2",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "SWAP1",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "POP",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "POP",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "POP",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 124,
"end": 228,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 124,
"end": 228,
"name": "tag",
"source": 0,
"value": "7"
},
{
"begin": 124,
"end": 228,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "STOP",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "tag",
"source": 0,
"value": "6"
},
{
"begin": 234,
"end": 324,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 273,
"end": 283,
"name": "CALLER",
"source": 0
},
{
"begin": 273,
"end": 292,
"name": "PUSH",
"source": 0,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 273,
"end": 292,
"name": "AND",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "PUSH",
"source": 0,
"value": "8FC"
},
{
"begin": 294,
"end": 315,
"name": "SELFBALANCE",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "SWAP1",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP2",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "ISZERO",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "MUL",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "SWAP1",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 273,
"end": 317,
"name": "MLOAD",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 273,
"end": 317,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 273,
"end": 317,
"name": "MLOAD",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP1",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP4",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "SUB",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP2",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP6",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP9",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP9",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "CALL",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "SWAP4",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "POP",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "POP",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "POP",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "POP",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "ISZERO",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "DUP1",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "ISZERO",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "PUSH [tag]",
"source": 0,
"value": "12"
},
{
"begin": 273,
"end": 317,
"name": "JUMPI",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "RETURNDATASIZE",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 273,
"end": 317,
"name": "DUP1",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "RETURNDATACOPY",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "RETURNDATASIZE",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 273,
"end": 317,
"name": "REVERT",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "tag",
"source": 0,
"value": "12"
},
{
"begin": 273,
"end": 317,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 273,
"end": 317,
"name": "POP",
"source": 0
},
{
"begin": 234,
"end": 324,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 124,
"end": 228,
"name": "tag",
"source": 0,
"value": "9"
},
{
"begin": 124,
"end": 228,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 213,
"end": 220,
"name": "DUP1",
"source": 0
},
{
"begin": 200,
"end": 209,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 200,
"end": 220,
"name": "EQ",
"source": 0
},
{
"begin": 192,
"end": 221,
"name": "PUSH [tag]",
"source": 0,
"value": "14"
},
{
"begin": 192,
"end": 221,
"name": "JUMPI",
"source": 0
},
{
"begin": 192,
"end": 221,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 192,
"end": 221,
"name": "DUP1",
"source": 0
},
{
"begin": 192,
"end": 221,
"name": "REVERT",
"source": 0
},
{
"begin": 192,
"end": 221,
"name": "tag",
"source": 0,
"value": "14"
},
{
"begin": 192,
"end": 221,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "POP",
"source": 0
},
{
"begin": 124,
"end": 228,
"name": "JUMP",
"source": 0,
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"getBalance()": "12065fe0",
"incrementBalance(uint256)": "b32fe94f"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"incrementBalance\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Banco.sol\":\"Banco\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/Banco.sol\":{\"keccak256\":\"0x8af77e2a6f0094f2cf5ec04180026eaf0ec7ecb5a4b4526a8a75b366931cb542\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://757c8ea1eb89d04cb713ba026adc3446ffe8004e402c8a4a9cd34899790fcff2\",\"dweb:/ipfs/QmWkqYDKQGVW41at7psqBgAPs4LKz1GVmHke4694Kg9gKf\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/Banco.sol": {
"ast": {
"absolutePath": "contracts/Banco.sol",
"exportedSymbols": {
"Banco": [
35
]
},
"id": 36,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
">=",
"0.7",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:31:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 35,
"linearizedBaseContracts": [
35
],
"name": "Banco",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 4,
"nodeType": "Block",
"src": "110:8:0",
"statements": []
},
"id": 5,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2,
"nodeType": "ParameterList",
"parameters": [],
"src": "99:2:0"
},
"returnParameters": {
"id": 3,
"nodeType": "ParameterList",
"parameters": [],
"src": "110:0:0"
},
"scope": 35,
"src": "88:30:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 17,
"nodeType": "Block",
"src": "182:46:0",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 14,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"expression": {
"id": 11,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "200:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 12,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "value",
"nodeType": "MemberAccess",
"src": "200:9:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"id": 13,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "213:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "200:20:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 10,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "192:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 15,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "192:29:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 16,
"nodeType": "ExpressionStatement",
"src": "192:29:0"
}
]
},
"functionSelector": "b32fe94f",
"id": 18,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "incrementBalance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 8,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 18,
"src": "150:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "150:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "149:17:0"
},
"returnParameters": {
"id": 9,
"nodeType": "ParameterList",
"parameters": [],
"src": "182:0:0"
},
"scope": 35,
"src": "124:104:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 33,
"nodeType": "Block",
"src": "263:61:0",
"statements": [
{
"expression": {
"arguments": [
{
"expression": {
"arguments": [
{
"id": 28,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "302:4:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Banco_$35",
"typeString": "contract Banco"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Banco_$35",
"typeString": "contract Banco"
}
],
"id": 27,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "294:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 26,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "294:7:0",
"typeDescriptions": {}
}
},
"id": 29,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "294:13:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 30,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "balance",
"nodeType": "MemberAccess",
"src": "294:21:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"expression": {
"id": 21,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "273:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 24,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"src": "273:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"id": 25,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"src": "273:19:0",
"typeDescriptions": {
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 31,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "273:44:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 32,
"nodeType": "ExpressionStatement",
"src": "273:44:0"
}
]
},
"functionSelector": "12065fe0",
"id": 34,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getBalance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 19,
"nodeType": "ParameterList",
"parameters": [],
"src": "253:2:0"
},
"returnParameters": {
"id": 20,
"nodeType": "ParameterList",
"parameters": [],
"src": "263:0:0"
},
"scope": 35,
"src": "234:90:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
}
],
"scope": 36,
"src": "65:261:0"
}
],
"src": "32:294:0"
},
"id": 0
}
}
}
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506040516101753803806101758339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000819055505061011a8061005b6000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea26469706673582212200d99cbb34a5a94c092807427e2f4bcb516b95be5718fdf7bf6bafaf6602048b364736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x175 CODESIZE SUB DUP1 PUSH2 0x175 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0x11A DUP1 PUSH2 0x5B PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD SWAP10 0xCB 0xB3 0x4A GAS SWAP5 0xC0 SWAP3 DUP1 PUSH21 0x27E2F4BCB516B95BE5718FDF7BF6BAFAF6602048B3 PUSH5 0x736F6C6343 STOP SMOD MOD STOP CALLER ",
"sourceMap": "57:415:0:-:0;;;101:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147:6;139:5;:14;;;;101:59;57:415;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060465760003560e01c8063a87d942c14604b578063d14e62b8146067578063e5071b8e146092578063f2c9ecd814609a575b600080fd5b605160b6565b6040518082815260200191505060405180910390f35b609060048036036020811015607b57600080fd5b810190808035906020019092919050505060bf565b005b609860c9565b005b60a060db565b6040518082815260200191505060405180910390f35b60008054905090565b8060008190555050565b60016000808282540192505081905550565b6000602290509056fea26469706673582212200d99cbb34a5a94c092807427e2f4bcb516b95be5718fdf7bf6bafaf6602048b364736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA87D942C EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0xD14E62B8 EQ PUSH1 0x67 JUMPI DUP1 PUSH4 0xE5071B8E EQ PUSH1 0x92 JUMPI DUP1 PUSH4 0xF2C9ECD8 EQ PUSH1 0x9A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0xB6 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x90 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0xBF JUMP JUMPDEST STOP JUMPDEST PUSH1 0x98 PUSH1 0xC9 JUMP JUMPDEST STOP JUMPDEST PUSH1 0xA0 PUSH1 0xDB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD ADD SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x22 SWAP1 POP SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD SWAP10 0xCB 0xB3 0x4A GAS SWAP5 0xC0 SWAP3 DUP1 PUSH21 0x27E2F4BCB516B95BE5718FDF7BF6BAFAF6602048B3 PUSH5 0x736F6C6343 STOP SMOD MOD STOP CALLER ",
"sourceMap": "57:415:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;310:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;166:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;244:60;;;:::i;:::-;;394:76;;;:::i;:::-;;;;;;;;;;;;;;;;;;;310:78;350:7;376:5;;369:12;;310:78;:::o;166:72::-;225:6;217:5;:14;;;;166:72;:::o;244:60::-;296:1;287:5;;:10;;;;;;;;;;;244:60::o;394:76::-;435:7;461:2;454:9;;394:76;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "56400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"getCount()": "991",
"getNumber()": "257",
"incrementCount()": "20999",
"setCount(uint256)": "20242"
}
},
"methodIdentifiers": {
"getCount()": "a87d942c",
"getNumber()": "f2c9ecd8",
"incrementCount()": "e5071b8e",
"setCount(uint256)": "d14e62b8"
}
},
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumber",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "incrementCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"name": "setCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.7.6+commit.7338295f"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumber",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "incrementCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"name": "setCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/Contador.sol": "Contador"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/Contador.sol": {
"keccak256": "0xc5bc491690fef4f6956b0fa89bc64fa2503ec5e953ee1d64589a591387571c2d",
"license": "MIT",
"urls": [
"bzz-raw://28dd5e023dcc71dab70be98ad194e9ae73d03353c8daba772584f37e650358f1",
"dweb:/ipfs/QmXZ5wK9hSWf2M9H2HNhWsxLPWiLT46uR6i8ruamYcUgdA"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b5060c78061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80632e64cec11460375780636057361d146053575b600080fd5b603d607e565b6040518082815260200191505060405180910390f35b607c60048036036020811015606757600080fd5b81019080803590602001909291905050506087565b005b60008054905090565b806000819055505056fea2646970667358221220b04233bd1b62562f54d2da74c5ab0892bb45e826ddab1414d5be042b3cd7e3f664736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xC7 DUP1 PUSH2 0x1F PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x32 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2E64CEC1 EQ PUSH1 0x37 JUMPI DUP1 PUSH4 0x6057361D EQ PUSH1 0x53 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3D PUSH1 0x7E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x7C PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x67 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0x87 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB0 TIMESTAMP CALLER 0xBD SHL PUSH3 0x562F54 0xD2 0xDA PUSH21 0xC5AB0892BB45E826DDAB1414D5BE042B3CD7E3F664 PUSH20 0x6F6C634300070600330000000000000000000000 ",
"sourceMap": "141:356:0:-:0;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060325760003560e01c80632e64cec11460375780636057361d146053575b600080fd5b603d607e565b6040518082815260200191505060405180910390f35b607c60048036036020811015606757600080fd5b81019080803590602001909291905050506087565b005b60008054905090565b806000819055505056fea2646970667358221220b04233bd1b62562f54d2da74c5ab0892bb45e826ddab1414d5be042b3cd7e3f664736f6c63430007060033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x32 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2E64CEC1 EQ PUSH1 0x37 JUMPI DUP1 PUSH4 0x6057361D EQ PUSH1 0x53 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3D PUSH1 0x7E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x7C PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH1 0x67 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH1 0x87 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB0 TIMESTAMP CALLER 0xBD SHL PUSH3 0x562F54 0xD2 0xDA PUSH21 0xC5AB0892BB45E826DDAB1414D5BE042B3CD7E3F664 PUSH20 0x6F6C634300070600330000000000000000000000 ",
"sourceMap": "141:356:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;416:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;271:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;416:79;457:7;482:6;;475:13;;416:79;:::o;271:64::-;325:3;316:6;:12;;;;271:64;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "39800",
"executionCost": "93",
"totalCost": "39893"
},
"external": {
"retrieve()": "991",
"store(uint256)": "20242"
}
},
"methodIdentifiers": {
"retrieve()": "2e64cec1",
"store(uint256)": "6057361d"
}
},
"abi": [
{
"inputs": [],
"name": "retrieve",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "num",
"type": "uint256"
}
],
"name": "store",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.7.6+commit.7338295f"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"name": "retrieve",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "num",
"type": "uint256"
}
],
"name": "store",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Store & retrieve value in a variable",
"kind": "dev",
"methods": {
"retrieve()": {
"details": "Return value ",
"returns": {
"_0": "value of 'number'"
}
},
"store(uint256)": {
"details": "Store value in variable",
"params": {
"num": "value to store"
}
}
},
"title": "Storage",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1_Storage.sol": "Storage"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/1_Storage.sol": {
"keccak256": "0xb6ee9d528b336942dd70d3b41e2811be10a473776352009fd73f85604f5ed206",
"license": "GPL-3.0",
"urls": [
"bzz-raw://fe52c6e3c04ba5d83ede6cc1a43c45fa43caa435b207f64707afb17d3af1bcf1",
"dweb:/ipfs/QmawU3NM1WNWkBauRudYCiFvuFE1tTLHB98akyBvb9UWwA"
]
}
},
"version": 1
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
contract Banco {
constructor() payable {
}
function incrementBalance(uint256 _amount) payable public {
// Agrega saldo al contrato
require(msg.value == _amount);
}
function getBalance() public {
// Envia saldo a la addresss que ejecuta el contrato
msg.sender.transfer( address(this).balance );
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
contract Contador {
uint256 count;
constructor(uint256 _count) {
count = _count;
}
function setCount(uint256 _count) public {
count = _count;
}
function incrementCount() public {
count += 1;
}
function getCount() public view returns(uint256) {
return count;
}
function getNumber() public pure returns(uint256) {
return 34;
}
}
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithEthers script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner()
let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer);
let contract = await factory.deploy(...constructorArgs);
console.log('Contract Address: ', contract.address);
// The contract is NOT deployed yet; we must wait until it is mined
await contract.deployed()
console.log('Deployment successful.')
} catch (e) {
console.log(e.message)
}
})()
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithWeb3 script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
const accounts = await web3.eth.getAccounts()
let contract = new web3.eth.Contract(metadata.abi)
contract = contract.deploy({
data: metadata.data.bytecode.object,
arguments: constructorArgs
})
const newContractInstance = await contract.send({
from: accounts[0],
gas: 1500000,
gasPrice: '30000000000'
})
console.log('Contract deployed at address: ', newContractInstance.options.address)
} catch (e) {
console.log(e.message)
}
})()
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../contracts/3_Ballot.sol";
contract BallotTest {
bytes32[] proposalNames;
Ballot ballotToTest;
function beforeAll () public {
proposalNames.push(bytes32("candidate1"));
ballotToTest = new Ballot(proposalNames);
}
function checkWinningProposal () public {
ballotToTest.vote(0);
Assert.equal(ballotToTest.winningProposal(), uint(0), "proposal at index 0 should be the winning proposal");
Assert.equal(ballotToTest.winnerName(), bytes32("candidate1"), "candidate1 should be the winner name");
}
function checkWinninProposalWithReturnValue () public view returns (bool) {
return ballotToTest.winningProposal() == 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment