/**
Generated by the following Solidity interface...
```solidity
interface Quorum {
error NotEpochFinalBlock(uint256 lastProcessedBlockNumber, uint256 epochLength);
error NotFirstClaim(address appContract, uint256 lastProcessedBlockNumber);
error NotPastBlock(uint256 lastProcessedBlockNumber, uint256 currentBlockNumber);
event ClaimAccepted(address indexed appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot);
event ClaimSubmitted(address indexed submitter, address indexed appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot);
constructor(address[] validators, uint256 epochLength);
function getEpochLength() external view returns (uint256);
function getNumberOfAcceptedClaims() external view returns (uint256);
function isOutputsMerkleRootValid(address appContract, bytes32 outputsMerkleRoot) external view returns (bool);
function isValidatorInFavorOf(address appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot, uint256 id) external view returns (bool);
function isValidatorInFavorOfAnyClaimInEpoch(address appContract, uint256 lastProcessedBlockNumber, uint256 id) external view returns (bool);
function numOfValidators() external view returns (uint256);
function numOfValidatorsInFavorOf(address appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot) external view returns (uint256);
function numOfValidatorsInFavorOfAnyClaimInEpoch(address appContract, uint256 lastProcessedBlockNumber) external view returns (uint256);
function submitClaim(address appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot) external;
function supportsInterface(bytes4 interfaceId) external view returns (bool);
function validatorById(uint256 id) external view returns (address);
function validatorId(address validator) external view returns (uint256);
}
```
...which was generated by the following JSON ABI:
```json
[
{
"type": "constructor",
"inputs": [
{
"name": "validators",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "epochLength",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getEpochLength",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getNumberOfAcceptedClaims",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isOutputsMerkleRootValid",
"inputs": [
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "outputsMerkleRoot",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isValidatorInFavorOf",
"inputs": [
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "outputsMerkleRoot",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isValidatorInFavorOfAnyClaimInEpoch",
"inputs": [
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "numOfValidators",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "numOfValidatorsInFavorOf",
"inputs": [
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "outputsMerkleRoot",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "numOfValidatorsInFavorOfAnyClaimInEpoch",
"inputs": [
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "submitClaim",
"inputs": [
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "outputsMerkleRoot",
"type": "bytes32",
"internalType": "bytes32"
}
],
"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": "validatorById",
"inputs": [
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "validatorId",
"inputs": [
{
"name": "validator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "ClaimAccepted",
"inputs": [
{
"name": "appContract",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "outputsMerkleRoot",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ClaimSubmitted",
"inputs": [
{
"name": "submitter",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "appContract",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "outputsMerkleRoot",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "error",
"name": "NotEpochFinalBlock",
"inputs": [
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "epochLength",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "NotFirstClaim",
"inputs": [
{
"name": "appContract",
"type": "address",
"internalType": "address"
},
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "NotPastBlock",
"inputs": [
{
"name": "lastProcessedBlockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "currentBlockNumber",
"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 Quorum {
use super::*;
use alloy::sol_types as alloy_sol_types;
/// The creation / init bytecode of the contract.
///
/// ```text
///0x60c0604052346101ba576108f980380380610019816101d2565b9283398101906040818303126101ba5780516001600160401b0381116101ba57810182601f820112156101ba578051926001600160401b0384116101be578360051b9160208061006a8186016101d2565b8097815201938201019182116101ba57602001915b81831061019a578460208501518015610155576080525f905f5b81518110156101225760018060a01b0360208260051b8401015116805f52600260205260405f2054156100d0575b50600101610099565b92905f19821461010e57600180920193805f5260026020528460405f2055845f52600360205260405f2090838060a01b0319825416179055906100c7565b634e487b7160e01b5f52601160045260245ffd5b8260a05260405161070190816101f8823960805181818161012001526101a8015260a05181818161030e01526105830152f35b60405162461bcd60e51b815260206004820152601d60248201527f65706f6368206c656e677468206d757374206e6f74206265207a65726f0000006044820152606490fd5b82516001600160a01b03811681036101ba5781526020928301920161007f565b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b6040519190601f01601f191682016001600160401b038111838210176101be5760405256fe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a714610610575080630a6f1fe8146105d85780631c45396a146105a65780631e526e451461056c578063446ccbf0146105285780634b53459c146104c85780634b84231c146104525780636470af00146101845780637051bfd514610143578063cfe8a73b14610109578063d574f4d7146100ec5763e5cc8664146100a0575f80fd5b346100e85760403660031901126100e8576001600160a01b036100c161067d565b165f525f60205260405f206024355f52602052602060ff60405f2054166040519015158152f35b5f80fd5b346100e8575f3660031901126100e8576020600154604051908152f35b346100e8575f3660031901126100e85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100e85761015136610693565b9160018060a01b03165f52600560205260405f20905f5260205260405f20905f52602052602060405f2054604051908152f35b346100e85761019236610693565b335f52600260205260405f205492831561040d577f000000000000000000000000000000000000000000000000000000000000000080156103f9575f1981018181116103a157818506036103e35750438310156103cc5760018060a01b031692836040518481528360208201527ff4ff953641f10e17dd93c0bc51334cb1f711fdcb4e37992021a5973f7a958f0960403392a3835f52600560205260405f20835f5260205260405f20825f5260205260405f2090845f52600460205260405f20845f5260205260405f206001830190610282838360019160ff918160081c5f52602052161b60405f205416151590565b1561028957005b600181016102ae848260019160ff918160081c5f52602052161b60405f205416151590565b6103b557906102d8846102ff9594938160081c5f52602052600160ff60405f2092161b8154179055565b6102e281546106bd565b90558160081c5f52602052600160ff60405f2092161b8154179055565b61030981546106bd565b8091557f000000000000000000000000000000000000000000000000000000000000000060011c60010190816001116103a1571461034357005b7f0f2cd00a405c0d1a66050307b6722c4788db6ed57aa3589a5c38da535cc3ce6391604091845f525f602052825f20815f52602052825f20600160ff1982541617905582519182526020820152a261039c6001546106bd565b600155005b634e487b7160e01b5f52601160045260245ffd5b8688637e94264560e01b5f5260045260245260445ffd5b8263d804a6a160e01b5f526004524360245260445ffd5b8363c92a0d6960e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601260045260245ffd5b60405162461bcd60e51b815260206004820152601f60248201527f51756f72756d3a2063616c6c6572206973206e6f742076616c696461746f72006044820152606490fd5b346100e85760803660031901126100e8576001600160a01b0361047361067d565b165f52600560205260405f206024355f5260205260405f206044355f5260205260206104be606435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b6040519015158152f35b346100e85760603660031901126100e8576001600160a01b036104e961067d565b165f52600460205260405f206024355f5260205260206104be604435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b346100e85760403660031901126100e8576001600160a01b0361054961067d565b165f52600460205260405f206024355f52602052602060405f2054604051908152f35b346100e8575f3660031901126100e85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100e85760203660031901126100e8576004355f526003602052602060018060a01b0360405f205416604051908152f35b346100e85760203660031901126100e8576001600160a01b036105f961067d565b165f526002602052602060405f2054604051908152f35b346100e85760203660031901126100e8576004359063ffffffff60e01b82168092036100e857602091631e492d3160e11b8114908115610652575b5015158152f35b631fbb3f3b60e21b81149150811561066c575b508361064b565b6301ffc9a760e01b14905083610665565b600435906001600160a01b03821682036100e857565b60609060031901126100e8576004356001600160a01b03811681036100e857906024359060443590565b5f1981146103a1576001019056fea264697066735822122006a00baa25a4d562d175339e7b2bd04d72973a69e1d469c04728d7b57652e60764736f6c634300081e0033
/// ```
#[rustfmt::skip]
#[allow(clippy::all)]
pub static BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"`\xC0`@R4a\x01\xBAWa\x08\xF9\x808\x03\x80a\0\x19\x81a\x01\xD2V[\x92\x839\x81\x01\x90`@\x81\x83\x03\x12a\x01\xBAW\x80Q`\x01`\x01`@\x1B\x03\x81\x11a\x01\xBAW\x81\x01\x82`\x1F\x82\x01\x12\x15a\x01\xBAW\x80Q\x92`\x01`\x01`@\x1B\x03\x84\x11a\x01\xBEW\x83`\x05\x1B\x91` \x80a\0j\x81\x86\x01a\x01\xD2V[\x80\x97\x81R\x01\x93\x82\x01\x01\x91\x82\x11a\x01\xBAW` \x01\x91[\x81\x83\x10a\x01\x9AW\x84` \x85\x01Q\x80\x15a\x01UW`\x80R_\x90_[\x81Q\x81\x10\x15a\x01\"W`\x01\x80`\xA0\x1B\x03` \x82`\x05\x1B\x84\x01\x01Q\x16\x80_R`\x02` R`@_ T\x15a\0\xD0W[P`\x01\x01a\0\x99V[\x92\x90_\x19\x82\x14a\x01\x0EW`\x01\x80\x92\x01\x93\x80_R`\x02` R\x84`@_ U\x84_R`\x03` R`@_ \x90\x83\x80`\xA0\x1B\x03\x19\x82T\x16\x17\x90U\x90a\0\xC7V[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[\x82`\xA0R`@Qa\x07\x01\x90\x81a\x01\xF8\x829`\x80Q\x81\x81\x81a\x01 \x01Ra\x01\xA8\x01R`\xA0Q\x81\x81\x81a\x03\x0E\x01Ra\x05\x83\x01R\xF3[`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1D`$\x82\x01R\x7Fepoch length must not be zero\0\0\0`D\x82\x01R`d\x90\xFD[\x82Q`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\x01\xBAW\x81R` \x92\x83\x01\x92\x01a\0\x7FV[_\x80\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[`@Q\x91\x90`\x1F\x01`\x1F\x19\x16\x82\x01`\x01`\x01`@\x1B\x03\x81\x11\x83\x82\x10\x17a\x01\xBEW`@RV\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x90\x81c\x01\xFF\xC9\xA7\x14a\x06\x10WP\x80c\no\x1F\xE8\x14a\x05\xD8W\x80c\x1CE9j\x14a\x05\xA6W\x80c\x1ERnE\x14a\x05lW\x80cDl\xCB\xF0\x14a\x05(W\x80cKSE\x9C\x14a\x04\xC8W\x80cK\x84#\x1C\x14a\x04RW\x80cdp\xAF\0\x14a\x01\x84W\x80cpQ\xBF\xD5\x14a\x01CW\x80c\xCF\xE8\xA7;\x14a\x01\tW\x80c\xD5t\xF4\xD7\x14a\0\xECWc\xE5\xCC\x86d\x14a\0\xA0W_\x80\xFD[4a\0\xE8W`@6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\0\xC1a\x06}V[\x16_R_` R`@_ `$5_R` R` `\xFF`@_ T\x16`@Q\x90\x15\x15\x81R\xF3[_\x80\xFD[4a\0\xE8W_6`\x03\x19\x01\x12a\0\xE8W` `\x01T`@Q\x90\x81R\xF3[4a\0\xE8W_6`\x03\x19\x01\x12a\0\xE8W` `@Q\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\x81R\xF3[4a\0\xE8Wa\x01Q6a\x06\x93V[\x91`\x01\x80`\xA0\x1B\x03\x16_R`\x05` R`@_ \x90_R` R`@_ \x90_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xE8Wa\x01\x926a\x06\x93V[3_R`\x02` R`@_ T\x92\x83\x15a\x04\rW\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\x80\x15a\x03\xF9W_\x19\x81\x01\x81\x81\x11a\x03\xA1W\x81\x85\x06\x03a\x03\xE3WPC\x83\x10\x15a\x03\xCCW`\x01\x80`\xA0\x1B\x03\x16\x92\x83`@Q\x84\x81R\x83` \x82\x01R\x7F\xF4\xFF\x956A\xF1\x0E\x17\xDD\x93\xC0\xBCQ3L\xB1\xF7\x11\xFD\xCBN7\x99 !\xA5\x97?z\x95\x8F\t`@3\x92\xA3\x83_R`\x05` R`@_ \x83_R` R`@_ \x82_R` R`@_ \x90\x84_R`\x04` R`@_ \x84_R` R`@_ `\x01\x83\x01\x90a\x02\x82\x83\x83`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[\x15a\x02\x89W\0[`\x01\x81\x01a\x02\xAE\x84\x82`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[a\x03\xB5W\x90a\x02\xD8\x84a\x02\xFF\x95\x94\x93\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x02\xE2\x81Ta\x06\xBDV[\x90U\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x03\t\x81Ta\x06\xBDV[\x80\x91U\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\x1C`\x01\x01\x90\x81`\x01\x11a\x03\xA1W\x14a\x03CW\0[\x7F\x0F,\xD0\n@\\\r\x1Af\x05\x03\x07\xB6r,G\x88\xDBn\xD5z\xA3X\x9A\\8\xDAS\\\xC3\xCEc\x91`@\x91\x84_R_` R\x82_ \x81_R` R\x82_ `\x01`\xFF\x19\x82T\x16\x17\x90U\x82Q\x91\x82R` \x82\x01R\xA2a\x03\x9C`\x01Ta\x06\xBDV[`\x01U\0[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[\x86\x88c~\x94&E`\xE0\x1B_R`\x04R`$R`D_\xFD[\x82c\xD8\x04\xA6\xA1`\xE0\x1B_R`\x04RC`$R`D_\xFD[\x83c\xC9*\ri`\xE0\x1B_R`\x04R`$R`D_\xFD[cNH{q`\xE0\x1B_R`\x12`\x04R`$_\xFD[`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FQuorum: caller is not validator\0`D\x82\x01R`d\x90\xFD[4a\0\xE8W`\x806`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x04sa\x06}V[\x16_R`\x05` R`@_ `$5_R` R`@_ `D5_R` R` a\x04\xBE`d5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[`@Q\x90\x15\x15\x81R\xF3[4a\0\xE8W``6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x04\xE9a\x06}V[\x16_R`\x04` R`@_ `$5_R` R` a\x04\xBE`D5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[4a\0\xE8W`@6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x05Ia\x06}V[\x16_R`\x04` R`@_ `$5_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xE8W_6`\x03\x19\x01\x12a\0\xE8W` `@Q\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\x81R\xF3[4a\0\xE8W` 6`\x03\x19\x01\x12a\0\xE8W`\x045_R`\x03` R` `\x01\x80`\xA0\x1B\x03`@_ T\x16`@Q\x90\x81R\xF3[4a\0\xE8W` 6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x05\xF9a\x06}V[\x16_R`\x02` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xE8W` 6`\x03\x19\x01\x12a\0\xE8W`\x045\x90c\xFF\xFF\xFF\xFF`\xE0\x1B\x82\x16\x80\x92\x03a\0\xE8W` \x91c\x1EI-1`\xE1\x1B\x81\x14\x90\x81\x15a\x06RW[P\x15\x15\x81R\xF3[c\x1F\xBB?;`\xE2\x1B\x81\x14\x91P\x81\x15a\x06lW[P\x83a\x06KV[c\x01\xFF\xC9\xA7`\xE0\x1B\x14\x90P\x83a\x06eV[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\0\xE8WV[``\x90`\x03\x19\x01\x12a\0\xE8W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\0\xE8W\x90`$5\x90`D5\x90V[_\x19\x81\x14a\x03\xA1W`\x01\x01\x90V\xFE\xA2dipfsX\"\x12 \x06\xA0\x0B\xAA%\xA4\xD5b\xD1u3\x9E{+\xD0Mr\x97:i\xE1\xD4i\xC0G(\xD7\xB5vR\xE6\x07dsolcC\0\x08\x1E\x003",
);
/// The runtime bytecode of the contract, as deployed on the network.
///
/// ```text
///0x6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a714610610575080630a6f1fe8146105d85780631c45396a146105a65780631e526e451461056c578063446ccbf0146105285780634b53459c146104c85780634b84231c146104525780636470af00146101845780637051bfd514610143578063cfe8a73b14610109578063d574f4d7146100ec5763e5cc8664146100a0575f80fd5b346100e85760403660031901126100e8576001600160a01b036100c161067d565b165f525f60205260405f206024355f52602052602060ff60405f2054166040519015158152f35b5f80fd5b346100e8575f3660031901126100e8576020600154604051908152f35b346100e8575f3660031901126100e85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100e85761015136610693565b9160018060a01b03165f52600560205260405f20905f5260205260405f20905f52602052602060405f2054604051908152f35b346100e85761019236610693565b335f52600260205260405f205492831561040d577f000000000000000000000000000000000000000000000000000000000000000080156103f9575f1981018181116103a157818506036103e35750438310156103cc5760018060a01b031692836040518481528360208201527ff4ff953641f10e17dd93c0bc51334cb1f711fdcb4e37992021a5973f7a958f0960403392a3835f52600560205260405f20835f5260205260405f20825f5260205260405f2090845f52600460205260405f20845f5260205260405f206001830190610282838360019160ff918160081c5f52602052161b60405f205416151590565b1561028957005b600181016102ae848260019160ff918160081c5f52602052161b60405f205416151590565b6103b557906102d8846102ff9594938160081c5f52602052600160ff60405f2092161b8154179055565b6102e281546106bd565b90558160081c5f52602052600160ff60405f2092161b8154179055565b61030981546106bd565b8091557f000000000000000000000000000000000000000000000000000000000000000060011c60010190816001116103a1571461034357005b7f0f2cd00a405c0d1a66050307b6722c4788db6ed57aa3589a5c38da535cc3ce6391604091845f525f602052825f20815f52602052825f20600160ff1982541617905582519182526020820152a261039c6001546106bd565b600155005b634e487b7160e01b5f52601160045260245ffd5b8688637e94264560e01b5f5260045260245260445ffd5b8263d804a6a160e01b5f526004524360245260445ffd5b8363c92a0d6960e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601260045260245ffd5b60405162461bcd60e51b815260206004820152601f60248201527f51756f72756d3a2063616c6c6572206973206e6f742076616c696461746f72006044820152606490fd5b346100e85760803660031901126100e8576001600160a01b0361047361067d565b165f52600560205260405f206024355f5260205260405f206044355f5260205260206104be606435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b6040519015158152f35b346100e85760603660031901126100e8576001600160a01b036104e961067d565b165f52600460205260405f206024355f5260205260206104be604435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b346100e85760403660031901126100e8576001600160a01b0361054961067d565b165f52600460205260405f206024355f52602052602060405f2054604051908152f35b346100e8575f3660031901126100e85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100e85760203660031901126100e8576004355f526003602052602060018060a01b0360405f205416604051908152f35b346100e85760203660031901126100e8576001600160a01b036105f961067d565b165f526002602052602060405f2054604051908152f35b346100e85760203660031901126100e8576004359063ffffffff60e01b82168092036100e857602091631e492d3160e11b8114908115610652575b5015158152f35b631fbb3f3b60e21b81149150811561066c575b508361064b565b6301ffc9a760e01b14905083610665565b600435906001600160a01b03821682036100e857565b60609060031901126100e8576004356001600160a01b03811681036100e857906024359060443590565b5f1981146103a1576001019056fea264697066735822122006a00baa25a4d562d175339e7b2bd04d72973a69e1d469c04728d7b57652e60764736f6c634300081e0033
/// ```
#[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[_5`\xE0\x1C\x90\x81c\x01\xFF\xC9\xA7\x14a\x06\x10WP\x80c\no\x1F\xE8\x14a\x05\xD8W\x80c\x1CE9j\x14a\x05\xA6W\x80c\x1ERnE\x14a\x05lW\x80cDl\xCB\xF0\x14a\x05(W\x80cKSE\x9C\x14a\x04\xC8W\x80cK\x84#\x1C\x14a\x04RW\x80cdp\xAF\0\x14a\x01\x84W\x80cpQ\xBF\xD5\x14a\x01CW\x80c\xCF\xE8\xA7;\x14a\x01\tW\x80c\xD5t\xF4\xD7\x14a\0\xECWc\xE5\xCC\x86d\x14a\0\xA0W_\x80\xFD[4a\0\xE8W`@6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\0\xC1a\x06}V[\x16_R_` R`@_ `$5_R` R` `\xFF`@_ T\x16`@Q\x90\x15\x15\x81R\xF3[_\x80\xFD[4a\0\xE8W_6`\x03\x19\x01\x12a\0\xE8W` `\x01T`@Q\x90\x81R\xF3[4a\0\xE8W_6`\x03\x19\x01\x12a\0\xE8W` `@Q\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\x81R\xF3[4a\0\xE8Wa\x01Q6a\x06\x93V[\x91`\x01\x80`\xA0\x1B\x03\x16_R`\x05` R`@_ \x90_R` R`@_ \x90_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xE8Wa\x01\x926a\x06\x93V[3_R`\x02` R`@_ T\x92\x83\x15a\x04\rW\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\x80\x15a\x03\xF9W_\x19\x81\x01\x81\x81\x11a\x03\xA1W\x81\x85\x06\x03a\x03\xE3WPC\x83\x10\x15a\x03\xCCW`\x01\x80`\xA0\x1B\x03\x16\x92\x83`@Q\x84\x81R\x83` \x82\x01R\x7F\xF4\xFF\x956A\xF1\x0E\x17\xDD\x93\xC0\xBCQ3L\xB1\xF7\x11\xFD\xCBN7\x99 !\xA5\x97?z\x95\x8F\t`@3\x92\xA3\x83_R`\x05` R`@_ \x83_R` R`@_ \x82_R` R`@_ \x90\x84_R`\x04` R`@_ \x84_R` R`@_ `\x01\x83\x01\x90a\x02\x82\x83\x83`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[\x15a\x02\x89W\0[`\x01\x81\x01a\x02\xAE\x84\x82`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[a\x03\xB5W\x90a\x02\xD8\x84a\x02\xFF\x95\x94\x93\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x02\xE2\x81Ta\x06\xBDV[\x90U\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x03\t\x81Ta\x06\xBDV[\x80\x91U\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\x1C`\x01\x01\x90\x81`\x01\x11a\x03\xA1W\x14a\x03CW\0[\x7F\x0F,\xD0\n@\\\r\x1Af\x05\x03\x07\xB6r,G\x88\xDBn\xD5z\xA3X\x9A\\8\xDAS\\\xC3\xCEc\x91`@\x91\x84_R_` R\x82_ \x81_R` R\x82_ `\x01`\xFF\x19\x82T\x16\x17\x90U\x82Q\x91\x82R` \x82\x01R\xA2a\x03\x9C`\x01Ta\x06\xBDV[`\x01U\0[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[\x86\x88c~\x94&E`\xE0\x1B_R`\x04R`$R`D_\xFD[\x82c\xD8\x04\xA6\xA1`\xE0\x1B_R`\x04RC`$R`D_\xFD[\x83c\xC9*\ri`\xE0\x1B_R`\x04R`$R`D_\xFD[cNH{q`\xE0\x1B_R`\x12`\x04R`$_\xFD[`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FQuorum: caller is not validator\0`D\x82\x01R`d\x90\xFD[4a\0\xE8W`\x806`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x04sa\x06}V[\x16_R`\x05` R`@_ `$5_R` R`@_ `D5_R` R` a\x04\xBE`d5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[`@Q\x90\x15\x15\x81R\xF3[4a\0\xE8W``6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x04\xE9a\x06}V[\x16_R`\x04` R`@_ `$5_R` R` a\x04\xBE`D5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[4a\0\xE8W`@6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x05Ia\x06}V[\x16_R`\x04` R`@_ `$5_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xE8W_6`\x03\x19\x01\x12a\0\xE8W` `@Q\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\x81R\xF3[4a\0\xE8W` 6`\x03\x19\x01\x12a\0\xE8W`\x045_R`\x03` R` `\x01\x80`\xA0\x1B\x03`@_ T\x16`@Q\x90\x81R\xF3[4a\0\xE8W` 6`\x03\x19\x01\x12a\0\xE8W`\x01`\x01`\xA0\x1B\x03a\x05\xF9a\x06}V[\x16_R`\x02` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xE8W` 6`\x03\x19\x01\x12a\0\xE8W`\x045\x90c\xFF\xFF\xFF\xFF`\xE0\x1B\x82\x16\x80\x92\x03a\0\xE8W` \x91c\x1EI-1`\xE1\x1B\x81\x14\x90\x81\x15a\x06RW[P\x15\x15\x81R\xF3[c\x1F\xBB?;`\xE2\x1B\x81\x14\x91P\x81\x15a\x06lW[P\x83a\x06KV[c\x01\xFF\xC9\xA7`\xE0\x1B\x14\x90P\x83a\x06eV[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\0\xE8WV[``\x90`\x03\x19\x01\x12a\0\xE8W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\0\xE8W\x90`$5\x90`D5\x90V[_\x19\x81\x14a\x03\xA1W`\x01\x01\x90V\xFE\xA2dipfsX\"\x12 \x06\xA0\x0B\xAA%\xA4\xD5b\xD1u3\x9E{+\xD0Mr\x97:i\xE1\xD4i\xC0G(\xD7\xB5vR\xE6\x07dsolcC\0\x08\x1E\x003",
);
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Custom error with signature `NotEpochFinalBlock(uint256,uint256)` and selector `0xc92a0d69`.
```solidity
error NotEpochFinalBlock(uint256 lastProcessedBlockNumber, uint256 epochLength);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct NotEpochFinalBlock {
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub epochLength: 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>,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::primitives::aliases::U256,
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<NotEpochFinalBlock> for UnderlyingRustTuple<'_> {
fn from(value: NotEpochFinalBlock) -> Self {
(value.lastProcessedBlockNumber, value.epochLength)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for NotEpochFinalBlock {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
lastProcessedBlockNumber: tuple.0,
epochLength: tuple.1,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for NotEpochFinalBlock {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "NotEpochFinalBlock(uint256,uint256)";
const SELECTOR: [u8; 4] = [201u8, 42u8, 13u8, 105u8];
#[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.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.epochLength),
)
}
#[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 `NotFirstClaim(address,uint256)` and selector `0x7e942645`.
```solidity
error NotFirstClaim(address appContract, uint256 lastProcessedBlockNumber);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct NotFirstClaim {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: 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<NotFirstClaim> for UnderlyingRustTuple<'_> {
fn from(value: NotFirstClaim) -> Self {
(value.appContract, value.lastProcessedBlockNumber)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for NotFirstClaim {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
appContract: tuple.0,
lastProcessedBlockNumber: tuple.1,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for NotFirstClaim {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "NotFirstClaim(address,uint256)";
const SELECTOR: [u8; 4] = [126u8, 148u8, 38u8, 69u8];
#[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.appContract,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
)
}
#[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 `NotPastBlock(uint256,uint256)` and selector `0xd804a6a1`.
```solidity
error NotPastBlock(uint256 lastProcessedBlockNumber, uint256 currentBlockNumber);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct NotPastBlock {
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub currentBlockNumber: 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>,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::primitives::aliases::U256,
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<NotPastBlock> for UnderlyingRustTuple<'_> {
fn from(value: NotPastBlock) -> Self {
(value.lastProcessedBlockNumber, value.currentBlockNumber)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for NotPastBlock {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
lastProcessedBlockNumber: tuple.0,
currentBlockNumber: tuple.1,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolError for NotPastBlock {
type Parameters<'a> = UnderlyingSolTuple<'a>;
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "NotPastBlock(uint256,uint256)";
const SELECTOR: [u8; 4] = [216u8, 4u8, 166u8, 161u8];
#[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.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.currentBlockNumber),
)
}
#[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 `ClaimAccepted(address,uint256,bytes32)` and selector `0x0f2cd00a405c0d1a66050307b6722c4788db6ed57aa3589a5c38da535cc3ce63`.
```solidity
event ClaimAccepted(address indexed appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot);
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct ClaimAccepted {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
}
#[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 ClaimAccepted {
type DataTuple<'a> = (
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
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,
);
const SIGNATURE: &'static str = "ClaimAccepted(address,uint256,bytes32)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
15u8, 44u8, 208u8, 10u8, 64u8, 92u8, 13u8, 26u8, 102u8, 5u8, 3u8, 7u8,
182u8, 114u8, 44u8, 71u8, 136u8, 219u8, 110u8, 213u8, 122u8, 163u8, 88u8,
154u8, 92u8, 56u8, 218u8, 83u8, 92u8, 195u8, 206u8, 99u8,
]);
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 {
appContract: topics.1,
lastProcessedBlockNumber: data.0,
outputsMerkleRoot: data.1,
}
}
#[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::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.outputsMerkleRoot),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(Self::SIGNATURE_HASH.into(), self.appContract.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.appContract,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for ClaimAccepted {
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<&ClaimAccepted> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &ClaimAccepted) -> 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 `ClaimSubmitted(address,address,uint256,bytes32)` and selector `0xf4ff953641f10e17dd93c0bc51334cb1f711fdcb4e37992021a5973f7a958f09`.
```solidity
event ClaimSubmitted(address indexed submitter, address indexed appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot);
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct ClaimSubmitted {
#[allow(missing_docs)]
pub submitter: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
}
#[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 ClaimSubmitted {
type DataTuple<'a> = (
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
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 = "ClaimSubmitted(address,address,uint256,bytes32)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
244u8, 255u8, 149u8, 54u8, 65u8, 241u8, 14u8, 23u8, 221u8, 147u8, 192u8,
188u8, 81u8, 51u8, 76u8, 177u8, 247u8, 17u8, 253u8, 203u8, 78u8, 55u8,
153u8, 32u8, 33u8, 165u8, 151u8, 63u8, 122u8, 149u8, 143u8, 9u8,
]);
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 {
submitter: topics.1,
appContract: topics.2,
lastProcessedBlockNumber: data.0,
outputsMerkleRoot: data.1,
}
}
#[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::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.outputsMerkleRoot),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(
Self::SIGNATURE_HASH.into(),
self.submitter.clone(),
self.appContract.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.submitter,
);
out[2usize] = <alloy::sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.appContract,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for ClaimSubmitted {
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<&ClaimSubmitted> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &ClaimSubmitted) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
/**Constructor`.
```solidity
constructor(address[] validators, uint256 epochLength);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct constructorCall {
#[allow(missing_docs)]
pub validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
#[allow(missing_docs)]
pub epochLength: 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::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Vec<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.validators, value.epochLength)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for constructorCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
validators: tuple.0,
epochLength: tuple.1,
}
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolConstructor for constructorCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Array<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::Array<
alloy::sol_types::sol_data::Address,
> as alloy_sol_types::SolType>::tokenize(&self.validators),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.epochLength),
)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `getEpochLength()` and selector `0xcfe8a73b`.
```solidity
function getEpochLength() external view returns (uint256);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getEpochLengthCall;
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`getEpochLength()`](getEpochLengthCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getEpochLengthReturn {
#[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> = ();
#[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<getEpochLengthCall> for UnderlyingRustTuple<'_> {
fn from(value: getEpochLengthCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getEpochLengthCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self
}
}
}
{
#[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<getEpochLengthReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getEpochLengthReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getEpochLengthReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getEpochLengthCall {
type Parameters<'a> = ();
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 = "getEpochLength()";
const SELECTOR: [u8; 4] = [207u8, 232u8, 167u8, 59u8];
#[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::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: getEpochLengthReturn = 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: getEpochLengthReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `getNumberOfAcceptedClaims()` and selector `0xd574f4d7`.
```solidity
function getNumberOfAcceptedClaims() external view returns (uint256);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getNumberOfAcceptedClaimsCall;
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`getNumberOfAcceptedClaims()`](getNumberOfAcceptedClaimsCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getNumberOfAcceptedClaimsReturn {
#[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> = ();
#[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<getNumberOfAcceptedClaimsCall>
for UnderlyingRustTuple<'_> {
fn from(value: getNumberOfAcceptedClaimsCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getNumberOfAcceptedClaimsCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self
}
}
}
{
#[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<getNumberOfAcceptedClaimsReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getNumberOfAcceptedClaimsReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getNumberOfAcceptedClaimsReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getNumberOfAcceptedClaimsCall {
type Parameters<'a> = ();
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 = "getNumberOfAcceptedClaims()";
const SELECTOR: [u8; 4] = [213u8, 116u8, 244u8, 215u8];
#[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::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: getNumberOfAcceptedClaimsReturn = 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: getNumberOfAcceptedClaimsReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `isOutputsMerkleRootValid(address,bytes32)` and selector `0xe5cc8664`.
```solidity
function isOutputsMerkleRootValid(address appContract, bytes32 outputsMerkleRoot) external view returns (bool);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isOutputsMerkleRootValidCall {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`isOutputsMerkleRootValid(address,bytes32)`](isOutputsMerkleRootValidCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isOutputsMerkleRootValidReturn {
#[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::FixedBytes<32>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::FixedBytes<32>,
);
#[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<isOutputsMerkleRootValidCall>
for UnderlyingRustTuple<'_> {
fn from(value: isOutputsMerkleRootValidCall) -> Self {
(value.appContract, value.outputsMerkleRoot)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isOutputsMerkleRootValidCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
appContract: tuple.0,
outputsMerkleRoot: 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<isOutputsMerkleRootValidReturn>
for UnderlyingRustTuple<'_> {
fn from(value: isOutputsMerkleRootValidReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isOutputsMerkleRootValidReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for isOutputsMerkleRootValidCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::FixedBytes<32>,
);
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 = "isOutputsMerkleRootValid(address,bytes32)";
const SELECTOR: [u8; 4] = [229u8, 204u8, 134u8, 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.appContract,
),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.outputsMerkleRoot),
)
}
#[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: isOutputsMerkleRootValidReturn = 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: isOutputsMerkleRootValidReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `isValidatorInFavorOf(address,uint256,bytes32,uint256)` and selector `0x4b84231c`.
```solidity
function isValidatorInFavorOf(address appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot, uint256 id) external view returns (bool);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isValidatorInFavorOfCall {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub id: 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 [`isValidatorInFavorOf(address,uint256,bytes32,uint256)`](isValidatorInFavorOfCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isValidatorInFavorOfReturn {
#[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::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
alloy::sol_types::private::FixedBytes<32>,
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<isValidatorInFavorOfCall>
for UnderlyingRustTuple<'_> {
fn from(value: isValidatorInFavorOfCall) -> Self {
(
value.appContract,
value.lastProcessedBlockNumber,
value.outputsMerkleRoot,
value.id,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isValidatorInFavorOfCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
appContract: tuple.0,
lastProcessedBlockNumber: tuple.1,
outputsMerkleRoot: tuple.2,
id: tuple.3,
}
}
}
}
{
#[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<isValidatorInFavorOfReturn>
for UnderlyingRustTuple<'_> {
fn from(value: isValidatorInFavorOfReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isValidatorInFavorOfReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for isValidatorInFavorOfCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
alloy::sol_types::sol_data::Uint<256>,
);
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 = "isValidatorInFavorOf(address,uint256,bytes32,uint256)";
const SELECTOR: [u8; 4] = [75u8, 132u8, 35u8, 28u8];
#[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.appContract,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.outputsMerkleRoot),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.id),
)
}
#[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: isValidatorInFavorOfReturn = 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: isValidatorInFavorOfReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `isValidatorInFavorOfAnyClaimInEpoch(address,uint256,uint256)` and selector `0x4b53459c`.
```solidity
function isValidatorInFavorOfAnyClaimInEpoch(address appContract, uint256 lastProcessedBlockNumber, uint256 id) external view returns (bool);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isValidatorInFavorOfAnyClaimInEpochCall {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub id: 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 [`isValidatorInFavorOfAnyClaimInEpoch(address,uint256,uint256)`](isValidatorInFavorOfAnyClaimInEpochCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct isValidatorInFavorOfAnyClaimInEpochReturn {
#[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::Uint<256>,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
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<isValidatorInFavorOfAnyClaimInEpochCall>
for UnderlyingRustTuple<'_> {
fn from(value: isValidatorInFavorOfAnyClaimInEpochCall) -> Self {
(value.appContract, value.lastProcessedBlockNumber, value.id)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isValidatorInFavorOfAnyClaimInEpochCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
appContract: tuple.0,
lastProcessedBlockNumber: tuple.1,
id: tuple.2,
}
}
}
}
{
#[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<isValidatorInFavorOfAnyClaimInEpochReturn>
for UnderlyingRustTuple<'_> {
fn from(value: isValidatorInFavorOfAnyClaimInEpochReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for isValidatorInFavorOfAnyClaimInEpochReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for isValidatorInFavorOfAnyClaimInEpochCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::Uint<256>,
);
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 = "isValidatorInFavorOfAnyClaimInEpoch(address,uint256,uint256)";
const SELECTOR: [u8; 4] = [75u8, 83u8, 69u8, 156u8];
#[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.appContract,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.id),
)
}
#[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: isValidatorInFavorOfAnyClaimInEpochReturn = 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: isValidatorInFavorOfAnyClaimInEpochReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `numOfValidators()` and selector `0x1e526e45`.
```solidity
function numOfValidators() external view returns (uint256);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct numOfValidatorsCall;
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`numOfValidators()`](numOfValidatorsCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct numOfValidatorsReturn {
#[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> = ();
#[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<numOfValidatorsCall> for UnderlyingRustTuple<'_> {
fn from(value: numOfValidatorsCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for numOfValidatorsCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self
}
}
}
{
#[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<numOfValidatorsReturn>
for UnderlyingRustTuple<'_> {
fn from(value: numOfValidatorsReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for numOfValidatorsReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for numOfValidatorsCall {
type Parameters<'a> = ();
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 = "numOfValidators()";
const SELECTOR: [u8; 4] = [30u8, 82u8, 110u8, 69u8];
#[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::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: numOfValidatorsReturn = 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: numOfValidatorsReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `numOfValidatorsInFavorOf(address,uint256,bytes32)` and selector `0x7051bfd5`.
```solidity
function numOfValidatorsInFavorOf(address appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot) external view returns (uint256);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct numOfValidatorsInFavorOfCall {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`numOfValidatorsInFavorOf(address,uint256,bytes32)`](numOfValidatorsInFavorOfCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct numOfValidatorsInFavorOfReturn {
#[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,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
alloy::sol_types::private::FixedBytes<32>,
);
#[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<numOfValidatorsInFavorOfCall>
for UnderlyingRustTuple<'_> {
fn from(value: numOfValidatorsInFavorOfCall) -> Self {
(
value.appContract,
value.lastProcessedBlockNumber,
value.outputsMerkleRoot,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for numOfValidatorsInFavorOfCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
appContract: tuple.0,
lastProcessedBlockNumber: tuple.1,
outputsMerkleRoot: tuple.2,
}
}
}
}
{
#[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<numOfValidatorsInFavorOfReturn>
for UnderlyingRustTuple<'_> {
fn from(value: numOfValidatorsInFavorOfReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for numOfValidatorsInFavorOfReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for numOfValidatorsInFavorOfCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
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 = "numOfValidatorsInFavorOf(address,uint256,bytes32)";
const SELECTOR: [u8; 4] = [112u8, 81u8, 191u8, 213u8];
#[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.appContract,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.outputsMerkleRoot),
)
}
#[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: numOfValidatorsInFavorOfReturn = 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: numOfValidatorsInFavorOfReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `numOfValidatorsInFavorOfAnyClaimInEpoch(address,uint256)` and selector `0x446ccbf0`.
```solidity
function numOfValidatorsInFavorOfAnyClaimInEpoch(address appContract, uint256 lastProcessedBlockNumber) external view returns (uint256);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct numOfValidatorsInFavorOfAnyClaimInEpochCall {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: 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 [`numOfValidatorsInFavorOfAnyClaimInEpoch(address,uint256)`](numOfValidatorsInFavorOfAnyClaimInEpochCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct numOfValidatorsInFavorOfAnyClaimInEpochReturn {
#[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,
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<numOfValidatorsInFavorOfAnyClaimInEpochCall>
for UnderlyingRustTuple<'_> {
fn from(value: numOfValidatorsInFavorOfAnyClaimInEpochCall) -> Self {
(value.appContract, value.lastProcessedBlockNumber)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for numOfValidatorsInFavorOfAnyClaimInEpochCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
appContract: tuple.0,
lastProcessedBlockNumber: tuple.1,
}
}
}
}
{
#[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<numOfValidatorsInFavorOfAnyClaimInEpochReturn>
for UnderlyingRustTuple<'_> {
fn from(value: numOfValidatorsInFavorOfAnyClaimInEpochReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for numOfValidatorsInFavorOfAnyClaimInEpochReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for numOfValidatorsInFavorOfAnyClaimInEpochCall {
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 = 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 = "numOfValidatorsInFavorOfAnyClaimInEpoch(address,uint256)";
const SELECTOR: [u8; 4] = [68u8, 108u8, 203u8, 240u8];
#[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.appContract,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
)
}
#[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: numOfValidatorsInFavorOfAnyClaimInEpochReturn = 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: numOfValidatorsInFavorOfAnyClaimInEpochReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `submitClaim(address,uint256,bytes32)` and selector `0x6470af00`.
```solidity
function submitClaim(address appContract, uint256 lastProcessedBlockNumber, bytes32 outputsMerkleRoot) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct submitClaimCall {
#[allow(missing_docs)]
pub appContract: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
}
///Container type for the return parameters of the [`submitClaim(address,uint256,bytes32)`](submitClaimCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct submitClaimReturn {}
#[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::FixedBytes<32>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::primitives::aliases::U256,
alloy::sol_types::private::FixedBytes<32>,
);
#[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<submitClaimCall> for UnderlyingRustTuple<'_> {
fn from(value: submitClaimCall) -> Self {
(
value.appContract,
value.lastProcessedBlockNumber,
value.outputsMerkleRoot,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for submitClaimCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
appContract: tuple.0,
lastProcessedBlockNumber: tuple.1,
outputsMerkleRoot: 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<submitClaimReturn> for UnderlyingRustTuple<'_> {
fn from(value: submitClaimReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for submitClaimReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl submitClaimReturn {
fn _tokenize(
&self,
) -> <submitClaimCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for submitClaimCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = submitClaimReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "submitClaim(address,uint256,bytes32)";
const SELECTOR: [u8; 4] = [100u8, 112u8, 175u8, 0u8];
#[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.appContract,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(
&self.lastProcessedBlockNumber,
),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.outputsMerkleRoot),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
submitClaimReturn::_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 `validatorById(uint256)` and selector `0x1c45396a`.
```solidity
function validatorById(uint256 id) external view returns (address);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct validatorByIdCall {
#[allow(missing_docs)]
pub id: 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 [`validatorById(uint256)`](validatorByIdCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct validatorByIdReturn {
#[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<validatorByIdCall> for UnderlyingRustTuple<'_> {
fn from(value: validatorByIdCall) -> Self {
(value.id,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for validatorByIdCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { id: 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<validatorByIdReturn> for UnderlyingRustTuple<'_> {
fn from(value: validatorByIdReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for validatorByIdReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for validatorByIdCall {
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 = "validatorById(uint256)";
const SELECTOR: [u8; 4] = [28u8, 69u8, 57u8, 106u8];
#[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.id),
)
}
#[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: validatorByIdReturn = 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: validatorByIdReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `validatorId(address)` and selector `0x0a6f1fe8`.
```solidity
function validatorId(address validator) external view returns (uint256);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct validatorIdCall {
#[allow(missing_docs)]
pub validator: alloy::sol_types::private::Address,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`validatorId(address)`](validatorIdCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct validatorIdReturn {
#[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<validatorIdCall> for UnderlyingRustTuple<'_> {
fn from(value: validatorIdCall) -> Self {
(value.validator,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for validatorIdCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { validator: 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<validatorIdReturn> for UnderlyingRustTuple<'_> {
fn from(value: validatorIdReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for validatorIdReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for validatorIdCall {
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 = "validatorId(address)";
const SELECTOR: [u8; 4] = [10u8, 111u8, 31u8, 232u8];
#[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.validator,
),
)
}
#[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: validatorIdReturn = 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: validatorIdReturn = r.into();
r._0
})
}
}
};
///Container for all the [`Quorum`](self) function calls.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive()]
pub enum QuorumCalls {
#[allow(missing_docs)]
getEpochLength(getEpochLengthCall),
#[allow(missing_docs)]
getNumberOfAcceptedClaims(getNumberOfAcceptedClaimsCall),
#[allow(missing_docs)]
isOutputsMerkleRootValid(isOutputsMerkleRootValidCall),
#[allow(missing_docs)]
isValidatorInFavorOf(isValidatorInFavorOfCall),
#[allow(missing_docs)]
isValidatorInFavorOfAnyClaimInEpoch(isValidatorInFavorOfAnyClaimInEpochCall),
#[allow(missing_docs)]
numOfValidators(numOfValidatorsCall),
#[allow(missing_docs)]
numOfValidatorsInFavorOf(numOfValidatorsInFavorOfCall),
#[allow(missing_docs)]
numOfValidatorsInFavorOfAnyClaimInEpoch(
numOfValidatorsInFavorOfAnyClaimInEpochCall,
),
#[allow(missing_docs)]
submitClaim(submitClaimCall),
#[allow(missing_docs)]
supportsInterface(supportsInterfaceCall),
#[allow(missing_docs)]
validatorById(validatorByIdCall),
#[allow(missing_docs)]
validatorId(validatorIdCall),
}
impl QuorumCalls {
/// 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],
[10u8, 111u8, 31u8, 232u8],
[28u8, 69u8, 57u8, 106u8],
[30u8, 82u8, 110u8, 69u8],
[68u8, 108u8, 203u8, 240u8],
[75u8, 83u8, 69u8, 156u8],
[75u8, 132u8, 35u8, 28u8],
[100u8, 112u8, 175u8, 0u8],
[112u8, 81u8, 191u8, 213u8],
[207u8, 232u8, 167u8, 59u8],
[213u8, 116u8, 244u8, 215u8],
[229u8, 204u8, 134u8, 100u8],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(supportsInterface),
::core::stringify!(validatorId),
::core::stringify!(validatorById),
::core::stringify!(numOfValidators),
::core::stringify!(numOfValidatorsInFavorOfAnyClaimInEpoch),
::core::stringify!(isValidatorInFavorOfAnyClaimInEpoch),
::core::stringify!(isValidatorInFavorOf),
::core::stringify!(submitClaim),
::core::stringify!(numOfValidatorsInFavorOf),
::core::stringify!(getEpochLength),
::core::stringify!(getNumberOfAcceptedClaims),
::core::stringify!(isOutputsMerkleRootValid),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<supportsInterfaceCall as alloy_sol_types::SolCall>::SIGNATURE,
<validatorIdCall as alloy_sol_types::SolCall>::SIGNATURE,
<validatorByIdCall as alloy_sol_types::SolCall>::SIGNATURE,
<numOfValidatorsCall as alloy_sol_types::SolCall>::SIGNATURE,
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::SIGNATURE,
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::SIGNATURE,
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::SIGNATURE,
<submitClaimCall as alloy_sol_types::SolCall>::SIGNATURE,
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::SIGNATURE,
<getEpochLengthCall as alloy_sol_types::SolCall>::SIGNATURE,
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::SIGNATURE,
<isOutputsMerkleRootValidCall 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 QuorumCalls {
const NAME: &'static str = "QuorumCalls";
const MIN_DATA_LENGTH: usize = 0usize;
const COUNT: usize = 12usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::getEpochLength(_) => {
<getEpochLengthCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getNumberOfAcceptedClaims(_) => {
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::isOutputsMerkleRootValid(_) => {
<isOutputsMerkleRootValidCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::isValidatorInFavorOf(_) => {
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::isValidatorInFavorOfAnyClaimInEpoch(_) => {
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::numOfValidators(_) => {
<numOfValidatorsCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::numOfValidatorsInFavorOf(_) => {
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::numOfValidatorsInFavorOfAnyClaimInEpoch(_) => {
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::submitClaim(_) => {
<submitClaimCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::supportsInterface(_) => {
<supportsInterfaceCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::validatorById(_) => {
<validatorByIdCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::validatorId(_) => {
<validatorIdCall 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<QuorumCalls>] = &[
{
fn supportsInterface(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::supportsInterface)
}
supportsInterface
},
{
fn validatorId(data: &[u8]) -> alloy_sol_types::Result<QuorumCalls> {
<validatorIdCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::validatorId)
}
validatorId
},
{
fn validatorById(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<validatorByIdCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::validatorById)
}
validatorById
},
{
fn numOfValidators(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<numOfValidatorsCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::numOfValidators)
}
numOfValidators
},
{
fn numOfValidatorsInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::numOfValidatorsInFavorOfAnyClaimInEpoch)
}
numOfValidatorsInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::isValidatorInFavorOfAnyClaimInEpoch)
}
isValidatorInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::isValidatorInFavorOf)
}
isValidatorInFavorOf
},
{
fn submitClaim(data: &[u8]) -> alloy_sol_types::Result<QuorumCalls> {
<submitClaimCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::submitClaim)
}
submitClaim
},
{
fn numOfValidatorsInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::numOfValidatorsInFavorOf)
}
numOfValidatorsInFavorOf
},
{
fn getEpochLength(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<getEpochLengthCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::getEpochLength)
}
getEpochLength
},
{
fn getNumberOfAcceptedClaims(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::getNumberOfAcceptedClaims)
}
getNumberOfAcceptedClaims
},
{
fn isOutputsMerkleRootValid(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<isOutputsMerkleRootValidCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumCalls::isOutputsMerkleRootValid)
}
isOutputsMerkleRootValid
},
];
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<QuorumCalls>] = &[
{
fn supportsInterface(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::supportsInterface)
}
supportsInterface
},
{
fn validatorId(data: &[u8]) -> alloy_sol_types::Result<QuorumCalls> {
<validatorIdCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::validatorId)
}
validatorId
},
{
fn validatorById(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<validatorByIdCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::validatorById)
}
validatorById
},
{
fn numOfValidators(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<numOfValidatorsCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::numOfValidators)
}
numOfValidators
},
{
fn numOfValidatorsInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::numOfValidatorsInFavorOfAnyClaimInEpoch)
}
numOfValidatorsInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::isValidatorInFavorOfAnyClaimInEpoch)
}
isValidatorInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::isValidatorInFavorOf)
}
isValidatorInFavorOf
},
{
fn submitClaim(data: &[u8]) -> alloy_sol_types::Result<QuorumCalls> {
<submitClaimCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::submitClaim)
}
submitClaim
},
{
fn numOfValidatorsInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::numOfValidatorsInFavorOf)
}
numOfValidatorsInFavorOf
},
{
fn getEpochLength(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<getEpochLengthCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::getEpochLength)
}
getEpochLength
},
{
fn getNumberOfAcceptedClaims(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::getNumberOfAcceptedClaims)
}
getNumberOfAcceptedClaims
},
{
fn isOutputsMerkleRootValid(
data: &[u8],
) -> alloy_sol_types::Result<QuorumCalls> {
<isOutputsMerkleRootValidCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumCalls::isOutputsMerkleRootValid)
}
isOutputsMerkleRootValid
},
];
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::getEpochLength(inner) => {
<getEpochLengthCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getNumberOfAcceptedClaims(inner) => {
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::isOutputsMerkleRootValid(inner) => {
<isOutputsMerkleRootValidCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::isValidatorInFavorOf(inner) => {
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::isValidatorInFavorOfAnyClaimInEpoch(inner) => {
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::numOfValidators(inner) => {
<numOfValidatorsCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::numOfValidatorsInFavorOf(inner) => {
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::numOfValidatorsInFavorOfAnyClaimInEpoch(inner) => {
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::submitClaim(inner) => {
<submitClaimCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::supportsInterface(inner) => {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::validatorById(inner) => {
<validatorByIdCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::validatorId(inner) => {
<validatorIdCall 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::getEpochLength(inner) => {
<getEpochLengthCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getNumberOfAcceptedClaims(inner) => {
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::isOutputsMerkleRootValid(inner) => {
<isOutputsMerkleRootValidCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::isValidatorInFavorOf(inner) => {
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::isValidatorInFavorOfAnyClaimInEpoch(inner) => {
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::numOfValidators(inner) => {
<numOfValidatorsCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::numOfValidatorsInFavorOf(inner) => {
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::numOfValidatorsInFavorOfAnyClaimInEpoch(inner) => {
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::submitClaim(inner) => {
<submitClaimCall 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::validatorById(inner) => {
<validatorByIdCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::validatorId(inner) => {
<validatorIdCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
}
}
}
///Container for all the [`Quorum`](self) custom errors.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum QuorumErrors {
#[allow(missing_docs)]
NotEpochFinalBlock(NotEpochFinalBlock),
#[allow(missing_docs)]
NotFirstClaim(NotFirstClaim),
#[allow(missing_docs)]
NotPastBlock(NotPastBlock),
}
impl QuorumErrors {
/// 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]] = &[
[126u8, 148u8, 38u8, 69u8],
[201u8, 42u8, 13u8, 105u8],
[216u8, 4u8, 166u8, 161u8],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(NotFirstClaim),
::core::stringify!(NotEpochFinalBlock),
::core::stringify!(NotPastBlock),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<NotFirstClaim as alloy_sol_types::SolError>::SIGNATURE,
<NotEpochFinalBlock as alloy_sol_types::SolError>::SIGNATURE,
<NotPastBlock 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 QuorumErrors {
const NAME: &'static str = "QuorumErrors";
const MIN_DATA_LENGTH: usize = 64usize;
const COUNT: usize = 3usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::NotEpochFinalBlock(_) => {
<NotEpochFinalBlock as alloy_sol_types::SolError>::SELECTOR
}
Self::NotFirstClaim(_) => {
<NotFirstClaim as alloy_sol_types::SolError>::SELECTOR
}
Self::NotPastBlock(_) => {
<NotPastBlock 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<QuorumErrors>] = &[
{
fn NotFirstClaim(
data: &[u8],
) -> alloy_sol_types::Result<QuorumErrors> {
<NotFirstClaim as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(QuorumErrors::NotFirstClaim)
}
NotFirstClaim
},
{
fn NotEpochFinalBlock(
data: &[u8],
) -> alloy_sol_types::Result<QuorumErrors> {
<NotEpochFinalBlock as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(QuorumErrors::NotEpochFinalBlock)
}
NotEpochFinalBlock
},
{
fn NotPastBlock(
data: &[u8],
) -> alloy_sol_types::Result<QuorumErrors> {
<NotPastBlock as alloy_sol_types::SolError>::abi_decode_raw(data)
.map(QuorumErrors::NotPastBlock)
}
NotPastBlock
},
];
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<QuorumErrors>] = &[
{
fn NotFirstClaim(
data: &[u8],
) -> alloy_sol_types::Result<QuorumErrors> {
<NotFirstClaim as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(QuorumErrors::NotFirstClaim)
}
NotFirstClaim
},
{
fn NotEpochFinalBlock(
data: &[u8],
) -> alloy_sol_types::Result<QuorumErrors> {
<NotEpochFinalBlock as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(QuorumErrors::NotEpochFinalBlock)
}
NotEpochFinalBlock
},
{
fn NotPastBlock(
data: &[u8],
) -> alloy_sol_types::Result<QuorumErrors> {
<NotPastBlock as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(QuorumErrors::NotPastBlock)
}
NotPastBlock
},
];
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::NotEpochFinalBlock(inner) => {
<NotEpochFinalBlock as alloy_sol_types::SolError>::abi_encoded_size(
inner,
)
}
Self::NotFirstClaim(inner) => {
<NotFirstClaim as alloy_sol_types::SolError>::abi_encoded_size(inner)
}
Self::NotPastBlock(inner) => {
<NotPastBlock 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::NotEpochFinalBlock(inner) => {
<NotEpochFinalBlock as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::NotFirstClaim(inner) => {
<NotFirstClaim as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
Self::NotPastBlock(inner) => {
<NotPastBlock as alloy_sol_types::SolError>::abi_encode_raw(
inner,
out,
)
}
}
}
}
///Container for all the [`Quorum`](self) events.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum QuorumEvents {
#[allow(missing_docs)]
ClaimAccepted(ClaimAccepted),
#[allow(missing_docs)]
ClaimSubmitted(ClaimSubmitted),
}
impl QuorumEvents {
/// 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]] = &[
[
15u8, 44u8, 208u8, 10u8, 64u8, 92u8, 13u8, 26u8, 102u8, 5u8, 3u8, 7u8,
182u8, 114u8, 44u8, 71u8, 136u8, 219u8, 110u8, 213u8, 122u8, 163u8, 88u8,
154u8, 92u8, 56u8, 218u8, 83u8, 92u8, 195u8, 206u8, 99u8,
],
[
244u8, 255u8, 149u8, 54u8, 65u8, 241u8, 14u8, 23u8, 221u8, 147u8, 192u8,
188u8, 81u8, 51u8, 76u8, 177u8, 247u8, 17u8, 253u8, 203u8, 78u8, 55u8,
153u8, 32u8, 33u8, 165u8, 151u8, 63u8, 122u8, 149u8, 143u8, 9u8,
],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(ClaimAccepted),
::core::stringify!(ClaimSubmitted),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<ClaimAccepted as alloy_sol_types::SolEvent>::SIGNATURE,
<ClaimSubmitted 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 QuorumEvents {
const NAME: &'static str = "QuorumEvents";
const COUNT: usize = 2usize;
fn decode_raw_log(
topics: &[alloy_sol_types::Word],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
match topics.first().copied() {
Some(<ClaimAccepted as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<ClaimAccepted as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
)
.map(Self::ClaimAccepted)
}
Some(<ClaimSubmitted as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<ClaimSubmitted as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
)
.map(Self::ClaimSubmitted)
}
_ => {
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 QuorumEvents {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
match self {
Self::ClaimAccepted(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
Self::ClaimSubmitted(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
}
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
match self {
Self::ClaimAccepted(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
Self::ClaimSubmitted(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
}
}
}
use alloy::contract as alloy_contract;
/**Creates a new wrapper around an on-chain [`Quorum`](self) contract instance.
See the [wrapper's documentation](`QuorumInstance`) 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,
) -> QuorumInstance<P, N> {
QuorumInstance::<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,
validators: alloy::sol_types::private::Vec<alloy::sol_types::private::Address>,
epochLength: alloy::sol_types::private::primitives::aliases::U256,
) -> impl ::core::future::Future<
Output = alloy_contract::Result<QuorumInstance<P, N>>,
> {
QuorumInstance::<P, N>::deploy(__provider, validators, epochLength)
}
/**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,
validators: alloy::sol_types::private::Vec<alloy::sol_types::private::Address>,
epochLength: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::RawCallBuilder<P, N> {
QuorumInstance::<P, N>::deploy_builder(__provider, validators, epochLength)
}
/**A [`Quorum`](self) instance.
Contains type-safe methods for interacting with an on-chain instance of the
[`Quorum`](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 QuorumInstance<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 QuorumInstance<P, N> {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("QuorumInstance").field(&self.address).finish()
}
}
/// Instantiation and getters/setters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> QuorumInstance<P, N> {
/**Creates a new wrapper around an on-chain [`Quorum`](self) contract instance.
See the [wrapper's documentation](`QuorumInstance`) 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,
validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
epochLength: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::Result<QuorumInstance<P, N>> {
let call_builder = Self::deploy_builder(__provider, validators, epochLength);
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,
validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
epochLength: 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 {
validators,
epochLength,
},
)[..],
]
.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> QuorumInstance<&P, N> {
/// Clones the provider and returns a new instance with the cloned provider.
#[inline]
pub fn with_cloned_provider(self) -> QuorumInstance<P, N> {
QuorumInstance {
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,
> QuorumInstance<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 [`getEpochLength`] function.
pub fn getEpochLength(
&self,
) -> alloy_contract::SolCallBuilder<&P, getEpochLengthCall, N> {
self.call_builder(&getEpochLengthCall)
}
///Creates a new call builder for the [`getNumberOfAcceptedClaims`] function.
pub fn getNumberOfAcceptedClaims(
&self,
) -> alloy_contract::SolCallBuilder<&P, getNumberOfAcceptedClaimsCall, N> {
self.call_builder(&getNumberOfAcceptedClaimsCall)
}
///Creates a new call builder for the [`isOutputsMerkleRootValid`] function.
pub fn isOutputsMerkleRootValid(
&self,
appContract: alloy::sol_types::private::Address,
outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
) -> alloy_contract::SolCallBuilder<&P, isOutputsMerkleRootValidCall, N> {
self.call_builder(
&isOutputsMerkleRootValidCall {
appContract,
outputsMerkleRoot,
},
)
}
///Creates a new call builder for the [`isValidatorInFavorOf`] function.
pub fn isValidatorInFavorOf(
&self,
appContract: alloy::sol_types::private::Address,
lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
id: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, isValidatorInFavorOfCall, N> {
self.call_builder(
&isValidatorInFavorOfCall {
appContract,
lastProcessedBlockNumber,
outputsMerkleRoot,
id,
},
)
}
///Creates a new call builder for the [`isValidatorInFavorOfAnyClaimInEpoch`] function.
pub fn isValidatorInFavorOfAnyClaimInEpoch(
&self,
appContract: alloy::sol_types::private::Address,
lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
id: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<
&P,
isValidatorInFavorOfAnyClaimInEpochCall,
N,
> {
self.call_builder(
&isValidatorInFavorOfAnyClaimInEpochCall {
appContract,
lastProcessedBlockNumber,
id,
},
)
}
///Creates a new call builder for the [`numOfValidators`] function.
pub fn numOfValidators(
&self,
) -> alloy_contract::SolCallBuilder<&P, numOfValidatorsCall, N> {
self.call_builder(&numOfValidatorsCall)
}
///Creates a new call builder for the [`numOfValidatorsInFavorOf`] function.
pub fn numOfValidatorsInFavorOf(
&self,
appContract: alloy::sol_types::private::Address,
lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
) -> alloy_contract::SolCallBuilder<&P, numOfValidatorsInFavorOfCall, N> {
self.call_builder(
&numOfValidatorsInFavorOfCall {
appContract,
lastProcessedBlockNumber,
outputsMerkleRoot,
},
)
}
///Creates a new call builder for the [`numOfValidatorsInFavorOfAnyClaimInEpoch`] function.
pub fn numOfValidatorsInFavorOfAnyClaimInEpoch(
&self,
appContract: alloy::sol_types::private::Address,
lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<
&P,
numOfValidatorsInFavorOfAnyClaimInEpochCall,
N,
> {
self.call_builder(
&numOfValidatorsInFavorOfAnyClaimInEpochCall {
appContract,
lastProcessedBlockNumber,
},
)
}
///Creates a new call builder for the [`submitClaim`] function.
pub fn submitClaim(
&self,
appContract: alloy::sol_types::private::Address,
lastProcessedBlockNumber: alloy::sol_types::private::primitives::aliases::U256,
outputsMerkleRoot: alloy::sol_types::private::FixedBytes<32>,
) -> alloy_contract::SolCallBuilder<&P, submitClaimCall, N> {
self.call_builder(
&submitClaimCall {
appContract,
lastProcessedBlockNumber,
outputsMerkleRoot,
},
)
}
///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 [`validatorById`] function.
pub fn validatorById(
&self,
id: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, validatorByIdCall, N> {
self.call_builder(&validatorByIdCall { id })
}
///Creates a new call builder for the [`validatorId`] function.
pub fn validatorId(
&self,
validator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, validatorIdCall, N> {
self.call_builder(&validatorIdCall { validator })
}
}
/// Event filters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> QuorumInstance<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 [`ClaimAccepted`] event.
pub fn ClaimAccepted_filter(
&self,
) -> alloy_contract::Event<&P, ClaimAccepted, N> {
self.event_filter::<ClaimAccepted>()
}
///Creates a new event filter for the [`ClaimSubmitted`] event.
pub fn ClaimSubmitted_filter(
&self,
) -> alloy_contract::Event<&P, ClaimSubmitted, N> {
self.event_filter::<ClaimSubmitted>()
}
}
}