-
-
Save vittominacori/0a10d4fd2550a5c20a7e4ffd1766ab11 to your computer and use it in GitHub Desktop.
SampleContract.hardhat.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_format": "hh-sol-artifact-1", | |
"contractName": "SampleContract", | |
"sourceName": "contracts/SampleContract.sol", | |
"abi": [ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "previousOwner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnershipTransferred", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "WorkDone", | |
"type": "event" | |
}, | |
{ | |
"inputs": [], | |
"name": "creator", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "creatorDoesWork", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "owner", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "ownerDoesWork", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "tokenAddress", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "tokenAmount", | |
"type": "uint256" | |
} | |
], | |
"name": "recoverERC20", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "renounceOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "transferOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
], | |
"bytecode": "0x608060405234801561001057600080fd5b5061001a33610041565b600054600180546001600160a01b0319166001600160a01b03909216919091179055610091565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610479806100a06000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063715018a61161005b578063715018a6146100d35780638980f11f146100db5780638da5cb5b146100ee578063f2fde38b146100ff57600080fd5b8063022869ec1461008257806302d05d3f146100975780635c8195b4146100c0575b600080fd5b6100956100903660046103a0565b610112565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100ce3660046103a0565b610150565b6100956101ca565b6100956100e93660046103d5565b6101de565b6000546001600160a01b03166100a4565b61009561010d3660046103ff565b61027d565b61011a6102f6565b6040518181527f94004e969cf8e2abdf779ed70428912ad0533a0a23c6cb25188997bbad9d771f9060200160405180910390a150565b6001546001600160a01b0316336001600160a01b03161461011a5760405162461bcd60e51b815260206004820152602960248201527f53616d706c65436f6e74726163743a2043616c6c6572206973206e6f74207468604482015268329031b932b0ba37b960b91b60648201526084015b60405180910390fd5b6101d26102f6565b6101dc6000610350565b565b6101e66102f6565b816001600160a01b031663a9059cbb6102076000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102789190610421565b505050565b6102856102f6565b6001600160a01b0381166102ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101c1565b6102f381610350565b50565b6000546001600160a01b031633146101dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101c1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156103b257600080fd5b5035919050565b80356001600160a01b03811681146103d057600080fd5b919050565b600080604083850312156103e857600080fd5b6103f1836103b9565b946020939093013593505050565b60006020828403121561041157600080fd5b61041a826103b9565b9392505050565b60006020828403121561043357600080fd5b8151801515811461041a57600080fdfea2646970667358221220ff1c5d963bc1141abea07d0cb97ef1e51988ffa7f1f75605559e901990eb68a764736f6c63430008110033", | |
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063715018a61161005b578063715018a6146100d35780638980f11f146100db5780638da5cb5b146100ee578063f2fde38b146100ff57600080fd5b8063022869ec1461008257806302d05d3f146100975780635c8195b4146100c0575b600080fd5b6100956100903660046103a0565b610112565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100ce3660046103a0565b610150565b6100956101ca565b6100956100e93660046103d5565b6101de565b6000546001600160a01b03166100a4565b61009561010d3660046103ff565b61027d565b61011a6102f6565b6040518181527f94004e969cf8e2abdf779ed70428912ad0533a0a23c6cb25188997bbad9d771f9060200160405180910390a150565b6001546001600160a01b0316336001600160a01b03161461011a5760405162461bcd60e51b815260206004820152602960248201527f53616d706c65436f6e74726163743a2043616c6c6572206973206e6f74207468604482015268329031b932b0ba37b960b91b60648201526084015b60405180910390fd5b6101d26102f6565b6101dc6000610350565b565b6101e66102f6565b816001600160a01b031663a9059cbb6102076000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102789190610421565b505050565b6102856102f6565b6001600160a01b0381166102ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101c1565b6102f381610350565b50565b6000546001600160a01b031633146101dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101c1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156103b257600080fd5b5035919050565b80356001600160a01b03811681146103d057600080fd5b919050565b600080604083850312156103e857600080fd5b6103f1836103b9565b946020939093013593505050565b60006020828403121561041157600080fd5b61041a826103b9565b9392505050565b60006020828403121561043357600080fd5b8151801515811461041a57600080fdfea2646970667358221220ff1c5d963bc1141abea07d0cb97ef1e51988ffa7f1f75605559e901990eb68a764736f6c63430008110033", | |
"linkReferences": {}, | |
"deployedLinkReferences": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment