{"constructor_args":"0x000000000000000000000000e7c3d8c9a439fede00d2600032d5db0be71c3c29","is_partially_verified":true,"is_changed_bytecode":false,"abi":[{"constant":false,"inputs":[{"name":"_allowanceIncrement","type":"uint256"}],"name":"incrementMinterAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newMinterManager","type":"address"}],"name":"setMinterManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_allowanceDecrement","type":"uint256"}],"name":"decrementMinterAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMinterManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_controller","type":"address"}],"name":"getWorker","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_controller","type":"address"},{"name":"_worker","type":"address"}],"name":"configureController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newAllowance","type":"uint256"}],"name":"configureMinter","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"removeMinter","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"removeController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_minterManager","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_oldMinterManager","type":"address"},{"indexed":true,"name":"_newMinterManager","type":"address"}],"name":"MinterManagerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_msgSender","type":"address"},{"indexed":true,"name":"_minter","type":"address"},{"indexed":false,"name":"_allowance","type":"uint256"}],"name":"MinterConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_msgSender","type":"address"},{"indexed":true,"name":"_minter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_msgSender","type":"address"},{"indexed":true,"name":"_minter","type":"address"},{"indexed":false,"name":"_increment","type":"uint256"},{"indexed":false,"name":"_newAllowance","type":"uint256"}],"name":"MinterAllowanceIncremented","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"msgSender","type":"address"},{"indexed":true,"name":"minter","type":"address"},{"indexed":false,"name":"decrement","type":"uint256"},{"indexed":false,"name":"newAllowance","type":"uint256"}],"name":"MinterAllowanceDecremented","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_controller","type":"address"},{"indexed":true,"name":"_worker","type":"address"}],"name":"ControllerConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_controller","type":"address"}],"name":"ControllerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"previousOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}],"conflicting_implementations":null,"certified":false,"additional_sources":[],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"default","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":false,"license_type":"none","is_blueprint":false,"name":"MinterAdmin","creation_bytecode":"0x608060405234801561001057600080fd5b50604051602080611ed9833981018060405281019080805190602001909291905050508061004c33610094640100000000026401000000009004565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506100d7565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611df3806100e66000396000f3006080604052600436106100af576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806333db2ad2146100b4578063542fef91146100f95780637c6b8ef51461013c5780638da5cb5b146101815780639398608b146101d8578063c011b1c31461022f578063c4faf7df146102b2578063cbf2b8bf14610315578063ea7215691461035a578063f2fde38b14610389578063f6a74ed7146103cc575b600080fd5b3480156100c057600080fd5b506100df6004803603810190808035906020019092919050505061040f565b604051808215151515815260200191505060405180910390f35b34801561010557600080fd5b5061013a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610961565b005b34801561014857600080fd5b5061016760048036038101908080359060200190929190505050610a62565b604051808215151515815260200191505060405180910390f35b34801561018d57600080fd5b50610196610fc7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101e457600080fd5b506101ed610ff0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023b57600080fd5b50610270600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061101a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102be57600080fd5b50610313600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611083565b005b34801561032157600080fd5b5061034060048036038101908080359060200190929190505050611336565b604051808215151515815260200191505060405180910390f35b34801561036657600080fd5b5061036f61153c565b604051808215151515815260200191505060405180910390f35b34801561039557600080fd5b506103ca600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611823565b005b3480156103d857600080fd5b5061040d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061194a565b005b600080600080600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561053f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b6000851115156105dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001807f416c6c6f77616e636520696e6372656d656e74206d757374206265206772656181526020017f746572207468616e20300000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aa271e1a846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156106fc57600080fd5b505af1158015610710573d6000803e3d6000fd5b505050506040513d602081101561072657600080fd5b810190808051906020019092919050505015156107d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001807f43616e206f6e6c7920696e6372656d656e7420616c6c6f77616e636520666f7281526020017f206d696e7465727320696e206d696e7465724d616e616765720000000000000081525060400191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a6db9c3846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561088e57600080fd5b505af11580156108a2573d6000803e3d6000fd5b505050506040513d60208110156108b857600080fd5b810190808051906020019092919050505091506108de8583611c4590919063ffffffff16565b90508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f3703d23abba1e61f32acc0682fc062ea5c710672c7d100af5ecd08485e983ad08784604051808381526020018281526020019250505060405180910390a36109578382611c61565b9350505050919050565b610969610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109a257600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f9992ea32e96992be98be5c833cd5b9fd77314819d2146b6f06ab9cfef957af1260405160405180910390a380600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008060008073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515610b93576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b600086111515610c31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001807f416c6c6f77616e63652064656372656d656e74206d757374206265206772656181526020017f746572207468616e20300000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169350600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aa271e1a856040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015610d5057600080fd5b505af1158015610d64573d6000803e3d6000fd5b505050506040513d6020811015610d7a57600080fd5b81019080805190602001909291905050501515610e25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001807f43616e206f6e6c792064656372656d656e7420616c6c6f77616e636520666f7281526020017f206d696e7465727320696e206d696e7465724d616e616765720000000000000081525060400191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a6db9c3856040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015610ee257600080fd5b505af1158015610ef6573d6000803e3d6000fd5b505050506040513d6020811015610f0c57600080fd5b81019080805190602001909291905050509250858311610f2c5782610f2e565b855b9150610f438284611d6b90919063ffffffff16565b90508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f3cc75d3bf58b0100659088c03539964108d5d06342e1bd8085ee43ad8ff6f69a8484604051808381526020018281526020019250505060405180910390a3610fbc8482611c61565b945050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61108b610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110c457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561118f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001807f436f6e74726f6c6c6572206d7573742062652061206e6f6e2d7a65726f20616481526020017f647265737300000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561125a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f576f726b6572206d7573742062652061206e6f6e2d7a65726f2061646472657381526020017f730000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fa56687ff5096e83f6e2c673cda0b677f56bbfcdf5fe0555d5830c407ede193cb60405160405180910390a35050565b600080600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611463576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5b0b60a4f757b33d9dcb8bd021b6aa371bb2e6f134086797aefcd8c0afab538c856040518082815260200191505060405180910390a36115348184611c61565b915050919050565b600080600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611669576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4b5ef9a786cf64a7d82ebcf2d5132667edc9faef4ac36260d9a9e52c526b623260405160405180910390a3600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633092afd5826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156117e257600080fd5b505af11580156117f6573d6000803e3d6000fd5b505050506040513d602081101561180c57600080fd5b810190808051906020019092919050505091505090565b61182b610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561186457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156118a057600080fd5b7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06118c9610fc7565b82604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a161194781611d84565b50565b611952610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561198b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611a56576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001807f436f6e74726f6c6c6572206d7573742062652061206e6f6e2d7a65726f20616481526020017f647265737300000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611b80576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f576f726b6572206d7573742062652061206e6f6e2d7a65726f2061646472657381526020017f730000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f33d83959be2573f5453b12eb9d43b3499bc57d96bd2f067ba44803c859e8111360405160405180910390a250565b60008183019050828110151515611c5857fe5b80905092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e44d95684846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611d2857600080fd5b505af1158015611d3c573d6000803e3d6000fd5b505050506040513d6020811015611d5257600080fd5b8101908080519060200190929190505050905092915050565b6000828211151515611d7957fe5b818303905092915050565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582059db6135d3e8ce05f53beeb7c03de6f04c7a13aad69ad8de766ed8a648c861bc0029000000000000000000000000e7c3d8c9a439fede00d2600032d5db0be71c3c29","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-08-10T01:52:26.724925Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.4.24+commit.e67f0147","decoded_constructor_args":[["0xE7C3D8C9a439feDe00D2600032D5dB0Be71C3c29",{"name":"_minterManager","type":"address"}]],"sourcify_repo_url":null,"optimization_runs":null,"compiler_settings":{"libraries":{},"optimizer":{"enabled":false,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}}},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":false,"deployed_bytecode":"0x6080604052600436106100af576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806333db2ad2146100b4578063542fef91146100f95780637c6b8ef51461013c5780638da5cb5b146101815780639398608b146101d8578063c011b1c31461022f578063c4faf7df146102b2578063cbf2b8bf14610315578063ea7215691461035a578063f2fde38b14610389578063f6a74ed7146103cc575b600080fd5b3480156100c057600080fd5b506100df6004803603810190808035906020019092919050505061040f565b604051808215151515815260200191505060405180910390f35b34801561010557600080fd5b5061013a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610961565b005b34801561014857600080fd5b5061016760048036038101908080359060200190929190505050610a62565b604051808215151515815260200191505060405180910390f35b34801561018d57600080fd5b50610196610fc7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101e457600080fd5b506101ed610ff0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023b57600080fd5b50610270600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061101a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102be57600080fd5b50610313600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611083565b005b34801561032157600080fd5b5061034060048036038101908080359060200190929190505050611336565b604051808215151515815260200191505060405180910390f35b34801561036657600080fd5b5061036f61153c565b604051808215151515815260200191505060405180910390f35b34801561039557600080fd5b506103ca600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611823565b005b3480156103d857600080fd5b5061040d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061194a565b005b600080600080600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561053f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b6000851115156105dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001807f416c6c6f77616e636520696e6372656d656e74206d757374206265206772656181526020017f746572207468616e20300000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aa271e1a846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156106fc57600080fd5b505af1158015610710573d6000803e3d6000fd5b505050506040513d602081101561072657600080fd5b810190808051906020019092919050505015156107d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001807f43616e206f6e6c7920696e6372656d656e7420616c6c6f77616e636520666f7281526020017f206d696e7465727320696e206d696e7465724d616e616765720000000000000081525060400191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a6db9c3846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561088e57600080fd5b505af11580156108a2573d6000803e3d6000fd5b505050506040513d60208110156108b857600080fd5b810190808051906020019092919050505091506108de8583611c4590919063ffffffff16565b90508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f3703d23abba1e61f32acc0682fc062ea5c710672c7d100af5ecd08485e983ad08784604051808381526020018281526020019250505060405180910390a36109578382611c61565b9350505050919050565b610969610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109a257600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f9992ea32e96992be98be5c833cd5b9fd77314819d2146b6f06ab9cfef957af1260405160405180910390a380600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008060008073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515610b93576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b600086111515610c31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001807f416c6c6f77616e63652064656372656d656e74206d757374206265206772656181526020017f746572207468616e20300000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169350600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aa271e1a856040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015610d5057600080fd5b505af1158015610d64573d6000803e3d6000fd5b505050506040513d6020811015610d7a57600080fd5b81019080805190602001909291905050501515610e25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001807f43616e206f6e6c792064656372656d656e7420616c6c6f77616e636520666f7281526020017f206d696e7465727320696e206d696e7465724d616e616765720000000000000081525060400191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a6db9c3856040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015610ee257600080fd5b505af1158015610ef6573d6000803e3d6000fd5b505050506040513d6020811015610f0c57600080fd5b81019080805190602001909291905050509250858311610f2c5782610f2e565b855b9150610f438284611d6b90919063ffffffff16565b90508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f3cc75d3bf58b0100659088c03539964108d5d06342e1bd8085ee43ad8ff6f69a8484604051808381526020018281526020019250505060405180910390a3610fbc8482611c61565b945050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61108b610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110c457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561118f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001807f436f6e74726f6c6c6572206d7573742062652061206e6f6e2d7a65726f20616481526020017f647265737300000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561125a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f576f726b6572206d7573742062652061206e6f6e2d7a65726f2061646472657381526020017f730000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fa56687ff5096e83f6e2c673cda0b677f56bbfcdf5fe0555d5830c407ede193cb60405160405180910390a35050565b600080600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611463576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5b0b60a4f757b33d9dcb8bd021b6aa371bb2e6f134086797aefcd8c0afab538c856040518082815260200191505060405180910390a36115348184611c61565b915050919050565b600080600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611669576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f5468652076616c7565206f6620636f6e74726f6c6c6572735b6d73672e73656e81526020017f6465725d206d757374206265206e6f6e2d7a65726f000000000000000000000081525060400191505060405180910390fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4b5ef9a786cf64a7d82ebcf2d5132667edc9faef4ac36260d9a9e52c526b623260405160405180910390a3600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633092afd5826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156117e257600080fd5b505af11580156117f6573d6000803e3d6000fd5b505050506040513d602081101561180c57600080fd5b810190808051906020019092919050505091505090565b61182b610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561186457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156118a057600080fd5b7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06118c9610fc7565b82604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a161194781611d84565b50565b611952610fc7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561198b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611a56576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001807f436f6e74726f6c6c6572206d7573742062652061206e6f6e2d7a65726f20616481526020017f647265737300000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611b80576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f576f726b6572206d7573742062652061206e6f6e2d7a65726f2061646472657381526020017f730000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f33d83959be2573f5453b12eb9d43b3499bc57d96bd2f067ba44803c859e8111360405160405180910390a250565b60008183019050828110151515611c5857fe5b80905092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e44d95684846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611d2857600080fd5b505af1158015611d3c573d6000803e3d6000fd5b505050506040513d6020811015611d5257600080fd5b8101908080519060200190929190505050905092915050565b6000828211151515611d7957fe5b818303905092915050565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582059db6135d3e8ce05f53beeb7c03de6f04c7a13aad69ad8de766ed8a648c861bc0029","source_code":"pragma solidity ^0.4.24;\r\n\r\n// File: contracts/Ownable.sol\r\n\r\n/**\r\n* Copyright CENTRE SECZ 2018\r\n*\r\n* Permission is hereby granted, free of charge, to any person obtaining a copy\r\n* of this software and associated documentation files (the \"Software\"), to deal\r\n* in the Software without restriction, including without limitation the rights\r\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n* copies of the Software, and to permit persons to whom the Software is furnished to\r\n* do so, subject to the following conditions:\r\n*\r\n* The above copyright notice and this permission notice shall be included in all\r\n* copies or substantial portions of the Software.\r\n*\r\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r\n* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r\n* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n*/\r\n\r\npragma solidity ^0.4.24;\r\n\r\n/**\r\n * @title Ownable\r\n * @dev The Ownable contract from https://github.com/zeppelinos/labs/blob/master/upgradeability_ownership/contracts/ownership/Ownable.sol\r\n * branch: master commit: 3887ab77b8adafba4a26ace002f3a684c1a3388b modified to:\r\n * 1) Add emit prefix to OwnershipTransferred event (7/13/18)\r\n * 2) Replace constructor with constructor syntax (7/13/18)\r\n * 3) consolidate OwnableStorage into this contract\r\n */\r\ncontract Ownable {\r\n\r\n  // Owner of the contract\r\n  address private _owner;\r\n\r\n  /**\r\n  * @dev Event to show ownership has been transferred\r\n  * @param previousOwner representing the address of the previous owner\r\n  * @param newOwner representing the address of the new owner\r\n  */\r\n  event OwnershipTransferred(address previousOwner, address newOwner);\r\n\r\n  /**\r\n  * @dev The constructor sets the original owner of the contract to the sender account.\r\n  */\r\n  constructor() public {\r\n    setOwner(msg.sender);\r\n  }\r\n\r\n  /**\r\n * @dev Tells the address of the owner\r\n * @return the address of the owner\r\n */\r\n  function owner() public view returns (address) {\r\n    return _owner;\r\n  }\r\n\r\n  /**\r\n   * @dev Sets a new owner address\r\n   */\r\n  function setOwner(address newOwner) internal {\r\n    _owner = newOwner;\r\n  }\r\n\r\n  /**\r\n  * @dev Throws if called by any account other than the owner.\r\n  */\r\n  modifier onlyOwner() {\r\n    require(msg.sender == owner());\r\n    _;\r\n  }\r\n\r\n  /**\r\n   * @dev Allows the current owner to transfer control of the contract to a newOwner.\r\n   * @param newOwner The address to transfer ownership to.\r\n   */\r\n  function transferOwnership(address newOwner) public onlyOwner {\r\n    require(newOwner != address(0));\r\n    emit OwnershipTransferred(owner(), newOwner);\r\n    setOwner(newOwner);\r\n  }\r\n}\r\n\r\n// File: contracts/minting/Controller.sol\r\n\r\n/**\r\n* Copyright CENTRE SECZ 2018\r\n*\r\n* Permission is hereby granted, free of charge, to any person obtaining a copy\r\n* of this software and associated documentation files (the \"Software\"), to deal\r\n* in the Software without restriction, including without limitation the rights\r\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n* copies of the Software, and to permit persons to whom the Software is\r\n* furnished to do so, subject to the following conditions:\r\n*\r\n* The above copyright notice and this permission notice shall be included in all\r\n* copies or substantial portions of the Software.\r\n*\r\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n* THE SOFTWARE.\r\n*/\r\n\r\npragma solidity ^0.4.24;\r\n\r\n\r\n/**\r\n * @title Controller\r\n * @notice Generic implementation of the owner-controller-worker model.\r\n * One owner manages many controllers. Each controller manages one worker.\r\n * Workers may be reused across different controllers.\r\n */\r\ncontract Controller is Ownable {\r\n    /**\r\n     * @notice A controller manages a single worker address.\r\n     * controllers[controller] = worker\r\n     */\r\n    mapping(address => address) internal controllers;\r\n\r\n    event ControllerConfigured(\r\n        address indexed _controller,\r\n        address indexed _worker\r\n    );\r\n    event ControllerRemoved(address indexed _controller);\r\n\r\n    /**\r\n     * @notice Ensures that caller is the controller of a non-zero worker\r\n     * address.\r\n     */\r\n    modifier onlyController() {\r\n        require(controllers[msg.sender] != address(0),\r\n            \"The value of controllers[msg.sender] must be non-zero\");\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @notice Gets the worker at address _controller.\r\n     */\r\n    function getWorker(\r\n        address _controller\r\n    )\r\n        external\r\n        view\r\n        returns (address)\r\n    {\r\n        return controllers[_controller];\r\n    }\r\n\r\n    // onlyOwner functions\r\n\r\n    /**\r\n     * @notice Configure a controller with the given worker.\r\n     * @param _controller The controller to be configured with a worker.\r\n     * @param _worker The worker to be set for the newly configured controller.\r\n     * _worker must not be a non-zero address. To disable a worker,\r\n     * use removeController instead.\r\n     */\r\n    function configureController(\r\n        address _controller,\r\n        address _worker\r\n    )\r\n        public\r\n        onlyOwner\r\n    {\r\n        require(_controller != address(0),\r\n            \"Controller must be a non-zero address\");\r\n        require(_worker != address(0), \"Worker must be a non-zero address\");\r\n        controllers[_controller] = _worker;\r\n        emit ControllerConfigured(_controller, _worker);\r\n    }\r\n\r\n    /**\r\n     * @notice disables a controller by setting its worker to address(0).\r\n     * @param _controller The controller to disable.\r\n     */\r\n    function removeController(\r\n        address _controller\r\n    )\r\n        public\r\n        onlyOwner\r\n    {\r\n        require(_controller != address(0),\r\n            \"Controller must be a non-zero address\");\r\n        require(controllers[_controller] != address(0),\r\n            \"Worker must be a non-zero address\");\r\n        controllers[_controller] = address(0);\r\n        emit ControllerRemoved(_controller);\r\n    }\r\n}\r\n\r\n// File: contracts/minting/MinterManagementInterface.sol\r\n\r\n/**\r\n* Copyright CENTRE SECZ 2019\r\n*\r\n* Permission is hereby granted, free of charge, to any person obtaining a copy\r\n* of this software and associated documentation files (the \"Software\"), to deal\r\n* in the Software without restriction, including without limitation the rights\r\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n* copies of the Software, and to permit persons to whom the Software is\r\n* furnished to do so, subject to the following conditions:\r\n*\r\n* The above copyright notice and this permission notice shall be included in all\r\n* copies or substantial portions of the Software.\r\n*\r\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n* THE SOFTWARE.\r\n*/\r\n\r\npragma solidity ^0.4.24;\r\n\r\n/**\r\n * @notice A contract that implements the MinterManagementInterface has external\r\n * functions for adding and removing minters and modifying their allowances.\r\n * An example is the FiatTokenV1 contract that implements USDC.\r\n */\r\ninterface MinterManagementInterface {\r\n    function isMinter(address _account) external view returns (bool);\r\n    function minterAllowance(address _minter) external view returns (uint256);\r\n\r\n    function configureMinter(\r\n        address _minter,\r\n        uint256 _minterAllowedAmount\r\n    )\r\n        external\r\n        returns (bool);\r\n\r\n    function removeMinter(address _minter) external returns (bool);\r\n}\r\n\r\n// File: openzeppelin-solidity/contracts/math/SafeMath.sol\r\n\r\n/**\r\n * @title SafeMath\r\n * @dev Math operations with safety checks that throw on error\r\n */\r\nlibrary SafeMath {\r\n\r\n  /**\r\n  * @dev Multiplies two numbers, throws on overflow.\r\n  */\r\n  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\r\n    // Gas optimization: this is cheaper than asserting 'a' not being zero, but the\r\n    // benefit is lost if 'b' is also tested.\r\n    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\r\n    if (a == 0) {\r\n      return 0;\r\n    }\r\n\r\n    c = a * b;\r\n    assert(c / a == b);\r\n    return c;\r\n  }\r\n\r\n  /**\r\n  * @dev Integer division of two numbers, truncating the quotient.\r\n  */\r\n  function div(uint256 a, uint256 b) internal pure returns (uint256) {\r\n    // assert(b > 0); // Solidity automatically throws when dividing by 0\r\n    // uint256 c = a / b;\r\n    // assert(a == b * c + a % b); // There is no case in which this doesn't hold\r\n    return a / b;\r\n  }\r\n\r\n  /**\r\n  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).\r\n  */\r\n  function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r\n    assert(b <= a);\r\n    return a - b;\r\n  }\r\n\r\n  /**\r\n  * @dev Adds two numbers, throws on overflow.\r\n  */\r\n  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {\r\n    c = a + b;\r\n    assert(c >= a);\r\n    return c;\r\n  }\r\n}\r\n\r\n// File: contracts/minting/MintController.sol\r\n\r\n/**\r\n* Copyright CENTRE SECZ 2018\r\n*\r\n* Permission is hereby granted, free of charge, to any person obtaining a copy\r\n* of this software and associated documentation files (the \"Software\"), to deal\r\n* in the Software without restriction, including without limitation the rights\r\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n* copies of the Software, and to permit persons to whom the Software is\r\n* furnished to do so, subject to the following conditions:\r\n*\r\n* The above copyright notice and this permission notice shall be included in all\r\n* copies or substantial portions of the Software.\r\n*\r\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n* THE SOFTWARE.\r\n*/\r\n\r\npragma solidity ^0.4.24;\r\n\r\n\r\n\r\n\r\n/**\r\n * @title MintController\r\n * @notice The MintController contract manages minters for a contract that\r\n * implements the MinterManagerInterface. It lets the owner designate certain\r\n * addresses as controllers, and these controllers then manage the\r\n * minters by adding and removing minters, as well as modifying their minting\r\n * allowance. A controller may manage exactly one minter, but the same minter\r\n * address may be managed by multiple controllers.\r\n * @dev MintController inherits from the Controller contract. It treats the\r\n * Controller workers as minters.\r\n */\r\ncontract MintController is Controller {\r\n    using SafeMath for uint256;\r\n\r\n    /**\r\n    * @title MinterManagementInterface\r\n    * @notice MintController calls the minterManager to execute/record minter\r\n    * management tasks, as well as to query the status of a minter address.\r\n    */\r\n    MinterManagementInterface internal minterManager;\r\n\r\n    event MinterManagerSet(\r\n        address indexed _oldMinterManager,\r\n        address indexed _newMinterManager\r\n    );\r\n    event MinterConfigured(\r\n        address indexed _msgSender,\r\n        address indexed _minter,\r\n        uint256 _allowance\r\n    );\r\n    event MinterRemoved(\r\n        address indexed _msgSender,\r\n        address indexed _minter\r\n    );\r\n    event MinterAllowanceIncremented(\r\n        address indexed _msgSender,\r\n        address indexed _minter,\r\n        uint256 _increment,\r\n        uint256 _newAllowance\r\n    );\r\n\r\n    event MinterAllowanceDecremented(\r\n        address indexed msgSender,\r\n        address indexed minter,\r\n        uint256 decrement,\r\n        uint256 newAllowance\r\n    );\r\n\r\n    /**\r\n     * @notice Initializes the minterManager.\r\n     * @param _minterManager The address of the minterManager contract.\r\n     */\r\n    constructor(address _minterManager) public {\r\n        minterManager = MinterManagementInterface(_minterManager);\r\n    }\r\n\r\n    /**\r\n     * @notice gets the minterManager\r\n     */\r\n    function getMinterManager(\r\n    )\r\n        external\r\n        view\r\n        returns (MinterManagementInterface)\r\n    {\r\n        return minterManager;\r\n    }\r\n\r\n    // onlyOwner functions\r\n\r\n    /**\r\n     * @notice Sets the minterManager.\r\n     * @param _newMinterManager The address of the new minterManager contract.\r\n     */\r\n    function setMinterManager(\r\n        address _newMinterManager\r\n    )\r\n        public\r\n        onlyOwner\r\n    {\r\n        emit MinterManagerSet(address(minterManager), _newMinterManager);\r\n        minterManager = MinterManagementInterface(_newMinterManager);\r\n    }\r\n\r\n    // onlyController functions\r\n\r\n    /**\r\n     * @notice Removes the controller's own minter.\r\n     */\r\n    function removeMinter() public onlyController returns (bool) {\r\n        address minter = controllers[msg.sender];\r\n        emit MinterRemoved(msg.sender, minter);\r\n        return minterManager.removeMinter(minter);\r\n    }\r\n\r\n    /**\r\n     * @notice Enables the minter and sets its allowance.\r\n     * @param _newAllowance New allowance to be set for minter.\r\n     */\r\n    function configureMinter(\r\n        uint256 _newAllowance\r\n    )\r\n        public\r\n        onlyController\r\n        returns (bool)\r\n    {\r\n        address minter = controllers[msg.sender];\r\n        emit MinterConfigured(msg.sender, minter, _newAllowance);\r\n        return internal_setMinterAllowance(minter, _newAllowance);\r\n    }\r\n\r\n    /**\r\n     * @notice Increases the minter's allowance if and only if the minter is an\r\n     * active minter.\r\n     * @dev An minter is considered active if minterManager.isMinter(minter)\r\n     * returns true.\r\n     */\r\n    function incrementMinterAllowance(\r\n        uint256 _allowanceIncrement\r\n    )\r\n        public\r\n        onlyController\r\n        returns (bool)\r\n    {\r\n        require(_allowanceIncrement > 0,\r\n            \"Allowance increment must be greater than 0\");\r\n        address minter = controllers[msg.sender];\r\n        require(minterManager.isMinter(minter),\r\n            \"Can only increment allowance for minters in minterManager\");\r\n\r\n        uint256 currentAllowance = minterManager.minterAllowance(minter);\r\n        uint256 newAllowance = currentAllowance.add(_allowanceIncrement);\r\n\r\n        emit MinterAllowanceIncremented(\r\n            msg.sender,\r\n            minter,\r\n            _allowanceIncrement,\r\n            newAllowance\r\n        );\r\n\r\n        return internal_setMinterAllowance(minter, newAllowance);\r\n    }\r\n\r\n    /**\r\n     * @notice decreases the minter allowance if and only if the minter is\r\n     * currently active. The controller can safely send a signed\r\n     * decrementMinterAllowance() transaction to a minter and not worry\r\n     * about it being used to undo a removeMinter() transaction.\r\n     */\r\n    function decrementMinterAllowance(\r\n        uint256 _allowanceDecrement\r\n    )\r\n        public\r\n        onlyController\r\n        returns (bool)\r\n    {\r\n        require(_allowanceDecrement > 0,\r\n            \"Allowance decrement must be greater than 0\");\r\n        address minter = controllers[msg.sender];\r\n        require(minterManager.isMinter(minter),\r\n            \"Can only decrement allowance for minters in minterManager\");\r\n\r\n        uint256 currentAllowance = minterManager.minterAllowance(minter);\r\n        uint256 actualAllowanceDecrement = (\r\n            currentAllowance > _allowanceDecrement ?\r\n            _allowanceDecrement : currentAllowance\r\n        );\r\n        uint256 newAllowance = currentAllowance.sub(actualAllowanceDecrement);\r\n\r\n        emit MinterAllowanceDecremented(\r\n            msg.sender,\r\n            minter,\r\n            actualAllowanceDecrement,\r\n            newAllowance\r\n        );\r\n\r\n        return internal_setMinterAllowance(minter, newAllowance);\r\n    }\r\n\r\n    // Internal functions\r\n\r\n    /**\r\n     * @notice Uses the MinterManagementInterface to enable the minter and\r\n     * set its allowance.\r\n     * @param _minter Minter to set new allowance of.\r\n     * @param _newAllowance New allowance to be set for minter.\r\n     */\r\n    function internal_setMinterAllowance(\r\n        address _minter,\r\n        uint256 _newAllowance\r\n    )\r\n        internal\r\n        returns (bool)\r\n    {\r\n        return minterManager.configureMinter(_minter, _newAllowance);\r\n    }\r\n}\r\n\r\n// File: contracts/minting/MinterAdmin.sol\r\n\r\n/**\r\n* Copyright CENTRE SECZ\r\n* Copyright (c) 2022 JPYC\r\n*\r\n* Permission is hereby granted, free of charge, to any person obtaining a copy\r\n* of this software and associated documentation files (the \"Software\"), to deal\r\n* in the Software without restriction, including without limitation the rights\r\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n* copies of the Software, and to permit persons to whom the Software is\r\n* furnished to do so, subject to the following conditions:\r\n*\r\n* The above copyright notice and this permission notice shall be included in all\r\n* copies or substantial portions of the Software.\r\n*\r\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n* THE SOFTWARE.\r\n*/\r\n\r\npragma solidity ^0.4.24;\r\n\r\n\r\n/**\r\n * @title MinterAdmin\r\n * @notice MinterAdmin uses multiple controllers to manage minters for a\r\n * contract that implements the MinterManagerInterface.\r\n * @dev MinterAdmin inherits all its functionality from MintController.\r\n * @dev Forked from hhttps://github.com/centrehq/centre-tokens/blob/7d5e39e203651601a44a157bf5fb55497ab595f4/contracts/minting/MasterMinter.sol\r\n * Modifications:\r\n * 1. Change contract name and variable to MinterAdmin\r\n */\r\ncontract MinterAdmin is MintController {\r\n\r\n    constructor(address _minterManager) MintController(_minterManager) public {\r\n    }\r\n}","creation_status":"success","file_path":"contracts/minting/MinterAdmin.sol"}