#[allow(dead_code)]
pub mod erc1155_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\": \"ERC1155PresetMinterPauserUpgradeable\",\n \"sourceName\": \"contracts/token/ERC1155/presets/ERC1155PresetMinterPauserUpgradeable.sol\",\n \"abi\": [\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"account\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n },\n {\n \"indexed\": false,\n \"internalType\": \"bool\",\n \"name\": \"approved\",\n \"type\": \"bool\"\n }\n ],\n \"name\": \"ApprovalForAll\",\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\": \"operator\",\n \"type\": \"address\"\n },\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\": \"ids\",\n \"type\": \"uint256[]\"\n },\n {\n \"indexed\": false,\n \"internalType\": \"uint256[]\",\n \"name\": \"values\",\n \"type\": \"uint256[]\"\n }\n ],\n \"name\": \"TransferBatch\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n },\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\": \"id\",\n \"type\": \"uint256\"\n },\n {\n \"indexed\": false,\n \"internalType\": \"uint256\",\n \"name\": \"value\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"TransferSingle\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": false,\n \"internalType\": \"string\",\n \"name\": \"value\",\n \"type\": \"string\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"uint256\",\n \"name\": \"id\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"URI\",\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\": \"account\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"id\",\n \"type\": \"uint256\"\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\": \"address[]\",\n \"name\": \"accounts\",\n \"type\": \"address[]\"\n },\n {\n \"internalType\": \"uint256[]\",\n \"name\": \"ids\",\n \"type\": \"uint256[]\"\n }\n ],\n \"name\": \"balanceOfBatch\",\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\": \"account\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"id\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"value\",\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\": \"ids\",\n \"type\": \"uint256[]\"\n },\n {\n \"internalType\": \"uint256[]\",\n \"name\": \"values\",\n \"type\": \"uint256[]\"\n }\n ],\n \"name\": \"burnBatch\",\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 \"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\": \"string\",\n \"name\": \"uri\",\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\": \"account\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"isApprovedForAll\",\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\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"id\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"bytes\",\n \"name\": \"data\",\n \"type\": \"bytes\"\n }\n ],\n \"name\": \"mint\",\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\": \"ids\",\n \"type\": \"uint256[]\"\n },\n {\n \"internalType\": \"uint256[]\",\n \"name\": \"amounts\",\n \"type\": \"uint256[]\"\n },\n {\n \"internalType\": \"bytes\",\n \"name\": \"data\",\n \"type\": \"bytes\"\n }\n ],\n \"name\": \"mintBatch\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\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\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256[]\",\n \"name\": \"ids\",\n \"type\": \"uint256[]\"\n },\n {\n \"internalType\": \"uint256[]\",\n \"name\": \"amounts\",\n \"type\": \"uint256[]\"\n },\n {\n \"internalType\": \"bytes\",\n \"name\": \"data\",\n \"type\": \"bytes\"\n }\n ],\n \"name\": \"safeBatchTransferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"id\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amount\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"bytes\",\n \"name\": \"data\",\n \"type\": \"bytes\"\n }\n ],\n \"name\": \"safeTransferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"bool\",\n \"name\": \"approved\",\n \"type\": \"bool\"\n }\n ],\n \"name\": \"setApprovalForAll\",\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\": \"unpause\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"uri\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n }\n ],\n \"bytecode\": \"0x608060405234801561001057600080fd5b50612f1d806100206000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80638456cb59116100de578063d539139311610097578063e985e9c511610071578063e985e9c514610373578063f242432a146103af578063f5298aca146103c2578063f62d1888146103d55761018d565b8063d539139314610336578063d547741f1461034b578063e63ab1e91461035e5761018d565b80638456cb59146102c25780639010d07c146102ca57806391d14854146102f5578063a217fddf14610308578063a22cb46514610310578063ca15c873146103235761018d565b80632f2ff15d1161014b5780634e1273f4116101255780634e1273f4146102745780635c975abb146102945780636b20c4541461029c578063731133e9146102af5761018d565b80632f2ff15d1461024657806336568abe146102595780633f4ba83a1461026c5761018d565b8062fdd58e1461019257806301ffc9a7146101b85780630e89341c146101db5780631f7fdffa146101fb578063248a9ca3146102105780632eb2c2d614610233575b600080fd5b6101a56101a0366004612583565b6103e8565b6040519081526020015b60405180910390f35b6101cb6101c6366004612755565b610484565b60405190151581526020016101af565b6101ee6101e93660046126fa565b610497565b6040516101af9190612999565b61020e6102093660046124b5565b61052b565b005b6101a561021e3660046126fa565b60009081526065602052604090206001015490565b61020e61024136600461233e565b610571565b61020e610254366004612712565b610808565b61020e610267366004612712565b61082f565b61020e610851565b610287610282366004612630565b6108e5565b6040516101af9190612958565b6101cb610a46565b61020e6102aa366004612445565b610a51565b61020e6102bd3660046125de565b610a94565b61020e610ad4565b6102dd6102d8366004612734565b610b66565b6040516001600160a01b0390911681526020016101af565b6101cb610303366004612712565b610b85565b6101a5600081565b61020e61031e366004612549565b610bb0565b6101a56103313660046126fa565b610c94565b6101a5600080516020612ec883398151915281565b61020e610359366004612712565b610cab565b6101a5600080516020612ea883398151915281565b6101cb61038136600461230c565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205460ff1690565b61020e6103bd3660046123e3565b610cb5565b61020e6103d03660046125ac565b610e26565b61020e6103e336600461278d565b610e69565b60006001600160a01b0383166104595760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b50600081815260c9602090815260408083206001600160a01b03861684529091529020545b92915050565b600061048f82610edf565b90505b919050565b606060cb80546104a690612d3b565b80601f01602080910402602001604051908101604052809291908181526020018280546104d290612d3b565b801561051f5780601f106104f45761010080835404028352916020019161051f565b820191906000526020600020905b81548152906001019060200180831161050257829003601f168201915b50505050509050919050565b610543600080516020612ec883398151915233610303565b61055f5760405162461bcd60e51b815260040161045090612b57565b61056b84848484610f1f565b50505050565b81518351146105925760405162461bcd60e51b815260040161045090612bfe565b6001600160a01b0384166105b85760405162461bcd60e51b815260040161045090612a81565b6001600160a01b0385163314806105d457506105d48533610381565b61063b5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610450565b3361064a81878787878761109d565b60005b845181101561079a57600085828151811061067857634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106106a457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815260c9835260408082206001600160a01b038e1683529093529190912054909150818110156106f55760405162461bcd60e51b815260040161045090612bb4565b6106ff8282612ce1565b60c9600085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160c9600085815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461077f9190612caa565b925050819055505050508061079390612da2565b905061064d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516107ea92919061296b565b60405180910390a46108008187878787876110ab565b505050505050565b6108128282611216565b600082815260976020526040902061082a908261123d565b505050565b6108398282611252565b600082815260976020526040902061082a90826112cc565b610869600080516020612ea883398151915233610303565b6108db5760405162461bcd60e51b815260206004820152603b60248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f20756e706175736500000000006064820152608401610450565b6108e36112e1565b565b6060815183511461094a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610450565b600083516001600160401b0381111561097357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561099c578160200160208202803683370190505b50905060005b8451811015610a3e57610a038582815181106109ce57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109f657634e487b7160e01b600052603260045260246000fd5b60200260200101516103e8565b828281518110610a2357634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a3781612da2565b90506109a2565b509392505050565b61012d5460ff165b90565b6001600160a01b038316331480610a6d5750610a6d8333610381565b610a895760405162461bcd60e51b815260040161045090612a38565b61082a838383611377565b610aac600080516020612ec883398151915233610303565b610ac85760405162461bcd60e51b815260040161045090612b57565b61056b84848484611531565b610aec600080516020612ea883398151915233610303565b610b5e5760405162461bcd60e51b815260206004820152603960248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f207061757365000000000000006064820152608401610450565b6108e36115fa565b6000828152609760205260408120610b7e9083611678565b9392505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b336001600160a01b0383161415610c1b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610450565b33600081815260ca602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610c88911515815260200190565b60405180910390a35050565b600081815260976020526040812061048f90611684565b610839828261168e565b6001600160a01b038416610cdb5760405162461bcd60e51b815260040161045090612a81565b6001600160a01b038516331480610cf75750610cf78533610381565b610d135760405162461bcd60e51b815260040161045090612a38565b33610d32818787610d23886116b4565b610d2c886116b4565b8761109d565b600084815260c9602090815260408083206001600160a01b038a16845290915290205483811015610d755760405162461bcd60e51b815260040161045090612bb4565b610d7f8482612ce1565b600086815260c9602090815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290610dbd908490612caa565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e1d82888888888861170d565b50505050505050565b6001600160a01b038316331480610e425750610e428333610381565b610e5e5760405162461bcd60e51b815260040161045090612a38565b61082a8383836117d7565b600054610100900460ff1680610e82575060005460ff16155b610e9e5760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015610ec0576000805461ffff19166101011790555b610ec9826118e4565b8015610edb576000805461ff00191690555b5050565b60006001600160e01b03198216636cdb3d1360e11b1480610f1057506001600160e01b031982166303a24d0760e21b145b8061048f575061048f82611985565b6001600160a01b038416610f455760405162461bcd60e51b815260040161045090612c46565b8151835114610f665760405162461bcd60e51b815260040161045090612bfe565b33610f768160008787878761109d565b60005b845181101561102e57838181518110610fa257634e487b7160e01b600052603260045260246000fd5b602002602001015160c96000878481518110610fce57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546110169190612caa565b9091555081905061102681612da2565b915050610f79565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161107f92919061296b565b60405180910390a4611096816000878787876110ab565b5050505050565b6108008686868686866119aa565b6001600160a01b0384163b156108005760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906110ef90899089908890889088906004016128b5565b602060405180830381600087803b15801561110957600080fd5b505af1925050508015611139575060408051601f3d908101601f1916820190925261113691810190612771565b60015b6111e657611145612de9565b806308c379a0141561117f575061115a612e00565b806111655750611181565b8060405162461bcd60e51b81526004016104509190612999565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610450565b6001600160e01b0319811663bc197c8160e01b14610e1d5760405162461bcd60e51b8152600401610450906129ac565b60008281526065602052604090206001015461123381335b611a14565b61082a8383611a78565b6000610b7e836001600160a01b038416611afe565b6001600160a01b03811633146112c25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610450565b610edb8282611b4d565b6000610b7e836001600160a01b038416611bb4565b6112e9610a46565b61132c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610450565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03831661139d5760405162461bcd60e51b815260040161045090612b14565b80518251146113be5760405162461bcd60e51b815260040161045090612bfe565b60003390506113e18185600086866040518060200160405280600081525061109d565b60005b83518110156114d257600084828151811061140f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061143b57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815260c9835260408082206001600160a01b038c16835290935291909120549091508181101561148c5760405162461bcd60e51b8152600401610450906129f4565b6114968282612ce1565b600093845260c9602090815260408086206001600160a01b038c16875290915290932092909255508190506114ca81612da2565b9150506113e4565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161152392919061296b565b60405180910390a450505050565b6001600160a01b0384166115575760405162461bcd60e51b815260040161045090612c46565b3361156881600087610d23886116b4565b600084815260c9602090815260408083206001600160a01b03891684529091528120805485929061159a908490612caa565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46110968160008787878761170d565b611602610a46565b156116425760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610450565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861135a3390565b6000610b7e8383611ccb565b600061048f825490565b6000828152606560205260409020600101546116aa813361122e565b61082a8383611b4d565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106116fc57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156108005760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906117519089908990889088908890600401612913565b602060405180830381600087803b15801561176b57600080fd5b505af192505050801561179b575060408051601f3d908101601f1916820190925261179891810190612771565b60015b6117a757611145612de9565b6001600160e01b0319811663f23a6e6160e01b14610e1d5760405162461bcd60e51b8152600401610450906129ac565b6001600160a01b0383166117fd5760405162461bcd60e51b815260040161045090612b14565b3361182c8185600061180e876116b4565b611817876116b4565b6040518060200160405280600081525061109d565b600083815260c9602090815260408083206001600160a01b03881684529091529020548281101561186f5760405162461bcd60e51b8152600401610450906129f4565b6118798382612ce1565b600085815260c9602090815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600054610100900460ff16806118fd575060005460ff16155b6119195760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff1615801561193b576000805461ffff19166101011790555b611943611d5f565b61194b611d5f565b611953611d5f565b61195b611d5f565b61196482611dcb565b61196c611d5f565b611974611e2b565b61197c611d5f565b610ec982611ea1565b60006001600160e01b03198216635a05180f60e01b148061048f575061048f82611f34565b6119b2610a46565b156108005760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610450565b611a1e8282610b85565b610edb57611a36816001600160a01b03166014611f69565b611a41836020611f69565b604051602001611a52929190612840565b60408051601f198184030181529082905262461bcd60e51b825261045091600401612999565b611a828282610b85565b610edb5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611aba3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054611b455750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561047e565b50600061047e565b611b578282610b85565b15610edb5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015611cc1576000611bd8600183612ce1565b8554909150600090611bec90600190612ce1565b90506000866000018281548110611c1357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110611c4457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080611c8557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061047e565b600091505061047e565b81546000908210611d295760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610450565b826000018281548110611d4c57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600054610100900460ff1680611d78575060005460ff16155b611d945760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611db6576000805461ffff19166101011790555b8015611dc8576000805461ff00191690555b50565b600054610100900460ff1680611de4575060005460ff16155b611e005760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611e22576000805461ffff19166101011790555b610ec98261214a565b600054610100900460ff1680611e44575060005460ff16155b611e605760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611e82576000805461ffff19166101011790555b61012d805460ff191690558015611dc8576000805461ff001916905550565b600054610100900460ff1680611eba575060005460ff16155b611ed65760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611ef8576000805461ffff19166101011790555b611f046000335b61215d565b611f1c600080516020612ec883398151915233611eff565b610ec9600080516020612ea883398151915233611eff565b60006001600160e01b03198216637965db0b60e01b148061048f57506301ffc9a760e01b6001600160e01b031983161461048f565b60606000611f78836002612cc2565b611f83906002612caa565b6001600160401b03811115611fa857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fd2576020820181803683370190505b509050600360fc1b81600081518110611ffb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061203857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061205c846002612cc2565b612067906001612caa565b90505b60018111156120fb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106120a957634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106120cd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936120f481612d24565b905061206a565b508315610b7e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610450565b8051610edb9060cb90602084019061216c565b6108128282610edb8282611a78565b82805461217890612d3b565b90600052602060002090601f01602090048101928261219a57600085556121e0565b82601f106121b357805160ff19168380011785556121e0565b828001600101855582156121e0579182015b828111156121e05782518255916020019190600101906121c5565b506121ec9291506121f0565b5090565b5b808211156121ec57600081556001016121f1565b60006001600160401b0383111561221e5761221e612dd3565b604051612235601f8501601f191660200182612d76565b80915083815284848401111561224a57600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461049257600080fd5b600082601f830112612289578081fd5b8135602061229682612c87565b6040516122a38282612d76565b8381528281019150858301600585901b870184018810156122c2578586fd5b855b858110156122e0578135845292840192908401906001016122c4565b5090979650505050505050565b600082601f8301126122fd578081fd5b610b7e83833560208501612205565b6000806040838503121561231e578182fd5b61232783612262565b915061233560208401612262565b90509250929050565b600080600080600060a08688031215612355578081fd5b61235e86612262565b945061236c60208701612262565b935060408601356001600160401b0380821115612387578283fd5b61239389838a01612279565b945060608801359150808211156123a8578283fd5b6123b489838a01612279565b935060808801359150808211156123c9578283fd5b506123d6888289016122ed565b9150509295509295909350565b600080600080600060a086880312156123fa578081fd5b61240386612262565b945061241160208701612262565b9350604086013592506060860135915060808601356001600160401b03811115612439578182fd5b6123d6888289016122ed565b600080600060608486031215612459578283fd5b61246284612262565b925060208401356001600160401b038082111561247d578384fd5b61248987838801612279565b9350604086013591508082111561249e578283fd5b506124ab86828701612279565b9150509250925092565b600080600080608085870312156124ca578384fd5b6124d385612262565b935060208501356001600160401b03808211156124ee578485fd5b6124fa88838901612279565b9450604087013591508082111561250f578384fd5b61251b88838901612279565b93506060870135915080821115612530578283fd5b5061253d878288016122ed565b91505092959194509250565b6000806040838503121561255b578182fd5b61256483612262565b915060208301358015158114612578578182fd5b809150509250929050565b60008060408385031215612595578182fd5b61259e83612262565b946020939093013593505050565b6000806000606084860312156125c0578081fd5b6125c984612262565b95602085013595506040909401359392505050565b600080600080608085870312156125f3578182fd5b6125fc85612262565b9350602085013592506040850135915060608501356001600160401b03811115612624578182fd5b61253d878288016122ed565b60008060408385031215612642578182fd5b82356001600160401b0380821115612658578384fd5b818501915085601f83011261266b578384fd5b8135602061267882612c87565b6040516126858282612d76565b8381528281019150858301600585901b870184018b10156126a4578889fd5b8896505b848710156126cd576126b981612262565b8352600196909601959183019183016126a8565b50965050860135925050808211156126e3578283fd5b506126f085828601612279565b9150509250929050565b60006020828403121561270b578081fd5b5035919050565b60008060408385031215612724578182fd5b8235915061233560208401612262565b60008060408385031215612746578182fd5b50508035926020909101359150565b600060208284031215612766578081fd5b8135610b7e81612e91565b600060208284031215612782578081fd5b8151610b7e81612e91565b60006020828403121561279e578081fd5b81356001600160401b038111156127b3578182fd5b8201601f810184136127c3578182fd5b6127d284823560208401612205565b949350505050565b6000815180845260208085019450808401835b83811015612809578151875295820195908201906001016127ed565b509495945050505050565b6000815180845261282c816020860160208601612cf8565b601f01601f19169290920160200192915050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351612878816017850160208801612cf8565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516128a9816028840160208801612cf8565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906128e1908301866127da565b82810360608401526128f381866127da565b905082810360808401526129078185612814565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061294d90830184612814565b979650505050505050565b600060208252610b7e60208301846127da565b60006040825261297e60408301856127da565b828103602084015261299081856127da565b95945050505050565b600060208252610b7e6020830184612814565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526038908201527f455243313135355072657365744d696e7465725061757365723a206d7573742060408201527f68617665206d696e74657220726f6c6520746f206d696e740000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115612ca057612ca0612dd3565b5060051b60200190565b60008219821115612cbd57612cbd612dbd565b500190565b6000816000190483118215151615612cdc57612cdc612dbd565b500290565b600082821015612cf357612cf3612dbd565b500390565b60005b83811015612d13578181015183820152602001612cfb565b8381111561056b5750506000910152565b600081612d3357612d33612dbd565b506000190190565b600181811c90821680612d4f57607f821691505b60208210811415612d7057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715612d9b57612d9b612dd3565b6040525050565b6000600019821415612db657612db6612dbd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610a4e57600481823e5160e01c90565b600060443d1015612e1057610a4e565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612e41575050505050610a4e565b8285019150815181811115612e5b57505050505050610a4e565b843d8701016020828501011115612e7757505050505050610a4e565b612e8660208286010187612d76565b509094505050505090565b6001600160e01b031981168114611dc857600080fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220d058fa99e7870b844fee9de7799f654a9089db516c2ab6fa2aca978bea4d59c364736f6c63430008030033\",\n \"deployedBytecode\": \"0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80638456cb59116100de578063d539139311610097578063e985e9c511610071578063e985e9c514610373578063f242432a146103af578063f5298aca146103c2578063f62d1888146103d55761018d565b8063d539139314610336578063d547741f1461034b578063e63ab1e91461035e5761018d565b80638456cb59146102c25780639010d07c146102ca57806391d14854146102f5578063a217fddf14610308578063a22cb46514610310578063ca15c873146103235761018d565b80632f2ff15d1161014b5780634e1273f4116101255780634e1273f4146102745780635c975abb146102945780636b20c4541461029c578063731133e9146102af5761018d565b80632f2ff15d1461024657806336568abe146102595780633f4ba83a1461026c5761018d565b8062fdd58e1461019257806301ffc9a7146101b85780630e89341c146101db5780631f7fdffa146101fb578063248a9ca3146102105780632eb2c2d614610233575b600080fd5b6101a56101a0366004612583565b6103e8565b6040519081526020015b60405180910390f35b6101cb6101c6366004612755565b610484565b60405190151581526020016101af565b6101ee6101e93660046126fa565b610497565b6040516101af9190612999565b61020e6102093660046124b5565b61052b565b005b6101a561021e3660046126fa565b60009081526065602052604090206001015490565b61020e61024136600461233e565b610571565b61020e610254366004612712565b610808565b61020e610267366004612712565b61082f565b61020e610851565b610287610282366004612630565b6108e5565b6040516101af9190612958565b6101cb610a46565b61020e6102aa366004612445565b610a51565b61020e6102bd3660046125de565b610a94565b61020e610ad4565b6102dd6102d8366004612734565b610b66565b6040516001600160a01b0390911681526020016101af565b6101cb610303366004612712565b610b85565b6101a5600081565b61020e61031e366004612549565b610bb0565b6101a56103313660046126fa565b610c94565b6101a5600080516020612ec883398151915281565b61020e610359366004612712565b610cab565b6101a5600080516020612ea883398151915281565b6101cb61038136600461230c565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205460ff1690565b61020e6103bd3660046123e3565b610cb5565b61020e6103d03660046125ac565b610e26565b61020e6103e336600461278d565b610e69565b60006001600160a01b0383166104595760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b50600081815260c9602090815260408083206001600160a01b03861684529091529020545b92915050565b600061048f82610edf565b90505b919050565b606060cb80546104a690612d3b565b80601f01602080910402602001604051908101604052809291908181526020018280546104d290612d3b565b801561051f5780601f106104f45761010080835404028352916020019161051f565b820191906000526020600020905b81548152906001019060200180831161050257829003601f168201915b50505050509050919050565b610543600080516020612ec883398151915233610303565b61055f5760405162461bcd60e51b815260040161045090612b57565b61056b84848484610f1f565b50505050565b81518351146105925760405162461bcd60e51b815260040161045090612bfe565b6001600160a01b0384166105b85760405162461bcd60e51b815260040161045090612a81565b6001600160a01b0385163314806105d457506105d48533610381565b61063b5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610450565b3361064a81878787878761109d565b60005b845181101561079a57600085828151811061067857634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106106a457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815260c9835260408082206001600160a01b038e1683529093529190912054909150818110156106f55760405162461bcd60e51b815260040161045090612bb4565b6106ff8282612ce1565b60c9600085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160c9600085815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461077f9190612caa565b925050819055505050508061079390612da2565b905061064d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516107ea92919061296b565b60405180910390a46108008187878787876110ab565b505050505050565b6108128282611216565b600082815260976020526040902061082a908261123d565b505050565b6108398282611252565b600082815260976020526040902061082a90826112cc565b610869600080516020612ea883398151915233610303565b6108db5760405162461bcd60e51b815260206004820152603b60248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f20756e706175736500000000006064820152608401610450565b6108e36112e1565b565b6060815183511461094a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610450565b600083516001600160401b0381111561097357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561099c578160200160208202803683370190505b50905060005b8451811015610a3e57610a038582815181106109ce57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109f657634e487b7160e01b600052603260045260246000fd5b60200260200101516103e8565b828281518110610a2357634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a3781612da2565b90506109a2565b509392505050565b61012d5460ff165b90565b6001600160a01b038316331480610a6d5750610a6d8333610381565b610a895760405162461bcd60e51b815260040161045090612a38565b61082a838383611377565b610aac600080516020612ec883398151915233610303565b610ac85760405162461bcd60e51b815260040161045090612b57565b61056b84848484611531565b610aec600080516020612ea883398151915233610303565b610b5e5760405162461bcd60e51b815260206004820152603960248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f207061757365000000000000006064820152608401610450565b6108e36115fa565b6000828152609760205260408120610b7e9083611678565b9392505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b336001600160a01b0383161415610c1b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610450565b33600081815260ca602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610c88911515815260200190565b60405180910390a35050565b600081815260976020526040812061048f90611684565b610839828261168e565b6001600160a01b038416610cdb5760405162461bcd60e51b815260040161045090612a81565b6001600160a01b038516331480610cf75750610cf78533610381565b610d135760405162461bcd60e51b815260040161045090612a38565b33610d32818787610d23886116b4565b610d2c886116b4565b8761109d565b600084815260c9602090815260408083206001600160a01b038a16845290915290205483811015610d755760405162461bcd60e51b815260040161045090612bb4565b610d7f8482612ce1565b600086815260c9602090815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290610dbd908490612caa565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e1d82888888888861170d565b50505050505050565b6001600160a01b038316331480610e425750610e428333610381565b610e5e5760405162461bcd60e51b815260040161045090612a38565b61082a8383836117d7565b600054610100900460ff1680610e82575060005460ff16155b610e9e5760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015610ec0576000805461ffff19166101011790555b610ec9826118e4565b8015610edb576000805461ff00191690555b5050565b60006001600160e01b03198216636cdb3d1360e11b1480610f1057506001600160e01b031982166303a24d0760e21b145b8061048f575061048f82611985565b6001600160a01b038416610f455760405162461bcd60e51b815260040161045090612c46565b8151835114610f665760405162461bcd60e51b815260040161045090612bfe565b33610f768160008787878761109d565b60005b845181101561102e57838181518110610fa257634e487b7160e01b600052603260045260246000fd5b602002602001015160c96000878481518110610fce57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546110169190612caa565b9091555081905061102681612da2565b915050610f79565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161107f92919061296b565b60405180910390a4611096816000878787876110ab565b5050505050565b6108008686868686866119aa565b6001600160a01b0384163b156108005760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906110ef90899089908890889088906004016128b5565b602060405180830381600087803b15801561110957600080fd5b505af1925050508015611139575060408051601f3d908101601f1916820190925261113691810190612771565b60015b6111e657611145612de9565b806308c379a0141561117f575061115a612e00565b806111655750611181565b8060405162461bcd60e51b81526004016104509190612999565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610450565b6001600160e01b0319811663bc197c8160e01b14610e1d5760405162461bcd60e51b8152600401610450906129ac565b60008281526065602052604090206001015461123381335b611a14565b61082a8383611a78565b6000610b7e836001600160a01b038416611afe565b6001600160a01b03811633146112c25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610450565b610edb8282611b4d565b6000610b7e836001600160a01b038416611bb4565b6112e9610a46565b61132c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610450565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03831661139d5760405162461bcd60e51b815260040161045090612b14565b80518251146113be5760405162461bcd60e51b815260040161045090612bfe565b60003390506113e18185600086866040518060200160405280600081525061109d565b60005b83518110156114d257600084828151811061140f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061143b57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815260c9835260408082206001600160a01b038c16835290935291909120549091508181101561148c5760405162461bcd60e51b8152600401610450906129f4565b6114968282612ce1565b600093845260c9602090815260408086206001600160a01b038c16875290915290932092909255508190506114ca81612da2565b9150506113e4565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161152392919061296b565b60405180910390a450505050565b6001600160a01b0384166115575760405162461bcd60e51b815260040161045090612c46565b3361156881600087610d23886116b4565b600084815260c9602090815260408083206001600160a01b03891684529091528120805485929061159a908490612caa565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46110968160008787878761170d565b611602610a46565b156116425760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610450565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861135a3390565b6000610b7e8383611ccb565b600061048f825490565b6000828152606560205260409020600101546116aa813361122e565b61082a8383611b4d565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106116fc57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156108005760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906117519089908990889088908890600401612913565b602060405180830381600087803b15801561176b57600080fd5b505af192505050801561179b575060408051601f3d908101601f1916820190925261179891810190612771565b60015b6117a757611145612de9565b6001600160e01b0319811663f23a6e6160e01b14610e1d5760405162461bcd60e51b8152600401610450906129ac565b6001600160a01b0383166117fd5760405162461bcd60e51b815260040161045090612b14565b3361182c8185600061180e876116b4565b611817876116b4565b6040518060200160405280600081525061109d565b600083815260c9602090815260408083206001600160a01b03881684529091529020548281101561186f5760405162461bcd60e51b8152600401610450906129f4565b6118798382612ce1565b600085815260c9602090815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600054610100900460ff16806118fd575060005460ff16155b6119195760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff1615801561193b576000805461ffff19166101011790555b611943611d5f565b61194b611d5f565b611953611d5f565b61195b611d5f565b61196482611dcb565b61196c611d5f565b611974611e2b565b61197c611d5f565b610ec982611ea1565b60006001600160e01b03198216635a05180f60e01b148061048f575061048f82611f34565b6119b2610a46565b156108005760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610450565b611a1e8282610b85565b610edb57611a36816001600160a01b03166014611f69565b611a41836020611f69565b604051602001611a52929190612840565b60408051601f198184030181529082905262461bcd60e51b825261045091600401612999565b611a828282610b85565b610edb5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611aba3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054611b455750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561047e565b50600061047e565b611b578282610b85565b15610edb5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015611cc1576000611bd8600183612ce1565b8554909150600090611bec90600190612ce1565b90506000866000018281548110611c1357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110611c4457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080611c8557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061047e565b600091505061047e565b81546000908210611d295760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610450565b826000018281548110611d4c57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600054610100900460ff1680611d78575060005460ff16155b611d945760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611db6576000805461ffff19166101011790555b8015611dc8576000805461ff00191690555b50565b600054610100900460ff1680611de4575060005460ff16155b611e005760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611e22576000805461ffff19166101011790555b610ec98261214a565b600054610100900460ff1680611e44575060005460ff16155b611e605760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611e82576000805461ffff19166101011790555b61012d805460ff191690558015611dc8576000805461ff001916905550565b600054610100900460ff1680611eba575060005460ff16155b611ed65760405162461bcd60e51b815260040161045090612ac6565b600054610100900460ff16158015611ef8576000805461ffff19166101011790555b611f046000335b61215d565b611f1c600080516020612ec883398151915233611eff565b610ec9600080516020612ea883398151915233611eff565b60006001600160e01b03198216637965db0b60e01b148061048f57506301ffc9a760e01b6001600160e01b031983161461048f565b60606000611f78836002612cc2565b611f83906002612caa565b6001600160401b03811115611fa857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fd2576020820181803683370190505b509050600360fc1b81600081518110611ffb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061203857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061205c846002612cc2565b612067906001612caa565b90505b60018111156120fb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106120a957634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106120cd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936120f481612d24565b905061206a565b508315610b7e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610450565b8051610edb9060cb90602084019061216c565b6108128282610edb8282611a78565b82805461217890612d3b565b90600052602060002090601f01602090048101928261219a57600085556121e0565b82601f106121b357805160ff19168380011785556121e0565b828001600101855582156121e0579182015b828111156121e05782518255916020019190600101906121c5565b506121ec9291506121f0565b5090565b5b808211156121ec57600081556001016121f1565b60006001600160401b0383111561221e5761221e612dd3565b604051612235601f8501601f191660200182612d76565b80915083815284848401111561224a57600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461049257600080fd5b600082601f830112612289578081fd5b8135602061229682612c87565b6040516122a38282612d76565b8381528281019150858301600585901b870184018810156122c2578586fd5b855b858110156122e0578135845292840192908401906001016122c4565b5090979650505050505050565b600082601f8301126122fd578081fd5b610b7e83833560208501612205565b6000806040838503121561231e578182fd5b61232783612262565b915061233560208401612262565b90509250929050565b600080600080600060a08688031215612355578081fd5b61235e86612262565b945061236c60208701612262565b935060408601356001600160401b0380821115612387578283fd5b61239389838a01612279565b945060608801359150808211156123a8578283fd5b6123b489838a01612279565b935060808801359150808211156123c9578283fd5b506123d6888289016122ed565b9150509295509295909350565b600080600080600060a086880312156123fa578081fd5b61240386612262565b945061241160208701612262565b9350604086013592506060860135915060808601356001600160401b03811115612439578182fd5b6123d6888289016122ed565b600080600060608486031215612459578283fd5b61246284612262565b925060208401356001600160401b038082111561247d578384fd5b61248987838801612279565b9350604086013591508082111561249e578283fd5b506124ab86828701612279565b9150509250925092565b600080600080608085870312156124ca578384fd5b6124d385612262565b935060208501356001600160401b03808211156124ee578485fd5b6124fa88838901612279565b9450604087013591508082111561250f578384fd5b61251b88838901612279565b93506060870135915080821115612530578283fd5b5061253d878288016122ed565b91505092959194509250565b6000806040838503121561255b578182fd5b61256483612262565b915060208301358015158114612578578182fd5b809150509250929050565b60008060408385031215612595578182fd5b61259e83612262565b946020939093013593505050565b6000806000606084860312156125c0578081fd5b6125c984612262565b95602085013595506040909401359392505050565b600080600080608085870312156125f3578182fd5b6125fc85612262565b9350602085013592506040850135915060608501356001600160401b03811115612624578182fd5b61253d878288016122ed565b60008060408385031215612642578182fd5b82356001600160401b0380821115612658578384fd5b818501915085601f83011261266b578384fd5b8135602061267882612c87565b6040516126858282612d76565b8381528281019150858301600585901b870184018b10156126a4578889fd5b8896505b848710156126cd576126b981612262565b8352600196909601959183019183016126a8565b50965050860135925050808211156126e3578283fd5b506126f085828601612279565b9150509250929050565b60006020828403121561270b578081fd5b5035919050565b60008060408385031215612724578182fd5b8235915061233560208401612262565b60008060408385031215612746578182fd5b50508035926020909101359150565b600060208284031215612766578081fd5b8135610b7e81612e91565b600060208284031215612782578081fd5b8151610b7e81612e91565b60006020828403121561279e578081fd5b81356001600160401b038111156127b3578182fd5b8201601f810184136127c3578182fd5b6127d284823560208401612205565b949350505050565b6000815180845260208085019450808401835b83811015612809578151875295820195908201906001016127ed565b509495945050505050565b6000815180845261282c816020860160208601612cf8565b601f01601f19169290920160200192915050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351612878816017850160208801612cf8565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516128a9816028840160208801612cf8565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906128e1908301866127da565b82810360608401526128f381866127da565b905082810360808401526129078185612814565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061294d90830184612814565b979650505050505050565b600060208252610b7e60208301846127da565b60006040825261297e60408301856127da565b828103602084015261299081856127da565b95945050505050565b600060208252610b7e6020830184612814565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526038908201527f455243313135355072657365744d696e7465725061757365723a206d7573742060408201527f68617665206d696e74657220726f6c6520746f206d696e740000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115612ca057612ca0612dd3565b5060051b60200190565b60008219821115612cbd57612cbd612dbd565b500190565b6000816000190483118215151615612cdc57612cdc612dbd565b500290565b600082821015612cf357612cf3612dbd565b500390565b60005b83811015612d13578181015183820152602001612cfb565b8381111561056b5750506000910152565b600081612d3357612d33612dbd565b506000190190565b600181811c90821680612d4f57607f821691505b60208210811415612d7057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715612d9b57612d9b612dd3565b6040525050565b6000600019821415612db657612db6612dbd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610a4e57600481823e5160e01c90565b600060443d1015612e1057610a4e565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612e41575050505050610a4e565b8285019150815181811115612e5b57505050505050610a4e565b843d8701016020828501011115612e7757505050505050610a4e565b612e8660208286010187612d76565b509094505050505090565b6001600160e01b031981168114611dc857600080fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220d058fa99e7870b844fee9de7799f654a9089db516c2ab6fa2aca978bea4d59c364736f6c63430008030033\",\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!(ERC1155PresetMinterPauserUpgradeable))
.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 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 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 unpause(&self) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([63, 75, 168, 58], ())
.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 burn(
&self,
account: self::ethcontract::Address,
id: self::ethcontract::U256,
value: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([245, 41, 138, 202], (account, id, value))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn initialize(&self, uri: String) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([246, 45, 24, 136], (uri,))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn set_approval_for_all(
&self,
operator: self::ethcontract::Address,
approved: bool,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([162, 44, 180, 101], (operator, approved))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn balance_of(
&self,
account: self::ethcontract::Address,
id: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynViewMethodBuilder<self::ethcontract::U256> {
self
.instance
.view_method([0, 253, 213, 142], (account, id))
.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 mint(
&self,
to: self::ethcontract::Address,
id: self::ethcontract::U256,
amount: self::ethcontract::U256,
data: self::ethcontract::tokens::Bytes<Vec<u8>>,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([115, 17, 51, 233], (to, id, amount, data))
.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 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 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_batch(
&self,
account: self::ethcontract::Address,
ids: Vec<self::ethcontract::U256>,
values: Vec<self::ethcontract::U256>,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([107, 32, 196, 84], (account, ids, values))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn mint_batch(
&self,
to: self::ethcontract::Address,
ids: Vec<self::ethcontract::U256>,
amounts: Vec<self::ethcontract::U256>,
data: self::ethcontract::tokens::Bytes<Vec<u8>>,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([31, 127, 223, 250], (to, ids, amounts, data))
.expect("generated call")
}
#[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 safe_batch_transfer_from(
&self,
from: self::ethcontract::Address,
to: self::ethcontract::Address,
ids: Vec<self::ethcontract::U256>,
amounts: Vec<self::ethcontract::U256>,
data: self::ethcontract::tokens::Bytes<Vec<u8>>,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([46, 178, 194, 214], (from, to, ids, amounts, data))
.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 uri(
&self,
p0: self::ethcontract::U256,
) -> self::ethcontract::dyns::DynViewMethodBuilder<String> {
self
.instance
.view_method([14, 137, 52, 28], (p0,))
.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 safe_transfer_from(
&self,
from: self::ethcontract::Address,
to: self::ethcontract::Address,
id: self::ethcontract::U256,
amount: self::ethcontract::U256,
data: self::ethcontract::tokens::Bytes<Vec<u8>>,
) -> self::ethcontract::dyns::DynMethodBuilder<()> {
self
.instance
.method([242, 66, 67, 42], (from, to, id, amount, data))
.expect("generated call")
}
#[doc = "Generated by `ethcontract`"]
pub fn balance_of_batch(
&self,
accounts: Vec<self::ethcontract::Address>,
ids: Vec<self::ethcontract::U256>,
) -> self::ethcontract::dyns::DynViewMethodBuilder<Vec<self::ethcontract::U256>> {
self
.instance
.view_method([78, 18, 115, 244], (accounts, ids))
.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 is_approved_for_all(
&self,
account: self::ethcontract::Address,
operator: self::ethcontract::Address,
) -> self::ethcontract::dyns::DynViewMethodBuilder<bool> {
self
.instance
.view_method([233, 133, 233, 197], (account, operator))
.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")
}
}
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 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")
}
}
#[derive(Clone, Debug, Default, Eq, PartialEq, serde :: Deserialize, serde :: Serialize)]
pub struct TransferBatch {
pub operator: self::ethcontract::Address,
pub from: self::ethcontract::Address,
pub to: self::ethcontract::Address,
pub ids: Vec<self::ethcontract::U256>,
pub values: Vec<self::ethcontract::U256>,
}
impl TransferBatch {
#[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([
74, 57, 220, 6, 212, 192, 219, 198, 75, 112, 175, 144, 253, 105, 138, 35, 58, 81, 138,
165, 208, 126, 89, 93, 152, 59, 140, 5, 38, 200, 247, 251,
])
}
#[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 = "`TransferBatch(address,address,address,uint256[],uint256[])`"]
pub fn abi_signature() -> &'static str {
"TransferBatch(address,address,address,uint256[],uint256[])"
}
}
impl self::ethcontract::tokens::Tokenize for TransferBatch {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (operator, from, to, ids, values) =
self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(TransferBatch {
operator,
from,
to,
ids,
values,
})
}
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 TransferSingle {
pub operator: self::ethcontract::Address,
pub from: self::ethcontract::Address,
pub to: self::ethcontract::Address,
pub id: self::ethcontract::U256,
pub value: self::ethcontract::U256,
}
impl TransferSingle {
#[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([
195, 213, 129, 104, 197, 174, 115, 151, 115, 29, 6, 61, 91, 191, 61, 101, 120, 84, 66,
115, 67, 244, 192, 131, 36, 15, 122, 172, 170, 45, 15, 98,
])
}
#[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 = "`TransferSingle(address,address,address,uint256,uint256)`"]
pub fn abi_signature() -> &'static str {
"TransferSingle(address,address,address,uint256,uint256)"
}
}
impl self::ethcontract::tokens::Tokenize for TransferSingle {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (operator, from, to, id, value) =
self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(TransferSingle {
operator,
from,
to,
id,
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 Uri {
pub value: String,
pub id: self::ethcontract::U256,
}
impl Uri {
#[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([
107, 183, 255, 112, 134, 25, 186, 6, 16, 203, 162, 149, 165, 133, 146, 224, 69, 29, 238,
38, 34, 147, 140, 135, 85, 102, 118, 136, 218, 243, 82, 155,
])
}
#[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 = "`URI(string,uint256)`"]
pub fn abi_signature() -> &'static str {
"URI(string,uint256)"
}
}
impl self::ethcontract::tokens::Tokenize for Uri {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (value, id) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(Uri { value, id })
}
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 ApprovalForAll {
pub account: self::ethcontract::Address,
pub operator: self::ethcontract::Address,
pub approved: bool,
}
impl ApprovalForAll {
#[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([
23, 48, 126, 171, 57, 171, 97, 7, 232, 137, 152, 69, 173, 61, 89, 189, 150, 83, 242, 0,
242, 32, 146, 4, 137, 202, 43, 89, 55, 105, 108, 49,
])
}
#[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 = "`ApprovalForAll(address,address,bool)`"]
pub fn abi_signature() -> &'static str {
"ApprovalForAll(address,address,bool)"
}
}
impl self::ethcontract::tokens::Tokenize for ApprovalForAll {
fn from_token(
token: self::ethcontract::common::abi::Token,
) -> Result<Self, self::ethcontract::tokens::Error> {
let (account, operator, approved) = self::ethcontract::tokens::Tokenize::from_token(token)?;
Ok(ApprovalForAll {
account,
operator,
approved,
})
}
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 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")
}
}
}
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 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" Generated by `ethcontract`."]
pub fn transfer_batch(&self) -> self::event_builders::TransferBatchBuilder {
self::event_builders::TransferBatchBuilder(
self
.instance
.event(self::ethcontract::H256([
74, 57, 220, 6, 212, 192, 219, 198, 75, 112, 175, 144, 253, 105, 138, 35, 58, 81, 138,
165, 208, 126, 89, 93, 152, 59, 140, 5, 38, 200, 247, 251,
]))
.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 transfer_single(&self) -> self::event_builders::TransferSingleBuilder {
self::event_builders::TransferSingleBuilder(
self
.instance
.event(self::ethcontract::H256([
195, 213, 129, 104, 197, 174, 115, 151, 115, 29, 6, 61, 91, 191, 61, 101, 120, 84, 66,
115, 67, 244, 192, 131, 36, 15, 122, 172, 170, 45, 15, 98,
]))
.expect("generated event filter"),
)
}
#[doc = r" Generated by `ethcontract`."]
pub fn uri(&self) -> self::event_builders::UriBuilder {
self::event_builders::UriBuilder(
self
.instance
.event(self::ethcontract::H256([
107, 183, 255, 112, 134, 25, 186, 6, 16, 203, 162, 149, 165, 133, 146, 224, 69, 29,
238, 38, 34, 147, 140, 135, 85, 102, 118, 136, 218, 243, 82, 155,
]))
.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 approval_for_all(&self) -> self::event_builders::ApprovalForAllBuilder {
self::event_builders::ApprovalForAllBuilder(
self
.instance
.event(self::ethcontract::H256([
23, 48, 126, 171, 57, 171, 97, 7, 232, 137, 152, 69, 173, 61, 89, 189, 150, 83, 242, 0,
242, 32, 146, 4, 137, 202, 43, 89, 55, 105, 108, 49,
]))
.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 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" 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 `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()
}
}
#[doc = "A builder for creating a filtered stream of `TransferBatch` events."]
pub struct TransferBatchBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::TransferBatch>,
);
impl TransferBatchBuilder {
#[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 operator event parameter."]
pub fn operator(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::Address>,
) -> Self {
self.0 = (self.0).topic0(topic);
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).topic1(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).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::TransferBatch>>,
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::TransferBatch>,
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 `TransferSingle` events."]
pub struct TransferSingleBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::TransferSingle>,
);
impl TransferSingleBuilder {
#[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 operator event parameter."]
pub fn operator(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::Address>,
) -> Self {
self.0 = (self.0).topic0(topic);
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).topic1(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).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::TransferSingle>>,
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::TransferSingle>,
self::ethcontract::errors::EventError,
>,
> {
(self.0).stream()
}
}
#[doc = "A builder for creating a filtered stream of `Uri` events."]
pub struct UriBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::Uri>,
);
impl UriBuilder {
#[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 id event parameter."]
pub fn id(mut self, topic: self::ethcontract::Topic<self::ethcontract::U256>) -> Self {
self.0 = (self.0).topic0(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::Uri>>,
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::Uri>,
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 `ApprovalForAll` events."]
pub struct ApprovalForAllBuilder(
#[doc = r" The inner event builder."]
pub self::ethcontract::dyns::DynEventBuilder<self::event_data::ApprovalForAll>,
);
impl ApprovalForAllBuilder {
#[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 account event parameter."]
pub fn account(
mut self,
topic: self::ethcontract::Topic<self::ethcontract::Address>,
) -> Self {
self.0 = (self.0).topic0(topic);
self
}
#[doc = "Adds a filter for the operator event parameter."]
pub fn operator(
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::ApprovalForAll>>,
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::ApprovalForAll>,
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 `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()
}
}
}
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 {
ApprovalForAll(self::event_data::ApprovalForAll),
Paused(self::event_data::Paused),
RoleAdminChanged(self::event_data::RoleAdminChanged),
RoleGranted(self::event_data::RoleGranted),
RoleRevoked(self::event_data::RoleRevoked),
TransferBatch(self::event_data::TransferBatch),
TransferSingle(self::event_data::TransferSingle),
Uri(self::event_data::Uri),
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 ([23 , 48 , 126 , 171 , 57 , 171 , 97 , 7 , 232 , 137 , 152 , 69 , 173 , 61 , 89 , 189 , 150 , 83 , 242 , 0 , 242 , 32 , 146 , 4 , 137 , 202 , 43 , 89 , 55 , 105 , 108 , 49]) => Ok (Event :: ApprovalForAll (log . clone () . decode (Contract :: artifact () . abi . event ("ApprovalForAll") . 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 ([74 , 57 , 220 , 6 , 212 , 192 , 219 , 198 , 75 , 112 , 175 , 144 , 253 , 105 , 138 , 35 , 58 , 81 , 138 , 165 , 208 , 126 , 89 , 93 , 152 , 59 , 140 , 5 , 38 , 200 , 247 , 251]) => Ok (Event :: TransferBatch (log . clone () . decode (Contract :: artifact () . abi . event ("TransferBatch") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([195 , 213 , 129 , 104 , 197 , 174 , 115 , 151 , 115 , 29 , 6 , 61 , 91 , 191 , 61 , 101 , 120 , 84 , 66 , 115 , 67 , 244 , 192 , 131 , 36 , 15 , 122 , 172 , 170 , 45 , 15 , 98]) => Ok (Event :: TransferSingle (log . clone () . decode (Contract :: artifact () . abi . event ("TransferSingle") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([107 , 183 , 255 , 112 , 134 , 25 , 186 , 6 , 16 , 203 , 162 , 149 , 165 , 133 , 146 , 224 , 69 , 29 , 238 , 38 , 34 , 147 , 140 , 135 , 85 , 102 , 118 , 136 , 218 , 243 , 82 , 155]) => Ok (Event :: Uri (log . clone () . decode (Contract :: artifact () . abi . event ("URI") . 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::erc1155_preset_minter_pauser_upgradeable::Contract as ERC1155PresetMinterPauserUpgradeable;