/**
Generated by the following Solidity interface...
```solidity
interface ERC1155BatchPortal {
constructor(address inputBox);
function depositBatchERC1155Token(address token, address appContract, uint256[] memory tokenIds, uint256[] memory values, 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": "depositBatchERC1155Token",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "contract IERC1155"
},
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "tokenIds",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "values",
"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 ERC1155BatchPortal {
use super::*;
use alloy::sol_types as alloy_sol_types;
/// The creation / init bytecode of the contract.
///
/// ```text
///0x60a034606d57601f6104e538819003918201601f19168301916001600160401b03831184841017607157808492602094604052833981010312606d57516001600160a01b0381168103606d5760805260405161045f9081610086823960805181818161026901526103210152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f905f3560e01c908162aace9a1461030f57506324d15c6714610033575f80fd5b3461030b5760c036600319011261030b576004356001600160a01b0381169081810361030b576024356001600160a01b038116919082900361030b5760443567ffffffffffffffff811161030b5761008f903690600401610350565b939060643567ffffffffffffffff811161030b576100b1903690600401610350565b929060843567ffffffffffffffff811161030b576100d3903690600401610381565b60a43567ffffffffffffffff811161030b576100f3903690600401610381565b939094803b1561030b575f8761013d928d838e6101636101508f604051998a9889978896631759616b60e11b8852336004890152602488015260a0604488015260a48701916103e5565b848103600319016064860152908b6103e5565b8281036003190160848401528a8c610409565b03925af18015610300576102eb575b50604051968796602088019b60808d5260a0890190610190926103e5565b90601f198883030160408901526101a6926103e5565b90601f198683030160608701526101bc92610409565b90601f198483030160808501526101d292610409565b03601f19810182526101e490826103af565b60405193849160208301936bffffffffffffffffffffffff199060601b1684523360601b6034840152518091604884015e810185604882015203604801601f198101845261023290846103af565b604051928392631789cd6360e01b845260048401526024830160409052518091816044850152606484015e606482820181018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316928492601f01601f19168101030181855a94602095f180156102e0576102b5575080f35b602090813d83116102d9575b6102cb81836103af565b810103126102d65780f35b80fd5b503d6102c1565b6040513d84823e3d90fd5b6102f8919b505f906103af565b5f995f610172565b6040513d5f823e3d90fd5b5f80fd5b3461030b575f36600319011261030b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9181601f8401121561030b5782359167ffffffffffffffff831161030b576020808501948460051b01011161030b57565b9181601f8401121561030b5782359167ffffffffffffffff831161030b576020838186019501011161030b57565b90601f8019910116810190811067ffffffffffffffff8211176103d157604052565b634e487b7160e01b5f52604160045260245ffd5b81835290916001600160fb1b03831161030b5760209260051b809284830137010190565b908060209392818452848401375f828201840152601f01601f191601019056fea264697066735822122090a6e1cd35fb4640fed644f4ef0206f5bb30356c4ffd0a0af3fc0da19d750e1764736f6c634300081e0033
/// ```
#[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\xE58\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\x04_\x90\x81a\0\x86\x829`\x80Q\x81\x81\x81a\x02i\x01Ra\x03!\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\x03\x0FWPc$\xD1\\g\x14a\x003W_\x80\xFD[4a\x03\x0BW`\xC06`\x03\x19\x01\x12a\x03\x0BW`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x90\x81\x81\x03a\x03\x0BW`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x90\x03a\x03\x0BW`D5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\x8F\x906\x90`\x04\x01a\x03PV[\x93\x90`d5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\xB1\x906\x90`\x04\x01a\x03PV[\x92\x90`\x845g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\xD3\x906\x90`\x04\x01a\x03\x81V[`\xA45g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\xF3\x906\x90`\x04\x01a\x03\x81V[\x93\x90\x94\x80;\x15a\x03\x0BW_\x87a\x01=\x92\x8D\x83\x8Ea\x01ca\x01P\x8F`@Q\x99\x8A\x98\x89\x97\x88\x96c\x17Yak`\xE1\x1B\x88R3`\x04\x89\x01R`$\x88\x01R`\xA0`D\x88\x01R`\xA4\x87\x01\x91a\x03\xE5V[\x84\x81\x03`\x03\x19\x01`d\x86\x01R\x90\x8Ba\x03\xE5V[\x82\x81\x03`\x03\x19\x01`\x84\x84\x01R\x8A\x8Ca\x04\tV[\x03\x92Z\xF1\x80\x15a\x03\0Wa\x02\xEBW[P`@Q\x96\x87\x96` \x88\x01\x9B`\x80\x8DR`\xA0\x89\x01\x90a\x01\x90\x92a\x03\xE5V[\x90`\x1F\x19\x88\x83\x03\x01`@\x89\x01Ra\x01\xA6\x92a\x03\xE5V[\x90`\x1F\x19\x86\x83\x03\x01``\x87\x01Ra\x01\xBC\x92a\x04\tV[\x90`\x1F\x19\x84\x83\x03\x01`\x80\x85\x01Ra\x01\xD2\x92a\x04\tV[\x03`\x1F\x19\x81\x01\x82Ra\x01\xE4\x90\x82a\x03\xAFV[`@Q\x93\x84\x91` \x83\x01\x93k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x19\x90``\x1B\x16\x84R3``\x1B`4\x84\x01RQ\x80\x91`H\x84\x01^\x81\x01\x85`H\x82\x01R\x03`H\x01`\x1F\x19\x81\x01\x84Ra\x022\x90\x84a\x03\xAFV[`@Q\x92\x83\x92c\x17\x89\xCDc`\xE0\x1B\x84R`\x04\x84\x01R`$\x83\x01`@\x90RQ\x80\x91\x81`D\x85\x01R`d\x84\x01^`d\x82\x82\x01\x81\x01\x85\x90R\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\x92\x84\x92`\x1F\x01`\x1F\x19\x16\x81\x01\x03\x01\x81\x85Z\x94` \x95\xF1\x80\x15a\x02\xE0Wa\x02\xB5WP\x80\xF3[` \x90\x81=\x83\x11a\x02\xD9W[a\x02\xCB\x81\x83a\x03\xAFV[\x81\x01\x03\x12a\x02\xD6W\x80\xF3[\x80\xFD[P=a\x02\xC1V[`@Q=\x84\x82>=\x90\xFD[a\x02\xF8\x91\x9BP_\x90a\x03\xAFV[_\x99_a\x01rV[`@Q=_\x82>=\x90\xFD[_\x80\xFD[4a\x03\x0BW_6`\x03\x19\x01\x12a\x03\x0BW\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\x03\x0BW\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x03\x0BW` \x80\x85\x01\x94\x84`\x05\x1B\x01\x01\x11a\x03\x0BWV[\x91\x81`\x1F\x84\x01\x12\x15a\x03\x0BW\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x03\x0BW` \x83\x81\x86\x01\x95\x01\x01\x11a\x03\x0BWV[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03\xD1W`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x81\x83R\x90\x91`\x01`\x01`\xFB\x1B\x03\x83\x11a\x03\x0BW` \x92`\x05\x1B\x80\x92\x84\x83\x017\x01\x01\x90V[\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 \x90\xA6\xE1\xCD5\xFBF@\xFE\xD6D\xF4\xEF\x02\x06\xF5\xBB05lO\xFD\n\n\xF3\xFC\r\xA1\x9Du\x0E\x17dsolcC\0\x08\x1E\x003",
);
/// The runtime bytecode of the contract, as deployed on the network.
///
/// ```text
///0x6080806040526004361015610012575f80fd5b5f905f3560e01c908162aace9a1461030f57506324d15c6714610033575f80fd5b3461030b5760c036600319011261030b576004356001600160a01b0381169081810361030b576024356001600160a01b038116919082900361030b5760443567ffffffffffffffff811161030b5761008f903690600401610350565b939060643567ffffffffffffffff811161030b576100b1903690600401610350565b929060843567ffffffffffffffff811161030b576100d3903690600401610381565b60a43567ffffffffffffffff811161030b576100f3903690600401610381565b939094803b1561030b575f8761013d928d838e6101636101508f604051998a9889978896631759616b60e11b8852336004890152602488015260a0604488015260a48701916103e5565b848103600319016064860152908b6103e5565b8281036003190160848401528a8c610409565b03925af18015610300576102eb575b50604051968796602088019b60808d5260a0890190610190926103e5565b90601f198883030160408901526101a6926103e5565b90601f198683030160608701526101bc92610409565b90601f198483030160808501526101d292610409565b03601f19810182526101e490826103af565b60405193849160208301936bffffffffffffffffffffffff199060601b1684523360601b6034840152518091604884015e810185604882015203604801601f198101845261023290846103af565b604051928392631789cd6360e01b845260048401526024830160409052518091816044850152606484015e606482820181018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316928492601f01601f19168101030181855a94602095f180156102e0576102b5575080f35b602090813d83116102d9575b6102cb81836103af565b810103126102d65780f35b80fd5b503d6102c1565b6040513d84823e3d90fd5b6102f8919b505f906103af565b5f995f610172565b6040513d5f823e3d90fd5b5f80fd5b3461030b575f36600319011261030b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9181601f8401121561030b5782359167ffffffffffffffff831161030b576020808501948460051b01011161030b57565b9181601f8401121561030b5782359167ffffffffffffffff831161030b576020838186019501011161030b57565b90601f8019910116810190811067ffffffffffffffff8211176103d157604052565b634e487b7160e01b5f52604160045260245ffd5b81835290916001600160fb1b03831161030b5760209260051b809284830137010190565b908060209392818452848401375f828201840152601f01601f191601019056fea264697066735822122090a6e1cd35fb4640fed644f4ef0206f5bb30356c4ffd0a0af3fc0da19d750e1764736f6c634300081e0033
/// ```
#[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\x03\x0FWPc$\xD1\\g\x14a\x003W_\x80\xFD[4a\x03\x0BW`\xC06`\x03\x19\x01\x12a\x03\x0BW`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x90\x81\x81\x03a\x03\x0BW`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x90\x03a\x03\x0BW`D5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\x8F\x906\x90`\x04\x01a\x03PV[\x93\x90`d5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\xB1\x906\x90`\x04\x01a\x03PV[\x92\x90`\x845g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\xD3\x906\x90`\x04\x01a\x03\x81V[`\xA45g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x0BWa\0\xF3\x906\x90`\x04\x01a\x03\x81V[\x93\x90\x94\x80;\x15a\x03\x0BW_\x87a\x01=\x92\x8D\x83\x8Ea\x01ca\x01P\x8F`@Q\x99\x8A\x98\x89\x97\x88\x96c\x17Yak`\xE1\x1B\x88R3`\x04\x89\x01R`$\x88\x01R`\xA0`D\x88\x01R`\xA4\x87\x01\x91a\x03\xE5V[\x84\x81\x03`\x03\x19\x01`d\x86\x01R\x90\x8Ba\x03\xE5V[\x82\x81\x03`\x03\x19\x01`\x84\x84\x01R\x8A\x8Ca\x04\tV[\x03\x92Z\xF1\x80\x15a\x03\0Wa\x02\xEBW[P`@Q\x96\x87\x96` \x88\x01\x9B`\x80\x8DR`\xA0\x89\x01\x90a\x01\x90\x92a\x03\xE5V[\x90`\x1F\x19\x88\x83\x03\x01`@\x89\x01Ra\x01\xA6\x92a\x03\xE5V[\x90`\x1F\x19\x86\x83\x03\x01``\x87\x01Ra\x01\xBC\x92a\x04\tV[\x90`\x1F\x19\x84\x83\x03\x01`\x80\x85\x01Ra\x01\xD2\x92a\x04\tV[\x03`\x1F\x19\x81\x01\x82Ra\x01\xE4\x90\x82a\x03\xAFV[`@Q\x93\x84\x91` \x83\x01\x93k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x19\x90``\x1B\x16\x84R3``\x1B`4\x84\x01RQ\x80\x91`H\x84\x01^\x81\x01\x85`H\x82\x01R\x03`H\x01`\x1F\x19\x81\x01\x84Ra\x022\x90\x84a\x03\xAFV[`@Q\x92\x83\x92c\x17\x89\xCDc`\xE0\x1B\x84R`\x04\x84\x01R`$\x83\x01`@\x90RQ\x80\x91\x81`D\x85\x01R`d\x84\x01^`d\x82\x82\x01\x81\x01\x85\x90R\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\x92\x84\x92`\x1F\x01`\x1F\x19\x16\x81\x01\x03\x01\x81\x85Z\x94` \x95\xF1\x80\x15a\x02\xE0Wa\x02\xB5WP\x80\xF3[` \x90\x81=\x83\x11a\x02\xD9W[a\x02\xCB\x81\x83a\x03\xAFV[\x81\x01\x03\x12a\x02\xD6W\x80\xF3[\x80\xFD[P=a\x02\xC1V[`@Q=\x84\x82>=\x90\xFD[a\x02\xF8\x91\x9BP_\x90a\x03\xAFV[_\x99_a\x01rV[`@Q=_\x82>=\x90\xFD[_\x80\xFD[4a\x03\x0BW_6`\x03\x19\x01\x12a\x03\x0BW\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\x03\x0BW\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x03\x0BW` \x80\x85\x01\x94\x84`\x05\x1B\x01\x01\x11a\x03\x0BWV[\x91\x81`\x1F\x84\x01\x12\x15a\x03\x0BW\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x03\x0BW` \x83\x81\x86\x01\x95\x01\x01\x11a\x03\x0BWV[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03\xD1W`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x81\x83R\x90\x91`\x01`\x01`\xFB\x1B\x03\x83\x11a\x03\x0BW` \x92`\x05\x1B\x80\x92\x84\x83\x017\x01\x01\x90V[\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 \x90\xA6\xE1\xCD5\xFBF@\xFE\xD6D\xF4\xEF\x02\x06\xF5\xBB05lO\xFD\n\n\xF3\xFC\r\xA1\x9Du\x0E\x17dsolcC\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 `depositBatchERC1155Token(address,address,uint256[],uint256[],bytes,bytes)` and selector `0x24d15c67`.
```solidity
function depositBatchERC1155Token(address token, address appContract, uint256[] memory tokenIds, uint256[] memory values, bytes memory baseLayerData, bytes memory execLayerData) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct depositBatchERC1155TokenCall {
#[allow(missing_docs)]
pub token: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tokenIds: alloy::sol_types::private::Vec<
alloy::sol_types::private::primitives::aliases::U256,
>,
#[allow(missing_docs)]
pub values: alloy::sol_types::private::Vec<
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 [`depositBatchERC1155Token(address,address,uint256[],uint256[],bytes,bytes)`](depositBatchERC1155TokenCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct depositBatchERC1155TokenReturn {}
#[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::Array<alloy::sol_types::sol_data::Uint<256>>,
alloy::sol_types::sol_data::Array<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::Vec<
alloy::sol_types::private::primitives::aliases::U256,
>,
alloy::sol_types::private::Vec<
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<depositBatchERC1155TokenCall>
for UnderlyingRustTuple<'_> {
fn from(value: depositBatchERC1155TokenCall) -> Self {
(
value.token,
value.appContract,
value.tokenIds,
value.values,
value.baseLayerData,
value.execLayerData,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for depositBatchERC1155TokenCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
token: tuple.0,
appContract: tuple.1,
tokenIds: tuple.2,
values: tuple.3,
baseLayerData: tuple.4,
execLayerData: tuple.5,
}
}
}
}
{
#[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<depositBatchERC1155TokenReturn>
for UnderlyingRustTuple<'_> {
fn from(value: depositBatchERC1155TokenReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for depositBatchERC1155TokenReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl depositBatchERC1155TokenReturn {
fn _tokenize(
&self,
) -> <depositBatchERC1155TokenCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for depositBatchERC1155TokenCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Uint<256>>,
alloy::sol_types::sol_data::Array<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 = depositBatchERC1155TokenReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "depositBatchERC1155Token(address,address,uint256[],uint256[],bytes,bytes)";
const SELECTOR: [u8; 4] = [36u8, 209u8, 92u8, 103u8];
#[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::Array<
alloy::sol_types::sol_data::Uint<256>,
> as alloy_sol_types::SolType>::tokenize(&self.tokenIds),
<alloy::sol_types::sol_data::Array<
alloy::sol_types::sol_data::Uint<256>,
> as alloy_sol_types::SolType>::tokenize(&self.values),
<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<'_> {
depositBatchERC1155TokenReturn::_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 [`ERC1155BatchPortal`](self) function calls.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive()]
pub enum ERC1155BatchPortalCalls {
#[allow(missing_docs)]
depositBatchERC1155Token(depositBatchERC1155TokenCall),
#[allow(missing_docs)]
getInputBox(getInputBoxCall),
}
impl ERC1155BatchPortalCalls {
/// 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],
[36u8, 209u8, 92u8, 103u8],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(getInputBox),
::core::stringify!(depositBatchERC1155Token),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<getInputBoxCall as alloy_sol_types::SolCall>::SIGNATURE,
<depositBatchERC1155TokenCall 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 ERC1155BatchPortalCalls {
const NAME: &'static str = "ERC1155BatchPortalCalls";
const MIN_DATA_LENGTH: usize = 0usize;
const COUNT: usize = 2usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::depositBatchERC1155Token(_) => {
<depositBatchERC1155TokenCall 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<ERC1155BatchPortalCalls>] = &[
{
fn getInputBox(
data: &[u8],
) -> alloy_sol_types::Result<ERC1155BatchPortalCalls> {
<getInputBoxCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(ERC1155BatchPortalCalls::getInputBox)
}
getInputBox
},
{
fn depositBatchERC1155Token(
data: &[u8],
) -> alloy_sol_types::Result<ERC1155BatchPortalCalls> {
<depositBatchERC1155TokenCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(ERC1155BatchPortalCalls::depositBatchERC1155Token)
}
depositBatchERC1155Token
},
];
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<ERC1155BatchPortalCalls>] = &[
{
fn getInputBox(
data: &[u8],
) -> alloy_sol_types::Result<ERC1155BatchPortalCalls> {
<getInputBoxCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(ERC1155BatchPortalCalls::getInputBox)
}
getInputBox
},
{
fn depositBatchERC1155Token(
data: &[u8],
) -> alloy_sol_types::Result<ERC1155BatchPortalCalls> {
<depositBatchERC1155TokenCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(ERC1155BatchPortalCalls::depositBatchERC1155Token)
}
depositBatchERC1155Token
},
];
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::depositBatchERC1155Token(inner) => {
<depositBatchERC1155TokenCall 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::depositBatchERC1155Token(inner) => {
<depositBatchERC1155TokenCall 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 [`ERC1155BatchPortal`](self) contract instance.
See the [wrapper's documentation](`ERC1155BatchPortalInstance`) 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,
) -> ERC1155BatchPortalInstance<P, N> {
ERC1155BatchPortalInstance::<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<ERC1155BatchPortalInstance<P, N>>,
> {
ERC1155BatchPortalInstance::<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> {
ERC1155BatchPortalInstance::<P, N>::deploy_builder(__provider, inputBox)
}
/**A [`ERC1155BatchPortal`](self) instance.
Contains type-safe methods for interacting with an on-chain instance of the
[`ERC1155BatchPortal`](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 ERC1155BatchPortalInstance<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 ERC1155BatchPortalInstance<P, N> {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("ERC1155BatchPortalInstance").field(&self.address).finish()
}
}
/// Instantiation and getters/setters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> ERC1155BatchPortalInstance<P, N> {
/**Creates a new wrapper around an on-chain [`ERC1155BatchPortal`](self) contract instance.
See the [wrapper's documentation](`ERC1155BatchPortalInstance`) 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<ERC1155BatchPortalInstance<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> ERC1155BatchPortalInstance<&P, N> {
/// Clones the provider and returns a new instance with the cloned provider.
#[inline]
pub fn with_cloned_provider(self) -> ERC1155BatchPortalInstance<P, N> {
ERC1155BatchPortalInstance {
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,
> ERC1155BatchPortalInstance<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 [`depositBatchERC1155Token`] function.
pub fn depositBatchERC1155Token(
&self,
token: alloy::sol_types::private::Address,
appContract: alloy::sol_types::private::Address,
tokenIds: alloy::sol_types::private::Vec<
alloy::sol_types::private::primitives::aliases::U256,
>,
values: alloy::sol_types::private::Vec<
alloy::sol_types::private::primitives::aliases::U256,
>,
baseLayerData: alloy::sol_types::private::Bytes,
execLayerData: alloy::sol_types::private::Bytes,
) -> alloy_contract::SolCallBuilder<&P, depositBatchERC1155TokenCall, N> {
self.call_builder(
&depositBatchERC1155TokenCall {
token,
appContract,
tokenIds,
values,
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,
> ERC1155BatchPortalInstance<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)
}
}
}