0 txs
0 calls
constructor
constructor(address _admin)
functions
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember
viewfunction getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount
viewfunction getRoleMemberCount(bytes32 role) view returns (uint256)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
TOKEN_SAVER_ROLE
viewfunction TOKEN_SAVER_ROLE() view returns (bytes32)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
renounceRole
nonpayablefunction renounceRole(bytes32 role, address callerConfirmation)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
saveToken
nonpayablefunction saveToken(address _token, address _receiver, uint256 _amount)
events
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)
TokenSaved
event TokenSaved(address indexed by, address indexed receiver, address indexed token, uint256 amount)
errors
AccessControlBadConfirmation
error AccessControlBadConfirmation()
AccessControlUnauthorizedAccount
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
FailedInnerCall
error FailedInnerCall()
InvalidAddress
error InvalidAddress()
InvalidAmount
error InvalidAmount()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
Unauthorized
error Unauthorized()
creation bytecode
0x608060405234801561001057600080fd5b50604051610d05380380610d0583398101604081905261002f916101cc565b6001600160a01b0381166100565760405163e6c4247b60e01b815260040160405180910390fd5b610061600082610093565b5061008c7fd9d917c4034cff8a8c5fa1e40f9fbaf906b827c33ae3ab1fcabbb616cb8ef24d82610093565b50506101f5565b6000806100a084846100cb565b905080156100c25760008481526001602052604090206100c09084610175565b505b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff1661016d576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556101253390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016100c5565b5060006100c5565b60006100c2836001600160a01b038416600081815260018301602052604081205461016d575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556100c5565b6000602082840312156101de57600080fd5b81516001600160a01b03811681146100c257600080fd5b610b01806102046000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80639010d07c116100715780639010d07c1461015657806391d14854146101815780639afdb2c214610194578063a217fddf146101a7578063ca15c873146101af578063d547741f146101c257600080fd5b806301ffc9a7146100ae578063248a9ca3146100d65780632f2ff15d1461010757806336568abe1461011c57806376175b061461012f575b600080fd5b6100c16100bc366004610942565b6101d5565b60405190151581526020015b60405180910390f35b6100f96100e436600461096c565b60009081526020819052604090206001015490565b6040519081526020016100cd565b61011a61011536600461099a565b610200565b005b61011a61012a36600461099a565b61022b565b6100f97fd9d917c4034cff8a8c5fa1e40f9fbaf906b827c33ae3ab1fcabbb616cb8ef24d81565b6101696101643660046109ca565b610263565b6040516001600160a01b0390911681526020016100cd565b6100c161018f36600461099a565b610282565b61011a6101a23660046109ec565b6102ab565b6100f9600081565b6100f96101bd36600461096c565b6103c3565b61011a6101d036600461099a565b6103da565b60006001600160e01b03198216635a05180f60e01b14806101fa57506101fa826103ff565b92915050565b60008281526020819052604090206001015461021b81610434565b6102258383610441565b50505050565b6001600160a01b03811633146102545760405163334bd91960e11b815260040160405180910390fd5b61025e8282610476565b505050565b600082815260016020526040812061027b90836104a3565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6102d57fd9d917c4034cff8a8c5fa1e40f9fbaf906b827c33ae3ab1fcabbb616cb8ef24d33610282565b6102f1576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038316158061030e57506001600160a01b038216155b1561032c5760405163e6c4247b60e01b815260040160405180910390fd5b8060000361034d5760405163162908e360e11b815260040160405180910390fd5b6103616001600160a01b03841683836104af565b826001600160a01b0316826001600160a01b031661037c3390565b6001600160a01b03167f30d87cec6b4c56cede1018725d1e6d9304e2f7ee6d25b004b7e2183f793f26bc846040516103b691815260200190565b60405180910390a4505050565b60008181526001602052604081206101fa90610501565b6000828152602081905260409020600101546103f581610434565b6102258383610476565b60006001600160e01b03198216637965db0b60e01b14806101fa57506301ffc9a760e01b6001600160e01b03198316146101fa565b61043e813361050b565b50565b60008061044e848461054d565b9050801561027b57600084815260016020526040902061046e90846105df565b509392505050565b60008061048384846105f4565b9050801561027b57600084815260016020526040902061046e908461065f565b600061027b8383610674565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261025e90849061069e565b60006101fa825490565b6105158282610282565b6105495760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044015b60405180910390fd5b5050565b60006105598383610282565b6105d7576000838152602081815260408083206001600160a01b03861684529091529020805460ff1916600117905561058f3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016101fa565b5060006101fa565b600061027b836001600160a01b038416610701565b60006106008383610282565b156105d7576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016101fa565b600061027b836001600160a01b038416610748565b600082600001828154811061068b5761068b610a2d565b9060005260206000200154905092915050565b60006106b36001600160a01b0384168361083b565b905080516000141580156106d85750808060200190518101906106d69190610a43565b155b1561025e57604051635274afe760e01b81526001600160a01b0384166004820152602401610540565b60008181526001830160205260408120546105d7575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101fa565b6000818152600183016020526040812054801561083157600061076c600183610a65565b855490915060009061078090600190610a65565b90508082146107e55760008660000182815481106107a0576107a0610a2d565b90600052602060002001549050808760000184815481106107c3576107c3610a2d565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806107f6576107f6610a86565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506101fa565b60009150506101fa565b606061027b8383600084600080856001600160a01b031684866040516108619190610a9c565b60006040518083038185875af1925050503d806000811461089e576040519150601f19603f3d011682016040523d82523d6000602084013e6108a3565b606091505b50915091506108b38683836108bd565b9695505050505050565b6060826108d2576108cd82610919565b61027b565b81511580156108e957506001600160a01b0384163b155b1561091257604051639996b31560e01b81526001600160a01b0385166004820152602401610540565b508061027b565b8051156109295780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60006020828403121561095457600080fd5b81356001600160e01b03198116811461027b57600080fd5b60006020828403121561097e57600080fd5b5035919050565b6001600160a01b038116811461043e57600080fd5b600080604083850312156109ad57600080fd5b8235915060208301356109bf81610985565b809150509250929050565b600080604083850312156109dd57600080fd5b50508035926020909101359150565b600080600060608486031215610a0157600080fd5b8335610a0c81610985565b92506020840135610a1c81610985565b929592945050506040919091013590565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610a5557600080fd5b8151801515811461027b57600080fd5b818103818111156101fa57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b6000825160005b81811015610abd5760208186018101518583015201610aa3565b50600092019182525091905056fea26469706673582212204f9b5f018b9b944d5ecdd5cf5f67fef25958d15c9a88a2de88634cc788e1e76464736f6c634300081b003300000000000000000000000047bc406344a7721c534d77970d21574867228b92