Skip to content

Instantly share code, notes, and snippets.

@albbeltran
Created March 30, 2023 19:57
Show Gist options
  • Save albbeltran/e3596d9464d4b85aa0ac214c242cb91a to your computer and use it in GitHub Desktop.
Save albbeltran/e3596d9464d4b85aa0ac214c242cb91a 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.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
}
},
{
"files": "*.yml",
"options": {}
},
{
"files": "*.yaml",
"options": {}
},
{
"files": "*.toml",
"options": {}
},
{
"files": "*.json",
"options": {}
},
{
"files": "*.js",
"options": {}
},
{
"files": "*.ts",
"options": {}
}
]
}
{
"id": "d313fe72c4d39f2491891fb332c83d6c",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.5.17",
"solcLongVersion": "0.5.17+commit.d19bba13",
"input": {
"language": "Solidity",
"sources": {
"primerContrato.sol": {
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.5.6 <0.6.0;\r\n\r\ncontract primerContract {\r\n\r\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": {
"primerContrato.sol": {
"primerContract": {
"abi": [],
"devdoc": {
"methods": {}
},
"evm": {
"assembly": " /* \"primerContrato.sol\":70:100 contract primerContract {\r... */\n mstore(0x40, 0x80)\n callvalue\n /* \"--CODEGEN--\":8:17 */\n dup1\n /* \"--CODEGEN--\":5:7 */\n iszero\n tag_1\n jumpi\n /* \"--CODEGEN--\":30:31 */\n 0x00\n /* \"--CODEGEN--\":27:28 */\n dup1\n /* \"--CODEGEN--\":20:32 */\n revert\n /* \"--CODEGEN--\":5:7 */\ntag_1:\n /* \"primerContrato.sol\":70:100 contract primerContract {\r... */\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 /* \"primerContrato.sol\":70:100 contract primerContract {\r... */\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa265627a7a7231582085058cbcd5b34183d7e136c69b1f17f7809188ccc79fe90c62289993018d0b6c64736f6c63430005110032\n}\n",
"bytecode": {
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a7231582085058cbcd5b34183d7e136c69b1f17f7809188ccc79fe90c62289993018d0b6c64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3E DUP1 PUSH1 0x1D PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 DUP6 SDIV DUP13 0xBC 0xD5 0xB3 COINBASE DUP4 0xD7 0xE1 CALLDATASIZE 0xC6 SWAP12 0x1F OR 0xF7 DUP1 SWAP2 DUP9 0xCC 0xC7 SWAP16 0xE9 0xC PUSH3 0x289993 ADD DUP14 SIGNEXTEND PUSH13 0x64736F6C634300051100320000 ",
"sourceMap": "70:30:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70:30:0;;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "6080604052600080fdfea265627a7a7231582085058cbcd5b34183d7e136c69b1f17f7809188ccc79fe90c62289993018d0b6c64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 DUP6 SDIV DUP13 0xBC 0xD5 0xB3 COINBASE DUP4 0xD7 0xE1 CALLDATASIZE 0xC6 SWAP12 0x1F OR 0xF7 DUP1 SWAP2 DUP9 0xCC 0xC7 SWAP16 0xE9 0xC PUSH3 0x289993 ADD DUP14 SIGNEXTEND PUSH13 0x64736F6C634300051100320000 ",
"sourceMap": "70:30:0:-;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "12400",
"executionCost": "66",
"totalCost": "12466"
}
},
"legacyAssembly": {
".code": [
{
"begin": 70,
"end": 100,
"name": "PUSH",
"value": "80"
},
{
"begin": 70,
"end": 100,
"name": "PUSH",
"value": "40"
},
{
"begin": 70,
"end": 100,
"name": "MSTORE"
},
{
"begin": 70,
"end": 100,
"name": "CALLVALUE"
},
{
"begin": 8,
"end": 17,
"name": "DUP1"
},
{
"begin": 5,
"end": 7,
"name": "ISZERO"
},
{
"begin": 5,
"end": 7,
"name": "PUSH [tag]",
"value": "1"
},
{
"begin": 5,
"end": 7,
"name": "JUMPI"
},
{
"begin": 30,
"end": 31,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 28,
"name": "DUP1"
},
{
"begin": 20,
"end": 32,
"name": "REVERT"
},
{
"begin": 5,
"end": 7,
"name": "tag",
"value": "1"
},
{
"begin": 5,
"end": 7,
"name": "JUMPDEST"
},
{
"begin": 70,
"end": 100,
"name": "POP"
},
{
"begin": 70,
"end": 100,
"name": "PUSH #[$]",
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 70,
"end": 100,
"name": "DUP1"
},
{
"begin": 70,
"end": 100,
"name": "PUSH [$]",
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 70,
"end": 100,
"name": "PUSH",
"value": "0"
},
{
"begin": 70,
"end": 100,
"name": "CODECOPY"
},
{
"begin": 70,
"end": 100,
"name": "PUSH",
"value": "0"
},
{
"begin": 70,
"end": 100,
"name": "RETURN"
}
],
".data": {
"0": {
".auxdata": "a265627a7a7231582085058cbcd5b34183d7e136c69b1f17f7809188ccc79fe90c62289993018d0b6c64736f6c63430005110032",
".code": [
{
"begin": 70,
"end": 100,
"name": "PUSH",
"value": "80"
},
{
"begin": 70,
"end": 100,
"name": "PUSH",
"value": "40"
},
{
"begin": 70,
"end": 100,
"name": "MSTORE"
},
{
"begin": 70,
"end": 100,
"name": "PUSH",
"value": "0"
},
{
"begin": 70,
"end": 100,
"name": "DUP1"
},
{
"begin": 70,
"end": 100,
"name": "REVERT"
}
]
}
}
},
"methodIdentifiers": {}
},
"metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"primerContrato.sol\":\"primerContract\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"primerContrato.sol\":{\"keccak256\":\"0x6979c9c74e1b9b86cc1a8c5f599fb329a1ad9bae17a22d7b633bf3357ed2dcc0\",\"urls\":[\"bzz-raw://663cb9f4185a0f86888eca5626f17ce067e325c4b979d85aa3e43d529128b944\",\"dweb:/ipfs/QmfN94LZGJQF7RYR3eD9k3u5Sgtr6UgGJChgvppbthrQkj\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"methods": {}
}
}
}
},
"sources": {
"primerContrato.sol": {
"ast": {
"absolutePath": "primerContrato.sol",
"exportedSymbols": {
"primerContract": [
2
]
},
"id": 3,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
">=",
"0.5",
".6",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:0"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2,
"linearizedBaseContracts": [
2
],
"name": "primerContract",
"nodeType": "ContractDefinition",
"nodes": [],
"scope": 3,
"src": "70:30:0"
}
],
"src": "35:65: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
},
"goerli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a7231582085058cbcd5b34183d7e136c69b1f17f7809188ccc79fe90c62289993018d0b6c64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3E DUP1 PUSH1 0x1D PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 DUP6 SDIV DUP13 0xBC 0xD5 0xB3 COINBASE DUP4 0xD7 0xE1 CALLDATASIZE 0xC6 SWAP12 0x1F OR 0xF7 DUP1 SWAP2 DUP9 0xCC 0xC7 SWAP16 0xE9 0xC PUSH3 0x289993 ADD DUP14 SIGNEXTEND PUSH13 0x64736F6C634300051100320000 ",
"sourceMap": "70:30:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70:30:0;;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "6080604052600080fdfea265627a7a7231582085058cbcd5b34183d7e136c69b1f17f7809188ccc79fe90c62289993018d0b6c64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 DUP6 SDIV DUP13 0xBC 0xD5 0xB3 COINBASE DUP4 0xD7 0xE1 CALLDATASIZE 0xC6 SWAP12 0x1F OR 0xF7 DUP1 SWAP2 DUP9 0xCC 0xC7 SWAP16 0xE9 0xC PUSH3 0x289993 ADD DUP14 SIGNEXTEND PUSH13 0x64736F6C634300051100320000 ",
"sourceMap": "70:30:0:-;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "12400",
"executionCost": "66",
"totalCost": "12466"
}
},
"methodIdentifiers": {}
},
"abi": []
}
{
"compiler": {
"version": "0.5.17+commit.d19bba13"
},
"language": "Solidity",
"output": {
"abi": [],
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
},
"settings": {
"compilationTarget": {
"primerContrato.sol": "primerContract"
},
"evmVersion": "istanbul",
"libraries": {},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"primerContrato.sol": {
"keccak256": "0x6979c9c74e1b9b86cc1a8c5f599fb329a1ad9bae17a22d7b633bf3357ed2dcc0",
"urls": [
"bzz-raw://663cb9f4185a0f86888eca5626f17ce067e325c4b979d85aa3e43d529128b944",
"dweb:/ipfs/QmfN94LZGJQF7RYR3eD9k3u5Sgtr6UgGJChgvppbthrQkj"
]
}
},
"version": 1
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.6 <0.6.0;
contract primerContract {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment