/**
Generated by the following Solidity interface...
```solidity
interface ERC721Portal {
constructor(address inputBox);
function depositERC721Token(address token, address appContract, uint256 tokenId, bytes memory baseLayerData, bytes memory execLayerData) external;
function getInputBox() external view returns (address);
}
```
...which was generated by the following JSON ABI:
```json
[
{
"type": "constructor",
"inputs": [
{
"name": "inputBox",
"type": "address",
"internalType": "contract IInputBox"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "depositERC721Token",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "contract IERC721"
},
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "baseLayerData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "execLayerData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getInputBox",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IInputBox"
}
],
"stateMutability": "view"
}
]
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style,
clippy::empty_structs_with_brackets
)]
pub mod ERC721Portal {
use super::*;
use alloy::sol_types as alloy_sol_types;
/// The creation / init bytecode of the contract.
///
/// ```text
///0x60a034606d57601f61041738819003918201601f19168301916001600160401b03831184841017607157808492602094604052833981010312606d57516001600160a01b0381168103606d57608052604051610391908161008682396080518181816101e201526102a80152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f905f3560e01c908162aace9a1461029657506328911e8314610033575f80fd5b346102925760a0366003190112610292576004356001600160a01b038116808203610292576024356001600160a01b0381169190829003610292576044359060643567ffffffffffffffff8111610292576100929036906004016102d7565b9160843567ffffffffffffffff8111610292576100b39036906004016102d7565b9091803b15610292575f6040518092635c46a7ef60e11b8252336004830152896024830152886044830152608060648301528183816100f6608482018c8c61033b565b03925af1801561028757610250575b5061013694606494610156602098956101486101a0966068966040519b8c948e86019760408952606087019161033b565b848103601f190160408601529161033b565b03601f198101895288610305565b6040519687928984019a6bffffffffffffffffffffffff199060601b168b523360601b603485015260488401525180918484015e810189838201520301601f198101855284610305565b6040519485938492631789cd6360e01b84526004840152604060248401525180918160448501528484015e8181018301879052601f01601f19168101030181857f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af180156102455761021a575080f35b602090813d831161023e575b6102308183610305565b8101031261023b5780f35b80fd5b503d610226565b6040513d84823e3d90fd5b606891985094606494610156602098956101486101a0966102745f6101369c610305565b5f9d965096505095985050945094610105565b6040513d5f823e3d90fd5b5f80fd5b34610292575f366003190112610292577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9181601f840112156102925782359167ffffffffffffffff8311610292576020838186019501011161029257565b90601f8019910116810190811067ffffffffffffffff82111761032757604052565b634e487b7160e01b5f52604160045260245ffd5b908060209392818452848401375f828201840152601f01601f191601019056fea2646970667358221220f0111f08e5f82db381cd53a5f7058936487a125fd07191fc76f63f2f0fa101cd64736f6c634300081e0033
/// ```
#[rustfmt::skip]
#[allow(clippy::all)]
pub static BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"`\xA04`mW`\x1Fa\x04\x178\x81\x90\x03\x91\x82\x01`\x1F\x19\x16\x83\x01\x91`\x01`\x01`@\x1B\x03\x83\x11\x84\x84\x10\x17`qW\x80\x84\x92` \x94`@R\x839\x81\x01\x03\x12`mWQ`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03`mW`\x80R`@Qa\x03\x91\x90\x81a\0\x86\x829`\x80Q\x81\x81\x81a\x01\xE2\x01Ra\x02\xA8\x01R\xF3[_\x80\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_\x90_5`\xE0\x1C\x90\x81b\xAA\xCE\x9A\x14a\x02\x96WPc(\x91\x1E\x83\x14a\x003W_\x80\xFD[4a\x02\x92W`\xA06`\x03\x19\x01\x12a\x02\x92W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x80\x82\x03a\x02\x92W`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x90\x03a\x02\x92W`D5\x90`d5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x02\x92Wa\0\x92\x906\x90`\x04\x01a\x02\xD7V[\x91`\x845g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x02\x92Wa\0\xB3\x906\x90`\x04\x01a\x02\xD7V[\x90\x91\x80;\x15a\x02\x92W_`@Q\x80\x92c\\F\xA7\xEF`\xE1\x1B\x82R3`\x04\x83\x01R\x89`$\x83\x01R\x88`D\x83\x01R`\x80`d\x83\x01R\x81\x83\x81a\0\xF6`\x84\x82\x01\x8C\x8Ca\x03;V[\x03\x92Z\xF1\x80\x15a\x02\x87Wa\x02PW[Pa\x016\x94`d\x94a\x01V` \x98\x95a\x01Ha\x01\xA0\x96`h\x96`@Q\x9B\x8C\x94\x8E\x86\x01\x97`@\x89R``\x87\x01\x91a\x03;V[\x84\x81\x03`\x1F\x19\x01`@\x86\x01R\x91a\x03;V[\x03`\x1F\x19\x81\x01\x89R\x88a\x03\x05V[`@Q\x96\x87\x92\x89\x84\x01\x9Ak\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x19\x90``\x1B\x16\x8BR3``\x1B`4\x85\x01R`H\x84\x01RQ\x80\x91\x84\x84\x01^\x81\x01\x89\x83\x82\x01R\x03\x01`\x1F\x19\x81\x01\x85R\x84a\x03\x05V[`@Q\x94\x85\x93\x84\x92c\x17\x89\xCDc`\xE0\x1B\x84R`\x04\x84\x01R`@`$\x84\x01RQ\x80\x91\x81`D\x85\x01R\x84\x84\x01^\x81\x81\x01\x83\x01\x87\x90R`\x1F\x01`\x1F\x19\x16\x81\x01\x03\x01\x81\x85\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\x01`\x01`\xA0\x1B\x03\x16Z\xF1\x80\x15a\x02EWa\x02\x1AWP\x80\xF3[` \x90\x81=\x83\x11a\x02>W[a\x020\x81\x83a\x03\x05V[\x81\x01\x03\x12a\x02;W\x80\xF3[\x80\xFD[P=a\x02&V[`@Q=\x84\x82>=\x90\xFD[`h\x91\x98P\x94`d\x94a\x01V` \x98\x95a\x01Ha\x01\xA0\x96a\x02t_a\x016\x9Ca\x03\x05V[_\x9D\x96P\x96PP\x95\x98PP\x94P\x94a\x01\x05V[`@Q=_\x82>=\x90\xFD[_\x80\xFD[4a\x02\x92W_6`\x03\x19\x01\x12a\x02\x92W\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\x01`\x01`\xA0\x1B\x03\x16\x81R` \x90\xF3[\x91\x81`\x1F\x84\x01\x12\x15a\x02\x92W\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x02\x92W` \x83\x81\x86\x01\x95\x01\x01\x11a\x02\x92WV[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03'W`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x90\x80` \x93\x92\x81\x84R\x84\x84\x017_\x82\x82\x01\x84\x01R`\x1F\x01`\x1F\x19\x16\x01\x01\x90V\xFE\xA2dipfsX\"\x12 \xF0\x11\x1F\x08\xE5\xF8-\xB3\x81\xCDS\xA5\xF7\x05\x896Hz\x12_\xD0q\x91\xFCv\xF6?/\x0F\xA1\x01\xCDdsolcC\0\x08\x1E\x003",
);
/// The runtime bytecode of the contract, as deployed on the network.
///
/// ```text
///0x6080806040526004361015610012575f80fd5b5f905f3560e01c908162aace9a1461029657506328911e8314610033575f80fd5b346102925760a0366003190112610292576004356001600160a01b038116808203610292576024356001600160a01b0381169190829003610292576044359060643567ffffffffffffffff8111610292576100929036906004016102d7565b9160843567ffffffffffffffff8111610292576100b39036906004016102d7565b9091803b15610292575f6040518092635c46a7ef60e11b8252336004830152896024830152886044830152608060648301528183816100f6608482018c8c61033b565b03925af1801561028757610250575b5061013694606494610156602098956101486101a0966068966040519b8c948e86019760408952606087019161033b565b848103601f190160408601529161033b565b03601f198101895288610305565b6040519687928984019a6bffffffffffffffffffffffff199060601b168b523360601b603485015260488401525180918484015e810189838201520301601f198101855284610305565b6040519485938492631789cd6360e01b84526004840152604060248401525180918160448501528484015e8181018301879052601f01601f19168101030181857f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af180156102455761021a575080f35b602090813d831161023e575b6102308183610305565b8101031261023b5780f35b80fd5b503d610226565b6040513d84823e3d90fd5b606891985094606494610156602098956101486101a0966102745f6101369c610305565b5f9d965096505095985050945094610105565b6040513d5f823e3d90fd5b5f80fd5b34610292575f366003190112610292577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9181601f840112156102925782359167ffffffffffffffff8311610292576020838186019501011161029257565b90601f8019910116810190811067ffffffffffffffff82111761032757604052565b634e487b7160e01b5f52604160045260245ffd5b908060209392818452848401375f828201840152601f01601f191601019056fea2646970667358221220f0111f08e5f82db381cd53a5f7058936487a125fd07191fc76f63f2f0fa101cd64736f6c634300081e0033
/// ```
#[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\x81b\xAA\xCE\x9A\x14a\x02\x96WPc(\x91\x1E\x83\x14a\x003W_\x80\xFD[4a\x02\x92W`\xA06`\x03\x19\x01\x12a\x02\x92W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x80\x82\x03a\x02\x92W`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x90\x03a\x02\x92W`D5\x90`d5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x02\x92Wa\0\x92\x906\x90`\x04\x01a\x02\xD7V[\x91`\x845g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x02\x92Wa\0\xB3\x906\x90`\x04\x01a\x02\xD7V[\x90\x91\x80;\x15a\x02\x92W_`@Q\x80\x92c\\F\xA7\xEF`\xE1\x1B\x82R3`\x04\x83\x01R\x89`$\x83\x01R\x88`D\x83\x01R`\x80`d\x83\x01R\x81\x83\x81a\0\xF6`\x84\x82\x01\x8C\x8Ca\x03;V[\x03\x92Z\xF1\x80\x15a\x02\x87Wa\x02PW[Pa\x016\x94`d\x94a\x01V` \x98\x95a\x01Ha\x01\xA0\x96`h\x96`@Q\x9B\x8C\x94\x8E\x86\x01\x97`@\x89R``\x87\x01\x91a\x03;V[\x84\x81\x03`\x1F\x19\x01`@\x86\x01R\x91a\x03;V[\x03`\x1F\x19\x81\x01\x89R\x88a\x03\x05V[`@Q\x96\x87\x92\x89\x84\x01\x9Ak\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x19\x90``\x1B\x16\x8BR3``\x1B`4\x85\x01R`H\x84\x01RQ\x80\x91\x84\x84\x01^\x81\x01\x89\x83\x82\x01R\x03\x01`\x1F\x19\x81\x01\x85R\x84a\x03\x05V[`@Q\x94\x85\x93\x84\x92c\x17\x89\xCDc`\xE0\x1B\x84R`\x04\x84\x01R`@`$\x84\x01RQ\x80\x91\x81`D\x85\x01R\x84\x84\x01^\x81\x81\x01\x83\x01\x87\x90R`\x1F\x01`\x1F\x19\x16\x81\x01\x03\x01\x81\x85\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\x01`\x01`\xA0\x1B\x03\x16Z\xF1\x80\x15a\x02EWa\x02\x1AWP\x80\xF3[` \x90\x81=\x83\x11a\x02>W[a\x020\x81\x83a\x03\x05V[\x81\x01\x03\x12a\x02;W\x80\xF3[\x80\xFD[P=a\x02&V[`@Q=\x84\x82>=\x90\xFD[`h\x91\x98P\x94`d\x94a\x01V` \x98\x95a\x01Ha\x01\xA0\x96a\x02t_a\x016\x9Ca\x03\x05V[_\x9D\x96P\x96PP\x95\x98PP\x94P\x94a\x01\x05V[`@Q=_\x82>=\x90\xFD[_\x80\xFD[4a\x02\x92W_6`\x03\x19\x01\x12a\x02\x92W\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\x01`\x01`\xA0\x1B\x03\x16\x81R` \x90\xF3[\x91\x81`\x1F\x84\x01\x12\x15a\x02\x92W\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x02\x92W` \x83\x81\x86\x01\x95\x01\x01\x11a\x02\x92WV[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03'W`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x90\x80` \x93\x92\x81\x84R\x84\x84\x017_\x82\x82\x01\x84\x01R`\x1F\x01`\x1F\x19\x16\x01\x01\x90V\xFE\xA2dipfsX\"\x12 \xF0\x11\x1F\x08\xE5\xF8-\xB3\x81\xCDS\xA5\xF7\x05\x896Hz\x12_\xD0q\x91\xFCv\xF6?/\x0F\xA1\x01\xCDdsolcC\0\x08\x1E\x003",
);
/**Constructor`.
```solidity
constructor(address inputBox);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct constructorCall {
#[allow(missing_docs)]
pub inputBox: alloy::sol_types::private::Address,
}
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<constructorCall> for UnderlyingRustTuple<'_> {
fn from(value: constructorCall) -> Self {
(value.inputBox,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for constructorCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { inputBox: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolConstructor for constructorCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Address,);
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.inputBox,
),
)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `depositERC721Token(address,address,uint256,bytes,bytes)` and selector `0x28911e83`.
```solidity
function depositERC721Token(address token, address appContract, uint256 tokenId, bytes memory baseLayerData, bytes memory execLayerData) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct depositERC721TokenCall {
#[allow(missing_docs)]
pub token: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenId: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub baseLayerData: alloy::sol_types::private::Bytes,
#[allow(missing_docs)]
pub execLayerData: alloy::sol_types::private::Bytes,
}
///Container type for the return parameters of the [`depositERC721Token(address,address,uint256,bytes,bytes)`](depositERC721TokenCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct depositERC721TokenReturn {}
#[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,
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,
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<depositERC721TokenCall>
for UnderlyingRustTuple<'_> {
fn from(value: depositERC721TokenCall) -> Self {
(
value.token,
value.appContract,
value.tokenId,
value.baseLayerData,
value.execLayerData,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for depositERC721TokenCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
token: tuple.0,
appContract: tuple.1,
tokenId: tuple.2,
baseLayerData: tuple.3,
execLayerData: tuple.4,
}
}
}
}
{
#[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<depositERC721TokenReturn>
for UnderlyingRustTuple<'_> {
fn from(value: depositERC721TokenReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for depositERC721TokenReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl depositERC721TokenReturn {
fn _tokenize(
&self,
) -> <depositERC721TokenCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for depositERC721TokenCall {
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,
alloy::sol_types::sol_data::Bytes,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = depositERC721TokenReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "depositERC721Token(address,address,uint256,bytes,bytes)";
const SELECTOR: [u8; 4] = [40u8, 145u8, 30u8, 131u8];
#[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.token,
),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.appContract,
),
<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.baseLayerData,
),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.execLayerData,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
depositERC721TokenReturn::_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 `getInputBox()` and selector `0x00aace9a`.
```solidity
function getInputBox() external view returns (address);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getInputBoxCall;
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`getInputBox()`](getInputBoxCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getInputBoxReturn {
#[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> = ();
#[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<getInputBoxCall> for UnderlyingRustTuple<'_> {
fn from(value: getInputBoxCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getInputBoxCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self
}
}
}
{
#[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<getInputBoxReturn> for UnderlyingRustTuple<'_> {
fn from(value: getInputBoxReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getInputBoxReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getInputBoxCall {
type Parameters<'a> = ();
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 = "getInputBox()";
const SELECTOR: [u8; 4] = [0u8, 170u8, 206u8, 154u8];
#[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::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: getInputBoxReturn = 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: getInputBoxReturn = r.into();
r._0
})
}
}
};
///Container for all the [`ERC721Portal`](self) function calls.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive()]
pub enum ERC721PortalCalls {
#[allow(missing_docs)]
depositERC721Token(depositERC721TokenCall),
#[allow(missing_docs)]
getInputBox(getInputBoxCall),
}
impl ERC721PortalCalls {
/// 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]] = &[
[0u8, 170u8, 206u8, 154u8],
[40u8, 145u8, 30u8, 131u8],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(getInputBox),
::core::stringify!(depositERC721Token),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<getInputBoxCall as alloy_sol_types::SolCall>::SIGNATURE,
<depositERC721TokenCall 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 ERC721PortalCalls {
const NAME: &'static str = "ERC721PortalCalls";
const MIN_DATA_LENGTH: usize = 0usize;
const COUNT: usize = 2usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::depositERC721Token(_) => {
<depositERC721TokenCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getInputBox(_) => {
<getInputBoxCall 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<ERC721PortalCalls>] = &[
{
fn getInputBox(
data: &[u8],
) -> alloy_sol_types::Result<ERC721PortalCalls> {
<getInputBoxCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(ERC721PortalCalls::getInputBox)
}
getInputBox
},
{
fn depositERC721Token(
data: &[u8],
) -> alloy_sol_types::Result<ERC721PortalCalls> {
<depositERC721TokenCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(ERC721PortalCalls::depositERC721Token)
}
depositERC721Token
},
];
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<ERC721PortalCalls>] = &[
{
fn getInputBox(
data: &[u8],
) -> alloy_sol_types::Result<ERC721PortalCalls> {
<getInputBoxCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(ERC721PortalCalls::getInputBox)
}
getInputBox
},
{
fn depositERC721Token(
data: &[u8],
) -> alloy_sol_types::Result<ERC721PortalCalls> {
<depositERC721TokenCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(ERC721PortalCalls::depositERC721Token)
}
depositERC721Token
},
];
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::depositERC721Token(inner) => {
<depositERC721TokenCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getInputBox(inner) => {
<getInputBoxCall 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::depositERC721Token(inner) => {
<depositERC721TokenCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getInputBox(inner) => {
<getInputBoxCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
}
}
}
use alloy::contract as alloy_contract;
/**Creates a new wrapper around an on-chain [`ERC721Portal`](self) contract instance.
See the [wrapper's documentation](`ERC721PortalInstance`) 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,
) -> ERC721PortalInstance<P, N> {
ERC721PortalInstance::<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,
inputBox: alloy::sol_types::private::Address,
) -> impl ::core::future::Future<
Output = alloy_contract::Result<ERC721PortalInstance<P, N>>,
> {
ERC721PortalInstance::<P, N>::deploy(__provider, inputBox)
}
/**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,
inputBox: alloy::sol_types::private::Address,
) -> alloy_contract::RawCallBuilder<P, N> {
ERC721PortalInstance::<P, N>::deploy_builder(__provider, inputBox)
}
/**A [`ERC721Portal`](self) instance.
Contains type-safe methods for interacting with an on-chain instance of the
[`ERC721Portal`](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 ERC721PortalInstance<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 ERC721PortalInstance<P, N> {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("ERC721PortalInstance").field(&self.address).finish()
}
}
/// Instantiation and getters/setters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> ERC721PortalInstance<P, N> {
/**Creates a new wrapper around an on-chain [`ERC721Portal`](self) contract instance.
See the [wrapper's documentation](`ERC721PortalInstance`) 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,
inputBox: alloy::sol_types::private::Address,
) -> alloy_contract::Result<ERC721PortalInstance<P, N>> {
let call_builder = Self::deploy_builder(__provider, inputBox);
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,
inputBox: alloy::sol_types::private::Address,
) -> alloy_contract::RawCallBuilder<P, N> {
alloy_contract::RawCallBuilder::new_raw_deploy(
__provider,
[
&BYTECODE[..],
&alloy_sol_types::SolConstructor::abi_encode(
&constructorCall { inputBox },
)[..],
]
.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> ERC721PortalInstance<&P, N> {
/// Clones the provider and returns a new instance with the cloned provider.
#[inline]
pub fn with_cloned_provider(self) -> ERC721PortalInstance<P, N> {
ERC721PortalInstance {
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,
> ERC721PortalInstance<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 [`depositERC721Token`] function.
pub fn depositERC721Token(
&self,
token: alloy::sol_types::private::Address,
appContract: alloy::sol_types::private::Address,
tokenId: alloy::sol_types::private::primitives::aliases::U256,
baseLayerData: alloy::sol_types::private::Bytes,
execLayerData: alloy::sol_types::private::Bytes,
) -> alloy_contract::SolCallBuilder<&P, depositERC721TokenCall, N> {
self.call_builder(
&depositERC721TokenCall {
token,
appContract,
tokenId,
baseLayerData,
execLayerData,
},
)
}
///Creates a new call builder for the [`getInputBox`] function.
pub fn getInputBox(
&self,
) -> alloy_contract::SolCallBuilder<&P, getInputBoxCall, N> {
self.call_builder(&getInputBoxCall)
}
}
/// Event filters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> ERC721PortalInstance<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)
}
}
}