[ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "previousAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAdmin", "type": "address" } ], "name": "AdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "implementation", "type": "address" } ], "name": "Upgraded", "type": "event" }, { "stateMutability": "payable", "type": "fallback" }, { "inputs": [], "name": "admin", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newAdmin", "type": "address" } ], "name": "changeAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "implementation", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "logic", "type": "address" }, { "internalType": "address", "name": "admin", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "initialize", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_logic", "type": "address" }, { "internalType": "bytes", "name": "_data", "type": "bytes" } ], "name": "initialize", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" } ], "name": "upgradeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ]
608060405234801561001057600080fd5b506109d2806100206000396000f3fe6080604052600436106100745760003560e01c80638f2839701161004e5780638f283970146100ef578063cf7a1d771461010f578063d1f5789414610122578063f851a4401461013557610083565b80633659cfe61461008b5780634f1ef286146100ab5780635c60da1b146100be57610083565b366100835761008161014a565b005b61008161014a565b34801561009757600080fd5b506100816100a63660046106ec565b610172565b6100816100b936600461070e565b6101a5565b3480156100ca57600080fd5b506100d361024a565b6040516001600160a01b03909116815260200160405180910390f35b3480156100fb57600080fd5b5061008161010a3660046106ec565b610290565b61008161011d366004610834565b610398565b610081610130366004610892565b61042a565b34801561014157600080fd5b506100d3610518565b610152610553565b61017061016b60008051602061097d8339815191525490565b61055b565b565b60008051602061095d833981519152546001600160a01b0316330361019d5761019a8161057f565b50565b61019a61014a565b60008051602061095d833981519152546001600160a01b0316330361023d576101cd8361057f565b6000836001600160a01b031683836040516101e99291906108e0565b600060405180830381855af49150503d8060008114610224576040519150601f19603f3d011682016040523d82523d6000602084013e610229565b606091505b505090508061023757600080fd5b50505050565b61024561014a565b505050565b600061026260008051602061095d8339815191525490565b6001600160a01b03163303610285575060008051602061097d8339815191525490565b61028d61014a565b90565b60008051602061095d833981519152546001600160a01b0316330361019d576001600160a01b0381166103295760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f604482015275787920746f20746865207a65726f206164647265737360501b60648201526084015b60405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61036060008051602061095d8339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a161019a8160008051602061095d83398151915255565b60006103b060008051602061097d8339815191525490565b6001600160a01b0316146103c357600080fd5b6103cd838261042a565b6103f860017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61046108f0565b60008051602061095d8339815191521461041457610414610917565b6102458260008051602061095d83398151915255565b600061044260008051602061097d8339815191525490565b6001600160a01b03161461045557600080fd5b61048060017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6108f0565b60008051602061097d8339815191521461049c5761049c610917565b6104a5826105bf565b805115610514576000826001600160a01b0316826040516104c6919061092d565b600060405180830381855af49150503d8060008114610501576040519150601f19603f3d011682016040523d82523d6000602084013e610506565b606091505b505090508061024557600080fd5b5050565b600061053060008051602061095d8339815191525490565b6001600160a01b03163303610285575060008051602061095d8339815191525490565b61017061064e565b3660008037600080366000845af43d6000803e80801561057a573d6000f35b3d6000fd5b610588816105bf565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381163b61063c5760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000006064820152608401610320565b60008051602061097d83398151915255565b60008051602061095d833981519152546001600160a01b031633036101705760405162461bcd60e51b815260206004820152603260248201527f43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e20667260448201527137b6903a343290383937bc3c9030b236b4b760711b6064820152608401610320565b80356001600160a01b03811681146106e757600080fd5b919050565b6000602082840312156106fe57600080fd5b610707826106d0565b9392505050565b60008060006040848603121561072357600080fd5b61072c846106d0565b9250602084013567ffffffffffffffff8082111561074957600080fd5b818601915086601f83011261075d57600080fd5b81358181111561076c57600080fd5b87602082850101111561077e57600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126107b857600080fd5b813567ffffffffffffffff808211156107d3576107d3610791565b604051601f8301601f19908116603f011681019082821181831017156107fb576107fb610791565b8160405283815286602085880101111561081457600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561084957600080fd5b610852846106d0565b9250610860602085016106d0565b9150604084013567ffffffffffffffff81111561087c57600080fd5b610888868287016107a7565b9150509250925092565b600080604083850312156108a557600080fd5b6108ae836106d0565b9150602083013567ffffffffffffffff8111156108ca57600080fd5b6108d6858286016107a7565b9150509250929050565b8183823760009101908152919050565b8181038181111561091157634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052600160045260246000fd5b6000825160005b8181101561094e5760208186018101518583015201610934565b50600092019182525091905056feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fb527c067ef9b8e4cff6c030407c14c1fcbff6dc1234cbb12a783b288781377364736f6c63430008110033