standard-contract-registry
Version:
Contract that use the Transparent Upgradeable model (openzeppelin) to keep a registry of the current deployed contracts, their types and versions
75 lines (74 loc) • 3.44 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "ExampleOwner",
"sourceName": "contracts/ExampleOwner.sol",
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "oldOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnerSet",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "changeOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50600080546201000033810262010000600160b01b0319909216919091178083556040519190046001600160a01b031691907f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735908290a36101a7806100766000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063893d20e81461003b578063a6f9dae114610069575b600080fd5b6000546201000090046001600160a01b03166040516001600160a01b03909116815260200160405180910390f35b61007c610077366004610141565b61007e565b005b6000546201000090046001600160a01b031633146100d85760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b604482015260640160405180910390fd5b600080546040516001600160a01b03808516936201000090930416917f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a73591a3600080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60006020828403121561015357600080fd5b81356001600160a01b038116811461016a57600080fd5b939250505056fea2646970667358221220893613821224197a2c108c9fcd261bb09d8974d59f7024ffa2045e286527e06064736f6c63430008130033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063893d20e81461003b578063a6f9dae114610069575b600080fd5b6000546201000090046001600160a01b03166040516001600160a01b03909116815260200160405180910390f35b61007c610077366004610141565b61007e565b005b6000546201000090046001600160a01b031633146100d85760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b604482015260640160405180910390fd5b600080546040516001600160a01b03808516936201000090930416917f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a73591a3600080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60006020828403121561015357600080fd5b81356001600160a01b038116811461016a57600080fd5b939250505056fea2646970667358221220893613821224197a2c108c9fcd261bb09d8974d59f7024ffa2045e286527e06064736f6c63430008130033",
"linkReferences": {},
"deployedLinkReferences": {}
}