[ { "inputs": [ { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }, { "internalType": "address", "name": "userOracle_", "type": "address" }, { "internalType": "address", "name": "minter_", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidAddress", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "InvalidAmount", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "nonce", "type": "bytes32" } ], "name": "InvalidNonce", "type": "error" }, { "inputs": [], "name": "InvalidSignature", "type": "error" }, { "inputs": [], "name": "NotAdmin", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "admin", "type": "address" } ], "name": "AdminAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "admin", "type": "address" } ], "name": "AdminRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Burnt", "type": "event" }, { "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": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "admin", "type": "address" } ], "name": "addAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" } ], "name": "burnAllFromAccount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "userId", "type": "bytes32" } ], "name": "burnAllFromUser", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "from", "type": "address" } ], "name": "burnFromAccount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" } ], "name": "burnFromUser", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "messageHash", "type": "bytes32" }, { "components": [ { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "internalType": "struct Signature", "name": "signature", "type": "tuple" } ], "name": "hasValidSignature", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "admin", "type": "address" } ], "name": "isAdmin", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "approved", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, { "components": [ { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "internalType": "struct Signature", "name": "signature", "type": "tuple" } ], "name": "mintToAccount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "approved", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }, { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, { "components": [ { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "internalType": "struct Signature", "name": "signature", "type": "tuple" } ], "name": "mintToUser", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "minter", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "admin", "type": "address" } ], "name": "removeAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
60c06040523480156200001157600080fd5b5060405162001c0738038062001c078339810160408190526200003491620002de565b8484600362000044838262000416565b50600462000053828262000416565b505050620000706200006a620000ef60201b60201c565b620000f3565b6001600160a01b03821615806200008e57506001600160a01b038116155b15620000ad5760405163e6c4247b60e01b815260040160405180910390fd5b60ff831660a0526001600160a01b03828116608052600880546001600160a01b031916918316919091179055620000e43362000145565b5050505050620004e2565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200014f6200019b565b6001600160a01b038116600081815260076020526040808220805460ff19166001179055517f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399190a250565b6005546001600160a01b03163314620001fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200022457600080fd5b81516001600160401b0380821115620002415762000241620001fc565b604051601f8301601f19908116603f011681019082821181831017156200026c576200026c620001fc565b816040528381526020925086838588010111156200028957600080fd5b600091505b83821015620002ad57858201830151818301840152908201906200028e565b600093810190920192909252949350505050565b80516001600160a01b0381168114620002d957600080fd5b919050565b600080600080600060a08688031215620002f757600080fd5b85516001600160401b03808211156200030f57600080fd5b6200031d89838a0162000212565b965060208801519150808211156200033457600080fd5b50620003438882890162000212565b945050604086015160ff811681146200035b57600080fd5b92506200036b60608701620002c1565b91506200037b60808701620002c1565b90509295509295909350565b600181811c908216806200039c57607f821691505b602082108103620003bd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200041157600081815260208120601f850160051c81016020861015620003ec5750805b601f850160051c820191505b818110156200040d57828155600101620003f8565b5050505b505050565b81516001600160401b03811115620004325762000432620001fc565b6200044a8162000443845462000387565b84620003c3565b602080601f831160018114620004825760008415620004695750858301515b600019600386901b1c1916600185901b1785556200040d565b600085815260208120601f198616915b82811015620004b35788860151825594840194600190910190840162000492565b5085821015620004d25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516116f16200051660003960006102510152600081816106df015281816108f70152610aa201526116f16000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806370480275116100de57806395d89b4111610097578063b5dfd84111610071578063b5dfd84114610370578063dd62ed3e14610383578063df708e5c14610396578063f2fde38b146103a957600080fd5b806395d89b4114610342578063a457c2d71461034a578063a9059cbb1461035d57600080fd5b806370480275146102c757806370a08231146102da578063715018a614610303578063760b74ae1461030b5780638b15d8c51461031e5780638da5cb5b1461033157600080fd5b806324d7806c1161013057806324d7806c1461021e578063313ce5671461024a57806337ac36801461027b578063395093511461028e5780633bd0e566146102a1578063485b73c3146102b457600080fd5b806306fdde03146101785780630754617214610196578063095ea7b3146101c15780631785f53c146101e457806318160ddd146101f957806323b872dd1461020b575b600080fd5b6101806103bc565b60405161018d9190611377565b60405180910390f35b6008546101a9906001600160a01b031681565b6040516001600160a01b03909116815260200161018d565b6101d46101cf3660046113da565b61044e565b604051901515815260200161018d565b6101f76101f2366004611406565b610468565b005b6002545b60405190815260200161018d565b6101d4610219366004611423565b6104b9565b6101d461022c366004611406565b6001600160a01b031660009081526007602052604090205460ff1690565b60405160ff7f000000000000000000000000000000000000000000000000000000000000000016815260200161018d565b6101f7610289366004611406565b6104dd565b6101d461029c3660046113da565b610534565b6101f76102af36600461147c565b610556565b6101f76102c23660046114cf565b610696565b6101f76102d5366004611406565b610763565b6101fd6102e8366004611406565b6001600160a01b031660009081526020819052604090205490565b6101f76107b7565b6101d46103193660046114f1565b6107cb565b6101f761032c36600461151e565b6107e7565b6005546001600160a01b03166101a9565b6101806109c1565b6101d46103583660046113da565b6109d0565b6101d461036b3660046113da565b610a4b565b6101f761037e36600461155c565b610a59565b6101fd610391366004611575565b610b44565b6101f76103a43660046115ae565b610b6f565b6101f76103b7366004611406565b610ba9565b6060600380546103cb906115d3565b80601f01602080910402602001604051908101604052809291908181526020018280546103f7906115d3565b80156104445780601f1061041957610100808354040283529160200191610444565b820191906000526020600020905b81548152906001019060200180831161042757829003601f168201915b5050505050905090565b60003361045c818585610bc7565b60019150505b92915050565b610470610ceb565b6001600160a01b038116600081815260076020526040808220805460ff19169055517fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f9190a250565b6000336104c7858285610d45565b6104d2858585610dbf565b506001949350505050565b3360009081526007602052604090205460ff1661050d57604051637bfa4b9f60e01b815260040160405180910390fd5b6001600160a01b0381166000908152602081905260409020546105308183610f63565b5050565b60003361045c8185856105478383610b44565b6105519190611607565b610bc7565b81801580610572575060008181526006602052604090205460ff165b1561059857604051631cdba4a560e21b8152600481018290526024015b60405180910390fd5b3360009081526007602052604090205460ff166105c857604051637bfa4b9f60e01b815260040160405180910390fd5b858511156105ec57604051633728b83d60e01b81526004810186905260240161058f565b604080516020808201899052606087901b6bffffffffffffffffffffffff1916828401526054808301879052835180840390910181526074909201909252805191012060006106498261064436879003870187611628565b610fdb565b90508061066957604051638baa579f60e01b815260040160405180910390fd5b6000858152600660205260409020805460ff1916600117905561068c8688611001565b5050505050505050565b3360009081526007602052604090205460ff166106c657604051637bfa4b9f60e01b815260040160405180910390fd5b6040516321f8a72160e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906321f8a72190602401602060405180830381865afa15801561072e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610752919061169e565b905061075e8382610f63565b505050565b61076b610ceb565b6001600160a01b038116600081815260076020526040808220805460ff19166001179055517f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399190a250565b6107bf610ceb565b6107c960006110c0565b565b60006107e08361064436859003850185611628565b9392505050565b81801580610803575060008181526006602052604090205460ff165b1561082457604051631cdba4a560e21b81526004810182905260240161058f565b3360009081526007602052604090205460ff1661085457604051637bfa4b9f60e01b815260040160405180910390fd5b8585111561087857604051633728b83d60e01b81526004810186905260240161058f565b6040805160208082018990528183018790526060808301879052835180840390910181526080909201909252805191012060006108be8261064436879003870187611628565b9050806108de57604051638baa579f60e01b815260040160405180910390fd5b6040516321f8a72160e01b8152600481018790526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906321f8a72190602401602060405180830381865afa158015610946573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096a919061169e565b90506001600160a01b0381166109935760405163e6c4247b60e01b815260040160405180910390fd5b6000868152600660205260409020805460ff191660011790556109b68189611001565b505050505050505050565b6060600480546103cb906115d3565b600033816109de8286610b44565b905083811015610a3e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161058f565b6104d28286868403610bc7565b60003361045c818585610dbf565b3360009081526007602052604090205460ff16610a8957604051637bfa4b9f60e01b815260040160405180910390fd5b6040516321f8a72160e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906321f8a72190602401602060405180830381865afa158015610af1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b15919061169e565b90506000610b38826001600160a01b031660009081526020819052604090205490565b905061075e8183610f63565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3360009081526007602052604090205460ff16610b9f57604051637bfa4b9f60e01b815260040160405180910390fd5b6105308282610f63565b610bb281610763565b610bbb33610468565b610bc481611112565b50565b6001600160a01b038316610c295760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161058f565b6001600160a01b038216610c8a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161058f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146107c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161058f565b6000610d518484610b44565b90506000198114610db95781811015610dac5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161058f565b610db98484848403610bc7565b50505050565b6001600160a01b038316610e235760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161058f565b6001600160a01b038216610e855760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161058f565b6001600160a01b03831660009081526020819052604090205481811015610efd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161058f565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610db9565b6001600160a01b038116610f8a5760405163e6c4247b60e01b815260040160405180910390fd5b610f948183611188565b806001600160a01b03167f919f7e2092ffcc9d09f599be18d8152860b0c054df788a33bc549cdd9d0f15b183604051610fcf91815260200190565b60405180910390a25050565b600080610fe884846112ba565b6008546001600160a01b03908116911614949350505050565b6001600160a01b0382166110575760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161058f565b80600260008282546110699190611607565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61111a610ceb565b6001600160a01b03811661117f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161058f565b610bc4816110c0565b6001600160a01b0382166111e85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161058f565b6001600160a01b0382166000908152602081905260409020548181101561125c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161058f565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160408051601f198184030181528282528051602091820120865187830151888501516000875293860180865283905260ff9091169385019390935260608401929092526080830152915060019060a0016020604051602081039080840390855afa158015611364573d6000803e3d6000fd5b5050604051601f19015195945050505050565b600060208083528351808285015260005b818110156113a457858101830151858201604001528201611388565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610bc457600080fd5b600080604083850312156113ed57600080fd5b82356113f8816113c5565b946020939093013593505050565b60006020828403121561141857600080fd5b81356107e0816113c5565b60008060006060848603121561143857600080fd5b8335611443816113c5565b92506020840135611453816113c5565b929592945050506040919091013590565b60006060828403121561147657600080fd5b50919050565b600080600080600060e0868803121561149457600080fd5b853594506020860135935060408601356114ad816113c5565b9250606086013591506114c38760808801611464565b90509295509295909350565b600080604083850312156114e257600080fd5b50508035926020909101359150565b6000806080838503121561150457600080fd5b823591506115158460208501611464565b90509250929050565b600080600080600060e0868803121561153657600080fd5b853594506020860135935060408601359250606086013591506114c38760808801611464565b60006020828403121561156e57600080fd5b5035919050565b6000806040838503121561158857600080fd5b8235611593816113c5565b915060208301356115a3816113c5565b809150509250929050565b600080604083850312156115c157600080fd5b8235915060208301356115a3816113c5565b600181811c908216806115e757607f821691505b60208210810361147657634e487b7160e01b600052602260045260246000fd5b8082018082111561046257634e487b7160e01b600052601160045260246000fd5b60006060828403121561163a57600080fd5b6040516060810181811067ffffffffffffffff8211171561166b57634e487b7160e01b600052604160045260246000fd5b604052823560ff8116811461167f57600080fd5b8152602083810135908201526040928301359281019290925250919050565b6000602082840312156116b057600080fd5b81516107e0816113c556fea2646970667358221220d5b0f4f67c9cab6896919916414c55f8be66e45ee2f621b864116feb0378449e64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005e4a3ca76948f43e2a49081f8dc1107652c9344e000000000000000000000000155c21c846b68121ca59879b3ccb5194f5ae115e00000000000000000000000000000000000000000000000000000000000000095465737420636f6d70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035453540000000000000000000000000000000000000000000000000000000000