0 txs
3.56m calls
constructor
constructor()
functions
allowance
viewfunction allowance(address owner, address spender) view returns (uint256)
balanceOf
viewfunction balanceOf(address account) view returns (uint256)
BURNER_ROLE
viewfunction BURNER_ROLE() view returns (bytes32)
decimals
viewfunction decimals() view returns (uint8)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
MINTER_ROLE
viewfunction MINTER_ROLE() view returns (bytes32)
name
viewfunction name() view returns (string)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
symbol
viewfunction symbol() view returns (string)
totalSupply
viewfunction totalSupply() view returns (uint256)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
UPGRADE_ROLE_ADMIN
viewfunction UPGRADE_ROLE_ADMIN() view returns (bytes32)
UPGRADE_ROLE
viewfunction UPGRADE_ROLE() view returns (bytes32)
approve
nonpayablefunction approve(address spender, uint256 value) returns (bool)
burn
nonpayablefunction burn(address _from, uint256 _amount)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
initialize
nonpayablefunction initialize(string _name, string _symbol, address _admin, uint256 _initialSupply)
mint
nonpayablefunction mint(address _to, uint256 _amount)
renounceRole
nonpayablefunction renounceRole(bytes32 role, address callerConfirmation)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
transfer
nonpayablefunction transfer(address to, uint256 value) returns (bool)
transferFrom
nonpayablefunction transferFrom(address from, address to, uint256 value) returns (bool)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)
Burned
event Burned(address indexed from, uint256 amount)
Initialized
event Initialized(uint64 version)
Minted
event Minted(address indexed to, uint256 amount)
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)
Upgraded
event Upgraded(address indexed implementation)
errors
AccessControlBadConfirmation
error AccessControlBadConfirmation()
AccessControlUnauthorizedAccount
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
AddressEmptyCode
error AddressEmptyCode(address target)
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
ERC20InsufficientAllowance
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed)
ERC20InsufficientBalance
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed)
ERC20InvalidApprover
error ERC20InvalidApprover(address approver)
ERC20InvalidReceiver
error ERC20InvalidReceiver(address receiver)
ERC20InvalidSender
error ERC20InvalidSender(address sender)
ERC20InvalidSpender
error ERC20InvalidSpender(address spender)
FailedCall
error FailedCall()
InvalidAddress
error InvalidAddress()
InvalidAmount
error InvalidAmount()
InvalidImplementationAddress
error InvalidImplementationAddress(address implementation)
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100d4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100725760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d15780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611a486100fd60003960008181610d4f01528181610d780152610efd0152611a486000f3fe6080604052600436106101815760003560e01c806370a08231116100d1578063ad3cb1cc1161008a578063d547741f11610064578063d547741f146104a9578063dd62ed3e146104c9578063f542033f146104e9578063f6bda8611461050957600080fd5b8063ad3cb1cc14610422578063b908afa814610453578063d53913931461047557600080fd5b806370a082311461035557806391d148541461039857806395d89b41146103b85780639dc29fac146103cd578063a217fddf146103ed578063a9059cbb1461040257600080fd5b8063282c51f31161013e57806336568abe1161011857806336568abe146102ed57806340c10f191461030d5780634f1ef2861461032d57806352d1902d1461034057600080fd5b8063282c51f31461027b5780632f2ff15d146102af578063313ce567146102d157600080fd5b806301ffc9a71461018657806306fdde03146101bb578063095ea7b3146101dd57806318160ddd146101fd57806323b872dd1461023b578063248a9ca31461025b575b600080fd5b34801561019257600080fd5b506101a66101a13660046114db565b61053d565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d0610574565b6040516101b29190611529565b3480156101e957600080fd5b506101a66101f8366004611578565b610637565b34801561020957600080fd5b507f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b6040519081526020016101b2565b34801561024757600080fd5b506101a66102563660046115a2565b61064f565b34801561026757600080fd5b5061022d6102763660046115df565b610675565b34801561028757600080fd5b5061022d7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b3480156102bb57600080fd5b506102cf6102ca3660046115f8565b610697565b005b3480156102dd57600080fd5b50604051601281526020016101b2565b3480156102f957600080fd5b506102cf6103083660046115f8565b6106b9565b34801561031957600080fd5b506102cf610328366004611578565b6106f1565b6102cf61033b3660046116b4565b61078e565b34801561034c57600080fd5b5061022d6107ad565b34801561036157600080fd5b5061022d610370366004611716565b6001600160a01b031660009081526000805160206119b3833981519152602052604090205490565b3480156103a457600080fd5b506101a66103b33660046115f8565b6107ca565b3480156103c457600080fd5b506101d0610802565b3480156103d957600080fd5b506102cf6103e8366004611578565b610841565b3480156103f957600080fd5b5061022d600081565b34801561040e57600080fd5b506101a661041d366004611578565b6108d1565b34801561042e57600080fd5b506101d0604051806040016040528060058152602001640352e302e360dc1b81525081565b34801561045f57600080fd5b5061022d60008051602061199383398151915281565b34801561048157600080fd5b5061022d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156104b557600080fd5b506102cf6104c43660046115f8565b6108df565b3480156104d557600080fd5b5061022d6104e4366004611731565b6108fb565b3480156104f557600080fd5b506102cf61050436600461177b565b610945565b34801561051557600080fd5b5061022d7f3c7a14b677662708c4e3812ebc2a1e9804db1d962f2bfa6d810ccd371f177ab181565b60006001600160e01b03198216637965db0b60e01b148061056e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060916000805160206119b3833981519152916105b3906117fc565b80601f01602080910402602001604051908101604052809291908181526020018280546105df906117fc565b801561062c5780601f106106015761010080835404028352916020019161062c565b820191906000526020600020905b81548152906001019060200180831161060f57829003601f168201915b505050505091505090565b600033610645818585610b0e565b5060019392505050565b60003361065d858285610b1b565b610668858585610b81565b60019150505b9392505050565b60009081526000805160206119f3833981519152602052604090206001015490565b6106a082610675565b6106a981610be0565b6106b38383610bed565b50505050565b6001600160a01b03811633146106e25760405163334bd91960e11b815260040160405180910390fd5b6106ec8282610c92565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661071b81610be0565b8160000361073c5760405163162908e360e11b815260040160405180910390fd5b6107468383610d0e565b826001600160a01b03167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe8360405161078191815260200190565b60405180910390a2505050565b610796610d44565b61079f82610deb565b6107a98282610e35565b5050565b60006107b7610ef2565b506000805160206119d383398151915290565b60009182526000805160206119f3833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060916000805160206119b3833981519152916105b3906117fc565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84861086b81610be0565b8160000361088c5760405163162908e360e11b815260040160405180910390fd5b6108968383610f3b565b826001600160a01b03167f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df78360405161078191815260200190565b600033610645818585610b81565b6108e882610675565b6108f181610be0565b6106b38383610c92565b6001600160a01b0391821660009081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b600061094f610f71565b805490915060ff600160401b820416159067ffffffffffffffff166000811580156109775750825b905060008267ffffffffffffffff1660011480156109945750303b155b9050811580156109a2575080155b156109c05760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156109ea57845460ff60401b1916600160401b1785555b6109f48989610f9a565b6109fc610fac565b610a04610fac565b6001600160a01b038716610a2b5760405163e6c4247b60e01b815260040160405180910390fd5b610a36600088610bed565b50610a4f60008051602061199383398151915288610bed565b50610a7a7f3c7a14b677662708c4e3812ebc2a1e9804db1d962f2bfa6d810ccd371f177ab188610bed565b50610ab36000805160206119938339815191527f3c7a14b677662708c4e3812ebc2a1e9804db1d962f2bfa6d810ccd371f177ab1610fb4565b610abd8787610d0e565b8315610b0357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b6106ec8383836001611017565b6000610b2784846108fb565b90506000198110156106b35781811015610b7257604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b6106b384848484036000611017565b6001600160a01b038316610bab57604051634b637e8f60e11b815260006004820152602401610b69565b6001600160a01b038216610bd55760405163ec442f0560e01b815260006004820152602401610b69565b6106ec8383836110ff565b610bea813361123d565b50565b60006000805160206119f3833981519152610c0884846107ca565b610c88576000848152602082815260408083206001600160a01b03871684529091529020805460ff19166001179055610c3e3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600191505061056e565b600091505061056e565b60006000805160206119f3833981519152610cad84846107ca565b15610c88576000848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4600191505061056e565b6001600160a01b038216610d385760405163ec442f0560e01b815260006004820152602401610b69565b6107a9600083836110ff565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610dcb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610dbf6000805160206119d3833981519152546001600160a01b031690565b6001600160a01b031614155b15610de95760405163703e46dd60e11b815260040160405180910390fd5b565b600080516020611993833981519152610e0381610be0565b6001600160a01b0382166107a9576040516335d0b3d760e11b81526001600160a01b0383166004820152602401610b69565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610e8f575060408051601f3d908101601f19168201909252610e8c91810190611836565b60015b610eb757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610b69565b6000805160206119d38339815191528114610ee857604051632a87526960e21b815260048101829052602401610b69565b6106ec8383611276565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610de95760405163703e46dd60e11b815260040160405180910390fd5b6001600160a01b038216610f6557604051634b637e8f60e11b815260006004820152602401610b69565b6107a9826000836110ff565b6000807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061056e565b610fa26112cc565b6107a982826112f1565b610de96112cc565b6000805160206119f38339815191526000610fce84610675565b600085815260208490526040808220600101869055519192508491839187917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a450505050565b6000805160206119b38339815191526001600160a01b0385166110505760405163e602df0560e01b815260006004820152602401610b69565b6001600160a01b03841661107a57604051634a1406b160e11b815260006004820152602401610b69565b6001600160a01b038086166000908152600183016020908152604080832093881683529290522083905581156110f857836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516110ef91815260200190565b60405180910390a35b5050505050565b6000805160206119b38339815191526001600160a01b03841661113b5781816002016000828254611130919061184f565b909155506111ad9050565b6001600160a01b0384166000908152602082905260409020548281101561118e5760405163391434e360e21b81526001600160a01b03861660048201526024810182905260448101849052606401610b69565b6001600160a01b03851660009081526020839052604090209083900390555b6001600160a01b0383166111cb5760028101805483900390556111ea565b6001600160a01b03831660009081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161122f91815260200190565b60405180910390a350505050565b61124782826107ca565b6107a95760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610b69565b61127f82611342565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a28051156112c4576106ec82826113a7565b6107a961141d565b6112d461143c565b610de957604051631afcd79f60e31b815260040160405180910390fd5b6112f96112cc565b6000805160206119b38339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0361133384826118b7565b50600481016106b383826118b7565b806001600160a01b03163b60000361137857604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610b69565b6000805160206119d383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b0316846040516113c49190611976565b600060405180830381855af49150503d80600081146113ff576040519150601f19603f3d011682016040523d82523d6000602084013e611404565b606091505b5091509150611414858383611456565b95945050505050565b3415610de95760405163b398979f60e01b815260040160405180910390fd5b6000611446610f71565b54600160401b900460ff16919050565b60608261146b57611466826114b2565b61066e565b815115801561148257506001600160a01b0384163b155b156114ab57604051639996b31560e01b81526001600160a01b0385166004820152602401610b69565b508061066e565b8051156114c25780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b6000602082840312156114ed57600080fd5b81356001600160e01b03198116811461066e57600080fd5b60005b83811015611520578181015183820152602001611508565b50506000910152565b6020815260008251806020840152611548816040850160208701611505565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461157357600080fd5b919050565b6000806040838503121561158b57600080fd5b6115948361155c565b946020939093013593505050565b6000806000606084860312156115b757600080fd5b6115c08461155c565b92506115ce6020850161155c565b929592945050506040919091013590565b6000602082840312156115f157600080fd5b5035919050565b6000806040838503121561160b57600080fd5b8235915061161b6020840161155c565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008067ffffffffffffffff84111561165557611655611624565b50604051601f19601f85018116603f0116810181811067ffffffffffffffff8211171561168457611684611624565b60405283815290508082840185101561169c57600080fd5b83836020830137600060208583010152509392505050565b600080604083850312156116c757600080fd5b6116d08361155c565b9150602083013567ffffffffffffffff8111156116ec57600080fd5b8301601f810185136116fd57600080fd5b61170c8582356020840161163a565b9150509250929050565b60006020828403121561172857600080fd5b61066e8261155c565b6000806040838503121561174457600080fd5b61174d8361155c565b915061161b6020840161155c565b600082601f83011261176c57600080fd5b61066e8383356020850161163a565b6000806000806080858703121561179157600080fd5b843567ffffffffffffffff8111156117a857600080fd5b6117b48782880161175b565b945050602085013567ffffffffffffffff8111156117d157600080fd5b6117dd8782880161175b565b9350506117ec6040860161155c565b9396929550929360600135925050565b600181811c9082168061181057607f821691505b60208210810361183057634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561184857600080fd5b5051919050565b8082018082111561056e57634e487b7160e01b600052601160045260246000fd5b601f8211156106ec57806000526020600020601f840160051c810160208510156118975750805b601f840160051c820191505b818110156110f857600081556001016118a3565b815167ffffffffffffffff8111156118d1576118d1611624565b6118e5816118df84546117fc565b84611870565b6020601f82116001811461191957600083156119015750848201515b600019600385901b1c1916600184901b1784556110f8565b600084815260208120601f198516915b828110156119495787850151825560209485019460019092019101611929565b50848210156119675786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b60008251611988818460208701611505565b919091019291505056fe88aa719609f728b0c5e7fb8dd3608d5c25d497efbb3b9dd64e9251ebba10150852c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800a26469706673582212204a5a348a6c76e2e0f929d3045f474c52ea21b5b48f398982657d1c56f05aa66764736f6c634300081c0033