[ { "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": false, "internalType": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "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": 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": [], "name": "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": [ { "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": "account", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "burnTokens", "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": "role", "type": "bytes32" } ], "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "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": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "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": [], "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" } ]
608060405234801561001057600080fd5b50611557806100206000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806340c10f19116100b857806395d89b411161007c57806395d89b41146102ba578063a217fddf146102c2578063a457c2d7146102ca578063a9059cbb146102dd578063d547741f146102f0578063dd62ed3e1461030357600080fd5b806340c10f191461023c57806370a082311461024f57806375b238fc146102785780638129fc1c1461029f57806391d14854146102a757600080fd5b806323b872dd1161010a57806323b872dd146101be578063248a9ca3146101d15780632f2ff15d146101f4578063313ce5671461020757806336568abe14610216578063395093511461022957600080fd5b806301ffc9a71461014757806306fdde031461016f578063095ea7b3146101845780630d1118ce1461019757806318160ddd146101ac575b600080fd5b61015a610155366004611109565b610316565b60405190151581526020015b60405180910390f35b61017761034d565b6040516101669190611157565b61015a6101923660046111a6565b6103df565b6101aa6101a53660046111a6565b6103f7565b005b6035545b604051908152602001610166565b61015a6101cc3660046111d0565b610430565b6101b06101df36600461120c565b60009081526097602052604090206001015490565b6101aa610202366004611225565b610454565b60405160128152602001610166565b6101aa610224366004611225565b610479565b61015a6102373660046111a6565b6104fc565b6101aa61024a3660046111a6565b61051e565b6101b061025d366004611251565b6001600160a01b031660009081526033602052604090205490565b6101b07fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6101aa610552565b61015a6102b5366004611225565b6106b6565b6101776106e1565b6101b0600081565b61015a6102d83660046111a6565b6106f0565b61015a6102eb3660046111a6565b61076b565b6101aa6102fe366004611225565b610779565b6101b061031136600461126c565b61079e565b60006001600160e01b03198216637965db0b60e01b148061034757506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606036805461035c90611296565b80601f016020809104026020016040519081016040528092919081815260200182805461038890611296565b80156103d55780601f106103aa576101008083540402835291602001916103d5565b820191906000526020600020905b8154815290600101906020018083116103b857829003601f168201915b5050505050905090565b6000336103ed8185856107c9565b5060019392505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610421816108ed565b61042b83836108f7565b505050565b60003361043e858285610a37565b610449858585610ab1565b506001949350505050565b60008281526097602052604090206001015461046f816108ed565b61042b8383610c67565b6001600160a01b03811633146104ee5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104f88282610ced565b5050565b6000336103ed81858561050f838361079e565b61051991906112e6565b6107c9565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610548816108ed565b61042b8383610d54565b600054610100900460ff16158080156105725750600054600160ff909116105b8061058c5750303b15801561058c575060005460ff166001145b6105ef5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104e5565b6000805460ff191660011790558015610612576000805461ff0019166101001790555b6106626040518060400160405280600b81526020016a3b32a0b63b30aa37b5b2b760a91b8152506040518060400160405280600b81526020016a3b32a0b63b30aa37b5b2b760a91b815250610e21565b61066d600033610c67565b80156106b3576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60009182526097602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606037805461035c90611296565b600033816106fe828661079e565b90508381101561075e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104e5565b61044982868684036107c9565b6000336103ed818585610ab1565b600082815260976020526040902060010154610794816108ed565b61042b8383610ced565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b6001600160a01b03831661082b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104e5565b6001600160a01b03821661088c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104e5565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6106b38133610e52565b6001600160a01b0382166109575760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104e5565b61096382600083610eab565b6001600160a01b038216600090815260336020526040902054818110156109d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104e5565b6001600160a01b03831660008181526033602090815260408083208686039055603580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6000610a43848461079e565b90506000198114610aab5781811015610a9e5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104e5565b610aab84848484036107c9565b50505050565b6001600160a01b038316610b155760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104e5565b6001600160a01b038216610b775760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104e5565b610b82838383610eab565b6001600160a01b03831660009081526033602052604090205481811015610bfa5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104e5565b6001600160a01b0380851660008181526033602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610c5a9086815260200190565b60405180910390a3610aab565b610c7182826106b6565b6104f85760008281526097602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610ca93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610cf782826106b6565b156104f85760008281526097602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216610daa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104e5565b610db660008383610eab565b8060356000828254610dc891906112e6565b90915550506001600160a01b0382166000818152603360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600054610100900460ff16610e485760405162461bcd60e51b81526004016104e5906112f9565b6104f88282610f14565b610e5c82826106b6565b6104f857610e6981610f54565b610e74836020610f66565b604051602001610e85929190611344565b60408051601f198184030181529082905262461bcd60e51b82526104e591600401611157565b6001600160a01b0383161580610ec857506001600160a01b038216155b61042b5760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e732063616e6e6f74206265207472616e736665727265640000000060448201526064016104e5565b600054610100900460ff16610f3b5760405162461bcd60e51b81526004016104e5906112f9565b6036610f47838261141d565b50603761042b828261141d565b60606103476001600160a01b03831660145b60606000610f758360026114dd565b610f809060026112e6565b67ffffffffffffffff811115610f9857610f986113b9565b6040519080825280601f01601f191660200182016040528015610fc2576020820181803683370190505b509050600360fc1b81600081518110610fdd57610fdd6114f4565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061100c5761100c6114f4565b60200101906001600160f81b031916908160001a90535060006110308460026114dd565b61103b9060016112e6565b90505b60018111156110b3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061106f5761106f6114f4565b1a60f81b828281518110611085576110856114f4565b60200101906001600160f81b031916908160001a90535060049490941c936110ac8161150a565b905061103e565b5083156111025760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104e5565b9392505050565b60006020828403121561111b57600080fd5b81356001600160e01b03198116811461110257600080fd5b60005b8381101561114e578181015183820152602001611136565b50506000910152565b6020815260008251806020840152611176816040850160208701611133565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146111a157600080fd5b919050565b600080604083850312156111b957600080fd5b6111c28361118a565b946020939093013593505050565b6000806000606084860312156111e557600080fd5b6111ee8461118a565b92506111fc6020850161118a565b9150604084013590509250925092565b60006020828403121561121e57600080fd5b5035919050565b6000806040838503121561123857600080fd5b823591506112486020840161118a565b90509250929050565b60006020828403121561126357600080fd5b6111028261118a565b6000806040838503121561127f57600080fd5b6112888361118a565b91506112486020840161118a565b600181811c908216806112aa57607f821691505b6020821081036112ca57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610347576103476112d0565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161137c816017850160208801611133565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516113ad816028840160208801611133565b01602801949350505050565b634e487b7160e01b600052604160045260246000fd5b601f82111561042b57600081815260208120601f850160051c810160208610156113f65750805b601f850160051c820191505b8181101561141557828155600101611402565b505050505050565b815167ffffffffffffffff811115611437576114376113b9565b61144b816114458454611296565b846113cf565b602080601f83116001811461148057600084156114685750858301515b600019600386901b1c1916600185901b178555611415565b600085815260208120601f198616915b828110156114af57888601518255948401946001909101908401611490565b50858210156114cd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417610347576103476112d0565b634e487b7160e01b600052603260045260246000fd5b600081611519576115196112d0565b50600019019056fea2646970667358221220d8a50bc5b74ced4e82f569f3308a83f1793ce9a310a87a8c7f087961829404d264736f6c63430008140033