/**
Generated by the following Solidity interface...
```solidity
interface SimpleERC721 {
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
error ERC721InsufficientApproval(address operator, uint256 tokenId);
error ERC721InvalidApprover(address approver);
error ERC721InvalidOperator(address operator);
error ERC721InvalidOwner(address owner);
error ERC721InvalidReceiver(address receiver);
error ERC721InvalidSender(address sender);
error ERC721NonexistentToken(uint256 tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
constructor(address minter, uint256 tokenId);
function approve(address to, uint256 tokenId) external;
function balanceOf(address owner) external view returns (uint256);
function getApproved(uint256 tokenId) external view returns (address);
function isApprovedForAll(address owner, address operator) external view returns (bool);
function name() external view returns (string memory);
function ownerOf(uint256 tokenId) external view returns (address);
function safeTransferFrom(address from, address to, uint256 tokenId) external;
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) external;
function setApprovalForAll(address operator, bool approved) external;
function supportsInterface(bytes4 interfaceId) external view returns (bool);
function symbol() external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
function transferFrom(address from, address to, uint256 tokenId) external;
}
```
...which was generated by the following JSON ABI:
```json
[
{
"type": "constructor",
"inputs": [
{
"name": "minter",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "approve",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getApproved",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isApprovedForAll",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ownerOf",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "safeTransferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "safeTransferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setApprovalForAll",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
},
{
"name": "approved",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "tokenURI",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "approved",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ApprovalForAll",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "approved",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "ERC721IncorrectOwner",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC721InsufficientApproval",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "ERC721InvalidApprover",
"inputs": [
{
"name": "approver",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC721InvalidOperator",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC721InvalidOwner",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC721InvalidReceiver",
"inputs": [
{
"name": "receiver",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC721InvalidSender",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC721NonexistentToken",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
]
}
]
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style,
clippy::empty_structs_with_brackets
)]
pub mod SimpleERC721 {
use super::*;
use alloy::sol_types as alloy_sol_types;
/// The creation / init bytecode of the contract.
///
/// ```text
///0x6080806040523461033457604081611061803803809161001f8285610576565b833981010312610334578051906001600160a01b03821690818303610334576020015160409283516100518582610576565b600c81526b53696d706c6545524337323160a01b60208201528451906100778683610576565b600682526553494d37323160d01b60208301528051906001600160401b0382116102a7575f5490600182811c9216801561056c575b60208310146104735781601f8493116104ff575b50602090601f831160011461049c575f92610491575b50508160011b915f199060031b1c1916175f555b8051906001600160401b0382116102a75760015490600182811c92168015610487575b60208310146104735781601f849311610405575b50602090601f831160011461039f575f92610394575b50508160011b915f199060031b1c1916176001555b835160209261015b8483610576565b5f82528415610381575f81815260028552869020546001600160a01b03169283151580610352575b5f87815260038752888120805460010190558381526002875288812080546001600160a01b0319168917905588519584918991907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a461033f573b6101f3575b8551610ac7908161059a8239f35b60a4838580979896948294630a85bd0160e11b84523360048501525f60248501526044840152608060648401528051918291826084860152018484015e5f838284010152601f801991011681010301815f885af15f91816102fb575b506102c357503d156102bb573d6001600160401b0381116102a757905190610280601f8201601f1916840183610576565b81523d5f8383013e5b805191826102a45783633250574960e11b5f5260045260245ffd5b01fd5b634e487b7160e01b5f52604160045260245ffd5b506060610289565b909291506001600160e01b03191663757a42ff60e11b016102e957505f808080806101e5565b633250574960e11b5f5260045260245ffd5b9091508381813d8311610338575b6103138183610576565b8101031261033457516001600160e01b03198116810361033457905f61024f565b5f80fd5b503d610309565b6339e3563760e11b5f525f60045260245ffd5b5f8381526004875288812080546001600160a01b03191690558581526003875288902080545f19019055610183565b633250574960e11b5f525f60045260245ffd5b015190505f80610137565b60015f9081528281209350601f198516905b8181106103ed57509084600195949392106103d5575b505050811b0160015561014c565b01515f1960f88460031b161c191690555f80806103c7565b929360206001819287860151815501950193016103b1565b60015f529091507fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f840160051c81019160208510610469575b90601f859493920160051c01905b81811061045b5750610121565b5f815584935060010161044e565b9091508190610440565b634e487b7160e01b5f52602260045260245ffd5b91607f169161010d565b015190505f806100d6565b5f8080528281209350601f198516905b8181106104e757509084600195949392106104cf575b505050811b015f556100ea565b01515f1960f88460031b161c191690555f80806104c2565b929360206001819287860151815501950193016104ac565b5f80529091507f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563601f840160051c81019160208510610562575b90601f859493920160051c01905b81811061055457506100c0565b5f8155849350600101610547565b9091508190610539565b91607f16916100ac565b601f909101601f19168101906001600160401b038211908210176102a75760405256fe6080806040526004361015610012575f80fd5b5f905f3560e01c90816301ffc9a7146106305750806306fdde0314610578578063081812fc1461053c578063095ea7b31461045257806323b872dd1461043b57806342842e0e146104125780636352211e146103e257806370a082311461039157806395d89b4114610289578063a22cb465146101ee578063b88d4fde14610164578063c87b56dd146101075763e985e9c5146100ad575f80fd5b346101045760403660031901126101045760406100c86106bf565b916100d16106d5565b9260018060a01b031681526005602052209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b80fd5b3461016057602036600319011261016057610123600435610a5d565b505f604051610133602082610725565b5261015c604051610145602082610725565b5f815260405191829160208352602083019061069b565b0390f35b5f80fd5b346101605760803660031901126101605761017d6106bf565b6101856106d5565b6064359167ffffffffffffffff83116101605736602384011215610160578260040135916101b28361075b565b926101c06040519485610725565b8084523660248287010111610160576020815f9260246101ec980183880137850101526044359161091d565b005b34610160576040366003190112610160576102076106bf565b60243590811515809203610160576001600160a01b031690811561027657335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b34610160575f366003190112610160576040515f6001548060011c90600181168015610387575b6020831081146103735782855290811561034f57506001146102f1575b61015c836102dd81850382610725565b60405191829160208352602083019061069b565b91905060015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6915f905b808210610335575090915081016020016102dd6102cd565b91926001816020925483858801015201910190929161031d565b60ff191660208086019190915291151560051b840190910191506102dd90506102cd565b634e487b7160e01b5f52602260045260245ffd5b91607f16916102b0565b34610160576020366003190112610160576001600160a01b036103b26106bf565b1680156103cf575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610160576020366003190112610160576020610400600435610a5d565b6040516001600160a01b039091168152f35b34610160576101ec610423366106eb565b9060405192610433602085610725565b5f845261091d565b34610160576101ec61044c366106eb565b91610777565b346101605760403660031901126101605761046b6106bf565b60243561047781610a5d565b33151580610529575b806104fc575b6104e95781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615610486565b506001600160a01b038116331415610480565b346101605760203660031901126101605760043561055981610a5d565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610160575f366003190112610160576040515f5f548060011c90600181168015610626575b6020831081146103735782855290811561034f57506001146105ca5761015c836102dd81850382610725565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061060c575090915081016020016102dd6102cd565b9192600181602092548385880101520191019092916105f4565b91607f169161059e565b34610160576020366003190112610160576004359063ffffffff60e01b8216809203610160576020916380ac58cd60e01b811490811561068a575b8115610679575b5015158152f35b6301ffc9a760e01b14905083610672565b635b5e139f60e01b8114915061066b565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361016057565b602435906001600160a01b038216820361016057565b6060906003190112610160576004356001600160a01b038116810361016057906024356001600160a01b0381168103610160579060443590565b90601f8019910116810190811067ffffffffffffffff82111761074757604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161074757601f01601f191660200190565b6001600160a01b039091169190821561090a575f828152600260205260409020546001600160a01b031692829033151580610875575b508461083c575b805f52600360205260405f2060018154019055815f52600260205260405f20816bffffffffffffffffffffffff60a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b031680830361082457505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b815f52600460205260405f206bffffffffffffffffffffffff60a01b8154169055845f52600360205260405f205f1981540190556107b4565b909150806108b9575b1561088b5782905f6107ad565b82846108a357637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b5033841480156108e8575b8061087e57505f838152600460205260409020546001600160a01b0316331461087e565b505f84815260056020908152604080832033845290915290205460ff166108c4565b633250574960e11b5f525f60045260245ffd5b929161092a818386610777565b813b610937575b50505050565b604051630a85bd0160e11b81523360048201526001600160a01b039485166024820152604481019190915260806064820152921691906020908290819061098290608483019061069b565b03815f865af15f9181610a18575b506109e557503d156109de573d6109a68161075b565b906109b46040519283610725565b81523d5f602083013e5b805190816109d95782633250574960e11b5f5260045260245ffd5b602001fd5b60606109be565b6001600160e01b03191663757a42ff60e11b01610a0657505f808080610931565b633250574960e11b5f5260045260245ffd5b9091506020813d602011610a55575b81610a3460209383610725565b8101031261016057516001600160e01b03198116810361016057905f610990565b3d9150610a27565b5f818152600260205260409020546001600160a01b0316908115610a7f575090565b637e27328960e01b5f5260045260245ffdfea26469706673582212203de2fafa8e30016bccb2823606e8831614293419c0ca0e3627eee3886c0011d964736f6c634300081e0033
/// ```
#[rustfmt::skip]
#[allow(clippy::all)]
pub static BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"`\x80\x80`@R4a\x034W`@\x81a\x10a\x808\x03\x80\x91a\0\x1F\x82\x85a\x05vV[\x839\x81\x01\x03\x12a\x034W\x80Q\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x90\x81\x83\x03a\x034W` \x01Q`@\x92\x83Qa\0Q\x85\x82a\x05vV[`\x0C\x81RkSimpleERC721`\xA0\x1B` \x82\x01R\x84Q\x90a\0w\x86\x83a\x05vV[`\x06\x82ReSIM721`\xD0\x1B` \x83\x01R\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11a\x02\xA7W_T\x90`\x01\x82\x81\x1C\x92\x16\x80\x15a\x05lW[` \x83\x10\x14a\x04sW\x81`\x1F\x84\x93\x11a\x04\xFFW[P` \x90`\x1F\x83\x11`\x01\x14a\x04\x9CW_\x92a\x04\x91W[PP\x81`\x01\x1B\x91_\x19\x90`\x03\x1B\x1C\x19\x16\x17_U[\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11a\x02\xA7W`\x01T\x90`\x01\x82\x81\x1C\x92\x16\x80\x15a\x04\x87W[` \x83\x10\x14a\x04sW\x81`\x1F\x84\x93\x11a\x04\x05W[P` \x90`\x1F\x83\x11`\x01\x14a\x03\x9FW_\x92a\x03\x94W[PP\x81`\x01\x1B\x91_\x19\x90`\x03\x1B\x1C\x19\x16\x17`\x01U[\x83Q` \x92a\x01[\x84\x83a\x05vV[_\x82R\x84\x15a\x03\x81W_\x81\x81R`\x02\x85R\x86\x90 T`\x01`\x01`\xA0\x1B\x03\x16\x92\x83\x15\x15\x80a\x03RW[_\x87\x81R`\x03\x87R\x88\x81 \x80T`\x01\x01\x90U\x83\x81R`\x02\x87R\x88\x81 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16\x89\x17\x90U\x88Q\x95\x84\x91\x89\x91\x90\x7F\xDD\xF2R\xAD\x1B\xE2\xC8\x9Bi\xC2\xB0h\xFC7\x8D\xAA\x95+\xA7\xF1c\xC4\xA1\x16(\xF5ZM\xF5#\xB3\xEF\x90\x80\xA4a\x03?W;a\x01\xF3W[\x85Qa\n\xC7\x90\x81a\x05\x9A\x829\xF3[`\xA4\x83\x85\x80\x97\x98\x96\x94\x82\x94c\n\x85\xBD\x01`\xE1\x1B\x84R3`\x04\x85\x01R_`$\x85\x01R`D\x84\x01R`\x80`d\x84\x01R\x80Q\x91\x82\x91\x82`\x84\x86\x01R\x01\x84\x84\x01^_\x83\x82\x84\x01\x01R`\x1F\x80\x19\x91\x01\x16\x81\x01\x03\x01\x81_\x88Z\xF1_\x91\x81a\x02\xFBW[Pa\x02\xC3WP=\x15a\x02\xBBW=`\x01`\x01`@\x1B\x03\x81\x11a\x02\xA7W\x90Q\x90a\x02\x80`\x1F\x82\x01`\x1F\x19\x16\x84\x01\x83a\x05vV[\x81R=_\x83\x83\x01>[\x80Q\x91\x82a\x02\xA4W\x83c2PWI`\xE1\x1B_R`\x04R`$_\xFD[\x01\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[P``a\x02\x89V[\x90\x92\x91P`\x01`\x01`\xE0\x1B\x03\x19\x16cuzB\xFF`\xE1\x1B\x01a\x02\xE9WP_\x80\x80\x80\x80a\x01\xE5V[c2PWI`\xE1\x1B_R`\x04R`$_\xFD[\x90\x91P\x83\x81\x81=\x83\x11a\x038W[a\x03\x13\x81\x83a\x05vV[\x81\x01\x03\x12a\x034WQ`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\x034W\x90_a\x02OV[_\x80\xFD[P=a\x03\tV[c9\xE3V7`\xE1\x1B_R_`\x04R`$_\xFD[_\x83\x81R`\x04\x87R\x88\x81 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16\x90U\x85\x81R`\x03\x87R\x88\x90 \x80T_\x19\x01\x90Ua\x01\x83V[c2PWI`\xE1\x1B_R_`\x04R`$_\xFD[\x01Q\x90P_\x80a\x017V[`\x01_\x90\x81R\x82\x81 \x93P`\x1F\x19\x85\x16\x90[\x81\x81\x10a\x03\xEDWP\x90\x84`\x01\x95\x94\x93\x92\x10a\x03\xD5W[PPP\x81\x1B\x01`\x01Ua\x01LV[\x01Q_\x19`\xF8\x84`\x03\x1B\x16\x1C\x19\x16\x90U_\x80\x80a\x03\xC7V[\x92\x93` `\x01\x81\x92\x87\x86\x01Q\x81U\x01\x95\x01\x93\x01a\x03\xB1V[`\x01_R\x90\x91P\x7F\xB1\x0E-Rv\x12\x07;&\xEE\xCD\xFDq~j2\x0C\xF4KJ\xFA\xC2\xB0s-\x9F\xCB\xE2\xB7\xFA\x0C\xF6`\x1F\x84\x01`\x05\x1C\x81\x01\x91` \x85\x10a\x04iW[\x90`\x1F\x85\x94\x93\x92\x01`\x05\x1C\x01\x90[\x81\x81\x10a\x04[WPa\x01!V[_\x81U\x84\x93P`\x01\x01a\x04NV[\x90\x91P\x81\x90a\x04@V[cNH{q`\xE0\x1B_R`\"`\x04R`$_\xFD[\x91`\x7F\x16\x91a\x01\rV[\x01Q\x90P_\x80a\0\xD6V[_\x80\x80R\x82\x81 \x93P`\x1F\x19\x85\x16\x90[\x81\x81\x10a\x04\xE7WP\x90\x84`\x01\x95\x94\x93\x92\x10a\x04\xCFW[PPP\x81\x1B\x01_Ua\0\xEAV[\x01Q_\x19`\xF8\x84`\x03\x1B\x16\x1C\x19\x16\x90U_\x80\x80a\x04\xC2V[\x92\x93` `\x01\x81\x92\x87\x86\x01Q\x81U\x01\x95\x01\x93\x01a\x04\xACV[_\x80R\x90\x91P\x7F)\r\xEC\xD9T\x8Bb\xA8\xD6\x03E\xA9\x888o\xC8K\xA6\xBC\x95H@\x08\xF66/\x93\x16\x0E\xF3\xE5c`\x1F\x84\x01`\x05\x1C\x81\x01\x91` \x85\x10a\x05bW[\x90`\x1F\x85\x94\x93\x92\x01`\x05\x1C\x01\x90[\x81\x81\x10a\x05TWPa\0\xC0V[_\x81U\x84\x93P`\x01\x01a\x05GV[\x90\x91P\x81\x90a\x059V[\x91`\x7F\x16\x91a\0\xACV[`\x1F\x90\x91\x01`\x1F\x19\x16\x81\x01\x90`\x01`\x01`@\x1B\x03\x82\x11\x90\x82\x10\x17a\x02\xA7W`@RV\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_\x90_5`\xE0\x1C\x90\x81c\x01\xFF\xC9\xA7\x14a\x060WP\x80c\x06\xFD\xDE\x03\x14a\x05xW\x80c\x08\x18\x12\xFC\x14a\x05<W\x80c\t^\xA7\xB3\x14a\x04RW\x80c#\xB8r\xDD\x14a\x04;W\x80cB\x84.\x0E\x14a\x04\x12W\x80ccR!\x1E\x14a\x03\xE2W\x80cp\xA0\x821\x14a\x03\x91W\x80c\x95\xD8\x9BA\x14a\x02\x89W\x80c\xA2,\xB4e\x14a\x01\xEEW\x80c\xB8\x8DO\xDE\x14a\x01dW\x80c\xC8{V\xDD\x14a\x01\x07Wc\xE9\x85\xE9\xC5\x14a\0\xADW_\x80\xFD[4a\x01\x04W`@6`\x03\x19\x01\x12a\x01\x04W`@a\0\xC8a\x06\xBFV[\x91a\0\xD1a\x06\xD5V[\x92`\x01\x80`\xA0\x1B\x03\x16\x81R`\x05` R \x90`\x01\x80`\xA0\x1B\x03\x16_R` R` `\xFF`@_ T\x16`@Q\x90\x15\x15\x81R\xF3[\x80\xFD[4a\x01`W` 6`\x03\x19\x01\x12a\x01`Wa\x01#`\x045a\n]V[P_`@Qa\x013` \x82a\x07%V[Ra\x01\\`@Qa\x01E` \x82a\x07%V[_\x81R`@Q\x91\x82\x91` \x83R` \x83\x01\x90a\x06\x9BV[\x03\x90\xF3[_\x80\xFD[4a\x01`W`\x806`\x03\x19\x01\x12a\x01`Wa\x01}a\x06\xBFV[a\x01\x85a\x06\xD5V[`d5\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x01`W6`#\x84\x01\x12\x15a\x01`W\x82`\x04\x015\x91a\x01\xB2\x83a\x07[V[\x92a\x01\xC0`@Q\x94\x85a\x07%V[\x80\x84R6`$\x82\x87\x01\x01\x11a\x01`W` \x81_\x92`$a\x01\xEC\x98\x01\x83\x88\x017\x85\x01\x01R`D5\x91a\t\x1DV[\0[4a\x01`W`@6`\x03\x19\x01\x12a\x01`Wa\x02\x07a\x06\xBFV[`$5\x90\x81\x15\x15\x80\x92\x03a\x01`W`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\x02vW3_R`\x05` R`@_ \x82_R` R`@_ `\xFF\x19\x81T\x16`\xFF\x83\x16\x17\x90U`@Q\x90\x81R\x7F\x170~\xAB9\xABa\x07\xE8\x89\x98E\xAD=Y\xBD\x96S\xF2\0\xF2 \x92\x04\x89\xCA+Y7il1` 3\x92\xA3\0[Pc\x0Ba\x17C`\xE3\x1B_R`\x04R`$_\xFD[4a\x01`W_6`\x03\x19\x01\x12a\x01`W`@Q_`\x01T\x80`\x01\x1C\x90`\x01\x81\x16\x80\x15a\x03\x87W[` \x83\x10\x81\x14a\x03sW\x82\x85R\x90\x81\x15a\x03OWP`\x01\x14a\x02\xF1W[a\x01\\\x83a\x02\xDD\x81\x85\x03\x82a\x07%V[`@Q\x91\x82\x91` \x83R` \x83\x01\x90a\x06\x9BV[\x91\x90P`\x01_R\x7F\xB1\x0E-Rv\x12\x07;&\xEE\xCD\xFDq~j2\x0C\xF4KJ\xFA\xC2\xB0s-\x9F\xCB\xE2\xB7\xFA\x0C\xF6\x91_\x90[\x80\x82\x10a\x035WP\x90\x91P\x81\x01` \x01a\x02\xDDa\x02\xCDV[\x91\x92`\x01\x81` \x92T\x83\x85\x88\x01\x01R\x01\x91\x01\x90\x92\x91a\x03\x1DV[`\xFF\x19\x16` \x80\x86\x01\x91\x90\x91R\x91\x15\x15`\x05\x1B\x84\x01\x90\x91\x01\x91Pa\x02\xDD\x90Pa\x02\xCDV[cNH{q`\xE0\x1B_R`\"`\x04R`$_\xFD[\x91`\x7F\x16\x91a\x02\xB0V[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W`\x01`\x01`\xA0\x1B\x03a\x03\xB2a\x06\xBFV[\x16\x80\x15a\x03\xCFW_R`\x03` R` `@_ T`@Q\x90\x81R\xF3[c\"q\x8A\xD9`\xE2\x1B_R_`\x04R`$_\xFD[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W` a\x04\0`\x045a\n]V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R\xF3[4a\x01`Wa\x01\xECa\x04#6a\x06\xEBV[\x90`@Q\x92a\x043` \x85a\x07%V[_\x84Ra\t\x1DV[4a\x01`Wa\x01\xECa\x04L6a\x06\xEBV[\x91a\x07wV[4a\x01`W`@6`\x03\x19\x01\x12a\x01`Wa\x04ka\x06\xBFV[`$5a\x04w\x81a\n]V[3\x15\x15\x80a\x05)W[\x80a\x04\xFCW[a\x04\xE9W\x81\x90`\x01`\x01`\xA0\x1B\x03\x84\x81\x16\x91\x16\x7F\x8C[\xE1\xE5\xEB\xEC}[\xD1OqB}\x1E\x84\xF3\xDD\x03\x14\xC0\xF7\xB2)\x1E[ \n\xC8\xC7\xC3\xB9%_\x80\xA4_\x90\x81R`\x04` R`@\x90 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16`\x01`\x01`\xA0\x1B\x03\x90\x92\x16\x91\x90\x91\x17\x90U\0[c\xA9\xFB\xF5\x1F`\xE0\x1B_R3`\x04R`$_\xFD[P`\x01`\x01`\xA0\x1B\x03\x81\x16_\x90\x81R`\x05` \x90\x81R`@\x80\x83 3\x84R\x90\x91R\x90 T`\xFF\x16\x15a\x04\x86V[P`\x01`\x01`\xA0\x1B\x03\x81\x163\x14\x15a\x04\x80V[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W`\x045a\x05Y\x81a\n]V[P_R`\x04` R` `\x01\x80`\xA0\x1B\x03`@_ T\x16`@Q\x90\x81R\xF3[4a\x01`W_6`\x03\x19\x01\x12a\x01`W`@Q__T\x80`\x01\x1C\x90`\x01\x81\x16\x80\x15a\x06&W[` \x83\x10\x81\x14a\x03sW\x82\x85R\x90\x81\x15a\x03OWP`\x01\x14a\x05\xCAWa\x01\\\x83a\x02\xDD\x81\x85\x03\x82a\x07%V[_\x80\x80R\x7F)\r\xEC\xD9T\x8Bb\xA8\xD6\x03E\xA9\x888o\xC8K\xA6\xBC\x95H@\x08\xF66/\x93\x16\x0E\xF3\xE5c\x93\x92P\x90[\x80\x82\x10a\x06\x0CWP\x90\x91P\x81\x01` \x01a\x02\xDDa\x02\xCDV[\x91\x92`\x01\x81` \x92T\x83\x85\x88\x01\x01R\x01\x91\x01\x90\x92\x91a\x05\xF4V[\x91`\x7F\x16\x91a\x05\x9EV[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W`\x045\x90c\xFF\xFF\xFF\xFF`\xE0\x1B\x82\x16\x80\x92\x03a\x01`W` \x91c\x80\xACX\xCD`\xE0\x1B\x81\x14\x90\x81\x15a\x06\x8AW[\x81\x15a\x06yW[P\x15\x15\x81R\xF3[c\x01\xFF\xC9\xA7`\xE0\x1B\x14\x90P\x83a\x06rV[c[^\x13\x9F`\xE0\x1B\x81\x14\x91Pa\x06kV[\x80Q\x80\x83R` \x92\x91\x81\x90\x84\x01\x84\x84\x01^_\x82\x82\x01\x84\x01R`\x1F\x01`\x1F\x19\x16\x01\x01\x90V[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\x01`WV[`$5\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\x01`WV[``\x90`\x03\x19\x01\x12a\x01`W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\x01`W\x90`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\x01`W\x90`D5\x90V[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x07GW`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x07GW`\x1F\x01`\x1F\x19\x16` \x01\x90V[`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x91\x90\x82\x15a\t\nW_\x82\x81R`\x02` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x16\x92\x82\x903\x15\x15\x80a\x08uW[P\x84a\x08<W[\x80_R`\x03` R`@_ `\x01\x81T\x01\x90U\x81_R`\x02` R`@_ \x81k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x82T\x16\x17\x90U\x84\x7F\xDD\xF2R\xAD\x1B\xE2\xC8\x9Bi\xC2\xB0h\xFC7\x8D\xAA\x95+\xA7\xF1c\xC4\xA1\x16(\xF5ZM\xF5#\xB3\xEF_\x80\xA4`\x01`\x01`\xA0\x1B\x03\x16\x80\x83\x03a\x08$WPPPV[cd(={`\xE0\x1B_R`\x04R`$R`DR`d_\xFD[\x81_R`\x04` R`@_ k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x81T\x16\x90U\x84_R`\x03` R`@_ _\x19\x81T\x01\x90Ua\x07\xB4V[\x90\x91P\x80a\x08\xB9W[\x15a\x08\x8BW\x82\x90_a\x07\xADV[\x82\x84a\x08\xA3Wc~'2\x89`\xE0\x1B_R`\x04R`$_\xFD[c\x17~\x80/`\xE0\x1B_R3`\x04R`$R`D_\xFD[P3\x84\x14\x80\x15a\x08\xE8W[\x80a\x08~WP_\x83\x81R`\x04` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x08~V[P_\x84\x81R`\x05` \x90\x81R`@\x80\x83 3\x84R\x90\x91R\x90 T`\xFF\x16a\x08\xC4V[c2PWI`\xE1\x1B_R_`\x04R`$_\xFD[\x92\x91a\t*\x81\x83\x86a\x07wV[\x81;a\t7W[PPPPV[`@Qc\n\x85\xBD\x01`\xE1\x1B\x81R3`\x04\x82\x01R`\x01`\x01`\xA0\x1B\x03\x94\x85\x16`$\x82\x01R`D\x81\x01\x91\x90\x91R`\x80`d\x82\x01R\x92\x16\x91\x90` \x90\x82\x90\x81\x90a\t\x82\x90`\x84\x83\x01\x90a\x06\x9BV[\x03\x81_\x86Z\xF1_\x91\x81a\n\x18W[Pa\t\xE5WP=\x15a\t\xDEW=a\t\xA6\x81a\x07[V[\x90a\t\xB4`@Q\x92\x83a\x07%V[\x81R=_` \x83\x01>[\x80Q\x90\x81a\t\xD9W\x82c2PWI`\xE1\x1B_R`\x04R`$_\xFD[` \x01\xFD[``a\t\xBEV[`\x01`\x01`\xE0\x1B\x03\x19\x16cuzB\xFF`\xE1\x1B\x01a\n\x06WP_\x80\x80\x80a\t1V[c2PWI`\xE1\x1B_R`\x04R`$_\xFD[\x90\x91P` \x81=` \x11a\nUW[\x81a\n4` \x93\x83a\x07%V[\x81\x01\x03\x12a\x01`WQ`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\x01`W\x90_a\t\x90V[=\x91Pa\n'V[_\x81\x81R`\x02` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\n\x7FWP\x90V[c~'2\x89`\xE0\x1B_R`\x04R`$_\xFD\xFE\xA2dipfsX\"\x12 =\xE2\xFA\xFA\x8E0\x01k\xCC\xB2\x826\x06\xE8\x83\x16\x14)4\x19\xC0\xCA\x0E6'\xEE\xE3\x88l\0\x11\xD9dsolcC\0\x08\x1E\x003",
);
/// The runtime bytecode of the contract, as deployed on the network.
///
/// ```text
///0x6080806040526004361015610012575f80fd5b5f905f3560e01c90816301ffc9a7146106305750806306fdde0314610578578063081812fc1461053c578063095ea7b31461045257806323b872dd1461043b57806342842e0e146104125780636352211e146103e257806370a082311461039157806395d89b4114610289578063a22cb465146101ee578063b88d4fde14610164578063c87b56dd146101075763e985e9c5146100ad575f80fd5b346101045760403660031901126101045760406100c86106bf565b916100d16106d5565b9260018060a01b031681526005602052209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b80fd5b3461016057602036600319011261016057610123600435610a5d565b505f604051610133602082610725565b5261015c604051610145602082610725565b5f815260405191829160208352602083019061069b565b0390f35b5f80fd5b346101605760803660031901126101605761017d6106bf565b6101856106d5565b6064359167ffffffffffffffff83116101605736602384011215610160578260040135916101b28361075b565b926101c06040519485610725565b8084523660248287010111610160576020815f9260246101ec980183880137850101526044359161091d565b005b34610160576040366003190112610160576102076106bf565b60243590811515809203610160576001600160a01b031690811561027657335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b34610160575f366003190112610160576040515f6001548060011c90600181168015610387575b6020831081146103735782855290811561034f57506001146102f1575b61015c836102dd81850382610725565b60405191829160208352602083019061069b565b91905060015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6915f905b808210610335575090915081016020016102dd6102cd565b91926001816020925483858801015201910190929161031d565b60ff191660208086019190915291151560051b840190910191506102dd90506102cd565b634e487b7160e01b5f52602260045260245ffd5b91607f16916102b0565b34610160576020366003190112610160576001600160a01b036103b26106bf565b1680156103cf575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610160576020366003190112610160576020610400600435610a5d565b6040516001600160a01b039091168152f35b34610160576101ec610423366106eb565b9060405192610433602085610725565b5f845261091d565b34610160576101ec61044c366106eb565b91610777565b346101605760403660031901126101605761046b6106bf565b60243561047781610a5d565b33151580610529575b806104fc575b6104e95781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615610486565b506001600160a01b038116331415610480565b346101605760203660031901126101605760043561055981610a5d565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610160575f366003190112610160576040515f5f548060011c90600181168015610626575b6020831081146103735782855290811561034f57506001146105ca5761015c836102dd81850382610725565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061060c575090915081016020016102dd6102cd565b9192600181602092548385880101520191019092916105f4565b91607f169161059e565b34610160576020366003190112610160576004359063ffffffff60e01b8216809203610160576020916380ac58cd60e01b811490811561068a575b8115610679575b5015158152f35b6301ffc9a760e01b14905083610672565b635b5e139f60e01b8114915061066b565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361016057565b602435906001600160a01b038216820361016057565b6060906003190112610160576004356001600160a01b038116810361016057906024356001600160a01b0381168103610160579060443590565b90601f8019910116810190811067ffffffffffffffff82111761074757604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161074757601f01601f191660200190565b6001600160a01b039091169190821561090a575f828152600260205260409020546001600160a01b031692829033151580610875575b508461083c575b805f52600360205260405f2060018154019055815f52600260205260405f20816bffffffffffffffffffffffff60a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b031680830361082457505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b815f52600460205260405f206bffffffffffffffffffffffff60a01b8154169055845f52600360205260405f205f1981540190556107b4565b909150806108b9575b1561088b5782905f6107ad565b82846108a357637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b5033841480156108e8575b8061087e57505f838152600460205260409020546001600160a01b0316331461087e565b505f84815260056020908152604080832033845290915290205460ff166108c4565b633250574960e11b5f525f60045260245ffd5b929161092a818386610777565b813b610937575b50505050565b604051630a85bd0160e11b81523360048201526001600160a01b039485166024820152604481019190915260806064820152921691906020908290819061098290608483019061069b565b03815f865af15f9181610a18575b506109e557503d156109de573d6109a68161075b565b906109b46040519283610725565b81523d5f602083013e5b805190816109d95782633250574960e11b5f5260045260245ffd5b602001fd5b60606109be565b6001600160e01b03191663757a42ff60e11b01610a0657505f808080610931565b633250574960e11b5f5260045260245ffd5b9091506020813d602011610a55575b81610a3460209383610725565b8101031261016057516001600160e01b03198116810361016057905f610990565b3d9150610a27565b5f818152600260205260409020546001600160a01b0316908115610a7f575090565b637e27328960e01b5f5260045260245ffdfea26469706673582212203de2fafa8e30016bccb2823606e8831614293419c0ca0e3627eee3886c0011d964736f6c634300081e0033
/// ```
#[rustfmt::skip]
#[allow(clippy::all)]
pub static DEPLOYED_BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_\x90_5`\xE0\x1C\x90\x81c\x01\xFF\xC9\xA7\x14a\x060WP\x80c\x06\xFD\xDE\x03\x14a\x05xW\x80c\x08\x18\x12\xFC\x14a\x05<W\x80c\t^\xA7\xB3\x14a\x04RW\x80c#\xB8r\xDD\x14a\x04;W\x80cB\x84.\x0E\x14a\x04\x12W\x80ccR!\x1E\x14a\x03\xE2W\x80cp\xA0\x821\x14a\x03\x91W\x80c\x95\xD8\x9BA\x14a\x02\x89W\x80c\xA2,\xB4e\x14a\x01\xEEW\x80c\xB8\x8DO\xDE\x14a\x01dW\x80c\xC8{V\xDD\x14a\x01\x07Wc\xE9\x85\xE9\xC5\x14a\0\xADW_\x80\xFD[4a\x01\x04W`@6`\x03\x19\x01\x12a\x01\x04W`@a\0\xC8a\x06\xBFV[\x91a\0\xD1a\x06\xD5V[\x92`\x01\x80`\xA0\x1B\x03\x16\x81R`\x05` R \x90`\x01\x80`\xA0\x1B\x03\x16_R` R` `\xFF`@_ T\x16`@Q\x90\x15\x15\x81R\xF3[\x80\xFD[4a\x01`W` 6`\x03\x19\x01\x12a\x01`Wa\x01#`\x045a\n]V[P_`@Qa\x013` \x82a\x07%V[Ra\x01\\`@Qa\x01E` \x82a\x07%V[_\x81R`@Q\x91\x82\x91` \x83R` \x83\x01\x90a\x06\x9BV[\x03\x90\xF3[_\x80\xFD[4a\x01`W`\x806`\x03\x19\x01\x12a\x01`Wa\x01}a\x06\xBFV[a\x01\x85a\x06\xD5V[`d5\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x01`W6`#\x84\x01\x12\x15a\x01`W\x82`\x04\x015\x91a\x01\xB2\x83a\x07[V[\x92a\x01\xC0`@Q\x94\x85a\x07%V[\x80\x84R6`$\x82\x87\x01\x01\x11a\x01`W` \x81_\x92`$a\x01\xEC\x98\x01\x83\x88\x017\x85\x01\x01R`D5\x91a\t\x1DV[\0[4a\x01`W`@6`\x03\x19\x01\x12a\x01`Wa\x02\x07a\x06\xBFV[`$5\x90\x81\x15\x15\x80\x92\x03a\x01`W`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\x02vW3_R`\x05` R`@_ \x82_R` R`@_ `\xFF\x19\x81T\x16`\xFF\x83\x16\x17\x90U`@Q\x90\x81R\x7F\x170~\xAB9\xABa\x07\xE8\x89\x98E\xAD=Y\xBD\x96S\xF2\0\xF2 \x92\x04\x89\xCA+Y7il1` 3\x92\xA3\0[Pc\x0Ba\x17C`\xE3\x1B_R`\x04R`$_\xFD[4a\x01`W_6`\x03\x19\x01\x12a\x01`W`@Q_`\x01T\x80`\x01\x1C\x90`\x01\x81\x16\x80\x15a\x03\x87W[` \x83\x10\x81\x14a\x03sW\x82\x85R\x90\x81\x15a\x03OWP`\x01\x14a\x02\xF1W[a\x01\\\x83a\x02\xDD\x81\x85\x03\x82a\x07%V[`@Q\x91\x82\x91` \x83R` \x83\x01\x90a\x06\x9BV[\x91\x90P`\x01_R\x7F\xB1\x0E-Rv\x12\x07;&\xEE\xCD\xFDq~j2\x0C\xF4KJ\xFA\xC2\xB0s-\x9F\xCB\xE2\xB7\xFA\x0C\xF6\x91_\x90[\x80\x82\x10a\x035WP\x90\x91P\x81\x01` \x01a\x02\xDDa\x02\xCDV[\x91\x92`\x01\x81` \x92T\x83\x85\x88\x01\x01R\x01\x91\x01\x90\x92\x91a\x03\x1DV[`\xFF\x19\x16` \x80\x86\x01\x91\x90\x91R\x91\x15\x15`\x05\x1B\x84\x01\x90\x91\x01\x91Pa\x02\xDD\x90Pa\x02\xCDV[cNH{q`\xE0\x1B_R`\"`\x04R`$_\xFD[\x91`\x7F\x16\x91a\x02\xB0V[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W`\x01`\x01`\xA0\x1B\x03a\x03\xB2a\x06\xBFV[\x16\x80\x15a\x03\xCFW_R`\x03` R` `@_ T`@Q\x90\x81R\xF3[c\"q\x8A\xD9`\xE2\x1B_R_`\x04R`$_\xFD[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W` a\x04\0`\x045a\n]V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R\xF3[4a\x01`Wa\x01\xECa\x04#6a\x06\xEBV[\x90`@Q\x92a\x043` \x85a\x07%V[_\x84Ra\t\x1DV[4a\x01`Wa\x01\xECa\x04L6a\x06\xEBV[\x91a\x07wV[4a\x01`W`@6`\x03\x19\x01\x12a\x01`Wa\x04ka\x06\xBFV[`$5a\x04w\x81a\n]V[3\x15\x15\x80a\x05)W[\x80a\x04\xFCW[a\x04\xE9W\x81\x90`\x01`\x01`\xA0\x1B\x03\x84\x81\x16\x91\x16\x7F\x8C[\xE1\xE5\xEB\xEC}[\xD1OqB}\x1E\x84\xF3\xDD\x03\x14\xC0\xF7\xB2)\x1E[ \n\xC8\xC7\xC3\xB9%_\x80\xA4_\x90\x81R`\x04` R`@\x90 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16`\x01`\x01`\xA0\x1B\x03\x90\x92\x16\x91\x90\x91\x17\x90U\0[c\xA9\xFB\xF5\x1F`\xE0\x1B_R3`\x04R`$_\xFD[P`\x01`\x01`\xA0\x1B\x03\x81\x16_\x90\x81R`\x05` \x90\x81R`@\x80\x83 3\x84R\x90\x91R\x90 T`\xFF\x16\x15a\x04\x86V[P`\x01`\x01`\xA0\x1B\x03\x81\x163\x14\x15a\x04\x80V[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W`\x045a\x05Y\x81a\n]V[P_R`\x04` R` `\x01\x80`\xA0\x1B\x03`@_ T\x16`@Q\x90\x81R\xF3[4a\x01`W_6`\x03\x19\x01\x12a\x01`W`@Q__T\x80`\x01\x1C\x90`\x01\x81\x16\x80\x15a\x06&W[` \x83\x10\x81\x14a\x03sW\x82\x85R\x90\x81\x15a\x03OWP`\x01\x14a\x05\xCAWa\x01\\\x83a\x02\xDD\x81\x85\x03\x82a\x07%V[_\x80\x80R\x7F)\r\xEC\xD9T\x8Bb\xA8\xD6\x03E\xA9\x888o\xC8K\xA6\xBC\x95H@\x08\xF66/\x93\x16\x0E\xF3\xE5c\x93\x92P\x90[\x80\x82\x10a\x06\x0CWP\x90\x91P\x81\x01` \x01a\x02\xDDa\x02\xCDV[\x91\x92`\x01\x81` \x92T\x83\x85\x88\x01\x01R\x01\x91\x01\x90\x92\x91a\x05\xF4V[\x91`\x7F\x16\x91a\x05\x9EV[4a\x01`W` 6`\x03\x19\x01\x12a\x01`W`\x045\x90c\xFF\xFF\xFF\xFF`\xE0\x1B\x82\x16\x80\x92\x03a\x01`W` \x91c\x80\xACX\xCD`\xE0\x1B\x81\x14\x90\x81\x15a\x06\x8AW[\x81\x15a\x06yW[P\x15\x15\x81R\xF3[c\x01\xFF\xC9\xA7`\xE0\x1B\x14\x90P\x83a\x06rV[c[^\x13\x9F`\xE0\x1B\x81\x14\x91Pa\x06kV[\x80Q\x80\x83R` \x92\x91\x81\x90\x84\x01\x84\x84\x01^_\x82\x82\x01\x84\x01R`\x1F\x01`\x1F\x19\x16\x01\x01\x90V[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\x01`WV[`$5\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\x01`WV[``\x90`\x03\x19\x01\x12a\x01`W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\x01`W\x90`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\x01`W\x90`D5\x90V[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x07GW`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x07GW`\x1F\x01`\x1F\x19\x16` \x01\x90V[`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x91\x90\x82\x15a\t\nW_\x82\x81R`\x02` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x16\x92\x82\x903\x15\x15\x80a\x08uW[P\x84a\x08<W[\x80_R`\x03` R`@_ `\x01\x81T\x01\x90U\x81_R`\x02` R`@_ \x81k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x82T\x16\x17\x90U\x84\x7F\xDD\xF2R\xAD\x1B\xE2\xC8\x9Bi\xC2\xB0h\xFC7\x8D\xAA\x95+\xA7\xF1c\xC4\xA1\x16(\xF5ZM\xF5#\xB3\xEF_\x80\xA4`\x01`\x01`\xA0\x1B\x03\x16\x80\x83\x03a\x08$WPPPV[cd(={`\xE0\x1B_R`\x04R`$R`DR`d_\xFD[\x81_R`\x04` R`@_ k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x81T\x16\x90U\x84_R`\x03` R`@_ _\x19\x81T\x01\x90Ua\x07\xB4V[\x90\x91P\x80a\x08\xB9W[\x15a\x08\x8BW\x82\x90_a\x07\xADV[\x82\x84a\x08\xA3Wc~'2\x89`\xE0\x1B_R`\x04R`$_\xFD[c\x17~\x80/`\xE0\x1B_R3`\x04R`$R`D_\xFD[P3\x84\x14\x80\x15a\x08\xE8W[\x80a\x08~WP_\x83\x81R`\x04` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x163\x14a\x08~V[P_\x84\x81R`\x05` \x90\x81R`@\x80\x83 3\x84R\x90\x91R\x90 T`\xFF\x16a\x08\xC4V[c2PWI`\xE1\x1B_R_`\x04R`$_\xFD[\x92\x91a\t*\x81\x83\x86a\x07wV[\x81;a\t7W[PPPPV[`@Qc\n\x85\xBD\x01`\xE1\x1B\x81R3`\x04\x82\x01R`\x01`\x01`\xA0\x1B\x03\x94\x85\x16`$\x82\x01R`D\x81\x01\x91\x90\x91R`\x80`d\x82\x01R\x92\x16\x91\x90` \x90\x82\x90\x81\x90a\t\x82\x90`\x84\x83\x01\x90a\x06\x9BV[\x03\x81_\x86Z\xF1_\x91\x81a\n\x18W[Pa\t\xE5WP=\x15a\t\xDEW=a\t\xA6\x81a\x07[V[\x90a\t\xB4`@Q\x92\x83a\x07%V[\x81R=_` \x83\x01>[\x80Q\x90\x81a\t\xD9W\x82c2PWI`\xE1\x1B_R`\x04R`$_\xFD[` \x01\xFD[``a\t\xBEV[`\x01`\x01`\xE0\x1B\x03\x19\x16cuzB\xFF`\xE1\x1B\x01a\n\x06WP_\x80\x80\x80a\t1V[c2PWI`\xE1\x1B_R`\x04R`$_\xFD[\x90\x91P` \x81=` \x11a\nUW[\x81a\n4` \x93\x83a\x07%V[\x81\x01\x03\x12a\x01`WQ`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\x01`W\x90_a\t\x90V[=\x91Pa\n'V[_\x81\x81R`\x02` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\n\x7FWP\x90V[c~'2\x89`\xE0\x1B_R`\x04R`$_\xFD\xFE\xA2dipfsX\"\x12 =\xE2\xFA\xFA\x8E0\x01k\xCC\xB2\x826\x06\xE8\x83\x16\x14)4\x19\xC0\xCA\x0E6'\xEE\xE3\x88l\0\x11\xD9dsolcC\0\x08\x1E\x003",
);
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721IncorrectOwner(address,uint256,address)` and selector `0x64283d7b`.
```solidity
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721IncorrectOwner {
#[allow(missing_docs)]
pub sender: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
alloy::sol_types::private::Address,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721IncorrectOwner> for UnderlyingRustTuple<'_> {
fn from(value: ERC721IncorrectOwner) -> Self {
(value.sender, value.tokenId, value.owner)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ERC721IncorrectOwner {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
sender: tuple.0,
tokenId: tuple.1,
owner: tuple.2,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721IncorrectOwner {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721IncorrectOwner(address,uint256,address)";
const SELECTOR: [u8; 4] = [100u8, 40u8, 61u8, 123u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.sender,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.owner,
),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721InsufficientApproval(address,uint256)` and selector `0x177e802f`.
```solidity
error ERC721InsufficientApproval(address operator, uint256 tokenId);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721InsufficientApproval {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721InsufficientApproval>
for UnderlyingRustTuple<'_> {
fn from(value: ERC721InsufficientApproval) -> Self {
(value.operator, value.tokenId)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for ERC721InsufficientApproval {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
operator: tuple.0,
tokenId: tuple.1,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721InsufficientApproval {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721InsufficientApproval(address,uint256)";
const SELECTOR: [u8; 4] = [23u8, 126u8, 128u8, 47u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721InvalidApprover(address)` and selector `0xa9fbf51f`.
```solidity
error ERC721InvalidApprover(address approver);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721InvalidApprover {
#[allow(missing_docs)]
pub approver: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721InvalidApprover> for UnderlyingRustTuple<'_> {
fn from(value: ERC721InvalidApprover) -> Self {
(value.approver,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ERC721InvalidApprover {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { approver: tuple.0 }
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721InvalidApprover {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721InvalidApprover(address)";
const SELECTOR: [u8; 4] = [169u8, 251u8, 245u8, 31u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.approver,
),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721InvalidOperator(address)` and selector `0x5b08ba18`.
```solidity
error ERC721InvalidOperator(address operator);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721InvalidOperator {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721InvalidOperator> for UnderlyingRustTuple<'_> {
fn from(value: ERC721InvalidOperator) -> Self {
(value.operator,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ERC721InvalidOperator {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { operator: tuple.0 }
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721InvalidOperator {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721InvalidOperator(address)";
const SELECTOR: [u8; 4] = [91u8, 8u8, 186u8, 24u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721InvalidOwner(address)` and selector `0x89c62b64`.
```solidity
error ERC721InvalidOwner(address owner);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721InvalidOwner {
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721InvalidOwner> for UnderlyingRustTuple<'_> {
fn from(value: ERC721InvalidOwner) -> Self {
(value.owner,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ERC721InvalidOwner {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { owner: tuple.0 }
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721InvalidOwner {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721InvalidOwner(address)";
const SELECTOR: [u8; 4] = [137u8, 198u8, 43u8, 100u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.owner,
),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721InvalidReceiver(address)` and selector `0x64a0ae92`.
```solidity
error ERC721InvalidReceiver(address receiver);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721InvalidReceiver {
#[allow(missing_docs)]
pub receiver: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721InvalidReceiver> for UnderlyingRustTuple<'_> {
fn from(value: ERC721InvalidReceiver) -> Self {
(value.receiver,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ERC721InvalidReceiver {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { receiver: tuple.0 }
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721InvalidReceiver {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721InvalidReceiver(address)";
const SELECTOR: [u8; 4] = [100u8, 160u8, 174u8, 146u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.receiver,
),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721InvalidSender(address)` and selector `0x73c6ac6e`.
```solidity
error ERC721InvalidSender(address sender);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721InvalidSender {
#[allow(missing_docs)]
pub sender: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721InvalidSender> for UnderlyingRustTuple<'_> {
fn from(value: ERC721InvalidSender) -> Self {
(value.sender,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ERC721InvalidSender {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { sender: tuple.0 }
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721InvalidSender {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721InvalidSender(address)";
const SELECTOR: [u8; 4] = [115u8, 198u8, 172u8, 110u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.sender,
),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `ERC721NonexistentToken(uint256)` and selector `0x7e273289`.
```solidity
error ERC721NonexistentToken(uint256 tokenId);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ERC721NonexistentToken {
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Uint<256>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ERC721NonexistentToken> for UnderlyingRustTuple<'_> {
fn from(value: ERC721NonexistentToken) -> Self {
(value.tokenId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ERC721NonexistentToken {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { tokenId: tuple.0 }
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for ERC721NonexistentToken {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ERC721NonexistentToken(uint256)";
const SELECTOR: [u8; 4] = [126u8, 39u8, 50u8, 137u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
<Self::Parameters<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Self::new)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Event with signature `Approval(address,address,uint256)` and selector `0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925`.
```solidity
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct Approval {
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub approved: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[automatically_derived]
impl alloy_sol_types::SolEvent for Approval {
type DataTuple<'a> = ();
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (
alloy_sol_types::sol_data::FixedBytes<32>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
const SIGNATURE: &'static str = "Approval(address,address,uint256)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
140u8, 91u8, 225u8, 229u8, 235u8, 236u8, 125u8, 91u8, 209u8, 79u8, 113u8,
66u8, 125u8, 30u8, 132u8, 243u8, 221u8, 3u8, 20u8, 192u8, 247u8, 178u8,
41u8, 30u8, 91u8, 32u8, 10u8, 200u8, 199u8, 195u8, 185u8, 37u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self {
owner: topics.1,
approved: topics.2,
tokenId: topics.3,
}
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
()
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(
Self::SIGNATURE_HASH.into(),
self.owner.clone(),
self.approved.clone(),
self.tokenId.clone(),
)
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
out[1usize] = <alloy::sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.owner,
);
out[2usize] = <alloy::sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.approved,
);
out[3usize] = <alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::encode_topic(&self.tokenId);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for Approval {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&Approval> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &Approval) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Event with signature `ApprovalForAll(address,address,bool)` and selector `0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31`.
```solidity
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct ApprovalForAll {
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub approved: bool,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[automatically_derived]
impl alloy_sol_types::SolEvent for ApprovalForAll {
type DataTuple<'a> = (alloy::sol_types::sol_data::Bool,);
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (
alloy_sol_types::sol_data::FixedBytes<32>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
);
const SIGNATURE: &'static str = "ApprovalForAll(address,address,bool)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
23u8, 48u8, 126u8, 171u8, 57u8, 171u8, 97u8, 7u8, 232u8, 137u8, 152u8,
69u8, 173u8, 61u8, 89u8, 189u8, 150u8, 83u8, 242u8, 0u8, 242u8, 32u8,
146u8, 4u8, 137u8, 202u8, 43u8, 89u8, 55u8, 105u8, 108u8, 49u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self {
owner: topics.1,
operator: topics.2,
approved: data.0,
}
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.approved,
),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(Self::SIGNATURE_HASH.into(), self.owner.clone(), self.operator.clone())
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
out[1usize] = <alloy::sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.owner,
);
out[2usize] = <alloy::sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.operator,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for ApprovalForAll {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&ApprovalForAll> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &ApprovalForAll) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Event with signature `Transfer(address,address,uint256)` and selector `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`.
```solidity
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct Transfer {
#[allow(missing_docs)]
pub from: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub to: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[automatically_derived]
impl alloy_sol_types::SolEvent for Transfer {
type DataTuple<'a> = ();
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (
alloy_sol_types::sol_data::FixedBytes<32>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
const SIGNATURE: &'static str = "Transfer(address,address,uint256)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
221u8, 242u8, 82u8, 173u8, 27u8, 226u8, 200u8, 155u8, 105u8, 194u8,
176u8, 104u8, 252u8, 55u8, 141u8, 170u8, 149u8, 43u8, 167u8, 241u8, 99u8,
196u8, 161u8, 22u8, 40u8, 245u8, 90u8, 77u8, 245u8, 35u8, 179u8, 239u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self {
from: topics.1,
to: topics.2,
tokenId: topics.3,
}
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
()
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(
Self::SIGNATURE_HASH.into(),
self.from.clone(),
self.to.clone(),
self.tokenId.clone(),
)
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
out[1usize] = <alloy::sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.from,
);
out[2usize] = <alloy::sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.to,
);
out[3usize] = <alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::encode_topic(&self.tokenId);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for Transfer {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&Transfer> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &Transfer) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
/**Constructor`.
```solidity
constructor(address minter, uint256 tokenId);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct constructorCall {
#[allow(missing_docs)]
pub minter: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<constructorCall> for UnderlyingRustTuple<'_> {
fn from(value: constructorCall) -> Self {
(value.minter, value.tokenId)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for constructorCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
minter: tuple.0,
tokenId: tuple.1,
}
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolConstructor for constructorCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.minter,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `approve(address,uint256)` and selector `0x095ea7b3`.
```solidity
function approve(address to, uint256 tokenId) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct approveCall {
#[allow(missing_docs)]
pub to: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
///Container type for the return parameters of the [`approve(address,uint256)`](approveCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct approveReturn {}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<approveCall> for UnderlyingRustTuple<'_> {
fn from(value: approveCall) -> Self {
(value.to, value.tokenId)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for approveCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
to: tuple.0,
tokenId: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<approveReturn> for UnderlyingRustTuple<'_> {
fn from(value: approveReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for approveReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl approveReturn {
fn _tokenize(
&self,
) -> <approveCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for approveCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = approveReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "approve(address,uint256)";
const SELECTOR: [u8; 4] = [9u8, 94u8, 167u8, 179u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.to,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
approveReturn::_tokenize(ret)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(Into::into)
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Into::into)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `balanceOf(address)` and selector `0x70a08231`.
```solidity
function balanceOf(address owner) external view returns (uint256);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct balanceOfCall {
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`balanceOf(address)`](balanceOfCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct balanceOfReturn {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::primitives::aliases::U256,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<balanceOfCall> for UnderlyingRustTuple<'_> {
fn from(value: balanceOfCall) -> Self {
(value.owner,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for balanceOfCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { owner: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Uint<256>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<balanceOfReturn> for UnderlyingRustTuple<'_> {
fn from(value: balanceOfReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for balanceOfReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for balanceOfCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Address,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::primitives::aliases::U256;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Uint<256>,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "balanceOf(address)";
const SELECTOR: [u8; 4] = [112u8, 160u8, 130u8, 49u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.owner,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(ret),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: balanceOfReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: balanceOfReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `getApproved(uint256)` and selector `0x081812fc`.
```solidity
function getApproved(uint256 tokenId) external view returns (address);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getApprovedCall {
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`getApproved(uint256)`](getApprovedCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getApprovedReturn {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Uint<256>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<getApprovedCall> for UnderlyingRustTuple<'_> {
fn from(value: getApprovedCall) -> Self {
(value.tokenId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getApprovedCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { tokenId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<getApprovedReturn> for UnderlyingRustTuple<'_> {
fn from(value: getApprovedReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getApprovedReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getApprovedCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<256>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::Address;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Address,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getApproved(uint256)";
const SELECTOR: [u8; 4] = [8u8, 24u8, 18u8, 252u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: getApprovedReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: getApprovedReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `isApprovedForAll(address,address)` and selector `0xe985e9c5`.
```solidity
function isApprovedForAll(address owner, address operator) external view returns (bool);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isApprovedForAllCall {
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`isApprovedForAll(address,address)`](isApprovedForAllCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isApprovedForAllReturn {
#[allow(missing_docs)]
pub _0: bool,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::Address,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<isApprovedForAllCall>
for UnderlyingRustTuple<'_> {
fn from(value: isApprovedForAllCall) -> Self {
(value.owner, value.operator)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isApprovedForAllCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
owner: tuple.0,
operator: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Bool,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<isApprovedForAllReturn>
for UnderlyingRustTuple<'_> {
fn from(value: isApprovedForAllReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isApprovedForAllReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for isApprovedForAllCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = bool;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Bool,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "isApprovedForAll(address,address)";
const SELECTOR: [u8; 4] = [233u8, 133u8, 233u8, 197u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.owner,
),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: isApprovedForAllReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: isApprovedForAllReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `name()` and selector `0x06fdde03`.
```solidity
function name() external view returns (string memory);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct nameCall;
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`name()`](nameCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct nameReturn {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::String,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<nameCall> for UnderlyingRustTuple<'_> {
fn from(value: nameCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for nameCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::String,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::String,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<nameReturn> for UnderlyingRustTuple<'_> {
fn from(value: nameReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for nameReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for nameCall {
type Parameters<'a> = ();
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::String;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::String,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "name()";
const SELECTOR: [u8; 4] = [6u8, 253u8, 222u8, 3u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
()
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::String as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: nameReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: nameReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `ownerOf(uint256)` and selector `0x6352211e`.
```solidity
function ownerOf(uint256 tokenId) external view returns (address);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ownerOfCall {
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`ownerOf(uint256)`](ownerOfCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct ownerOfReturn {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Uint<256>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ownerOfCall> for UnderlyingRustTuple<'_> {
fn from(value: ownerOfCall) -> Self {
(value.tokenId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ownerOfCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { tokenId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<ownerOfReturn> for UnderlyingRustTuple<'_> {
fn from(value: ownerOfReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ownerOfReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for ownerOfCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<256>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::Address;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Address,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "ownerOf(uint256)";
const SELECTOR: [u8; 4] = [99u8, 82u8, 33u8, 30u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: ownerOfReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: ownerOfReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `safeTransferFrom(address,address,uint256)` and selector `0x42842e0e`.
```solidity
function safeTransferFrom(address from, address to, uint256 tokenId) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct safeTransferFrom_0Call {
#[allow(missing_docs)]
pub from: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub to: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
///Container type for the return parameters of the [`safeTransferFrom(address,address,uint256)`](safeTransferFrom_0Call) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct safeTransferFrom_0Return {}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<safeTransferFrom_0Call>
for UnderlyingRustTuple<'_> {
fn from(value: safeTransferFrom_0Call) -> Self {
(value.from, value.to, value.tokenId)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for safeTransferFrom_0Call {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
from: tuple.0,
to: tuple.1,
tokenId: tuple.2,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<safeTransferFrom_0Return>
for UnderlyingRustTuple<'_> {
fn from(value: safeTransferFrom_0Return) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for safeTransferFrom_0Return {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl safeTransferFrom_0Return {
fn _tokenize(
&self,
) -> <safeTransferFrom_0Call as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for safeTransferFrom_0Call {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = safeTransferFrom_0Return;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "safeTransferFrom(address,address,uint256)";
const SELECTOR: [u8; 4] = [66u8, 132u8, 46u8, 14u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.from,
),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.to,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
safeTransferFrom_0Return::_tokenize(ret)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(Into::into)
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Into::into)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `safeTransferFrom(address,address,uint256,bytes)` and selector `0xb88d4fde`.
```solidity
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct safeTransferFrom_1Call {
#[allow(missing_docs)]
pub from: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub to: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub data: alloy::sol_types::private::Bytes,
}
///Container type for the return parameters of the [`safeTransferFrom(address,address,uint256,bytes)`](safeTransferFrom_1Call) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct safeTransferFrom_1Return {}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::Bytes,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
alloy::sol_types::private::Bytes,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<safeTransferFrom_1Call>
for UnderlyingRustTuple<'_> {
fn from(value: safeTransferFrom_1Call) -> Self {
(value.from, value.to, value.tokenId, value.data)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for safeTransferFrom_1Call {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
from: tuple.0,
to: tuple.1,
tokenId: tuple.2,
data: tuple.3,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<safeTransferFrom_1Return>
for UnderlyingRustTuple<'_> {
fn from(value: safeTransferFrom_1Return) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for safeTransferFrom_1Return {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl safeTransferFrom_1Return {
fn _tokenize(
&self,
) -> <safeTransferFrom_1Call as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for safeTransferFrom_1Call {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::Bytes,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = safeTransferFrom_1Return;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "safeTransferFrom(address,address,uint256,bytes)";
const SELECTOR: [u8; 4] = [184u8, 141u8, 79u8, 222u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.from,
),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.to,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.data,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
safeTransferFrom_1Return::_tokenize(ret)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(Into::into)
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Into::into)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `setApprovalForAll(address,bool)` and selector `0xa22cb465`.
```solidity
function setApprovalForAll(address operator, bool approved) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct setApprovalForAllCall {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub approved: bool,
}
///Container type for the return parameters of the [`setApprovalForAll(address,bool)`](setApprovalForAllCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct setApprovalForAllReturn {}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Bool,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address, bool);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<setApprovalForAllCall>
for UnderlyingRustTuple<'_> {
fn from(value: setApprovalForAllCall) -> Self {
(value.operator, value.approved)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for setApprovalForAllCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
operator: tuple.0,
approved: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<setApprovalForAllReturn>
for UnderlyingRustTuple<'_> {
fn from(value: setApprovalForAllReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for setApprovalForAllReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl setApprovalForAllReturn {
fn _tokenize(
&self,
) -> <setApprovalForAllCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for setApprovalForAllCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Bool,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = setApprovalForAllReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "setApprovalForAll(address,bool)";
const SELECTOR: [u8; 4] = [162u8, 44u8, 180u8, 101u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.approved,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
setApprovalForAllReturn::_tokenize(ret)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(Into::into)
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Into::into)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7`.
```solidity
function supportsInterface(bytes4 interfaceId) external view returns (bool);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct supportsInterfaceCall {
#[allow(missing_docs)]
pub interfaceId: alloy::sol_types::private::FixedBytes<4>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`supportsInterface(bytes4)`](supportsInterfaceCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct supportsInterfaceReturn {
#[allow(missing_docs)]
pub _0: bool,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::FixedBytes<4>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::FixedBytes<4>,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<supportsInterfaceCall>
for UnderlyingRustTuple<'_> {
fn from(value: supportsInterfaceCall) -> Self {
(value.interfaceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for supportsInterfaceCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { interfaceId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Bool,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<supportsInterfaceReturn>
for UnderlyingRustTuple<'_> {
fn from(value: supportsInterfaceReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for supportsInterfaceReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for supportsInterfaceCall {
type Parameters<'a> = (alloy::sol_types::sol_data::FixedBytes<4>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = bool;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Bool,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "supportsInterface(bytes4)";
const SELECTOR: [u8; 4] = [1u8, 255u8, 201u8, 167u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::FixedBytes<
4,
> as alloy_sol_types::SolType>::tokenize(&self.interfaceId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: supportsInterfaceReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: supportsInterfaceReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `symbol()` and selector `0x95d89b41`.
```solidity
function symbol() external view returns (string memory);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct symbolCall;
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`symbol()`](symbolCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct symbolReturn {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::String,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<symbolCall> for UnderlyingRustTuple<'_> {
fn from(value: symbolCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for symbolCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::String,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::String,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<symbolReturn> for UnderlyingRustTuple<'_> {
fn from(value: symbolReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for symbolReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for symbolCall {
type Parameters<'a> = ();
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::String;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::String,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "symbol()";
const SELECTOR: [u8; 4] = [149u8, 216u8, 155u8, 65u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
()
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::String as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: symbolReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: symbolReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `tokenURI(uint256)` and selector `0xc87b56dd`.
```solidity
function tokenURI(uint256 tokenId) external view returns (string memory);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct tokenURICall {
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`tokenURI(uint256)`](tokenURICall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct tokenURIReturn {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::String,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Uint<256>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<tokenURICall> for UnderlyingRustTuple<'_> {
fn from(value: tokenURICall) -> Self {
(value.tokenId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for tokenURICall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { tokenId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::String,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::String,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<tokenURIReturn> for UnderlyingRustTuple<'_> {
fn from(value: tokenURIReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for tokenURIReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for tokenURICall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<256>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::String;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::String,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "tokenURI(uint256)";
const SELECTOR: [u8; 4] = [200u8, 123u8, 86u8, 221u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::String as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: tokenURIReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: tokenURIReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `transferFrom(address,address,uint256)` and selector `0x23b872dd`.
```solidity
function transferFrom(address from, address to, uint256 tokenId) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct transferFromCall {
#[allow(missing_docs)]
pub from: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub to: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
}
///Container type for the return parameters of the [`transferFrom(address,address,uint256)`](transferFromCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct transferFromReturn {}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<transferFromCall> for UnderlyingRustTuple<'_> {
fn from(value: transferFromCall) -> Self {
(value.from, value.to, value.tokenId)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for transferFromCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
from: tuple.0,
to: tuple.1,
tokenId: tuple.2,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<transferFromReturn> for UnderlyingRustTuple<'_> {
fn from(value: transferFromReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for transferFromReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl transferFromReturn {
fn _tokenize(
&self,
) -> <transferFromCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for transferFromCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = transferFromReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "transferFrom(address,address,uint256)";
const SELECTOR: [u8; 4] = [35u8, 184u8, 114u8, 221u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.from,
),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.to,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
transferFromReturn::_tokenize(ret)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(Into::into)
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Into::into)
}
}
};
///Container for all the [`SimpleERC721`](self) function calls.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive()]
pub enum SimpleERC721Calls {
#[allow(missing_docs)]
approve(approveCall),
#[allow(missing_docs)]
balanceOf(balanceOfCall),
#[allow(missing_docs)]
getApproved(getApprovedCall),
#[allow(missing_docs)]
isApprovedForAll(isApprovedForAllCall),
#[allow(missing_docs)]
name(nameCall),
#[allow(missing_docs)]
ownerOf(ownerOfCall),
#[allow(missing_docs)]
safeTransferFrom_0(safeTransferFrom_0Call),
#[allow(missing_docs)]
safeTransferFrom_1(safeTransferFrom_1Call),
#[allow(missing_docs)]
setApprovalForAll(setApprovalForAllCall),
#[allow(missing_docs)]
supportsInterface(supportsInterfaceCall),
#[allow(missing_docs)]
symbol(symbolCall),
#[allow(missing_docs)]
tokenURI(tokenURICall),
#[allow(missing_docs)]
transferFrom(transferFromCall),
}
impl SimpleERC721Calls {
/// All the selectors of this enum.
///
/// Note that the selectors might not be in the same order as the variants.
/// No guarantees are made about the order of the selectors.
///
/// Prefer using `SolInterface` methods instead.
pub const SELECTORS: &'static [[u8; 4usize]] = &[
[1u8, 255u8, 201u8, 167u8],
[6u8, 253u8, 222u8, 3u8],
[8u8, 24u8, 18u8, 252u8],
[9u8, 94u8, 167u8, 179u8],
[35u8, 184u8, 114u8, 221u8],
[66u8, 132u8, 46u8, 14u8],
[99u8, 82u8, 33u8, 30u8],
[112u8, 160u8, 130u8, 49u8],
[149u8, 216u8, 155u8, 65u8],
[162u8, 44u8, 180u8, 101u8],
[184u8, 141u8, 79u8, 222u8],
[200u8, 123u8, 86u8, 221u8],
[233u8, 133u8, 233u8, 197u8],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(supportsInterface),
::core::stringify!(name),
::core::stringify!(getApproved),
::core::stringify!(approve),
::core::stringify!(transferFrom),
::core::stringify!(safeTransferFrom_0),
::core::stringify!(ownerOf),
::core::stringify!(balanceOf),
::core::stringify!(symbol),
::core::stringify!(setApprovalForAll),
::core::stringify!(safeTransferFrom_1),
::core::stringify!(tokenURI),
::core::stringify!(isApprovedForAll),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<supportsInterfaceCall as alloy_sol_types::SolCall>::SIGNATURE,
<nameCall as alloy_sol_types::SolCall>::SIGNATURE,
<getApprovedCall as alloy_sol_types::SolCall>::SIGNATURE,
<approveCall as alloy_sol_types::SolCall>::SIGNATURE,
<transferFromCall as alloy_sol_types::SolCall>::SIGNATURE,
<safeTransferFrom_0Call as alloy_sol_types::SolCall>::SIGNATURE,
<ownerOfCall as alloy_sol_types::SolCall>::SIGNATURE,
<balanceOfCall as alloy_sol_types::SolCall>::SIGNATURE,
<symbolCall as alloy_sol_types::SolCall>::SIGNATURE,
<setApprovalForAllCall as alloy_sol_types::SolCall>::SIGNATURE,
<safeTransferFrom_1Call as alloy_sol_types::SolCall>::SIGNATURE,
<tokenURICall as alloy_sol_types::SolCall>::SIGNATURE,
<isApprovedForAllCall as alloy_sol_types::SolCall>::SIGNATURE,
];
/// Returns the signature for the given selector, if known.
#[inline]
pub fn signature_by_selector(
selector: [u8; 4usize],
) -> ::core::option::Option<&'static str> {
match Self::SELECTORS.binary_search(&selector) {
::core::result::Result::Ok(idx) => {
::core::option::Option::Some(Self::SIGNATURES[idx])
}
::core::result::Result::Err(_) => ::core::option::Option::None,
}
}
/// Returns the enum variant name for the given selector, if known.
#[inline]
pub fn name_by_selector(
selector: [u8; 4usize],
) -> ::core::option::Option<&'static str> {
let sig = Self::signature_by_selector(selector)?;
sig.split_once('(').map(|(name, _)| name)
}
}
#[automatically_derived]
impl alloy_sol_types::SolInterface for SimpleERC721Calls {
const NAME: &'static str = "SimpleERC721Calls";
const MIN_DATA_LENGTH: usize = 0usize;
const COUNT: usize = 13usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::approve(_) => <approveCall as alloy_sol_types::SolCall>::SELECTOR,
Self::balanceOf(_) => {
<balanceOfCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getApproved(_) => {
<getApprovedCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::isApprovedForAll(_) => {
<isApprovedForAllCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::name(_) => <nameCall as alloy_sol_types::SolCall>::SELECTOR,
Self::ownerOf(_) => <ownerOfCall as alloy_sol_types::SolCall>::SELECTOR,
Self::safeTransferFrom_0(_) => {
<safeTransferFrom_0Call as alloy_sol_types::SolCall>::SELECTOR
}
Self::safeTransferFrom_1(_) => {
<safeTransferFrom_1Call as alloy_sol_types::SolCall>::SELECTOR
}
Self::setApprovalForAll(_) => {
<setApprovalForAllCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::supportsInterface(_) => {
<supportsInterfaceCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::symbol(_) => <symbolCall as alloy_sol_types::SolCall>::SELECTOR,
Self::tokenURI(_) => <tokenURICall as alloy_sol_types::SolCall>::SELECTOR,
Self::transferFrom(_) => {
<transferFromCall as alloy_sol_types::SolCall>::SELECTOR
}
}
}
#[inline]
fn selector_at(i: usize) -> ::core::option::Option<[u8; 4]> {
Self::SELECTORS.get(i).copied()
}
#[inline]
fn valid_selector(selector: [u8; 4]) -> bool {
Self::SELECTORS.binary_search(&selector).is_ok()
}
#[inline]
#[allow(non_snake_case)]
fn abi_decode_raw(
selector: [u8; 4],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
static DECODE_SHIMS: &[fn(
&[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls>] = &[
{
fn supportsInterface(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(SimpleERC721Calls::supportsInterface)
}
supportsInterface
},
{
fn name(data: &[u8]) -> alloy_sol_types::Result<SimpleERC721Calls> {
<nameCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(SimpleERC721Calls::name)
}
name
},
{
fn getApproved(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<getApprovedCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(SimpleERC721Calls::getApproved)
}
getApproved
},
{
fn approve(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<approveCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(SimpleERC721Calls::approve)
}
approve
},
{
fn transferFrom(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<transferFromCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(SimpleERC721Calls::transferFrom)
}
transferFrom
},
{
fn safeTransferFrom_0(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<safeTransferFrom_0Call as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(SimpleERC721Calls::safeTransferFrom_0)
}
safeTransferFrom_0
},
{
fn ownerOf(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<ownerOfCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(SimpleERC721Calls::ownerOf)
}
ownerOf
},
{
fn balanceOf(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<balanceOfCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(SimpleERC721Calls::balanceOf)
}
balanceOf
},
{
fn symbol(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<symbolCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(SimpleERC721Calls::symbol)
}
symbol
},
{
fn setApprovalForAll(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<setApprovalForAllCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(SimpleERC721Calls::setApprovalForAll)
}
setApprovalForAll
},
{
fn safeTransferFrom_1(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<safeTransferFrom_1Call as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(SimpleERC721Calls::safeTransferFrom_1)
}
safeTransferFrom_1
},
{
fn tokenURI(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<tokenURICall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(SimpleERC721Calls::tokenURI)
}
tokenURI
},
{
fn isApprovedForAll(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<isApprovedForAllCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(SimpleERC721Calls::isApprovedForAll)
}
isApprovedForAll
},
];
let Ok(idx) = Self::SELECTORS.binary_search(&selector) else {
return Err(
alloy_sol_types::Error::unknown_selector(
<Self as alloy_sol_types::SolInterface>::NAME,
selector,
),
);
};
DECODE_SHIMS[idx](data)
}
#[inline]
#[allow(non_snake_case)]
fn abi_decode_raw_validate(
selector: [u8; 4],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
static DECODE_VALIDATE_SHIMS: &[fn(
&[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls>] = &[
{
fn supportsInterface(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::supportsInterface)
}
supportsInterface
},
{
fn name(data: &[u8]) -> alloy_sol_types::Result<SimpleERC721Calls> {
<nameCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::name)
}
name
},
{
fn getApproved(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<getApprovedCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::getApproved)
}
getApproved
},
{
fn approve(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<approveCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::approve)
}
approve
},
{
fn transferFrom(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<transferFromCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::transferFrom)
}
transferFrom
},
{
fn safeTransferFrom_0(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<safeTransferFrom_0Call as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::safeTransferFrom_0)
}
safeTransferFrom_0
},
{
fn ownerOf(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<ownerOfCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::ownerOf)
}
ownerOf
},
{
fn balanceOf(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<balanceOfCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::balanceOf)
}
balanceOf
},
{
fn symbol(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<symbolCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::symbol)
}
symbol
},
{
fn setApprovalForAll(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<setApprovalForAllCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::setApprovalForAll)
}
setApprovalForAll
},
{
fn safeTransferFrom_1(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<safeTransferFrom_1Call as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::safeTransferFrom_1)
}
safeTransferFrom_1
},
{
fn tokenURI(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<tokenURICall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::tokenURI)
}
tokenURI
},
{
fn isApprovedForAll(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Calls> {
<isApprovedForAllCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Calls::isApprovedForAll)
}
isApprovedForAll
},
];
let Ok(idx) = Self::SELECTORS.binary_search(&selector) else {
return Err(
alloy_sol_types::Error::unknown_selector(
<Self as alloy_sol_types::SolInterface>::NAME,
selector,
),
);
};
DECODE_VALIDATE_SHIMS[idx](data)
}
#[inline]
fn abi_encoded_size(&self) -> usize {
match self {
Self::approve(inner) => {
<approveCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::balanceOf(inner) => {
<balanceOfCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::getApproved(inner) => {
<getApprovedCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::isApprovedForAll(inner) => {
<isApprovedForAllCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::name(inner) => {
<nameCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::ownerOf(inner) => {
<ownerOfCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::safeTransferFrom_0(inner) => {
<safeTransferFrom_0Call as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::safeTransferFrom_1(inner) => {
<safeTransferFrom_1Call as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::setApprovalForAll(inner) => {
<setApprovalForAllCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::supportsInterface(inner) => {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::symbol(inner) => {
<symbolCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::tokenURI(inner) => {
<tokenURICall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::transferFrom(inner) => {
<transferFromCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
}
}
#[inline]
fn abi_encode_raw(&self, out: &mut alloy_sol_types::private::Vec<u8>) {
match self {
Self::approve(inner) => {
<approveCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::balanceOf(inner) => {
<balanceOfCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getApproved(inner) => {
<getApprovedCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::isApprovedForAll(inner) => {
<isApprovedForAllCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::name(inner) => {
<nameCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::ownerOf(inner) => {
<ownerOfCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::safeTransferFrom_0(inner) => {
<safeTransferFrom_0Call as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::safeTransferFrom_1(inner) => {
<safeTransferFrom_1Call as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::setApprovalForAll(inner) => {
<setApprovalForAllCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::supportsInterface(inner) => {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::symbol(inner) => {
<symbolCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::tokenURI(inner) => {
<tokenURICall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::transferFrom(inner) => {
<transferFromCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
}
}
}
///Container for all the [`SimpleERC721`](self) custom errors.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum SimpleERC721Errors {
#[allow(missing_docs)]
ERC721IncorrectOwner(ERC721IncorrectOwner),
#[allow(missing_docs)]
ERC721InsufficientApproval(ERC721InsufficientApproval),
#[allow(missing_docs)]
ERC721InvalidApprover(ERC721InvalidApprover),
#[allow(missing_docs)]
ERC721InvalidOperator(ERC721InvalidOperator),
#[allow(missing_docs)]
ERC721InvalidOwner(ERC721InvalidOwner),
#[allow(missing_docs)]
ERC721InvalidReceiver(ERC721InvalidReceiver),
#[allow(missing_docs)]
ERC721InvalidSender(ERC721InvalidSender),
#[allow(missing_docs)]
ERC721NonexistentToken(ERC721NonexistentToken),
}
impl SimpleERC721Errors {
/// All the selectors of this enum.
///
/// Note that the selectors might not be in the same order as the variants.
/// No guarantees are made about the order of the selectors.
///
/// Prefer using `SolInterface` methods instead.
pub const SELECTORS: &'static [[u8; 4usize]] = &[
[23u8, 126u8, 128u8, 47u8],
[91u8, 8u8, 186u8, 24u8],
[100u8, 40u8, 61u8, 123u8],
[100u8, 160u8, 174u8, 146u8],
[115u8, 198u8, 172u8, 110u8],
[126u8, 39u8, 50u8, 137u8],
[137u8, 198u8, 43u8, 100u8],
[169u8, 251u8, 245u8, 31u8],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(ERC721InsufficientApproval),
::core::stringify!(ERC721InvalidOperator),
::core::stringify!(ERC721IncorrectOwner),
::core::stringify!(ERC721InvalidReceiver),
::core::stringify!(ERC721InvalidSender),
::core::stringify!(ERC721NonexistentToken),
::core::stringify!(ERC721InvalidOwner),
::core::stringify!(ERC721InvalidApprover),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<ERC721InsufficientApproval as alloy_sol_types::SolError>::SIGNATURE,
<ERC721InvalidOperator as alloy_sol_types::SolError>::SIGNATURE,
<ERC721IncorrectOwner as alloy_sol_types::SolError>::SIGNATURE,
<ERC721InvalidReceiver as alloy_sol_types::SolError>::SIGNATURE,
<ERC721InvalidSender as alloy_sol_types::SolError>::SIGNATURE,
<ERC721NonexistentToken as alloy_sol_types::SolError>::SIGNATURE,
<ERC721InvalidOwner as alloy_sol_types::SolError>::SIGNATURE,
<ERC721InvalidApprover as alloy_sol_types::SolError>::SIGNATURE,
];
/// Returns the signature for the given selector, if known.
#[inline]
pub fn signature_by_selector(
selector: [u8; 4usize],
) -> ::core::option::Option<&'static str> {
match Self::SELECTORS.binary_search(&selector) {
::core::result::Result::Ok(idx) => {
::core::option::Option::Some(Self::SIGNATURES[idx])
}
::core::result::Result::Err(_) => ::core::option::Option::None,
}
}
/// Returns the enum variant name for the given selector, if known.
#[inline]
pub fn name_by_selector(
selector: [u8; 4usize],
) -> ::core::option::Option<&'static str> {
let sig = Self::signature_by_selector(selector)?;
sig.split_once('(').map(|(name, _)| name)
}
}
#[automatically_derived]
impl alloy_sol_types::SolInterface for SimpleERC721Errors {
const NAME: &'static str = "SimpleERC721Errors";
const MIN_DATA_LENGTH: usize = 32usize;
const COUNT: usize = 8usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::ERC721IncorrectOwner(_) => {
<ERC721IncorrectOwner as alloy_sol_types::SolError>::SELECTOR
}
Self::ERC721InsufficientApproval(_) => {
<ERC721InsufficientApproval as alloy_sol_types::SolError>::SELECTOR
}
Self::ERC721InvalidApprover(_) => {
<ERC721InvalidApprover as alloy_sol_types::SolError>::SELECTOR
}
Self::ERC721InvalidOperator(_) => {
<ERC721InvalidOperator as alloy_sol_types::SolError>::SELECTOR
}
Self::ERC721InvalidOwner(_) => {
<ERC721InvalidOwner as alloy_sol_types::SolError>::SELECTOR
}
Self::ERC721InvalidReceiver(_) => {
<ERC721InvalidReceiver as alloy_sol_types::SolError>::SELECTOR
}
Self::ERC721InvalidSender(_) => {
<ERC721InvalidSender as alloy_sol_types::SolError>::SELECTOR
}
Self::ERC721NonexistentToken(_) => {
<ERC721NonexistentToken as alloy_sol_types::SolError>::SELECTOR
}
}
}
#[inline]
fn selector_at(i: usize) -> ::core::option::Option<[u8; 4]> {
Self::SELECTORS.get(i).copied()
}
#[inline]
fn valid_selector(selector: [u8; 4]) -> bool {
Self::SELECTORS.binary_search(&selector).is_ok()
}
#[inline]
#[allow(non_snake_case)]
fn abi_decode_raw(
selector: [u8; 4],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
static DECODE_SHIMS: &[fn(
&[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors>] = &[
{
fn ERC721InsufficientApproval(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InsufficientApproval as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721InsufficientApproval)
}
ERC721InsufficientApproval
},
{
fn ERC721InvalidOperator(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidOperator as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721InvalidOperator)
}
ERC721InvalidOperator
},
{
fn ERC721IncorrectOwner(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721IncorrectOwner as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721IncorrectOwner)
}
ERC721IncorrectOwner
},
{
fn ERC721InvalidReceiver(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidReceiver as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721InvalidReceiver)
}
ERC721InvalidReceiver
},
{
fn ERC721InvalidSender(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidSender as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721InvalidSender)
}
ERC721InvalidSender
},
{
fn ERC721NonexistentToken(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721NonexistentToken as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721NonexistentToken)
}
ERC721NonexistentToken
},
{
fn ERC721InvalidOwner(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidOwner as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721InvalidOwner)
}
ERC721InvalidOwner
},
{
fn ERC721InvalidApprover(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidApprover as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(SimpleERC721Errors::ERC721InvalidApprover)
}
ERC721InvalidApprover
},
];
let Ok(idx) = Self::SELECTORS.binary_search(&selector) else {
return Err(
alloy_sol_types::Error::unknown_selector(
<Self as alloy_sol_types::SolInterface>::NAME,
selector,
),
);
};
DECODE_SHIMS[idx](data)
}
#[inline]
#[allow(non_snake_case)]
fn abi_decode_raw_validate(
selector: [u8; 4],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
static DECODE_VALIDATE_SHIMS: &[fn(
&[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors>] = &[
{
fn ERC721InsufficientApproval(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InsufficientApproval as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721InsufficientApproval)
}
ERC721InsufficientApproval
},
{
fn ERC721InvalidOperator(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidOperator as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721InvalidOperator)
}
ERC721InvalidOperator
},
{
fn ERC721IncorrectOwner(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721IncorrectOwner as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721IncorrectOwner)
}
ERC721IncorrectOwner
},
{
fn ERC721InvalidReceiver(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidReceiver as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721InvalidReceiver)
}
ERC721InvalidReceiver
},
{
fn ERC721InvalidSender(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidSender as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721InvalidSender)
}
ERC721InvalidSender
},
{
fn ERC721NonexistentToken(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721NonexistentToken as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721NonexistentToken)
}
ERC721NonexistentToken
},
{
fn ERC721InvalidOwner(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidOwner as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721InvalidOwner)
}
ERC721InvalidOwner
},
{
fn ERC721InvalidApprover(
data: &[u8],
) -> alloy_sol_types::Result<SimpleERC721Errors> {
<ERC721InvalidApprover as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(SimpleERC721Errors::ERC721InvalidApprover)
}
ERC721InvalidApprover
},
];
let Ok(idx) = Self::SELECTORS.binary_search(&selector) else {
return Err(
alloy_sol_types::Error::unknown_selector(
<Self as alloy_sol_types::SolInterface>::NAME,
selector,
),
);
};
DECODE_VALIDATE_SHIMS[idx](data)
}
#[inline]
fn abi_encoded_size(&self) -> usize {
match self {
Self::ERC721IncorrectOwner(inner) => {
<ERC721IncorrectOwner as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::ERC721InsufficientApproval(inner) => {
<ERC721InsufficientApproval as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::ERC721InvalidApprover(inner) => {
<ERC721InvalidApprover as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::ERC721InvalidOperator(inner) => {
<ERC721InvalidOperator as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::ERC721InvalidOwner(inner) => {
<ERC721InvalidOwner as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::ERC721InvalidReceiver(inner) => {
<ERC721InvalidReceiver as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::ERC721InvalidSender(inner) => {
<ERC721InvalidSender as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::ERC721NonexistentToken(inner) => {
<ERC721NonexistentToken as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
}
}
#[inline]
fn abi_encode_raw(&self, out: &mut alloy_sol_types::private::Vec<u8>) {
match self {
Self::ERC721IncorrectOwner(inner) => {
<ERC721IncorrectOwner as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::ERC721InsufficientApproval(inner) => {
<ERC721InsufficientApproval as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::ERC721InvalidApprover(inner) => {
<ERC721InvalidApprover as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::ERC721InvalidOperator(inner) => {
<ERC721InvalidOperator as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::ERC721InvalidOwner(inner) => {
<ERC721InvalidOwner as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::ERC721InvalidReceiver(inner) => {
<ERC721InvalidReceiver as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::ERC721InvalidSender(inner) => {
<ERC721InvalidSender as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::ERC721NonexistentToken(inner) => {
<ERC721NonexistentToken as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
}
}
}
///Container for all the [`SimpleERC721`](self) events.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum SimpleERC721Events {
#[allow(missing_docs)]
Approval(Approval),
#[allow(missing_docs)]
ApprovalForAll(ApprovalForAll),
#[allow(missing_docs)]
Transfer(Transfer),
}
impl SimpleERC721Events {
/// All the selectors of this enum.
///
/// Note that the selectors might not be in the same order as the variants.
/// No guarantees are made about the order of the selectors.
///
/// Prefer using `SolInterface` methods instead.
pub const SELECTORS: &'static [[u8; 32usize]] = &[
[
23u8, 48u8, 126u8, 171u8, 57u8, 171u8, 97u8, 7u8, 232u8, 137u8, 152u8,
69u8, 173u8, 61u8, 89u8, 189u8, 150u8, 83u8, 242u8, 0u8, 242u8, 32u8,
146u8, 4u8, 137u8, 202u8, 43u8, 89u8, 55u8, 105u8, 108u8, 49u8,
],
[
140u8, 91u8, 225u8, 229u8, 235u8, 236u8, 125u8, 91u8, 209u8, 79u8, 113u8,
66u8, 125u8, 30u8, 132u8, 243u8, 221u8, 3u8, 20u8, 192u8, 247u8, 178u8,
41u8, 30u8, 91u8, 32u8, 10u8, 200u8, 199u8, 195u8, 185u8, 37u8,
],
[
221u8, 242u8, 82u8, 173u8, 27u8, 226u8, 200u8, 155u8, 105u8, 194u8,
176u8, 104u8, 252u8, 55u8, 141u8, 170u8, 149u8, 43u8, 167u8, 241u8, 99u8,
196u8, 161u8, 22u8, 40u8, 245u8, 90u8, 77u8, 245u8, 35u8, 179u8, 239u8,
],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(ApprovalForAll),
::core::stringify!(Approval),
::core::stringify!(Transfer),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<ApprovalForAll as alloy_sol_types::SolEvent>::SIGNATURE,
<Approval as alloy_sol_types::SolEvent>::SIGNATURE,
<Transfer as alloy_sol_types::SolEvent>::SIGNATURE,
];
/// Returns the signature for the given selector, if known.
#[inline]
pub fn signature_by_selector(
selector: [u8; 32usize],
) -> ::core::option::Option<&'static str> {
match Self::SELECTORS.binary_search(&selector) {
::core::result::Result::Ok(idx) => {
::core::option::Option::Some(Self::SIGNATURES[idx])
}
::core::result::Result::Err(_) => ::core::option::Option::None,
}
}
/// Returns the enum variant name for the given selector, if known.
#[inline]
pub fn name_by_selector(
selector: [u8; 32usize],
) -> ::core::option::Option<&'static str> {
let sig = Self::signature_by_selector(selector)?;
sig.split_once('(').map(|(name, _)| name)
}
}
#[automatically_derived]
impl alloy_sol_types::SolEventInterface for SimpleERC721Events {
const NAME: &'static str = "SimpleERC721Events";
const COUNT: usize = 3usize;
fn decode_raw_log(
topics: &[alloy_sol_types::Word],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
match topics.first().copied() {
Some(<Approval as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<Approval as alloy_sol_types::SolEvent>::decode_raw_log(topics, data)
.map(Self::Approval)
}
Some(<ApprovalForAll as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<ApprovalForAll as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
)
.map(Self::ApprovalForAll)
}
Some(<Transfer as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<Transfer as alloy_sol_types::SolEvent>::decode_raw_log(topics, data)
.map(Self::Transfer)
}
_ => {
alloy_sol_types::private::Err(alloy_sol_types::Error::InvalidLog {
name: <Self as alloy_sol_types::SolEventInterface>::NAME,
log: alloy_sol_types::private::Box::new(
alloy_sol_types::private::LogData::new_unchecked(
topics.to_vec(),
data.to_vec().into(),
),
),
})
}
}
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for SimpleERC721Events {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
match self {
Self::Approval(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
Self::ApprovalForAll(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
Self::Transfer(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
}
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
match self {
Self::Approval(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
Self::ApprovalForAll(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
Self::Transfer(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
}
}
}
use alloy::contract as alloy_contract;
/**Creates a new wrapper around an on-chain [`SimpleERC721`](self) contract instance.
See the [wrapper's documentation](`SimpleERC721Instance`) for more details.*/
#[inline]
pub const fn new<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(
address: alloy_sol_types::private::Address,
__provider: P,
) -> SimpleERC721Instance<P, N> {
SimpleERC721Instance::<P, N>::new(address, __provider)
}
/**Deploys this contract using the given `provider` and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use [`deploy_builder`] instead.*/
#[inline]
pub fn deploy<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(
__provider: P,
minter: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> impl ::core::future::Future<
Output = alloy_contract::Result<SimpleERC721Instance<P, N>>,
> {
SimpleERC721Instance::<P, N>::deploy(__provider, minter, tokenId)
}
/**Creates a `RawCallBuilder` for deploying this contract using the given `provider`
and constructor arguments, if any.
This is a simple wrapper around creating a `RawCallBuilder` with the data set to
the bytecode concatenated with the constructor's ABI-encoded arguments.*/
#[inline]
pub fn deploy_builder<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(
__provider: P,
minter: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::RawCallBuilder<P, N> {
SimpleERC721Instance::<P, N>::deploy_builder(__provider, minter, tokenId)
}
/**A [`SimpleERC721`](self) instance.
Contains type-safe methods for interacting with an on-chain instance of the
[`SimpleERC721`](self) contract located at a given `address`, using a given
provider `P`.
If the contract bytecode is available (see the [`sol!`](alloy_sol_types::sol!)
documentation on how to provide it), the `deploy` and `deploy_builder` methods can
be used to deploy a new instance of the contract.
See the [module-level documentation](self) for all the available methods.*/
#[derive(Clone)]
pub struct SimpleERC721Instance<P, N = alloy_contract::private::Ethereum> {
address: alloy_sol_types::private::Address,
provider: P,
_network: ::core::marker::PhantomData<N>,
}
#[automatically_derived]
impl<P, N> ::core::fmt::Debug for SimpleERC721Instance<P, N> {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("SimpleERC721Instance").field(&self.address).finish()
}
}
/// Instantiation and getters/setters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> SimpleERC721Instance<P, N> {
/**Creates a new wrapper around an on-chain [`SimpleERC721`](self) contract instance.
See the [wrapper's documentation](`SimpleERC721Instance`) for more details.*/
#[inline]
pub const fn new(
address: alloy_sol_types::private::Address,
__provider: P,
) -> Self {
Self {
address,
provider: __provider,
_network: ::core::marker::PhantomData,
}
}
/**Deploys this contract using the given `provider` and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use [`deploy_builder`] instead.*/
#[inline]
pub async fn deploy(
__provider: P,
minter: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::Result<SimpleERC721Instance<P, N>> {
let call_builder = Self::deploy_builder(__provider, minter, tokenId);
let contract_address = call_builder.deploy().await?;
Ok(Self::new(contract_address, call_builder.provider))
}
/**Creates a `RawCallBuilder` for deploying this contract using the given `provider`
and constructor arguments, if any.
This is a simple wrapper around creating a `RawCallBuilder` with the data set to
the bytecode concatenated with the constructor's ABI-encoded arguments.*/
#[inline]
pub fn deploy_builder(
__provider: P,
minter: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::RawCallBuilder<P, N> {
alloy_contract::RawCallBuilder::new_raw_deploy(
__provider,
[
&BYTECODE[..],
&alloy_sol_types::SolConstructor::abi_encode(
&constructorCall { minter, tokenId },
)[..],
]
.concat()
.into(),
)
}
/// Returns a reference to the address.
#[inline]
pub const fn address(&self) -> &alloy_sol_types::private::Address {
&self.address
}
/// Sets the address.
#[inline]
pub fn set_address(&mut self, address: alloy_sol_types::private::Address) {
self.address = address;
}
/// Sets the address and returns `self`.
pub fn at(mut self, address: alloy_sol_types::private::Address) -> Self {
self.set_address(address);
self
}
/// Returns a reference to the provider.
#[inline]
pub const fn provider(&self) -> &P {
&self.provider
}
}
impl<P: ::core::clone::Clone, N> SimpleERC721Instance<&P, N> {
/// Clones the provider and returns a new instance with the cloned provider.
#[inline]
pub fn with_cloned_provider(self) -> SimpleERC721Instance<P, N> {
SimpleERC721Instance {
address: self.address,
provider: ::core::clone::Clone::clone(&self.provider),
_network: ::core::marker::PhantomData,
}
}
}
/// Function calls.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> SimpleERC721Instance<P, N> {
/// Creates a new call builder using this contract instance's provider and address.
///
/// Note that the call can be any function call, not just those defined in this
/// contract. Prefer using the other methods for building type-safe contract calls.
pub fn call_builder<C: alloy_sol_types::SolCall>(
&self,
call: &C,
) -> alloy_contract::SolCallBuilder<&P, C, N> {
alloy_contract::SolCallBuilder::new_sol(&self.provider, &self.address, call)
}
///Creates a new call builder for the [`approve`] function.
pub fn approve(
&self,
to: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, approveCall, N> {
self.call_builder(&approveCall { to, tokenId })
}
///Creates a new call builder for the [`balanceOf`] function.
pub fn balanceOf(
&self,
owner: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, balanceOfCall, N> {
self.call_builder(&balanceOfCall { owner })
}
///Creates a new call builder for the [`getApproved`] function.
pub fn getApproved(
&self,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, getApprovedCall, N> {
self.call_builder(&getApprovedCall { tokenId })
}
///Creates a new call builder for the [`isApprovedForAll`] function.
pub fn isApprovedForAll(
&self,
owner: alloy::sol_types::private::Address,
operator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, isApprovedForAllCall, N> {
self.call_builder(
&isApprovedForAllCall {
owner,
operator,
},
)
}
///Creates a new call builder for the [`name`] function.
pub fn name(&self) -> alloy_contract::SolCallBuilder<&P, nameCall, N> {
self.call_builder(&nameCall)
}
///Creates a new call builder for the [`ownerOf`] function.
pub fn ownerOf(
&self,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, ownerOfCall, N> {
self.call_builder(&ownerOfCall { tokenId })
}
///Creates a new call builder for the [`safeTransferFrom_0`] function.
pub fn safeTransferFrom_0(
&self,
from: alloy::sol_types::private::Address,
to: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, safeTransferFrom_0Call, N> {
self.call_builder(
&safeTransferFrom_0Call {
from,
to,
tokenId,
},
)
}
///Creates a new call builder for the [`safeTransferFrom_1`] function.
pub fn safeTransferFrom_1(
&self,
from: alloy::sol_types::private::Address,
to: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
data: alloy::sol_types::private::Bytes,
) -> alloy_contract::SolCallBuilder<&P, safeTransferFrom_1Call, N> {
self.call_builder(
&safeTransferFrom_1Call {
from,
to,
tokenId,
data,
},
)
}
///Creates a new call builder for the [`setApprovalForAll`] function.
pub fn setApprovalForAll(
&self,
operator: alloy::sol_types::private::Address,
approved: bool,
) -> alloy_contract::SolCallBuilder<&P, setApprovalForAllCall, N> {
self.call_builder(
&setApprovalForAllCall {
operator,
approved,
},
)
}
///Creates a new call builder for the [`supportsInterface`] function.
pub fn supportsInterface(
&self,
interfaceId: alloy::sol_types::private::FixedBytes<4>,
) -> alloy_contract::SolCallBuilder<&P, supportsInterfaceCall, N> {
self.call_builder(
&supportsInterfaceCall {
interfaceId,
},
)
}
///Creates a new call builder for the [`symbol`] function.
pub fn symbol(&self) -> alloy_contract::SolCallBuilder<&P, symbolCall, N> {
self.call_builder(&symbolCall)
}
///Creates a new call builder for the [`tokenURI`] function.
pub fn tokenURI(
&self,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, tokenURICall, N> {
self.call_builder(&tokenURICall { tokenId })
}
///Creates a new call builder for the [`transferFrom`] function.
pub fn transferFrom(
&self,
from: alloy::sol_types::private::Address,
to: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, transferFromCall, N> {
self.call_builder(
&transferFromCall {
from,
to,
tokenId,
},
)
}
}
/// Event filters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> SimpleERC721Instance<P, N> {
/// Creates a new event filter using this contract instance's provider and address.
///
/// Note that the type can be any event, not just those defined in this contract.
/// Prefer using the other methods for building type-safe event filters.
pub fn event_filter<E: alloy_sol_types::SolEvent>(
&self,
) -> alloy_contract::Event<&P, E, N> {
alloy_contract::Event::new_sol(&self.provider, &self.address)
}
///Creates a new event filter for the [`Approval`] event.
pub fn Approval_filter(&self) -> alloy_contract::Event<&P, Approval, N> {
self.event_filter::<Approval>()
}
///Creates a new event filter for the [`ApprovalForAll`] event.
pub fn ApprovalForAll_filter(
&self,
) -> alloy_contract::Event<&P, ApprovalForAll, N> {
self.event_filter::<ApprovalForAll>()
}
///Creates a new event filter for the [`Transfer`] event.
pub fn Transfer_filter(&self) -> alloy_contract::Event<&P, Transfer, N> {
self.event_filter::<Transfer>()
}
}
}