#[allow(dead_code)]
pub mod erc20_preset_minter_pauser_upgradeable {
# [rustfmt :: skip] use ethcontract as ethcontract ;
#[doc = "Generated by `ethcontract`"]
#[derive(Clone)]
pub struct Contract {
methods: Methods,
}
impl Contract {
#[doc = r" Retrieves the truffle artifact used to generate the type safe"]
#[doc = r" API for this contract."]
pub fn artifact() -> &'static self::ethcontract::Artifact {
use self::ethcontract::private::lazy_static;
use self::ethcontract::Artifact;
lazy_static! {
pub static ref ARTIFACT: Artifact = {
# [allow (unused_mut)] let mut artifact = Artifact :: from_json ("{\n \"_format\": \"hh-sol-artifact-1\",\n \"contractName\": \"ERC20PresetMinterPauserUpgradeable\",\n \"sourceName\": \"contracts/token/ERC20/presets/ERC20PresetMinterPauserUpgradeable.sol\",\n \"abi\": [\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"spender\",\n \"type\": \"address\"\n },\n {\n \"indexed\": false,\n \"internalType\": \"uint256\",\n \"name\": \"value\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"Approval\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": false,\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"Paused\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"bytes32\",\n \"name\": \"previousAdminRole\",\n \"type\": \"bytes32\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"bytes32\",\n \"name\": \"newAdminRole\",\n \"type\": \"bytes32\"\n }\n ],\n \"name\": \"RoleAdminChanged\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"sender\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"RoleGranted\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"sender\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"RoleRevoked\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"indexed\": false,\n \"internalType\": \"uint256\",\n \"name\": \"value\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"Transfer\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": false,\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"Unpaused\",\n \"type\": \"event\"\n },\n {\n \"inputs\": [],\n \"name\": \"DEFAULT_ADMIN_ROLE\",\n \"outputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"\",\n \"type\": \"bytes32\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"MINTER_ROLE\",\n \"outputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"\",\n \"type\": \"bytes32\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"PAUSER_ROLE\",\n \"outputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"\",\n \"type\": \"bytes32\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"spender\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"allowance\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"spender\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"approve\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"balanceOf\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"burn\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"burnFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"decimals\",\n \"outputs\": [\n {\n \"internalType\": \"uint8\",\n \"name\": \"\",\n \"type\": \"uint8\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"spender\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"subtractedValue\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"decreaseAllowance\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n }\n ],\n \"name\": \"getRoleAdmin\",\n \"outputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"\",\n \"type\": \"bytes32\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"index\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"getRoleMember\",\n \"outputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n }\n ],\n \"name\": \"getRoleMemberCount\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"grantRole\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"hasRole\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"spender\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"addedValue\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"increaseAllowance\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"internalType\": \"string\",\n \"name\": \"symbol\",\n \"type\": \"string\"\n }\n ],\n \"name\": \"initialize\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"mint\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"name\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"pause\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"paused\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"renounceRole\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes32\",\n \"name\": \"role\",\n \"type\": \"bytes32\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"revokeRole\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes4\",\n \"name\": \"interfaceId\",\n \"type\": \"bytes4\"\n }\n ],\n \"name\": \"supportsInterface\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"symbol\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"totalSupply\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"recipient\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"transfer\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"sender\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"recipient\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"transferFrom\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"unpause\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n }\n ],\n \"bytecode\": \"0x608060405234801561001057600080fd5b50611f6f806100206000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb11610104578063a217fddf116100a2578063d539139311610071578063d5391393146103ce578063d547741f146103f5578063dd62ed3e14610408578063e63ab1e914610441576101cf565b8063a217fddf1461038d578063a457c2d714610395578063a9059cbb146103a8578063ca15c873146103bb576101cf565b80638456cb59116100de5780638456cb591461033f5780639010d07c1461034757806391d148541461037257806395d89b4114610385576101cf565b80635c975abb146102f757806370a082311461030357806379cc67901461032c576101cf565b8063313ce567116101715780633f4ba83a1161014b5780633f4ba83a146102b657806340c10f19146102be57806342966c68146102d15780634cd88b76146102e4576101cf565b8063313ce5671461028157806336568abe1461029057806339509351146102a3576101cf565b806318160ddd116101ad57806318160ddd1461022457806323b872dd14610236578063248a9ca3146102495780632f2ff15d1461026c576101cf565b806301ffc9a7146101d457806306fdde03146101fc578063095ea7b314610211575b600080fd5b6101e76101e2366004611c9e565b610456565b60405190151581526020015b60405180910390f35b610204610483565b6040516101f39190611d9c565b6101e761021f366004611c1a565b610515565b60cb545b6040519081526020016101f3565b6101e7610244366004611bdf565b61052c565b610228610257366004611c43565b60009081526065602052604090206001015490565b61027f61027a366004611c5b565b6105e2565b005b604051601281526020016101f3565b61027f61029e366004611c5b565b610609565b6101e76102b1366004611c1a565b61062b565b61027f610662565b61027f6102cc366004611c1a565b6106f6565b61027f6102df366004611c43565b610799565b61027f6102f2366004611cc6565b6107a6565b61012d5460ff166101e7565b610228610311366004611b93565b6001600160a01b0316600090815260c9602052604090205490565b61027f61033a366004611c1a565b61081d565b61027f6108a0565b61035a610355366004611c7d565b610932565b6040516001600160a01b0390911681526020016101f3565b6101e7610380366004611c5b565b610951565b61020461097c565b610228600081565b6101e76103a3366004611c1a565b61098b565b6101e76103b6366004611c1a565b610a26565b6102286103c9366004611c43565b610a33565b6102287f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61027f610403366004611c5b565b610a4a565b610228610416366004611bad565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205490565b610228600080516020611f1a83398151915281565b60006001600160e01b03198216635a05180f60e01b148061047b575061047b82610a54565b90505b919050565b606060cc805461049290611eb2565b80601f01602080910402602001604051908101604052809291908181526020018280546104be90611eb2565b801561050b5780601f106104e05761010080835404028352916020019161050b565b820191906000526020600020905b8154815290600101906020018083116104ee57829003601f168201915b5050505050905090565b6000610522338484610a89565b5060015b92915050565b6000610539848484610bae565b6001600160a01b038416600090815260ca60209081526040808320338452909152902054828110156105c35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105d785336105d28685611e54565b610a89565b506001949350505050565b6105ec8282610d91565b60008281526097602052604090206106049082610db8565b505050565b6106138282610dcd565b60008281526097602052604090206106049082610e47565b33600081815260ca602090815260408083206001600160a01b038716845290915281205490916105229185906105d2908690611e1d565b61067a600080516020611f1a83398151915233610380565b6106ec5760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084016105ba565b6106f4610e5c565b565b6107207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610380565b61078b5760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b60648201526084016105ba565b6107958282610ef1565b5050565b6107a33382610fdc565b50565b600054610100900460ff16806107bf575060005460ff16155b6107db5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff161580156107fd576000805461ffff19166101011790555b6108078383611137565b8015610604576000805461ff0019169055505050565b60006108298333610416565b9050818110156108875760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016105ba565b61089683336105d28585611e54565b6106048383610fdc565b6108b8600080516020611f1a83398151915233610380565b61092a5760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20706175736500000000000000000060648201526084016105ba565b6106f46111da565b600082815260976020526040812061094a9083611257565b9392505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060cd805461049290611eb2565b33600090815260ca602090815260408083206001600160a01b038616845290915281205482811015610a0d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105ba565b610a1c33856105d28685611e54565b5060019392505050565b6000610522338484610bae565b600081815260976020526040812061047b90611263565b610613828261126d565b60006001600160e01b03198216637965db0b60e01b148061047b57506301ffc9a760e01b6001600160e01b031983161461047b565b6001600160a01b038316610aeb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105ba565b6001600160a01b038216610b4c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105ba565b6001600160a01b03838116600081815260ca602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610c125760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105ba565b6001600160a01b038216610c745760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105ba565b610c7f838383611293565b6001600160a01b038316600090815260c9602052604090205481811015610cf75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105ba565b610d018282611e54565b6001600160a01b03808616600090815260c960205260408082209390935590851681529081208054849290610d37908490611e1d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610d8391815260200190565b60405180910390a350505050565b600082815260656020526040902060010154610dae81335b61129e565b6106048383611302565b600061094a836001600160a01b038416611388565b6001600160a01b0381163314610e3d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105ba565b61079582826113d7565b600061094a836001600160a01b03841661143e565b61012d5460ff16610ea65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105ba565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216610f475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105ba565b610f5360008383611293565b8060cb6000828254610f659190611e1d565b90915550506001600160a01b038216600090815260c9602052604081208054839290610f92908490611e1d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661103c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105ba565b61104882600083611293565b6001600160a01b038216600090815260c96020526040902054818110156110bc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105ba565b6110c68282611e54565b6001600160a01b038416600090815260c9602052604081209190915560cb80548492906110f4908490611e54565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ba1565b600054610100900460ff1680611150575060005460ff16155b61116c5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff1615801561118e576000805461ffff19166101011790555b611196611555565b61119e611555565b6111a6611555565b6111ae611555565b6111b883836115c0565b6111c0611555565b6111c8611655565b6111d0611555565b61080783836116cb565b61012d5460ff16156112215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105ba565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ed43390565b600061094a8383611770565b600061047b825490565b6000828152606560205260409020600101546112898133610da9565b61060483836113d7565b610604838383611804565b6112a88282610951565b610795576112c0816001600160a01b0316601461186b565b6112cb83602061186b565b6040516020016112dc929190611d27565b60408051601f198184030181529082905262461bcd60e51b82526105ba91600401611d9c565b61130c8282610951565b6107955760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556113443390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546113cf57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610526565b506000610526565b6113e18282610951565b156107955760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561154b576000611462600183611e54565b855490915060009061147690600190611e54565b9050600086600001828154811061149d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106114ce57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526001890190915260409020849055865487908061150f57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610526565b6000915050610526565b600054610100900460ff168061156e575060005460ff16155b61158a5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff161580156115ac576000805461ffff19166101011790555b80156107a3576000805461ff001916905550565b600054610100900460ff16806115d9575060005460ff16155b6115f55760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff16158015611617576000805461ffff19166101011790555b825161162a9060cc906020860190611a5c565b50815161163e9060cd906020850190611a5c565b508015610604576000805461ff0019169055505050565b600054610100900460ff168061166e575060005460ff16155b61168a5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff161580156116ac576000805461ffff19166101011790555b61012d805460ff1916905580156107a3576000805461ff001916905550565b600054610100900460ff16806116e4575060005460ff16155b6117005760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff16158015611722576000805461ffff19166101011790555b61172e6000335b611a4d565b6117587f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611729565b610807600080516020611f1a83398151915233611729565b815460009082106117ce5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016105ba565b8260000182815481106117f157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b61012d5460ff16156106045760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b60648201526084016105ba565b6060600061187a836002611e35565b611885906002611e1d565b67ffffffffffffffff8111156118ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118d5576020820181803683370190505b509050600360fc1b816000815181106118fe57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061193b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061195f846002611e35565b61196a906001611e1d565b90505b60018111156119fe576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106119ac57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106119d057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936119f781611e9b565b905061196d565b50831561094a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ba565b6105ec82826107958282611302565b828054611a6890611eb2565b90600052602060002090601f016020900481019282611a8a5760008555611ad0565b82601f10611aa357805160ff1916838001178555611ad0565b82800160010185558215611ad0579182015b82811115611ad0578251825591602001919060010190611ab5565b50611adc929150611ae0565b5090565b5b80821115611adc5760008155600101611ae1565b80356001600160a01b038116811461047e57600080fd5b600082601f830112611b1c578081fd5b813567ffffffffffffffff80821115611b3757611b37611f03565b604051601f8301601f19908116603f01168101908282118183101715611b5f57611b5f611f03565b81604052838152866020858801011115611b77578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215611ba4578081fd5b61094a82611af5565b60008060408385031215611bbf578081fd5b611bc883611af5565b9150611bd660208401611af5565b90509250929050565b600080600060608486031215611bf3578081fd5b611bfc84611af5565b9250611c0a60208501611af5565b9150604084013590509250925092565b60008060408385031215611c2c578182fd5b611c3583611af5565b946020939093013593505050565b600060208284031215611c54578081fd5b5035919050565b60008060408385031215611c6d578182fd5b82359150611bd660208401611af5565b60008060408385031215611c8f578182fd5b50508035926020909101359150565b600060208284031215611caf578081fd5b81356001600160e01b03198116811461094a578182fd5b60008060408385031215611cd8578182fd5b823567ffffffffffffffff80821115611cef578384fd5b611cfb86838701611b0c565b93506020850135915080821115611d10578283fd5b50611d1d85828601611b0c565b9150509250929050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351611d5f816017850160208801611e6b565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611d90816028840160208801611e6b565b01602801949350505050565b6000602082528251806020840152611dbb816040850160208701611e6b565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60008219821115611e3057611e30611eed565b500190565b6000816000190483118215151615611e4f57611e4f611eed565b500290565b600082821015611e6657611e66611eed565b500390565b60005b83811015611e86578181015183820152602001611e6e565b83811115611e95576000848401525b50505050565b600081611eaa57611eaa611eed565b506000190190565b600181811c90821680611ec657607f821691505b60208210811415611ee757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862aa2646970667358221220af3d7c93661d0f0b4b27d72a268260ef286e9d8123e1f378e92c4193da28cfd264736f6c63430008030033\",\n \"deployedBytecode\": \"0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb11610104578063a217fddf116100a2578063d539139311610071578063d5391393146103ce578063d547741f146103f5578063dd62ed3e14610408578063e63ab1e914610441576101cf565b8063a217fddf1461038d578063a457c2d714610395578063a9059cbb146103a8578063ca15c873146103bb576101cf565b80638456cb59116100de5780638456cb591461033f5780639010d07c1461034757806391d148541461037257806395d89b4114610385576101cf565b80635c975abb146102f757806370a082311461030357806379cc67901461032c576101cf565b8063313ce567116101715780633f4ba83a1161014b5780633f4ba83a146102b657806340c10f19146102be57806342966c68146102d15780634cd88b76146102e4576101cf565b8063313ce5671461028157806336568abe1461029057806339509351146102a3576101cf565b806318160ddd116101ad57806318160ddd1461022457806323b872dd14610236578063248a9ca3146102495780632f2ff15d1461026c576101cf565b806301ffc9a7146101d457806306fdde03146101fc578063095ea7b314610211575b600080fd5b6101e76101e2366004611c9e565b610456565b60405190151581526020015b60405180910390f35b610204610483565b6040516101f39190611d9c565b6101e761021f366004611c1a565b610515565b60cb545b6040519081526020016101f3565b6101e7610244366004611bdf565b61052c565b610228610257366004611c43565b60009081526065602052604090206001015490565b61027f61027a366004611c5b565b6105e2565b005b604051601281526020016101f3565b61027f61029e366004611c5b565b610609565b6101e76102b1366004611c1a565b61062b565b61027f610662565b61027f6102cc366004611c1a565b6106f6565b61027f6102df366004611c43565b610799565b61027f6102f2366004611cc6565b6107a6565b61012d5460ff166101e7565b610228610311366004611b93565b6001600160a01b0316600090815260c9602052604090205490565b61027f61033a366004611c1a565b61081d565b61027f6108a0565b61035a610355366004611c7d565b610932565b6040516001600160a01b0390911681526020016101f3565b6101e7610380366004611c5b565b610951565b61020461097c565b610228600081565b6101e76103a3366004611c1a565b61098b565b6101e76103b6366004611c1a565b610a26565b6102286103c9366004611c43565b610a33565b6102287f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61027f610403366004611c5b565b610a4a565b610228610416366004611bad565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205490565b610228600080516020611f1a83398151915281565b60006001600160e01b03198216635a05180f60e01b148061047b575061047b82610a54565b90505b919050565b606060cc805461049290611eb2565b80601f01602080910402602001604051908101604052809291908181526020018280546104be90611eb2565b801561050b5780601f106104e05761010080835404028352916020019161050b565b820191906000526020600020905b8154815290600101906020018083116104ee57829003601f168201915b5050505050905090565b6000610522338484610a89565b5060015b92915050565b6000610539848484610bae565b6001600160a01b038416600090815260ca60209081526040808320338452909152902054828110156105c35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105d785336105d28685611e54565b610a89565b506001949350505050565b6105ec8282610d91565b60008281526097602052604090206106049082610db8565b505050565b6106138282610dcd565b60008281526097602052604090206106049082610e47565b33600081815260ca602090815260408083206001600160a01b038716845290915281205490916105229185906105d2908690611e1d565b61067a600080516020611f1a83398151915233610380565b6106ec5760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084016105ba565b6106f4610e5c565b565b6107207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610380565b61078b5760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b60648201526084016105ba565b6107958282610ef1565b5050565b6107a33382610fdc565b50565b600054610100900460ff16806107bf575060005460ff16155b6107db5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff161580156107fd576000805461ffff19166101011790555b6108078383611137565b8015610604576000805461ff0019169055505050565b60006108298333610416565b9050818110156108875760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016105ba565b61089683336105d28585611e54565b6106048383610fdc565b6108b8600080516020611f1a83398151915233610380565b61092a5760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20706175736500000000000000000060648201526084016105ba565b6106f46111da565b600082815260976020526040812061094a9083611257565b9392505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060cd805461049290611eb2565b33600090815260ca602090815260408083206001600160a01b038616845290915281205482811015610a0d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105ba565b610a1c33856105d28685611e54565b5060019392505050565b6000610522338484610bae565b600081815260976020526040812061047b90611263565b610613828261126d565b60006001600160e01b03198216637965db0b60e01b148061047b57506301ffc9a760e01b6001600160e01b031983161461047b565b6001600160a01b038316610aeb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105ba565b6001600160a01b038216610b4c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105ba565b6001600160a01b03838116600081815260ca602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610c125760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105ba565b6001600160a01b038216610c745760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105ba565b610c7f838383611293565b6001600160a01b038316600090815260c9602052604090205481811015610cf75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105ba565b610d018282611e54565b6001600160a01b03808616600090815260c960205260408082209390935590851681529081208054849290610d37908490611e1d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610d8391815260200190565b60405180910390a350505050565b600082815260656020526040902060010154610dae81335b61129e565b6106048383611302565b600061094a836001600160a01b038416611388565b6001600160a01b0381163314610e3d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105ba565b61079582826113d7565b600061094a836001600160a01b03841661143e565b61012d5460ff16610ea65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105ba565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216610f475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105ba565b610f5360008383611293565b8060cb6000828254610f659190611e1d565b90915550506001600160a01b038216600090815260c9602052604081208054839290610f92908490611e1d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661103c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105ba565b61104882600083611293565b6001600160a01b038216600090815260c96020526040902054818110156110bc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105ba565b6110c68282611e54565b6001600160a01b038416600090815260c9602052604081209190915560cb80548492906110f4908490611e54565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ba1565b600054610100900460ff1680611150575060005460ff16155b61116c5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff1615801561118e576000805461ffff19166101011790555b611196611555565b61119e611555565b6111a6611555565b6111ae611555565b6111b883836115c0565b6111c0611555565b6111c8611655565b6111d0611555565b61080783836116cb565b61012d5460ff16156112215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105ba565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ed43390565b600061094a8383611770565b600061047b825490565b6000828152606560205260409020600101546112898133610da9565b61060483836113d7565b610604838383611804565b6112a88282610951565b610795576112c0816001600160a01b0316601461186b565b6112cb83602061186b565b6040516020016112dc929190611d27565b60408051601f198184030181529082905262461bcd60e51b82526105ba91600401611d9c565b61130c8282610951565b6107955760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556113443390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546113cf57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610526565b506000610526565b6113e18282610951565b156107955760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561154b576000611462600183611e54565b855490915060009061147690600190611e54565b9050600086600001828154811061149d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106114ce57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526001890190915260409020849055865487908061150f57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610526565b6000915050610526565b600054610100900460ff168061156e575060005460ff16155b61158a5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff161580156115ac576000805461ffff19166101011790555b80156107a3576000805461ff001916905550565b600054610100900460ff16806115d9575060005460ff16155b6115f55760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff16158015611617576000805461ffff19166101011790555b825161162a9060cc906020860190611a5c565b50815161163e9060cd906020850190611a5c565b508015610604576000805461ff0019169055505050565b600054610100900460ff168061166e575060005460ff16155b61168a5760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff161580156116ac576000805461ffff19166101011790555b61012d805460ff1916905580156107a3576000805461ff001916905550565b600054610100900460ff16806116e4575060005460ff16155b6117005760405162461bcd60e51b81526004016105ba90611dcf565b600054610100900460ff16158015611722576000805461ffff19166101011790555b61172e6000335b611a4d565b6117587f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611729565b610807600080516020611f1a83398151915233611729565b815460009082106117ce5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016105ba565b8260000182815481106117f157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b61012d5460ff16156106045760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b60648201526084016105ba565b6060600061187a836002611e35565b611885906002611e1d565b67ffffffffffffffff8111156118ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118d5576020820181803683370190505b509050600360fc1b816000815181106118fe57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061193b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061195f846002611e35565b61196a906001611e1d565b90505b60018111156119fe576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106119ac57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106119d057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936119f781611e9b565b905061196d565b50831561094a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ba565b6105ec82826107958282611302565b828054611a6890611eb2565b90600052602060002090601f016020900481019282611a8a5760008555611ad0565b82601f10611aa357805160ff1916838001178555611ad0565b82800160010185558215611ad0579182015b82811115611ad0578251825591602001919060010190611ab5565b50611adc929150611ae0565b5090565b5b80821115611adc5760008155600101611ae1565b80356001600160a01b038116811461047e57600080fd5b600082601f830112611b1c578081fd5b813567ffffffffffffffff80821115611b3757611b37611f03565b604051601f8301601f19908116603f01168101908282118183101715611b5f57611b5f611f03565b81604052838152866020858801011115611b77578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215611ba4578081fd5b61094a82611af5565b60008060408385031215611bbf578081fd5b611bc883611af5565b9150611bd660208401611af5565b90509250929050565b600080600060608486031215611bf3578081fd5b611bfc84611af5565b9250611c0a60208501611af5565b9150604084013590509250925092565b60008060408385031215611c2c578182fd5b611c3583611af5565b946020939093013593505050565b600060208284031215611c54578081fd5b5035919050565b60008060408385031215611c6d578182fd5b82359150611bd660208401611af5565b60008060408385031215611c8f578182fd5b50508035926020909101359150565b600060208284031215611caf578081fd5b81356001600160e01b03198116811461094a578182fd5b60008060408385031215611cd8578182fd5b823567ffffffffffffffff80821115611cef578384fd5b611cfb86838701611b0c565b93506020850135915080821115611d10578283fd5b50611d1d85828601611b0c565b9150509250929050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351611d5f816017850160208801611e6b565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611d90816028840160208801611e6b565b01602801949350505050565b6000602082528251806020840152611dbb816040850160208701611e6b565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60008219821115611e3057611e30611eed565b500190565b6000816000190483118215151615611e4f57611e4f611eed565b500290565b600082821015611e6657611e66611eed565b500390565b60005b83811015611e86578181015183820152602001611e6e565b83811115611e95576000848401525b50505050565b600081611eaa57611eaa611eed565b506000190190565b600181811c90821680611ec657607f821691505b60208210811415611ee757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862aa2646970667358221220af3d7c93661d0f0b4b27d72a268260ef286e9d8123e1f378e92c4193da28cfd264736f6c63430008030033\",\n \"linkReferences\": {},\n \"deployedLinkReferences\": {}\n}\n") . expect ("valid artifact JSON") ;
artifact
};
}
&ARTIFACT
}
#[doc = r" Creates a new contract instance with the specified `web3`"]
#[doc = r" provider at the given `Address`."]
#[doc = r""]
#[doc = r" Note that this does not verify that a contract with a matching"]
#[doc = r" `Abi` is actually deployed at the given address."]
pub fn at<F, T>(
web3: &self::ethcontract::web3::api::Web3<T>,
address: self::ethcontract::Address,
) -> Self
where
F: std::future::Future<
Output = Result<self::ethcontract::json::Value, self::ethcontract::web3::Error>,
> + Send
+ 'static,
T: self::ethcontract::web3::Transport<Out = F> + Send + Sync + 'static,
{
Contract::with_deployment_info(web3, address, None)
}
#[doc = r" Creates a new contract instance with the specified `web3` provider with"]
#[doc = r" the given `Abi` at the given `Address` and an optional transaction hash."]
#[doc = r" This hash is used to retrieve contract related information such as the"]
#[doc = r" creation block (which is useful for fetching all historic events)."]
#[doc = r""]
#[doc = r" Note that this does not verify that a contract with a matching `Abi` is"]
#[doc = r" actually deployed at the given address nor that the transaction hash,"]
#[doc = r" when provided, is actually for this contract deployment."]
pub fn with_deployment_info<F, T>(
web3: &self::ethcontract::web3::api::Web3<T>,
address: self::ethcontract::Address,
deployment_information: Option<ethcontract::common::DeploymentInformation>,
) -> Self
where
F: std::future::Future<
Output = Result<self::ethcontract::json::Value, self::ethcontract::web3::Error>,
> + Send
+ 'static,
T: self::ethcontract::web3::Transport<Out = F> + Send + Sync + 'static,
{
use self::ethcontract::transport::DynTransport;
use self::ethcontract::web3::api::Web3;
use self::ethcontract::Instance;
let transport = DynTransport::new(web3.transport().clone());
let web3 = Web3::new(transport);
let abi = Self::artifact().abi.clone();
let instance = Instance::with_deployment_info(web3, abi, address, deployment_information);
Contract::from_raw(instance)
}
#[doc = r" Creates a contract from a raw instance."]
fn from_raw(instance: self::ethcontract::dyns::DynInstance) -> Self {
let methods = Methods { instance };
Contract { methods }
}
#[doc = r" Returns the contract address being used by this instance."]
pub fn address(&self) -> self::ethcontract::Address {
self.raw_instance().address()
}
#[doc = r" Returns the deployment information of the contract"]
#[doc = r" if it is known, `None` otherwise."]
pub fn deployment_information(&self) -> Option<ethcontract::common::DeploymentInformation> {
self.raw_instance().deployment_information()
}
#[doc = r" Returns a reference to the default method options used by this"]
#[doc = r" contract."]
pub fn defaults(&self) -> &self::ethcontract::contract::MethodDefaults {
&self.raw_instance().defaults
}
#[doc = r" Returns a mutable reference to the default method options used"]
#[doc = r" by this contract."]
pub fn defaults_mut(&mut self) -> &mut self::ethcontract::contract::MethodDefaults {
&mut self.raw_instance_mut().defaults
}
#[doc = r" Returns a reference to the raw runtime instance used by this"]
#[doc = r" contract."]
pub fn raw_instance(&self) -> &self::ethcontract::dyns::DynInstance {
&self.methods.instance
}
#[doc = r" Returns a mutable reference to the raw runtime instance used by"]
#[doc = r" this contract."]
fn raw_instance_mut(&mut self) -> &mut self::ethcontract::dyns::DynInstance {
&mut self.methods.instance
}
}
impl std::fmt::Debug for Contract {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_tuple(stringify!(ERC20PresetMinterPauserUpgradeable))
.field(&self.address())
.finish()
}
}
impl Contract {
#[doc = "Generated by `ethcontract`"]
#[allow(clippy::too_many_arguments)]
pub fn builder<F, T>(
web3: &self::ethcontract::web3::api::Web3<T>,
) -> self::ethcontract::dyns::DynDeployBuilder<Self>
where
F: std::future::Future<
Output = Result<self::ethcontract::json::Value, self::ethcontract::web3::Error>,
> + Send
+ 'static,
T: self::ethcontract::web3::Transport<Out = F> + Send + Sync + 'static,
{
use self::ethcontract::contract::DeployBuilder;
use self::ethcontract::dyns::DynTransport;
use self::ethcontract::web3::api::Web3;
let transport = DynTransport::new(web3.transport().clone());
let web3 = Web3::new(transport);
let bytecode = Self::artifact().bytecode.clone();
DeployBuilder::new(web3, bytecode, ()).expect("valid deployment args")
}
}
impl self::ethcontract::contract::Deploy<self::ethcontract::dyns::DynTransport> for Contract {
type Context = self::ethcontract::common::Bytecode;
fn bytecode(cx: &Self::Context) -> &self::ethcontract::common::Bytecode {
cx
}
fn abi(_: &Self::Context) -> &self::ethcontract::common::Abi {
&Self::artifact().abi
}
fn from_deployment(
web3: self::ethcontract::dyns::DynWeb3,
address: self::ethcontract::Address,
transaction_hash: self::ethcontract::H256,
_: Self::Context,
) -> Self {
Self::with_deployment_info(&web3, address, Some(transaction_hash.into()))
}
}
impl Contract {
#[doc = r" Retrieves a reference to type containing all the generated"]
#[doc = r" contract methods. This can be used for methods where the name"]
#[doc = r" would collide with a common method (like `at` or `deployed`)."]
pub fn methods(&self) -> &Methods {
&self.methods
}
}
#[doc = r" Type containing all contract methods for generated contract type."]
#[derive(Clone)]
pub struct Methods {
instance: self::ethcontract::dyns::DynInstance,
}
#[allow(clippy::too_many_arguments, clippy::type_complexity)]
impl Methods {
#[doc = "Generated by `ethcontract`"]
pub fn revoke_role(
&self,
role: self::ethcontract::tokens::Bytes<[u8; 32]>,
account: self::ethcontract::Address,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([213, 71, 116, 31], (role, account))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn increase_allowance(
&self,
spender: self::ethcontract::Address,
added_value: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<bool> {
self
.instance
.method([57, 80, 147, 81], (spender, added_value))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn pauser_role(
&self,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::tokens::Bytes<[u8; 32]>>
{
self
.instance
.view_method([230, 58, 177, 233], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn burn_from(
&self,
account: self::ethcontract::Address,
amount: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([121, 204, 103, 144], (account, amount))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn has_role(
&self,
role: self::ethcontract::tokens::Bytes<[u8; 32]>,
account: self::ethcontract::Address,
) -> self::ethcontract::dyns::DynViewMethodBuilder<bool> {
self
.instance
.view_method([145, 209, 72, 84], (role, account))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn allowance(
&self,
owner: self::ethcontract::Address,
spender: self::ethcontract::Address,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::U256> {
self
.instance
.view_method([221, 98, 237, 62], (owner, spender))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn supports_interface(
&self,
interface_id: self::ethcontract::tokens::Bytes<[u8; 4]>,
) -> self::ethcontract::dyns::DynViewMethodBuilder<bool> {
self
.instance
.view_method([1, 255, 201, 167], (interface_id,))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn approve(
&self,
spender: self::ethcontract::Address,
amount: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<bool> {
self
.instance
.method([9, 94, 167, 179], (spender, amount))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn decrease_allowance(
&self,
spender: self::ethcontract::Address,
subtracted_value: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<bool> {
self
.instance
.method([164, 87, 194, 215], (spender, subtracted_value))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn symbol(&self) -> self::ethcontract::dyns::DynViewMethodBuilder<String> {
self
.instance
.view_method([149, 216, 155, 65], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn total_supply(
&self,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::U256> {
self
.instance
.view_method([24, 22, 13, 221], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn transfer_from(
&self,
sender: self::ethcontract::Address,
recipient: self::ethcontract::Address,
amount: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<bool> {
self
.instance
.method([35, 184, 114, 221], (sender, recipient, amount))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn mint(
&self,
to: self::ethcontract::Address,
amount: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([64, 193, 15, 25], (to, amount))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn renounce_role(
&self,
role: self::ethcontract::tokens::Bytes<[u8; 32]>,
account: self::ethcontract::Address,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([54, 86, 138, 190], (role, account))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn get_role_member(
&self,
role: self::ethcontract::tokens::Bytes<[u8; 32]>,
index: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::Address> {
self
.instance
.view_method([144, 16, 208, 124], (role, index))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn default_admin_role(
&self,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::tokens::Bytes<[u8; 32]>>
{
self
.instance
.view_method([162, 23, 253, 223], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn decimals(&self) -> self::ethcontract::dyns::DynViewMethodBuilder<u8> {
self
.instance
.view_method([49, 60, 229, 103], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn minter_role(
&self,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::tokens::Bytes<[u8; 32]>>
{
self
.instance
.view_method([213, 57, 19, 147], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn name(&self) -> self::ethcontract::dyns::DynViewMethodBuilder<String> {
self
.instance
.view_method([6, 253, 222, 3], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn grant_role(
&self,
role: self::ethcontract::tokens::Bytes<[u8; 32]>,
account: self::ethcontract::Address,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([47, 47, 241, 93], (role, account))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn paused(&self) -> self::ethcontract::dyns::DynViewMethodBuilder<bool> {
self
.instance
.view_method([92, 151, 90, 187], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn get_role_admin(
&self,
role: self::ethcontract::tokens::Bytes<[u8; 32]>,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::tokens::Bytes<[u8; 32]>>
{
self
.instance
.view_method([36, 138, 156, 163], (role,))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn pause(&self) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([132, 86, 203, 89], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn unpause(&self) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([63, 75, 168, 58], ())
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn initialize(
&self,
name: String,
symbol: String,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([76, 216, 139, 118], (name, symbol))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn burn(
&self,
amount: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([66, 150, 108, 104], (amount,))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn get_role_member_count(
&self,
role: self::ethcontract::tokens::Bytes<[u8; 32]>,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::U256> {
self
.instance
.view_method([202, 21, 200, 115], (role,))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn transfer(
&self,
recipient: self::ethcontract::Address,
amount: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<bool> {
self
.instance
.method([169, 5, 156, 187], (recipient, amount))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn balance_of(
&self,
account: self::ethcontract::Address,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::U256> {
self
.instance
.view_method([112, 160, 130, 49], (account,))
.expect("generated call")
}
}
impl std::ops::Deref for Contract {
type Target = Methods;
fn deref(&self) -> &Self::Target {
&self.methods
}
}
#[doc = r" Module containing all generated data models for this contract's"]
#[doc = r" events."]
pub mod event_data {
use super::ethcontract;
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct Transfer {
pub from: self::ethcontract::Address,
pub to: self::ethcontract::Address,
pub value: self::ethcontract::U256,
}
impl Transfer {
#[doc = r" Retrieves the signature for the event this data corresponds to."]
#[doc = r" This signature is the Keccak-256 hash of the ABI signature of"]
#[doc = r" this event."]
pub fn signature() -> self::ethcontract::H256 {
self::ethcontract::H256([
221, 242, 82, 173, 27, 226, 200, 155, 105, 194, 176, 104, 252, 55, 141, 170, 149, 43,
167, 241, 99, 196, 161, 22, 40, 245, 90, 77, 245, 35, 179, 239,
])
}
#[doc = r" Retrieves the ABI signature for the event this data corresponds"]
#[doc = r" to. For this event the value should always be:"]
#[doc = r""]
#[doc = "`Transfer(address,address,uint256)`"]
pub fn abi_signature() -> &'static str {
"Transfer(address,address,uint256)"
}
}
impl self::ethcontract::tokens::Tokenize for Transfer {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (from, to, value) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(Transfer { from, to, value })
}
fn into_token(self) -> self::ethcontract::common::abi::Token {
unimplemented!("events are only decoded, not encoded")
}
}
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct Unpaused {
pub account: self::ethcontract::Address,
}
impl Unpaused {
#[doc = r" Retrieves the signature for the event this data corresponds to."]
#[doc = r" This signature is the Keccak-256 hash of the ABI signature of"]
#[doc = r" this event."]
pub fn signature() -> self::ethcontract::H256 {
self::ethcontract::H256([
93, 185, 238, 10, 73, 91, 242, 230, 255, 156, 145, 167, 131, 76, 27, 164, 253, 210, 68,
165, 232, 170, 78, 83, 123, 211, 138, 234, 228, 176, 115, 170,
])
}
#[doc = r" Retrieves the ABI signature for the event this data corresponds"]
#[doc = r" to. For this event the value should always be:"]
#[doc = r""]
#[doc = "`Unpaused(address)`"]
pub fn abi_signature() -> &'static str {
"Unpaused(address)"
}
}
impl self::ethcontract::tokens::Tokenize for Unpaused {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (account,) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(Unpaused { account })
}
fn into_token(self) -> self::ethcontract::common::abi::Token {
unimplemented!("events are only decoded, not encoded")
}
}
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct Approval {
pub owner: self::ethcontract::Address,
pub spender: self::ethcontract::Address,
pub value: self::ethcontract::U256,
}
impl Approval {
#[doc = r" Retrieves the signature for the event this data corresponds to."]
#[doc = r" This signature is the Keccak-256 hash of the ABI signature of"]
#[doc = r" this event."]
pub fn signature() -> self::ethcontract::H256 {
self::ethcontract::H256([
140, 91, 225, 229, 235, 236, 125, 91, 209, 79, 113, 66, 125, 30, 132, 243, 221, 3, 20,
192, 247, 178, 41, 30, 91, 32, 10, 200, 199, 195, 185, 37,
])
}
#[doc = r" Retrieves the ABI signature for the event this data corresponds"]
#[doc = r" to. For this event the value should always be:"]
#[doc = r""]
#[doc = "`Approval(address,address,uint256)`"]
pub fn abi_signature() -> &'static str {
"Approval(address,address,uint256)"
}
}
impl self::ethcontract::tokens::Tokenize for Approval {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (owner, spender, value) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(Approval {
owner,
spender,
value,
})
}
fn into_token(self) -> self::ethcontract::common::abi::Token {
unimplemented!("events are only decoded, not encoded")
}
}
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct Paused {
pub account: self::ethcontract::Address,
}
impl Paused {
#[doc = r" Retrieves the signature for the event this data corresponds to."]
#[doc = r" This signature is the Keccak-256 hash of the ABI signature of"]
#[doc = r" this event."]
pub fn signature() -> self::ethcontract::H256 {
self::ethcontract::H256([
98, 231, 140, 234, 1, 190, 227, 32, 205, 78, 66, 2, 112, 181, 234, 116, 0, 13, 17, 176,
201, 247, 71, 84, 235, 219, 252, 84, 75, 5, 162, 88,
])
}
#[doc = r" Retrieves the ABI signature for the event this data corresponds"]
#[doc = r" to. For this event the value should always be:"]
#[doc = r""]
#[doc = "`Paused(address)`"]
pub fn abi_signature() -> &'static str {
"Paused(address)"
}
}
impl self::ethcontract::tokens::Tokenize for Paused {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (account,) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(Paused { account })
}
fn into_token(self) -> self::ethcontract::common::abi::Token {
unimplemented!("events are only decoded, not encoded")
}
}
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct RoleGranted {
pub role: self::ethcontract::tokens::Bytes<[u8; 32]>,
pub account: self::ethcontract::Address,
pub sender: self::ethcontract::Address,
}
impl RoleGranted {
#[doc = r" Retrieves the signature for the event this data corresponds to."]
#[doc = r" This signature is the Keccak-256 hash of the ABI signature of"]
#[doc = r" this event."]
pub fn signature() -> self::ethcontract::H256 {
self::ethcontract::H256([
47, 135, 136, 17, 126, 126, 255, 29, 130, 233, 38, 236, 121, 73, 1, 209, 124, 120, 2, 74,
80, 39, 9, 64, 48, 69, 64, 167, 51, 101, 111, 13,
])
}
#[doc = r" Retrieves the ABI signature for the event this data corresponds"]
#[doc = r" to. For this event the value should always be:"]
#[doc = r""]
#[doc = "`RoleGranted(bytes32,address,address)`"]
pub fn abi_signature() -> &'static str {
"RoleGranted(bytes32,address,address)"
}
}
impl self::ethcontract::tokens::Tokenize for RoleGranted {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (role, account, sender) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(RoleGranted {
role,
account,
sender,
})
}
fn into_token(self) -> self::ethcontract::common::abi::Token {
unimplemented!("events are only decoded, not encoded")
}
}
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct RoleAdminChanged {
pub role: self::ethcontract::tokens::Bytes<[u8; 32]>,
pub previous_admin_role: self::ethcontract::tokens::Bytes<[u8; 32]>,
pub new_admin_role: self::ethcontract::tokens::Bytes<[u8; 32]>,
}
impl RoleAdminChanged {
#[doc = r" Retrieves the signature for the event this data corresponds to."]
#[doc = r" This signature is the Keccak-256 hash of the ABI signature of"]
#[doc = r" this event."]
pub fn signature() -> self::ethcontract::H256 {
self::ethcontract::H256([
189, 121, 184, 111, 254, 10, 184, 232, 119, 97, 81, 81, 66, 23, 205, 124, 172, 213, 44,
144, 159, 102, 71, 92, 58, 244, 78, 18, 159, 11, 0, 255,
])
}
#[doc = r" Retrieves the ABI signature for the event this data corresponds"]
#[doc = r" to. For this event the value should always be:"]
#[doc = r""]
#[doc = "`RoleAdminChanged(bytes32,bytes32,bytes32)`"]
pub fn abi_signature() -> &'static str {
"RoleAdminChanged(bytes32,bytes32,bytes32)"
}
}
impl self::ethcontract::tokens::Tokenize for RoleAdminChanged {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (role, previous_admin_role, new_admin_role) =
self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(RoleAdminChanged {
role,
previous_admin_role,
new_admin_role,
})
}
fn into_token(self) -> self::ethcontract::common::abi::Token {
unimplemented!("events are only decoded, not encoded")
}
}
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct RoleRevoked {
pub role: self::ethcontract::tokens::Bytes<[u8; 32]>,
pub account: self::ethcontract::Address,
pub sender: self::ethcontract::Address,
}
impl RoleRevoked {
#[doc = r" Retrieves the signature for the event this data corresponds to."]
#[doc = r" This signature is the Keccak-256 hash of the ABI signature of"]
#[doc = r" this event."]
pub fn signature() -> self::ethcontract::H256 {
self::ethcontract::H256([
246, 57, 31, 92, 50, 217, 198, 157, 42, 71, 234, 103, 11, 68, 41, 116, 181, 57, 53, 209,
237, 199, 253, 100, 235, 33, 224, 71, 168, 57, 23, 27,
])
}
#[doc = r" Retrieves the ABI signature for the event this data corresponds"]
#[doc = r" to. For this event the value should always be:"]
#[doc = r""]
#[doc = "`RoleRevoked(bytes32,address,address)`"]
pub fn abi_signature() -> &'static str {
"RoleRevoked(bytes32,address,address)"
}
}
impl self::ethcontract::tokens::Tokenize for RoleRevoked {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (role, account, sender) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(RoleRevoked {
role,
account,
sender,
})
}
fn into_token(self) -> self::ethcontract::common::abi::Token {
unimplemented!("events are only decoded, not encoded")
}
}
}
impl Contract {
#[doc = r" Retrieves a handle to a type containing for creating event"]
#[doc = r" streams for all the contract events."]
pub fn events(&self) -> Events<'_> {
Events {
instance: self.raw_instance(),
}
}
}
pub struct Events<'a> {
instance: &'a self::ethcontract::dyns::DynInstance,
}
impl Events<'_> {
#[doc = r" Generated by `ethcontract`."]
pub fn transfer(&self) -> self::event_builders::TransferBuilder {
self::event_builders::TransferBuilder(
self
.instance
.event(self::ethcontract::H256([
221, 242, 82, 173, 27, 226, 200, 155, 105, 194, 176, 104, 252, 55, 141, 170, 149, 43,
167, 241, 99, 196, 161, 22, 40, 245, 90, 77, 245, 35, 179, 239,
]))
.expect("generated event filter"),
)
}
#[doc = r" Generated by `ethcontract`."]
pub fn unpaused(&self) -> self::event_builders::UnpausedBuilder {
self::event_builders::UnpausedBuilder(
self
.instance
.event(self::ethcontract::H256([
93, 185, 238, 10, 73, 91, 242, 230, 255, 156, 145, 167, 131, 76, 27, 164, 253, 210, 68,
165, 232, 170, 78, 83, 123, 211, 138, 234, 228, 176, 115, 170,
]))
.expect("generated event filter"),
)
}
#[doc = r" Generated by `ethcontract`."]
pub fn approval(&self) -> self::event_builders::ApprovalBuilder {
self::event_builders::ApprovalBuilder(
self
.instance
.event(self::ethcontract::H256([
140, 91, 225, 229, 235, 236, 125, 91, 209, 79, 113, 66, 125, 30, 132, 243, 221, 3, 20,
192, 247, 178, 41, 30, 91, 32, 10, 200, 199, 195, 185, 37,
]))
.expect("generated event filter"),
)
}
#[doc = r" Generated by `ethcontract`."]
pub fn paused(&self) -> self::event_builders::PausedBuilder {
self::event_builders::PausedBuilder(
self
.instance
.event(self::ethcontract::H256([
98, 231, 140, 234, 1, 190, 227, 32, 205, 78, 66, 2, 112, 181, 234, 116, 0, 13, 17, 176,
201, 247, 71, 84, 235, 219, 252, 84, 75, 5, 162, 88,
]))
.expect("generated event filter"),
)
}
#[doc = r" Generated by `ethcontract`."]
pub fn role_granted(&self) -> self::event_builders::RoleGrantedBuilder {
self::event_builders::RoleGrantedBuilder(
self
.instance
.event(self::ethcontract::H256([
47, 135, 136, 17, 126, 126, 255, 29, 130, 233, 38, 236, 121, 73, 1, 209, 124, 120, 2,
74, 80, 39, 9, 64, 48, 69, 64, 167, 51, 101, 111, 13,
]))
.expect("generated event filter"),
)
}
#[doc = r" Generated by `ethcontract`."]
pub fn role_admin_changed(&self) -> self::event_builders::RoleAdminChangedBuilder {
self::event_builders::RoleAdminChangedBuilder(
self
.instance
.event(self::ethcontract::H256([
189, 121, 184, 111, 254, 10, 184, 232, 119, 97, 81, 81, 66, 23, 205, 124, 172, 213, 44,
144, 159, 102, 71, 92, 58, 244, 78, 18, 159, 11, 0, 255,
]))
.expect("generated event filter"),
)
}
#[doc = r" Generated by `ethcontract`."]
pub fn role_revoked(&self) -> self::event_builders::RoleRevokedBuilder {
self::event_builders::RoleRevokedBuilder(
self
.instance
.event(self::ethcontract::H256([
246, 57, 31, 92, 50, 217, 198, 157, 42, 71, 234, 103, 11, 68, 41, 116, 181, 57, 53,
209, 237, 199, 253, 100, 235, 33, 224, 71, 168, 57, 23, 27,
]))
.expect("generated event filter"),
)
}
}
#[doc = r" Module containing the generated event stream builders with type safe"]
#[doc = r" filter methods for this contract's events."]
pub mod event_builders {
use super::ethcontract;
use super::event_data;
#[doc = "A builder for creating a filtered stream of `Transfer` events."]
pub struct TransferBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::Transfer>,
);
impl TransferBuilder {
#[doc = r" Sets the starting block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the latest block."]
#[allow(clippy::wrong_self_convention)]
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).from_block(block);
self
}
#[doc = r" Sets the last block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the streaming until the end of days."]
#[allow(clippy::wrong_self_convention)]
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).to_block(block);
self
}
#[doc = r" Limit the number of events that can be retrieved by this filter."]
#[doc = r""]
#[doc = r" Note that this parameter is non-standard."]
pub fn limit(mut self, value: usize) -> Self {
self.0 = (self.0).limit(value);
self
}
#[doc = r" The polling interval. This is used as the interval between"]
#[doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."]
pub fn poll_interval(mut self, value: std::time::Duration) -> Self {
self.0 = (self.0).poll_interval(value);
self
}
#[doc = "Adds a filter for the from event parameter."]
pub fn from(mut self, topic: self::ethcontract::Topic<self::ethcontract::Address>) -> Self {
self.0 = (self.0).topic0(topic);
self
}
#[doc = "Adds a filter for the to event parameter."]
pub fn to(mut self, topic: self::ethcontract::Topic<self::ethcontract::Address>) -> Self {
self.0 = (self.0).topic1(topic);
self
}
#[doc = r" Returns a future that resolves with a collection of all existing"]
#[doc = r" logs matching the builder parameters."]
pub async fn query(
self,
) -> std::result::Result<
std::vec::Vec<self::ethcontract::Event<self::event_data::Transfer>>,
self::ethcontract::errors::EventError,
> {
(self.0).query().await
}
#[doc = r" Creates an event stream from the current event builder."]
pub fn stream(
self,
) -> impl self::ethcontract::futures::stream::Stream<
Item = std::result::Result<
self::ethcontract::StreamEvent<self::event_data::Transfer>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
#[doc = "A builder for creating a filtered stream of `Unpaused` events."]
pub struct UnpausedBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::Unpaused>,
);
impl UnpausedBuilder {
#[doc = r" Sets the starting block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the latest block."]
#[allow(clippy::wrong_self_convention)]
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).from_block(block);
self
}
#[doc = r" Sets the last block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the streaming until the end of days."]
#[allow(clippy::wrong_self_convention)]
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).to_block(block);
self
}
#[doc = r" Limit the number of events that can be retrieved by this filter."]
#[doc = r""]
#[doc = r" Note that this parameter is non-standard."]
pub fn limit(mut self, value: usize) -> Self {
self.0 = (self.0).limit(value);
self
}
#[doc = r" The polling interval. This is used as the interval between"]
#[doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."]
pub fn poll_interval(mut self, value: std::time::Duration) -> Self {
self.0 = (self.0).poll_interval(value);
self
}
#[doc = r" Returns a future that resolves with a collection of all existing"]
#[doc = r" logs matching the builder parameters."]
pub async fn query(
self,
) -> std::result::Result<
std::vec::Vec<self::ethcontract::Event<self::event_data::Unpaused>>,
self::ethcontract::errors::EventError,
> {
(self.0).query().await
}
#[doc = r" Creates an event stream from the current event builder."]
pub fn stream(
self,
) -> impl self::ethcontract::futures::stream::Stream<
Item = std::result::Result<
self::ethcontract::StreamEvent<self::event_data::Unpaused>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
#[doc = "A builder for creating a filtered stream of `Approval` events."]
pub struct ApprovalBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::Approval>,
);
impl ApprovalBuilder {
#[doc = r" Sets the starting block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the latest block."]
#[allow(clippy::wrong_self_convention)]
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).from_block(block);
self
}
#[doc = r" Sets the last block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the streaming until the end of days."]
#[allow(clippy::wrong_self_convention)]
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).to_block(block);
self
}
#[doc = r" Limit the number of events that can be retrieved by this filter."]
#[doc = r""]
#[doc = r" Note that this parameter is non-standard."]
pub fn limit(mut self, value: usize) -> Self {
self.0 = (self.0).limit(value);
self
}
#[doc = r" The polling interval. This is used as the interval between"]
#[doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."]
pub fn poll_interval(mut self, value: std::time::Duration) -> Self {
self.0 = (self.0).poll_interval(value);
self
}
#[doc = "Adds a filter for the owner event parameter."]
pub fn owner(mut self, topic: self::ethcontract::Topic<self::ethcontract::Address>) -> Self {
self.0 = (self.0).topic0(topic);
self
}
#[doc = "Adds a filter for the spender event parameter."]
pub fn spender(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::Address>,
) -> Self {
self.0 = (self.0).topic1(topic);
self
}
#[doc = r" Returns a future that resolves with a collection of all existing"]
#[doc = r" logs matching the builder parameters."]
pub async fn query(
self,
) -> std::result::Result<
std::vec::Vec<self::ethcontract::Event<self::event_data::Approval>>,
self::ethcontract::errors::EventError,
> {
(self.0).query().await
}
#[doc = r" Creates an event stream from the current event builder."]
pub fn stream(
self,
) -> impl self::ethcontract::futures::stream::Stream<
Item = std::result::Result<
self::ethcontract::StreamEvent<self::event_data::Approval>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
#[doc = "A builder for creating a filtered stream of `Paused` events."]
pub struct PausedBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::Paused>,
);
impl PausedBuilder {
#[doc = r" Sets the starting block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the latest block."]
#[allow(clippy::wrong_self_convention)]
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).from_block(block);
self
}
#[doc = r" Sets the last block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the streaming until the end of days."]
#[allow(clippy::wrong_self_convention)]
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).to_block(block);
self
}
#[doc = r" Limit the number of events that can be retrieved by this filter."]
#[doc = r""]
#[doc = r" Note that this parameter is non-standard."]
pub fn limit(mut self, value: usize) -> Self {
self.0 = (self.0).limit(value);
self
}
#[doc = r" The polling interval. This is used as the interval between"]
#[doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."]
pub fn poll_interval(mut self, value: std::time::Duration) -> Self {
self.0 = (self.0).poll_interval(value);
self
}
#[doc = r" Returns a future that resolves with a collection of all existing"]
#[doc = r" logs matching the builder parameters."]
pub async fn query(
self,
) -> std::result::Result<
std::vec::Vec<self::ethcontract::Event<self::event_data::Paused>>,
self::ethcontract::errors::EventError,
> {
(self.0).query().await
}
#[doc = r" Creates an event stream from the current event builder."]
pub fn stream(
self,
) -> impl self::ethcontract::futures::stream::Stream<
Item = std::result::Result<
self::ethcontract::StreamEvent<self::event_data::Paused>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
#[doc = "A builder for creating a filtered stream of `RoleGranted` events."]
pub struct RoleGrantedBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::RoleGranted>,
);
impl RoleGrantedBuilder {
#[doc = r" Sets the starting block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the latest block."]
#[allow(clippy::wrong_self_convention)]
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).from_block(block);
self
}
#[doc = r" Sets the last block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the streaming until the end of days."]
#[allow(clippy::wrong_self_convention)]
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).to_block(block);
self
}
#[doc = r" Limit the number of events that can be retrieved by this filter."]
#[doc = r""]
#[doc = r" Note that this parameter is non-standard."]
pub fn limit(mut self, value: usize) -> Self {
self.0 = (self.0).limit(value);
self
}
#[doc = r" The polling interval. This is used as the interval between"]
#[doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."]
pub fn poll_interval(mut self, value: std::time::Duration) -> Self {
self.0 = (self.0).poll_interval(value);
self
}
#[doc = "Adds a filter for the role event parameter."]
pub fn role(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::tokens::Bytes<[u8; 32]>>,
) -> Self {
self.0 = (self.0).topic0(topic);
self
}
#[doc = "Adds a filter for the account event parameter."]
pub fn account(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::Address>,
) -> Self {
self.0 = (self.0).topic1(topic);
self
}
#[doc = "Adds a filter for the sender event parameter."]
pub fn sender(mut self, topic: self::ethcontract::Topic<self::ethcontract::Address>) -> Self {
self.0 = (self.0).topic2(topic);
self
}
#[doc = r" Returns a future that resolves with a collection of all existing"]
#[doc = r" logs matching the builder parameters."]
pub async fn query(
self,
) -> std::result::Result<
std::vec::Vec<self::ethcontract::Event<self::event_data::RoleGranted>>,
self::ethcontract::errors::EventError,
> {
(self.0).query().await
}
#[doc = r" Creates an event stream from the current event builder."]
pub fn stream(
self,
) -> impl self::ethcontract::futures::stream::Stream<
Item = std::result::Result<
self::ethcontract::StreamEvent<self::event_data::RoleGranted>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
#[doc = "A builder for creating a filtered stream of `RoleAdminChanged` events."]
pub struct RoleAdminChangedBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::RoleAdminChanged>,
);
impl RoleAdminChangedBuilder {
#[doc = r" Sets the starting block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the latest block."]
#[allow(clippy::wrong_self_convention)]
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).from_block(block);
self
}
#[doc = r" Sets the last block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the streaming until the end of days."]
#[allow(clippy::wrong_self_convention)]
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).to_block(block);
self
}
#[doc = r" Limit the number of events that can be retrieved by this filter."]
#[doc = r""]
#[doc = r" Note that this parameter is non-standard."]
pub fn limit(mut self, value: usize) -> Self {
self.0 = (self.0).limit(value);
self
}
#[doc = r" The polling interval. This is used as the interval between"]
#[doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."]
pub fn poll_interval(mut self, value: std::time::Duration) -> Self {
self.0 = (self.0).poll_interval(value);
self
}
#[doc = "Adds a filter for the role event parameter."]
pub fn role(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::tokens::Bytes<[u8; 32]>>,
) -> Self {
self.0 = (self.0).topic0(topic);
self
}
#[doc = "Adds a filter for the previousAdminRole event parameter."]
pub fn previous_admin_role(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::tokens::Bytes<[u8; 32]>>,
) -> Self {
self.0 = (self.0).topic1(topic);
self
}
#[doc = "Adds a filter for the newAdminRole event parameter."]
pub fn new_admin_role(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::tokens::Bytes<[u8; 32]>>,
) -> Self {
self.0 = (self.0).topic2(topic);
self
}
#[doc = r" Returns a future that resolves with a collection of all existing"]
#[doc = r" logs matching the builder parameters."]
pub async fn query(
self,
) -> std::result::Result<
std::vec::Vec<self::ethcontract::Event<self::event_data::RoleAdminChanged>>,
self::ethcontract::errors::EventError,
> {
(self.0).query().await
}
#[doc = r" Creates an event stream from the current event builder."]
pub fn stream(
self,
) -> impl self::ethcontract::futures::stream::Stream<
Item = std::result::Result<
self::ethcontract::StreamEvent<self::event_data::RoleAdminChanged>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
#[doc = "A builder for creating a filtered stream of `RoleRevoked` events."]
pub struct RoleRevokedBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::RoleRevoked>,
);
impl RoleRevokedBuilder {
#[doc = r" Sets the starting block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the latest block."]
#[allow(clippy::wrong_self_convention)]
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).from_block(block);
self
}
#[doc = r" Sets the last block from which to stream logs for."]
#[doc = r""]
#[doc = r" If left unset defaults to the streaming until the end of days."]
#[allow(clippy::wrong_self_convention)]
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
self.0 = (self.0).to_block(block);
self
}
#[doc = r" Limit the number of events that can be retrieved by this filter."]
#[doc = r""]
#[doc = r" Note that this parameter is non-standard."]
pub fn limit(mut self, value: usize) -> Self {
self.0 = (self.0).limit(value);
self
}
#[doc = r" The polling interval. This is used as the interval between"]
#[doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."]
pub fn poll_interval(mut self, value: std::time::Duration) -> Self {
self.0 = (self.0).poll_interval(value);
self
}
#[doc = "Adds a filter for the role event parameter."]
pub fn role(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::tokens::Bytes<[u8; 32]>>,
) -> Self {
self.0 = (self.0).topic0(topic);
self
}
#[doc = "Adds a filter for the account event parameter."]
pub fn account(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::Address>,
) -> Self {
self.0 = (self.0).topic1(topic);
self
}
#[doc = "Adds a filter for the sender event parameter."]
pub fn sender(mut self, topic: self::ethcontract::Topic<self::ethcontract::Address>) -> Self {
self.0 = (self.0).topic2(topic);
self
}
#[doc = r" Returns a future that resolves with a collection of all existing"]
#[doc = r" logs matching the builder parameters."]
pub async fn query(
self,
) -> std::result::Result<
std::vec::Vec<self::ethcontract::Event<self::event_data::RoleRevoked>>,
self::ethcontract::errors::EventError,
> {
(self.0).query().await
}
#[doc = r" Creates an event stream from the current event builder."]
pub fn stream(
self,
) -> impl self::ethcontract::futures::stream::Stream<
Item = std::result::Result<
self::ethcontract::StreamEvent<self::event_data::RoleRevoked>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
}
impl Contract {
#[doc = r" Returns a log stream with all events."]
pub fn all_events(&self) -> self::ethcontract::dyns::DynAllEventsBuilder<Event> {
self::ethcontract::dyns::DynAllEventsBuilder::new(
self.raw_instance().web3(),
self.address(),
self.deployment_information(),
)
}
}
#[doc = r" A contract event."]
#[derive(Clone, Debug, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub enum Event {
Approval(self::event_data::Approval),
Paused(self::event_data::Paused),
RoleAdminChanged(self::event_data::RoleAdminChanged),
RoleGranted(self::event_data::RoleGranted),
RoleRevoked(self::event_data::RoleRevoked),
Transfer(self::event_data::Transfer),
Unpaused(self::event_data::Unpaused),
}
impl self::ethcontract::contract::ParseLog for Event {
fn parse_log(
log: self::ethcontract::RawLog,
) -> Result<Self, self::ethcontract::errors::ExecutionError> {
let standard_event = log . topics . get (0) . copied () . map (| topic | match topic { self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37]) => Ok (Event :: Approval (log . clone () . decode (Contract :: artifact () . abi . event ("Approval") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([98 , 231 , 140 , 234 , 1 , 190 , 227 , 32 , 205 , 78 , 66 , 2 , 112 , 181 , 234 , 116 , 0 , 13 , 17 , 176 , 201 , 247 , 71 , 84 , 235 , 219 , 252 , 84 , 75 , 5 , 162 , 88]) => Ok (Event :: Paused (log . clone () . decode (Contract :: artifact () . abi . event ("Paused") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([189 , 121 , 184 , 111 , 254 , 10 , 184 , 232 , 119 , 97 , 81 , 81 , 66 , 23 , 205 , 124 , 172 , 213 , 44 , 144 , 159 , 102 , 71 , 92 , 58 , 244 , 78 , 18 , 159 , 11 , 0 , 255]) => Ok (Event :: RoleAdminChanged (log . clone () . decode (Contract :: artifact () . abi . event ("RoleAdminChanged") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([47 , 135 , 136 , 17 , 126 , 126 , 255 , 29 , 130 , 233 , 38 , 236 , 121 , 73 , 1 , 209 , 124 , 120 , 2 , 74 , 80 , 39 , 9 , 64 , 48 , 69 , 64 , 167 , 51 , 101 , 111 , 13]) => Ok (Event :: RoleGranted (log . clone () . decode (Contract :: artifact () . abi . event ("RoleGranted") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([246 , 57 , 31 , 92 , 50 , 217 , 198 , 157 , 42 , 71 , 234 , 103 , 11 , 68 , 41 , 116 , 181 , 57 , 53 , 209 , 237 , 199 , 253 , 100 , 235 , 33 , 224 , 71 , 168 , 57 , 23 , 27]) => Ok (Event :: RoleRevoked (log . clone () . decode (Contract :: artifact () . abi . event ("RoleRevoked") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239]) => Ok (Event :: Transfer (log . clone () . decode (Contract :: artifact () . abi . event ("Transfer") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([93 , 185 , 238 , 10 , 73 , 91 , 242 , 230 , 255 , 156 , 145 , 167 , 131 , 76 , 27 , 164 , 253 , 210 , 68 , 165 , 232 , 170 , 78 , 83 , 123 , 211 , 138 , 234 , 228 , 176 , 115 , 170]) => Ok (Event :: Unpaused (log . clone () . decode (Contract :: artifact () . abi . event ("Unpaused") . expect ("generated event decode")) ?)) , _ => Err (self :: ethcontract :: errors :: ExecutionError :: from (self :: ethcontract :: common :: abi :: Error :: InvalidData)) , }) ;
if let Some(Ok(data)) = standard_event {
return Ok(data);
}
Err(self::ethcontract::errors::ExecutionError::from(
self::ethcontract::common::abi::Error::InvalidData,
))
}
}
}
pub use self::erc20_preset_minter_pauser_upgradeable::Contract as ERC20PresetMinterPauserUpgradeable;