[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "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": "beacon", "type": "address" } ], "name": "BeaconUpgraded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldProtocolReserveAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newProtocolReserveAddress", "type": "address" } ], "name": "ProtocolReserveAddressUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" } ], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleRevoked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldTreasuryAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newTreasuryAddress", "type": "address" } ], "name": "TreasuryAddressUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "implementation", "type": "address" } ], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "CONTROLLER_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEVOPS_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getProtocolReserveAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTreasuryAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "treasuryWallet_", "type": "address" }, { "internalType": "address", "name": "protocolReserveWallet_", "type": "address" }, { "internalType": "address", "name": "controllerAdminWallet_", "type": "address" }, { "internalType": "address", "name": "devopsWallet_", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "contractAddress", "type": "address" } ], "name": "isTermDeployed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "termContract", "type": "address" } ], "name": "markTermDeployed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "termContract", "type": "address" } ], "name": "unmarkTermDeployed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "oldControllerAdminWallet", "type": "address" }, { "internalType": "address", "name": "newControllerAdminWallet", "type": "address" } ], "name": "updateControllerAdminWallet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newProtocolReserveWallet", "type": "address" } ], "name": "updateProtocolReserveAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newTreasuryWallet", "type": "address" } ], "name": "updateTreasuryAddress", "outputs": [], "stateMutability": "nonpayable", "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" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ]
60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051611b12610118600039600081816105e501528181610625015281816106ad015281816106ed01526107650152611b126000f3fe6080604052600436106101155760003560e01c806354fd4d501161009b57806354fd4d50146102ad5780636ca5d56d146102e1578063841e45611461030157806391d14854146103215780639e2a204614610341578063a217fddf14610361578063d547741f14610376578063e002460414610396578063e1b961f4146103b4578063e7e4b8db146103d4578063f8c8765e146103f457600080fd5b806301ffc9a71461011a578063025f1a5e1461014f578063201a662514610181578063248a9ca3146101b157806329392ac7146101e15780632f2ff15d1461020357806336568abe146102235780633659cfe6146102435780634bb4193c146102635780634f1ef2861461028557806352d1902d14610298575b600080fd5b34801561012657600080fd5b5061013a61013536600461163f565b610414565b60405190151581526020015b60405180910390f35b34801561015b57600080fd5b5060fc546001600160a01b03165b6040516001600160a01b039091168152602001610146565b34801561018d57600080fd5b506101a3600080516020611a5683398151915281565b604051908152602001610146565b3480156101bd57600080fd5b506101a36101cc366004611669565b60009081526065602052604090206001015490565b3480156101ed57600080fd5b506102016101fc36600461169e565b61044b565b005b34801561020f57600080fd5b5061020161021e3660046116b9565b610533565b34801561022f57600080fd5b5061020161023e3660046116b9565b61055d565b34801561024f57600080fd5b5061020161025e36600461169e565b6105db565b34801561026f57600080fd5b506101a3600080516020611abd83398151915281565b6102016102933660046116fb565b6106a3565b3480156102a457600080fd5b506101a3610758565b3480156102b957600080fd5b5060408051808201825260058152640302e362e360dc1b6020820152905161014691906117e1565b3480156102ed57600080fd5b506102016102fc366004611814565b610806565b34801561030d57600080fd5b5061020161031c36600461169e565b6109aa565b34801561032d57600080fd5b5061013a61033c3660046116b9565b610a72565b34801561034d57600080fd5b5061020161035c36600461169e565b610a9d565b34801561036d57600080fd5b506101a3600081565b34801561038257600080fd5b506102016103913660046116b9565b610b2e565b3480156103a257600080fd5b5060fb546001600160a01b0316610169565b3480156103c057600080fd5b506102016103cf36600461169e565b610b53565b3480156103e057600080fd5b5061013a6103ef36600461169e565b610bdc565b34801561040057600080fd5b5061020161040f36600461183e565b610be7565b60006001600160e01b03198216637965db0b60e01b148061044557506301ffc9a760e01b6001600160e01b03198316145b92915050565b600080516020611a5683398151915261046381610ebb565b60fc546001600160a01b03908116908316036104d45760405162461bcd60e51b815260206004820152602560248201527f4e6f206368616e676520696e2070726f746f636f6c2072657365727665206164604482015264647265737360d81b60648201526084015b60405180910390fd5b60fc80546001600160a01b038481166001600160a01b0319831681179093556040519116917f2d7faa6887bec3599aecfe7648b4488b13aed14af1639d48ff942da0c10c552d91610526918491611892565b60405180910390a1505050565b60008281526065602052604090206001015461054e81610ebb565b6105588383610ec5565b505050565b6001600160a01b03811633146105cd5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016104cb565b6105d78282610f4b565b5050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106235760405162461bcd60e51b81526004016104cb906118ac565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610655610fb2565b6001600160a01b03161461067b5760405162461bcd60e51b81526004016104cb906118f8565b61068481610fce565b604080516000808252602082019092526106a091839190610fe6565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106eb5760405162461bcd60e51b81526004016104cb906118ac565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661071d610fb2565b6001600160a01b0316146107435760405162461bcd60e51b81526004016104cb906118f8565b61074c82610fce565b6105d782826001610fe6565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107f35760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016104cb565b50600080516020611a7683398151915290565b600080516020611a5683398151915261081e81610ebb565b6001600160a01b03831661088f5760405162461bcd60e51b815260206004820152603260248201527f4f6c6420436f6e74726f6c6c65722041646d696e2057616c6c65742063616e6e6044820152716f74206265207a65726f206164647265737360701b60648201526084016104cb565b6001600160a01b0382166109005760405162461bcd60e51b815260206004820152603260248201527f4e657720436f6e74726f6c6c65722041646d696e2057616c6c65742063616e6e6044820152716f74206265207a65726f206164647265737360701b60648201526084016104cb565b610918600080516020611abd83398151915284610a72565b61097a5760405162461bcd60e51b815260206004820152602d60248201527f696e636f7272656374206f6c6420636f6e74726f6c6c65722061646d696e207760448201526c616c6c6574206164647265737360981b60648201526084016104cb565b610992600080516020611abd83398151915284610f4b565b610558600080516020611abd83398151915283610ec5565b600080516020611a568339815191526109c281610ebb565b60fb546001600160a01b0390811690831603610a205760405162461bcd60e51b815260206004820152601d60248201527f4e6f206368616e676520696e207472656173757279206164647265737300000060448201526064016104cb565b60fb80546001600160a01b038481166001600160a01b0319831681179093556040519116917f430359a6d97ced2b6f93c77a91e7ce9dfd43252eb91e916adba170485cd8a6a491610526918491611892565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020611abd833981519152610ab581610ebb565b610abe82611151565b15610b095760405162461bcd60e51b815260206004820152601b60248201527a436f6e747261637420697320616c726561647920696e205465726d60281b60448201526064016104cb565b506001600160a01b0316600090815260fd60205260409020805460ff19166001179055565b600082815260656020526040902060010154610b4981610ebb565b6105588383610f4b565b600080516020611abd833981519152610b6b81610ebb565b610b7482611151565b610bba5760405162461bcd60e51b8152602060048201526017602482015276436f6e7472616374206973206e6f7420696e205465726d60481b60448201526064016104cb565b506001600160a01b0316600090815260fd60205260409020805460ff19169055565b600061044582611151565b600054610100900460ff1615808015610c075750600054600160ff909116105b80610c285750610c163061116f565b158015610c28575060005460ff166001145b610c8b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104cb565b6000805460ff191660011790558015610cae576000805461ff0019166101001790555b610cb661117e565b610cbe61117e565b6001600160a01b038316610d145760405162461bcd60e51b815260206004820181905260248201527f636f6e74726f6c6c65722061646d696e206973207a65726f206164647265737360448201526064016104cb565b6001600160a01b038216610d6a5760405162461bcd60e51b815260206004820152601d60248201527f6465766f70732077616c6c6574206973207a65726f206164647265737300000060448201526064016104cb565b610d82600080516020611abd83398151915284610ec5565b610d9a600080516020611a5683398151915283610ec5565b6001600160a01b038516610deb5760405162461bcd60e51b81526020600482015260186024820152777472656173757279206973207a65726f206164647265737360401b60448201526064016104cb565b60fb80546001600160a01b0319166001600160a01b03878116919091179091558416610e535760405162461bcd60e51b815260206004820152601760248201527672657365727665206973207a65726f206164647265737360481b60448201526064016104cb565b60fc80546001600160a01b0319166001600160a01b0386161790558015610eb4576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6106a081336111eb565b610ecf8282610a72565b6105d75760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610f073390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610f558282610a72565b156105d75760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080516020611a76833981519152546001600160a01b031690565b600080516020611a568339815191526105d781610ebb565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156110195761055883611244565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611073575060408051601f3d908101601f1916820190925261107091810190611944565b60015b6110d65760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016104cb565b600080516020611a7683398151915281146111455760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016104cb565b506105588383836112de565b6001600160a01b0316600090815260fd602052604090205460ff1690565b6001600160a01b03163b151590565b600054610100900460ff166111e95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016104cb565b565b6111f58282610a72565b6105d75761120281611309565b61120d83602061131b565b60405160200161121e92919061195d565b60408051601f198184030181529082905262461bcd60e51b82526104cb916004016117e1565b61124d8161116f565b6112af5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016104cb565b600080516020611a7683398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6112e7836114be565b6000825111806112f45750805b156105585761130383836114fe565b50505050565b60606104456001600160a01b03831660145b6060600061132a8360026119e2565b6113359060026119f9565b67ffffffffffffffff81111561134d5761134d6116e5565b6040519080825280601f01601f191660200182016040528015611377576020820181803683370190505b509050600360fc1b8160008151811061139257611392611a0c565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106113c1576113c1611a0c565b60200101906001600160f81b031916908160001a90535060006113e58460026119e2565b6113f09060016119f9565b90505b6001811115611468576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061142457611424611a0c565b1a60f81b82828151811061143a5761143a611a0c565b60200101906001600160f81b031916908160001a90535060049490941c9361146181611a22565b90506113f3565b5083156114b75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104cb565b9392505050565b6114c781611244565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606114b78383604051806060016040528060278152602001611a96602791396060600080856001600160a01b03168560405161153b9190611a39565b600060405180830381855af49150503d8060008114611576576040519150601f19603f3d011682016040523d82523d6000602084013e61157b565b606091505b509150915061158c86838387611596565b9695505050505050565b606083156116035782516000036115fc576115b08561116f565b6115fc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104cb565b508161160d565b61160d8383611615565b949350505050565b8151156116255781518083602001fd5b8060405162461bcd60e51b81526004016104cb91906117e1565b60006020828403121561165157600080fd5b81356001600160e01b0319811681146114b757600080fd5b60006020828403121561167b57600080fd5b5035919050565b80356001600160a01b038116811461169957600080fd5b919050565b6000602082840312156116b057600080fd5b6114b782611682565b600080604083850312156116cc57600080fd5b823591506116dc60208401611682565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561170e57600080fd5b61171783611682565b9150602083013567ffffffffffffffff8082111561173457600080fd5b818501915085601f83011261174857600080fd5b81358181111561175a5761175a6116e5565b604051601f8201601f19908116603f01168101908382118183101715611782576117826116e5565b8160405282815288602084870101111561179b57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b838110156117d85781810151838201526020016117c0565b50506000910152565b60208152600082518060208401526118008160408501602087016117bd565b601f01601f19169190910160400192915050565b6000806040838503121561182757600080fd5b61183083611682565b91506116dc60208401611682565b6000806000806080858703121561185457600080fd5b61185d85611682565b935061186b60208601611682565b925061187960408601611682565b915061188760608601611682565b905092959194509250565b6001600160a01b0392831681529116602082015260400190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60006020828403121561195657600080fd5b5051919050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161198f8160178501602088016117bd565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516119c08160288401602088016117bd565b01602801949350505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610445576104456119cc565b80820180821115610445576104456119cc565b634e487b7160e01b600052603260045260246000fd5b600081611a3157611a316119cc565b506000190190565b60008251611a4b8184602087016117bd565b919091019291505056fe793a6c9b7e0a9549c74edc2f9ae0dc50903dfaa9a56fb0116b27a8c71de3e2c6360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649027349758afcb3649adbc1f090fcd4eb9187cfbbd22483c7d103367d7b50173a26469706673582212207a2ea13b3f1f99e1b8597426e308f5b241727f96a8f90d610db87c688900dcd564736f6c63430008120033