#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style,
clippy::empty_structs_with_brackets
)]
pub mod IQuorum {
use super::*;
use alloy::sol_types as alloy_sol_types;
#[rustfmt::skip]
#[allow(clippy::all)]
pub static BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"",
);
#[rustfmt::skip]
#[allow(clippy::all)]
pub static DEPLOYED_BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"",
);
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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>,
}
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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)]
#[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
})
}
}
};
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive()]
pub enum IQuorumCalls {
#[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 IQuorumCalls {
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],
];
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),
];
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,
];
#[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,
}
}
#[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 IQuorumCalls {
const NAME: &'static str = "IQuorumCalls";
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<IQuorumCalls>] = &[
{
fn supportsInterface(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::supportsInterface)
}
supportsInterface
},
{
fn validatorId(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<validatorIdCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::validatorId)
}
validatorId
},
{
fn validatorById(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<validatorByIdCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::validatorById)
}
validatorById
},
{
fn numOfValidators(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<numOfValidatorsCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::numOfValidators)
}
numOfValidators
},
{
fn numOfValidatorsInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::numOfValidatorsInFavorOfAnyClaimInEpoch)
}
numOfValidatorsInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::isValidatorInFavorOfAnyClaimInEpoch)
}
isValidatorInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::isValidatorInFavorOf)
}
isValidatorInFavorOf
},
{
fn submitClaim(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<submitClaimCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::submitClaim)
}
submitClaim
},
{
fn numOfValidatorsInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::numOfValidatorsInFavorOf)
}
numOfValidatorsInFavorOf
},
{
fn getEpochLength(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<getEpochLengthCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::getEpochLength)
}
getEpochLength
},
{
fn getNumberOfAcceptedClaims(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::getNumberOfAcceptedClaims)
}
getNumberOfAcceptedClaims
},
{
fn isOutputsMerkleRootValid(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<isOutputsMerkleRootValidCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IQuorumCalls::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<IQuorumCalls>] = &[
{
fn supportsInterface(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<supportsInterfaceCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::supportsInterface)
}
supportsInterface
},
{
fn validatorId(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<validatorIdCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::validatorId)
}
validatorId
},
{
fn validatorById(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<validatorByIdCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::validatorById)
}
validatorById
},
{
fn numOfValidators(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<numOfValidatorsCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::numOfValidators)
}
numOfValidators
},
{
fn numOfValidatorsInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<numOfValidatorsInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::numOfValidatorsInFavorOfAnyClaimInEpoch)
}
numOfValidatorsInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOfAnyClaimInEpoch(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<isValidatorInFavorOfAnyClaimInEpochCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::isValidatorInFavorOfAnyClaimInEpoch)
}
isValidatorInFavorOfAnyClaimInEpoch
},
{
fn isValidatorInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<isValidatorInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::isValidatorInFavorOf)
}
isValidatorInFavorOf
},
{
fn submitClaim(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<submitClaimCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::submitClaim)
}
submitClaim
},
{
fn numOfValidatorsInFavorOf(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<numOfValidatorsInFavorOfCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::numOfValidatorsInFavorOf)
}
numOfValidatorsInFavorOf
},
{
fn getEpochLength(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<getEpochLengthCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::getEpochLength)
}
getEpochLength
},
{
fn getNumberOfAcceptedClaims(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<getNumberOfAcceptedClaimsCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::getNumberOfAcceptedClaims)
}
getNumberOfAcceptedClaims
},
{
fn isOutputsMerkleRootValid(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumCalls> {
<isOutputsMerkleRootValidCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IQuorumCalls::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,
)
}
}
}
}
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum IQuorumErrors {
#[allow(missing_docs)]
NotEpochFinalBlock(NotEpochFinalBlock),
#[allow(missing_docs)]
NotFirstClaim(NotFirstClaim),
#[allow(missing_docs)]
NotPastBlock(NotPastBlock),
}
impl IQuorumErrors {
pub const SELECTORS: &'static [[u8; 4usize]] = &[
[126u8, 148u8, 38u8, 69u8],
[201u8, 42u8, 13u8, 105u8],
[216u8, 4u8, 166u8, 161u8],
];
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(NotFirstClaim),
::core::stringify!(NotEpochFinalBlock),
::core::stringify!(NotPastBlock),
];
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,
];
#[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,
}
}
#[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 IQuorumErrors {
const NAME: &'static str = "IQuorumErrors";
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<IQuorumErrors>] = &[
{
fn NotFirstClaim(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumErrors> {
<NotFirstClaim as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(IQuorumErrors::NotFirstClaim)
}
NotFirstClaim
},
{
fn NotEpochFinalBlock(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumErrors> {
<NotEpochFinalBlock as alloy_sol_types::SolError>::abi_decode_raw(
data,
)
.map(IQuorumErrors::NotEpochFinalBlock)
}
NotEpochFinalBlock
},
{
fn NotPastBlock(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumErrors> {
<NotPastBlock as alloy_sol_types::SolError>::abi_decode_raw(data)
.map(IQuorumErrors::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<IQuorumErrors>] = &[
{
fn NotFirstClaim(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumErrors> {
<NotFirstClaim as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(IQuorumErrors::NotFirstClaim)
}
NotFirstClaim
},
{
fn NotEpochFinalBlock(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumErrors> {
<NotEpochFinalBlock as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(IQuorumErrors::NotEpochFinalBlock)
}
NotEpochFinalBlock
},
{
fn NotPastBlock(
data: &[u8],
) -> alloy_sol_types::Result<IQuorumErrors> {
<NotPastBlock as alloy_sol_types::SolError>::abi_decode_raw_validate(
data,
)
.map(IQuorumErrors::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,
)
}
}
}
}
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum IQuorumEvents {
#[allow(missing_docs)]
ClaimAccepted(ClaimAccepted),
#[allow(missing_docs)]
ClaimSubmitted(ClaimSubmitted),
}
impl IQuorumEvents {
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,
],
];
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(ClaimAccepted),
::core::stringify!(ClaimSubmitted),
];
pub const SIGNATURES: &'static [&'static str] = &[
<ClaimAccepted as alloy_sol_types::SolEvent>::SIGNATURE,
<ClaimSubmitted as alloy_sol_types::SolEvent>::SIGNATURE,
];
#[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,
}
}
#[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 IQuorumEvents {
const NAME: &'static str = "IQuorumEvents";
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 IQuorumEvents {
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;
#[inline]
pub const fn new<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(
address: alloy_sol_types::private::Address,
__provider: P,
) -> IQuorumInstance<P, N> {
IQuorumInstance::<P, N>::new(address, __provider)
}
#[inline]
pub fn deploy<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(
__provider: P,
) -> impl ::core::future::Future<
Output = alloy_contract::Result<IQuorumInstance<P, N>>,
> {
IQuorumInstance::<P, N>::deploy(__provider)
}
#[inline]
pub fn deploy_builder<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
IQuorumInstance::<P, N>::deploy_builder(__provider)
}
#[derive(Clone)]
pub struct IQuorumInstance<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 IQuorumInstance<P, N> {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("IQuorumInstance").field(&self.address).finish()
}
}
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> IQuorumInstance<P, N> {
#[inline]
pub const fn new(
address: alloy_sol_types::private::Address,
__provider: P,
) -> Self {
Self {
address,
provider: __provider,
_network: ::core::marker::PhantomData,
}
}
#[inline]
pub async fn deploy(
__provider: P,
) -> alloy_contract::Result<IQuorumInstance<P, N>> {
let call_builder = Self::deploy_builder(__provider);
let contract_address = call_builder.deploy().await?;
Ok(Self::new(contract_address, call_builder.provider))
}
#[inline]
pub fn deploy_builder(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
alloy_contract::RawCallBuilder::new_raw_deploy(
__provider,
::core::clone::Clone::clone(&BYTECODE),
)
}
#[inline]
pub const fn address(&self) -> &alloy_sol_types::private::Address {
&self.address
}
#[inline]
pub fn set_address(&mut self, address: alloy_sol_types::private::Address) {
self.address = address;
}
pub fn at(mut self, address: alloy_sol_types::private::Address) -> Self {
self.set_address(address);
self
}
#[inline]
pub const fn provider(&self) -> &P {
&self.provider
}
}
impl<P: ::core::clone::Clone, N> IQuorumInstance<&P, N> {
#[inline]
pub fn with_cloned_provider(self) -> IQuorumInstance<P, N> {
IQuorumInstance {
address: self.address,
provider: ::core::clone::Clone::clone(&self.provider),
_network: ::core::marker::PhantomData,
}
}
}
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> IQuorumInstance<P, N> {
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)
}
pub fn getEpochLength(
&self,
) -> alloy_contract::SolCallBuilder<&P, getEpochLengthCall, N> {
self.call_builder(&getEpochLengthCall)
}
pub fn getNumberOfAcceptedClaims(
&self,
) -> alloy_contract::SolCallBuilder<&P, getNumberOfAcceptedClaimsCall, N> {
self.call_builder(&getNumberOfAcceptedClaimsCall)
}
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,
},
)
}
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,
},
)
}
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,
},
)
}
pub fn numOfValidators(
&self,
) -> alloy_contract::SolCallBuilder<&P, numOfValidatorsCall, N> {
self.call_builder(&numOfValidatorsCall)
}
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,
},
)
}
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,
},
)
}
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,
},
)
}
pub fn supportsInterface(
&self,
interfaceId: alloy::sol_types::private::FixedBytes<4>,
) -> alloy_contract::SolCallBuilder<&P, supportsInterfaceCall, N> {
self.call_builder(
&supportsInterfaceCall {
interfaceId,
},
)
}
pub fn validatorById(
&self,
id: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, validatorByIdCall, N> {
self.call_builder(&validatorByIdCall { id })
}
pub fn validatorId(
&self,
validator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, validatorIdCall, N> {
self.call_builder(&validatorIdCall { validator })
}
}
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> IQuorumInstance<P, N> {
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)
}
pub fn ClaimAccepted_filter(
&self,
) -> alloy_contract::Event<&P, ClaimAccepted, N> {
self.event_filter::<ClaimAccepted>()
}
pub fn ClaimSubmitted_filter(
&self,
) -> alloy_contract::Event<&P, ClaimSubmitted, N> {
self.event_filter::<ClaimSubmitted>()
}
}
}