#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style,
clippy::empty_structs_with_brackets
)]
pub mod IBlueprintServiceManager {
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 canJoinCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub operator: 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 canJoinReturn {
#[allow(missing_docs)]
pub allowed: 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::Uint<64>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, 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<canJoinCall> for UnderlyingRustTuple<'_> {
fn from(value: canJoinCall) -> Self {
(value.serviceId, value.operator)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for canJoinCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
operator: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Bool,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<canJoinReturn> for UnderlyingRustTuple<'_> {
fn from(value: canJoinReturn) -> Self {
(value.allowed,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for canJoinReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { allowed: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for canJoinCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = bool;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Bool,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "canJoin(uint64,address)";
const SELECTOR: [u8; 4] = [180u8, 114u8, 66u8, 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::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: canJoinReturn = r.into();
r.allowed
})
}
#[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: canJoinReturn = r.into();
r.allowed
})
}
}
};
#[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 canLeaveCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub operator: 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 canLeaveReturn {
#[allow(missing_docs)]
pub allowed: 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::Uint<64>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, 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<canLeaveCall> for UnderlyingRustTuple<'_> {
fn from(value: canLeaveCall) -> Self {
(value.serviceId, value.operator)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for canLeaveCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
operator: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Bool,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<canLeaveReturn> for UnderlyingRustTuple<'_> {
fn from(value: canLeaveReturn) -> Self {
(value.allowed,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for canLeaveReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { allowed: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for canLeaveCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = bool;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Bool,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "canLeave(uint64,address)";
const SELECTOR: [u8; 4] = [229u8, 24u8, 222u8, 118u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: canLeaveReturn = r.into();
r.allowed
})
}
#[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: canLeaveReturn = r.into();
r.allowed
})
}
}
};
#[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 computeBillAdjustmentBpsCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub periodStart: u64,
#[allow(missing_docs)]
pub periodEnd: u64,
}
#[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 computeBillAdjustmentBpsReturn {
#[allow(missing_docs)]
pub adjustmentBps: u16,
}
#[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<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, u64, u64);
#[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<computeBillAdjustmentBpsCall>
for UnderlyingRustTuple<'_> {
fn from(value: computeBillAdjustmentBpsCall) -> Self {
(value.serviceId, value.periodStart, value.periodEnd)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for computeBillAdjustmentBpsCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
periodStart: tuple.1,
periodEnd: tuple.2,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Uint<16>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u16,);
#[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<computeBillAdjustmentBpsReturn>
for UnderlyingRustTuple<'_> {
fn from(value: computeBillAdjustmentBpsReturn) -> Self {
(value.adjustmentBps,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for computeBillAdjustmentBpsReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { adjustmentBps: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for computeBillAdjustmentBpsCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = u16;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Uint<16>,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "computeBillAdjustmentBps(uint64,uint64,uint64)";
const SELECTOR: [u8; 4] = [249u8, 63u8, 242u8, 183u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.periodStart),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.periodEnd),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Uint<
16,
> 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: computeBillAdjustmentBpsReturn = r.into();
r.adjustmentBps
})
}
#[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: computeBillAdjustmentBpsReturn = r.into();
r.adjustmentBps
})
}
}
};
#[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 forceRemoveAllowsBelowMinCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 forceRemoveAllowsBelowMinReturn {
#[allow(missing_docs)]
pub ok: 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::Uint<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<forceRemoveAllowsBelowMinCall>
for UnderlyingRustTuple<'_> {
fn from(value: forceRemoveAllowsBelowMinCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for forceRemoveAllowsBelowMinCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: 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<forceRemoveAllowsBelowMinReturn>
for UnderlyingRustTuple<'_> {
fn from(value: forceRemoveAllowsBelowMinReturn) -> Self {
(value.ok,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for forceRemoveAllowsBelowMinReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { ok: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for forceRemoveAllowsBelowMinCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
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 = "forceRemoveAllowsBelowMin(uint64)";
const SELECTOR: [u8; 4] = [243u8, 226u8, 143u8, 50u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[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: forceRemoveAllowsBelowMinReturn = r.into();
r.ok
})
}
#[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: forceRemoveAllowsBelowMinReturn = r.into();
r.ok
})
}
}
};
#[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 getAggregationThresholdCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub jobIndex: u8,
}
#[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 getAggregationThresholdReturn {
#[allow(missing_docs)]
pub thresholdBps: u16,
#[allow(missing_docs)]
pub thresholdType: u8,
}
#[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<64>,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, u8);
#[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<getAggregationThresholdCall>
for UnderlyingRustTuple<'_> {
fn from(value: getAggregationThresholdCall) -> Self {
(value.serviceId, value.jobIndex)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getAggregationThresholdCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
jobIndex: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Uint<16>,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u16, u8);
#[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<getAggregationThresholdReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getAggregationThresholdReturn) -> Self {
(value.thresholdBps, value.thresholdType)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getAggregationThresholdReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
thresholdBps: tuple.0,
thresholdType: tuple.1,
}
}
}
}
impl getAggregationThresholdReturn {
fn _tokenize(
&self,
) -> <getAggregationThresholdCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
(
<alloy::sol_types::sol_data::Uint<
16,
> as alloy_sol_types::SolType>::tokenize(&self.thresholdBps),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.thresholdType),
)
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getAggregationThresholdCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getAggregationThresholdReturn;
type ReturnTuple<'a> = (
alloy::sol_types::sol_data::Uint<16>,
alloy::sol_types::sol_data::Uint<8>,
);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getAggregationThreshold(uint64,uint8)";
const SELECTOR: [u8; 4] = [37u8, 252u8, 198u8, 78u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.jobIndex),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
getAggregationThresholdReturn::_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 getExitConfigCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 getExitConfigReturn {
#[allow(missing_docs)]
pub useDefault: bool,
#[allow(missing_docs)]
pub minCommitmentDuration: u64,
#[allow(missing_docs)]
pub exitQueueDuration: u64,
#[allow(missing_docs)]
pub forceExitAllowed: 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::Uint<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<getExitConfigCall> for UnderlyingRustTuple<'_> {
fn from(value: getExitConfigCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getExitConfigCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bool,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool, u64, u64, 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<getExitConfigReturn> for UnderlyingRustTuple<'_> {
fn from(value: getExitConfigReturn) -> Self {
(
value.useDefault,
value.minCommitmentDuration,
value.exitQueueDuration,
value.forceExitAllowed,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getExitConfigReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
useDefault: tuple.0,
minCommitmentDuration: tuple.1,
exitQueueDuration: tuple.2,
forceExitAllowed: tuple.3,
}
}
}
}
impl getExitConfigReturn {
fn _tokenize(
&self,
) -> <getExitConfigCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.useDefault,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(
&self.minCommitmentDuration,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.exitQueueDuration),
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.forceExitAllowed,
),
)
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getExitConfigCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getExitConfigReturn;
type ReturnTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bool,
);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getExitConfig(uint64)";
const SELECTOR: [u8; 4] = [210u8, 103u8, 46u8, 212u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
getExitConfigReturn::_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 getHeartbeatIntervalCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 getHeartbeatIntervalReturn {
#[allow(missing_docs)]
pub useDefault: bool,
#[allow(missing_docs)]
pub interval: u64,
}
#[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<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<getHeartbeatIntervalCall>
for UnderlyingRustTuple<'_> {
fn from(value: getHeartbeatIntervalCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getHeartbeatIntervalCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool, u64);
#[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<getHeartbeatIntervalReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getHeartbeatIntervalReturn) -> Self {
(value.useDefault, value.interval)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getHeartbeatIntervalReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
useDefault: tuple.0,
interval: tuple.1,
}
}
}
}
impl getHeartbeatIntervalReturn {
fn _tokenize(
&self,
) -> <getHeartbeatIntervalCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.useDefault,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.interval),
)
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getHeartbeatIntervalCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getHeartbeatIntervalReturn;
type ReturnTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getHeartbeatInterval(uint64)";
const SELECTOR: [u8; 4] = [0u8, 104u8, 8u8, 11u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
getHeartbeatIntervalReturn::_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 getHeartbeatThresholdCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 getHeartbeatThresholdReturn {
#[allow(missing_docs)]
pub useDefault: bool,
#[allow(missing_docs)]
pub threshold: u8,
}
#[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<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<getHeartbeatThresholdCall>
for UnderlyingRustTuple<'_> {
fn from(value: getHeartbeatThresholdCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getHeartbeatThresholdCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool, u8);
#[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<getHeartbeatThresholdReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getHeartbeatThresholdReturn) -> Self {
(value.useDefault, value.threshold)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getHeartbeatThresholdReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
useDefault: tuple.0,
threshold: tuple.1,
}
}
}
}
impl getHeartbeatThresholdReturn {
fn _tokenize(
&self,
) -> <getHeartbeatThresholdCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.useDefault,
),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.threshold),
)
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getHeartbeatThresholdCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getHeartbeatThresholdReturn;
type ReturnTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<8>,
);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getHeartbeatThreshold(uint64)";
const SELECTOR: [u8; 4] = [146u8, 203u8, 183u8, 142u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
getHeartbeatThresholdReturn::_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 getMinOperatorStakeCall;
#[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 getMinOperatorStakeReturn {
#[allow(missing_docs)]
pub useDefault: bool,
#[allow(missing_docs)]
pub minStake: 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<getMinOperatorStakeCall>
for UnderlyingRustTuple<'_> {
fn from(value: getMinOperatorStakeCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getMinOperatorStakeCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
bool,
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<getMinOperatorStakeReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getMinOperatorStakeReturn) -> Self {
(value.useDefault, value.minStake)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getMinOperatorStakeReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
useDefault: tuple.0,
minStake: tuple.1,
}
}
}
}
impl getMinOperatorStakeReturn {
fn _tokenize(
&self,
) -> <getMinOperatorStakeCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.useDefault,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.minStake),
)
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getMinOperatorStakeCall {
type Parameters<'a> = ();
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getMinOperatorStakeReturn;
type ReturnTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<256>,
);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getMinOperatorStake()";
const SELECTOR: [u8; 4] = [84u8, 220u8, 230u8, 194u8];
#[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<'_> {
getMinOperatorStakeReturn::_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 getNonPaymentTerminationPolicyCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 getNonPaymentTerminationPolicyReturn {
#[allow(missing_docs)]
pub useDefault: bool,
#[allow(missing_docs)]
pub graceIntervals: u64,
}
#[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<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<getNonPaymentTerminationPolicyCall>
for UnderlyingRustTuple<'_> {
fn from(value: getNonPaymentTerminationPolicyCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getNonPaymentTerminationPolicyCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool, u64);
#[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<getNonPaymentTerminationPolicyReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getNonPaymentTerminationPolicyReturn) -> Self {
(value.useDefault, value.graceIntervals)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getNonPaymentTerminationPolicyReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
useDefault: tuple.0,
graceIntervals: tuple.1,
}
}
}
}
impl getNonPaymentTerminationPolicyReturn {
fn _tokenize(
&self,
) -> <getNonPaymentTerminationPolicyCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.useDefault,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.graceIntervals),
)
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getNonPaymentTerminationPolicyCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getNonPaymentTerminationPolicyReturn;
type ReturnTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getNonPaymentTerminationPolicy(uint64)";
const SELECTOR: [u8; 4] = [113u8, 232u8, 232u8, 93u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
getNonPaymentTerminationPolicyReturn::_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 getRequiredResultCountCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub jobIndex: u8,
}
#[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 getRequiredResultCountReturn {
#[allow(missing_docs)]
pub required: u32,
}
#[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<64>,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, u8);
#[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<getRequiredResultCountCall>
for UnderlyingRustTuple<'_> {
fn from(value: getRequiredResultCountCall) -> Self {
(value.serviceId, value.jobIndex)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getRequiredResultCountCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
jobIndex: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Uint<32>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u32,);
#[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<getRequiredResultCountReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getRequiredResultCountReturn) -> Self {
(value.required,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getRequiredResultCountReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { required: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getRequiredResultCountCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = u32;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Uint<32>,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getRequiredResultCount(uint64,uint8)";
const SELECTOR: [u8; 4] = [76u8, 68u8, 62u8, 4u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.jobIndex),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Uint<
32,
> 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: getRequiredResultCountReturn = r.into();
r.required
})
}
#[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: getRequiredResultCountReturn = r.into();
r.required
})
}
}
};
#[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 getSlashingWindowCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 getSlashingWindowReturn {
#[allow(missing_docs)]
pub useDefault: bool,
#[allow(missing_docs)]
pub window: u64,
}
#[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<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<getSlashingWindowCall>
for UnderlyingRustTuple<'_> {
fn from(value: getSlashingWindowCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getSlashingWindowCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: tuple.0 }
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (bool, u64);
#[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<getSlashingWindowReturn>
for UnderlyingRustTuple<'_> {
fn from(value: getSlashingWindowReturn) -> Self {
(value.useDefault, value.window)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for getSlashingWindowReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
useDefault: tuple.0,
window: tuple.1,
}
}
}
}
impl getSlashingWindowReturn {
fn _tokenize(
&self,
) -> <getSlashingWindowCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.useDefault,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.window),
)
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getSlashingWindowCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getSlashingWindowReturn;
type ReturnTuple<'a> = (
alloy::sol_types::sol_data::Bool,
alloy::sol_types::sol_data::Uint<64>,
);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getSlashingWindow(uint64)";
const SELECTOR: [u8; 4] = [63u8, 218u8, 223u8, 204u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
getSlashingWindowReturn::_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 onAggregatedResultCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub job: u8,
#[allow(missing_docs)]
pub jobCallId: u64,
#[allow(missing_docs)]
pub output: alloy::sol_types::private::Bytes,
#[allow(missing_docs)]
pub signerBitmap: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub aggregatedSignature: [alloy::sol_types::private::primitives::aliases::U256; 2usize],
#[allow(missing_docs)]
pub aggregatedPubkey: [alloy::sol_types::private::primitives::aliases::U256; 4usize],
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onAggregatedResultReturn {}
#[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<64>,
alloy::sol_types::sol_data::Uint<8>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedArray<
alloy::sol_types::sol_data::Uint<256>,
2usize,
>,
alloy::sol_types::sol_data::FixedArray<
alloy::sol_types::sol_data::Uint<256>,
4usize,
>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
u8,
u64,
alloy::sol_types::private::Bytes,
alloy::sol_types::private::primitives::aliases::U256,
[alloy::sol_types::private::primitives::aliases::U256; 2usize],
[alloy::sol_types::private::primitives::aliases::U256; 4usize],
);
#[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<onAggregatedResultCall>
for UnderlyingRustTuple<'_> {
fn from(value: onAggregatedResultCall) -> Self {
(
value.serviceId,
value.job,
value.jobCallId,
value.output,
value.signerBitmap,
value.aggregatedSignature,
value.aggregatedPubkey,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onAggregatedResultCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
job: tuple.1,
jobCallId: tuple.2,
output: tuple.3,
signerBitmap: tuple.4,
aggregatedSignature: tuple.5,
aggregatedPubkey: tuple.6,
}
}
}
}
{
#[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<onAggregatedResultReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onAggregatedResultReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onAggregatedResultReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onAggregatedResultReturn {
fn _tokenize(
&self,
) -> <onAggregatedResultCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onAggregatedResultCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedArray<
alloy::sol_types::sol_data::Uint<256>,
2usize,
>,
alloy::sol_types::sol_data::FixedArray<
alloy::sol_types::sol_data::Uint<256>,
4usize,
>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onAggregatedResultReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onAggregatedResult(uint64,uint8,uint64,bytes,uint256,uint256[2],uint256[4])";
const SELECTOR: [u8; 4] = [21u8, 139u8, 178u8, 235u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.job),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.jobCallId),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.output,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.signerBitmap),
<alloy::sol_types::sol_data::FixedArray<
alloy::sol_types::sol_data::Uint<256>,
2usize,
> as alloy_sol_types::SolType>::tokenize(&self.aggregatedSignature),
<alloy::sol_types::sol_data::FixedArray<
alloy::sol_types::sol_data::Uint<256>,
4usize,
> as alloy_sol_types::SolType>::tokenize(&self.aggregatedPubkey),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onAggregatedResultReturn::_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 onApproveCall {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub requestId: u64,
#[allow(missing_docs)]
pub stakingPercent: u8,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onApproveReturn {}
#[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<64>,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address, u64, u8);
#[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<onApproveCall> for UnderlyingRustTuple<'_> {
fn from(value: onApproveCall) -> Self {
(value.operator, value.requestId, value.stakingPercent)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onApproveCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
operator: tuple.0,
requestId: tuple.1,
stakingPercent: 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<onApproveReturn> for UnderlyingRustTuple<'_> {
fn from(value: onApproveReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onApproveReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onApproveReturn {
fn _tokenize(
&self,
) -> <onApproveCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onApproveCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onApproveReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onApprove(address,uint64,uint8)";
const SELECTOR: [u8; 4] = [177u8, 89u8, 235u8, 52u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.requestId),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.stakingPercent),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onApproveReturn::_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 onBlueprintCreatedCall {
#[allow(missing_docs)]
pub blueprintId: u64,
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub tangleCore: alloy::sol_types::private::Address,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onBlueprintCreatedReturn {}
#[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<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
alloy::sol_types::private::Address,
alloy::sol_types::private::Address,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onBlueprintCreatedCall>
for UnderlyingRustTuple<'_> {
fn from(value: onBlueprintCreatedCall) -> Self {
(value.blueprintId, value.owner, value.tangleCore)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onBlueprintCreatedCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
blueprintId: tuple.0,
owner: tuple.1,
tangleCore: 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<onBlueprintCreatedReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onBlueprintCreatedReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onBlueprintCreatedReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onBlueprintCreatedReturn {
fn _tokenize(
&self,
) -> <onBlueprintCreatedCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onBlueprintCreatedCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onBlueprintCreatedReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onBlueprintCreated(uint64,address,address)";
const SELECTOR: [u8; 4] = [11u8, 101u8, 53u8, 215u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.blueprintId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.owner,
),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.tangleCore,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onBlueprintCreatedReturn::_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 onExitCanceledCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onExitCanceledReturn {}
#[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<64>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, 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<onExitCanceledCall> for UnderlyingRustTuple<'_> {
fn from(value: onExitCanceledCall) -> Self {
(value.serviceId, value.operator)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onExitCanceledCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
operator: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onExitCanceledReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onExitCanceledReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onExitCanceledReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onExitCanceledReturn {
fn _tokenize(
&self,
) -> <onExitCanceledCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onExitCanceledCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onExitCanceledReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onExitCanceled(uint64,address)";
const SELECTOR: [u8; 4] = [84u8, 64u8, 102u8, 44u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onExitCanceledReturn::_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 onExitScheduledCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub executeAfter: u64,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onExitScheduledReturn {}
#[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<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
alloy::sol_types::private::Address,
u64,
);
#[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<onExitScheduledCall> for UnderlyingRustTuple<'_> {
fn from(value: onExitScheduledCall) -> Self {
(value.serviceId, value.operator, value.executeAfter)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onExitScheduledCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
operator: tuple.1,
executeAfter: 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<onExitScheduledReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onExitScheduledReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onExitScheduledReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onExitScheduledReturn {
fn _tokenize(
&self,
) -> <onExitScheduledCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onExitScheduledCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<64>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onExitScheduledReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onExitScheduled(uint64,address,uint64)";
const SELECTOR: [u8; 4] = [224u8, 85u8, 156u8, 99u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.executeAfter),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onExitScheduledReturn::_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 onJobCallCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub job: u8,
#[allow(missing_docs)]
pub jobCallId: u64,
#[allow(missing_docs)]
pub inputs: alloy::sol_types::private::Bytes,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onJobCallReturn {}
#[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<64>,
alloy::sol_types::sol_data::Uint<8>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bytes,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
u8,
u64,
alloy::sol_types::private::Bytes,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onJobCallCall> for UnderlyingRustTuple<'_> {
fn from(value: onJobCallCall) -> Self {
(value.serviceId, value.job, value.jobCallId, value.inputs)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onJobCallCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
job: tuple.1,
jobCallId: tuple.2,
inputs: tuple.3,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onJobCallReturn> for UnderlyingRustTuple<'_> {
fn from(value: onJobCallReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onJobCallReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onJobCallReturn {
fn _tokenize(
&self,
) -> <onJobCallCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onJobCallCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bytes,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onJobCallReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onJobCall(uint64,uint8,uint64,bytes)";
const SELECTOR: [u8; 4] = [152u8, 56u8, 202u8, 163u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.job),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.jobCallId),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.inputs,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onJobCallReturn::_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 onJobResultCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub job: u8,
#[allow(missing_docs)]
pub jobCallId: u64,
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub inputs: alloy::sol_types::private::Bytes,
#[allow(missing_docs)]
pub outputs: alloy::sol_types::private::Bytes,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onJobResultReturn {}
#[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<64>,
alloy::sol_types::sol_data::Uint<8>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Bytes,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
u8,
u64,
alloy::sol_types::private::Address,
alloy::sol_types::private::Bytes,
alloy::sol_types::private::Bytes,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onJobResultCall> for UnderlyingRustTuple<'_> {
fn from(value: onJobResultCall) -> Self {
(
value.serviceId,
value.job,
value.jobCallId,
value.operator,
value.inputs,
value.outputs,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onJobResultCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
job: tuple.1,
jobCallId: tuple.2,
operator: tuple.3,
inputs: tuple.4,
outputs: tuple.5,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onJobResultReturn> for UnderlyingRustTuple<'_> {
fn from(value: onJobResultReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onJobResultReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onJobResultReturn {
fn _tokenize(
&self,
) -> <onJobResultCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onJobResultCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Bytes,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onJobResultReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onJobResult(uint64,uint8,uint64,address,bytes,bytes)";
const SELECTOR: [u8; 4] = [196u8, 12u8, 128u8, 209u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.job),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.jobCallId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.inputs,
),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.outputs,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onJobResultReturn::_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 onOperatorJoinedCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub exposureBps: u16,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onOperatorJoinedReturn {}
#[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<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<16>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
alloy::sol_types::private::Address,
u16,
);
#[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<onOperatorJoinedCall>
for UnderlyingRustTuple<'_> {
fn from(value: onOperatorJoinedCall) -> Self {
(value.serviceId, value.operator, value.exposureBps)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onOperatorJoinedCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
operator: tuple.1,
exposureBps: 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<onOperatorJoinedReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onOperatorJoinedReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onOperatorJoinedReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onOperatorJoinedReturn {
fn _tokenize(
&self,
) -> <onOperatorJoinedCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onOperatorJoinedCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<16>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onOperatorJoinedReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onOperatorJoined(uint64,address,uint16)";
const SELECTOR: [u8; 4] = [154u8, 162u8, 106u8, 146u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Uint<
16,
> as alloy_sol_types::SolType>::tokenize(&self.exposureBps),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onOperatorJoinedReturn::_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 onOperatorLeftCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onOperatorLeftReturn {}
#[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<64>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, 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<onOperatorLeftCall> for UnderlyingRustTuple<'_> {
fn from(value: onOperatorLeftCall) -> Self {
(value.serviceId, value.operator)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onOperatorLeftCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
operator: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onOperatorLeftReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onOperatorLeftReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onOperatorLeftReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onOperatorLeftReturn {
fn _tokenize(
&self,
) -> <onOperatorLeftCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onOperatorLeftCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onOperatorLeftReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onOperatorLeft(uint64,address)";
const SELECTOR: [u8; 4] = [150u8, 93u8, 35u8, 27u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onOperatorLeftReturn::_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 onRegisterCall {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub registrationInputs: alloy::sol_types::private::Bytes,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onRegisterReturn {}
#[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::Bytes,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::Bytes,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onRegisterCall> for UnderlyingRustTuple<'_> {
fn from(value: onRegisterCall) -> Self {
(value.operator, value.registrationInputs)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onRegisterCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
operator: tuple.0,
registrationInputs: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onRegisterReturn> for UnderlyingRustTuple<'_> {
fn from(value: onRegisterReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onRegisterReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onRegisterReturn {
fn _tokenize(
&self,
) -> <onRegisterCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onRegisterCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Bytes,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onRegisterReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onRegister(address,bytes)";
const SELECTOR: [u8; 4] = [103u8, 121u8, 60u8, 198u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.registrationInputs,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onRegisterReturn::_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 onRejectCall {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub requestId: u64,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onRejectReturn {}
#[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<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address, u64);
#[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<onRejectCall> for UnderlyingRustTuple<'_> {
fn from(value: onRejectCall) -> Self {
(value.operator, value.requestId)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onRejectCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
operator: tuple.0,
requestId: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onRejectReturn> for UnderlyingRustTuple<'_> {
fn from(value: onRejectReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onRejectReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onRejectReturn {
fn _tokenize(
&self,
) -> <onRejectCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onRejectCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<64>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onRejectReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onReject(address,uint64)";
const SELECTOR: [u8; 4] = [201u8, 205u8, 74u8, 24u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.requestId),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onRejectReturn::_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 onRequestCall {
#[allow(missing_docs)]
pub requestId: u64,
#[allow(missing_docs)]
pub requester: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub operators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
#[allow(missing_docs)]
pub requestInputs: alloy::sol_types::private::Bytes,
#[allow(missing_docs)]
pub ttl: u64,
#[allow(missing_docs)]
pub paymentAsset: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub paymentAmount: alloy::sol_types::private::primitives::aliases::U256,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onRequestReturn {}
#[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<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
alloy::sol_types::private::Address,
alloy::sol_types::private::Vec<alloy::sol_types::private::Address>,
alloy::sol_types::private::Bytes,
u64,
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<onRequestCall> for UnderlyingRustTuple<'_> {
fn from(value: onRequestCall) -> Self {
(
value.requestId,
value.requester,
value.operators,
value.requestInputs,
value.ttl,
value.paymentAsset,
value.paymentAmount,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onRequestCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
requestId: tuple.0,
requester: tuple.1,
operators: tuple.2,
requestInputs: tuple.3,
ttl: tuple.4,
paymentAsset: tuple.5,
paymentAmount: tuple.6,
}
}
}
}
{
#[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<onRequestReturn> for UnderlyingRustTuple<'_> {
fn from(value: onRequestReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onRequestReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onRequestReturn {
fn _tokenize(
&self,
) -> <onRequestCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onRequestCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<64>,
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 = onRequestReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onRequest(uint64,address,address[],bytes,uint64,address,uint256)";
const SELECTOR: [u8; 4] = [194u8, 140u8, 216u8, 18u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.requestId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.requester,
),
<alloy::sol_types::sol_data::Array<
alloy::sol_types::sol_data::Address,
> as alloy_sol_types::SolType>::tokenize(&self.operators),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.requestInputs,
),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.ttl),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.paymentAsset,
),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.paymentAmount),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onRequestReturn::_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 onServiceInitializedCall {
#[allow(missing_docs)]
pub blueprintId: u64,
#[allow(missing_docs)]
pub requestId: u64,
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub permittedCallers: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
#[allow(missing_docs)]
pub ttl: u64,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onServiceInitializedReturn {}
#[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<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
u64,
u64,
alloy::sol_types::private::Address,
alloy::sol_types::private::Vec<alloy::sol_types::private::Address>,
u64,
);
#[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<onServiceInitializedCall>
for UnderlyingRustTuple<'_> {
fn from(value: onServiceInitializedCall) -> Self {
(
value.blueprintId,
value.requestId,
value.serviceId,
value.owner,
value.permittedCallers,
value.ttl,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onServiceInitializedCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
blueprintId: tuple.0,
requestId: tuple.1,
serviceId: tuple.2,
owner: tuple.3,
permittedCallers: tuple.4,
ttl: tuple.5,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onServiceInitializedReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onServiceInitializedReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onServiceInitializedReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onServiceInitializedReturn {
fn _tokenize(
&self,
) -> <onServiceInitializedCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onServiceInitializedCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<64>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onServiceInitializedReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onServiceInitialized(uint64,uint64,uint64,address,address[],uint64)";
const SELECTOR: [u8; 4] = [130u8, 161u8, 236u8, 228u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.blueprintId),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.requestId),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.owner,
),
<alloy::sol_types::sol_data::Array<
alloy::sol_types::sol_data::Address,
> as alloy_sol_types::SolType>::tokenize(&self.permittedCallers),
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.ttl),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onServiceInitializedReturn::_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 onServiceTerminationCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub owner: alloy::sol_types::private::Address,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onServiceTerminationReturn {}
#[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<64>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, 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<onServiceTerminationCall>
for UnderlyingRustTuple<'_> {
fn from(value: onServiceTerminationCall) -> Self {
(value.serviceId, value.owner)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onServiceTerminationCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
owner: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onServiceTerminationReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onServiceTerminationReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onServiceTerminationReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onServiceTerminationReturn {
fn _tokenize(
&self,
) -> <onServiceTerminationCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onServiceTerminationCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onServiceTerminationReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onServiceTermination(uint64,address)";
const SELECTOR: [u8; 4] = [162u8, 78u8, 138u8, 144u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.owner,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onServiceTerminationReturn::_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 onSlashCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub offender: alloy::sol_types::private::Bytes,
#[allow(missing_docs)]
pub slashPercent: u8,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onSlashReturn {}
#[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<64>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, alloy::sol_types::private::Bytes, u8);
#[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<onSlashCall> for UnderlyingRustTuple<'_> {
fn from(value: onSlashCall) -> Self {
(value.serviceId, value.offender, value.slashPercent)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onSlashCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
offender: tuple.1,
slashPercent: 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<onSlashReturn> for UnderlyingRustTuple<'_> {
fn from(value: onSlashReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onSlashReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onSlashReturn {
fn _tokenize(
&self,
) -> <onSlashCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onSlashCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<8>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onSlashReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onSlash(uint64,bytes,uint8)";
const SELECTOR: [u8; 4] = [126u8, 20u8, 185u8, 25u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.offender,
),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.slashPercent),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onSlashReturn::_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 onUnappliedSlashCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub offender: alloy::sol_types::private::Bytes,
#[allow(missing_docs)]
pub slashPercent: u8,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onUnappliedSlashReturn {}
#[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<64>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, alloy::sol_types::private::Bytes, u8);
#[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<onUnappliedSlashCall>
for UnderlyingRustTuple<'_> {
fn from(value: onUnappliedSlashCall) -> Self {
(value.serviceId, value.offender, value.slashPercent)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onUnappliedSlashCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
offender: tuple.1,
slashPercent: 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<onUnappliedSlashReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onUnappliedSlashReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onUnappliedSlashReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onUnappliedSlashReturn {
fn _tokenize(
&self,
) -> <onUnappliedSlashCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onUnappliedSlashCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Bytes,
alloy::sol_types::sol_data::Uint<8>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onUnappliedSlashReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onUnappliedSlash(uint64,bytes,uint8)";
const SELECTOR: [u8; 4] = [8u8, 129u8, 137u8, 143u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.offender,
),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.slashPercent),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onUnappliedSlashReturn::_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 onUnregisterCall {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onUnregisterReturn {}
#[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<onUnregisterCall> for UnderlyingRustTuple<'_> {
fn from(value: onUnregisterCall) -> Self {
(value.operator,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onUnregisterCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { operator: tuple.0 }
}
}
}
{
#[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<onUnregisterReturn> for UnderlyingRustTuple<'_> {
fn from(value: onUnregisterReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for onUnregisterReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onUnregisterReturn {
fn _tokenize(
&self,
) -> <onUnregisterCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onUnregisterCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Address,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onUnregisterReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onUnregister(address)";
const SELECTOR: [u8; 4] = [21u8, 26u8, 69u8, 118u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onUnregisterReturn::_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 onUpdatePreferencesCall {
#[allow(missing_docs)]
pub operator: alloy::sol_types::private::Address,
#[allow(missing_docs)]
pub newPreferences: alloy::sol_types::private::Bytes,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct onUpdatePreferencesReturn {}
#[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::Bytes,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Address,
alloy::sol_types::private::Bytes,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onUpdatePreferencesCall>
for UnderlyingRustTuple<'_> {
fn from(value: onUpdatePreferencesCall) -> Self {
(value.operator, value.newPreferences)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onUpdatePreferencesCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
operator: tuple.0,
newPreferences: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<onUpdatePreferencesReturn>
for UnderlyingRustTuple<'_> {
fn from(value: onUpdatePreferencesReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for onUpdatePreferencesReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl onUpdatePreferencesReturn {
fn _tokenize(
&self,
) -> <onUpdatePreferencesCall as alloy_sol_types::SolCall>::ReturnToken<'_> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for onUpdatePreferencesCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Address,
alloy::sol_types::sol_data::Bytes,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = onUpdatePreferencesReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "onUpdatePreferences(address,bytes)";
const SELECTOR: [u8; 4] = [245u8, 142u8, 32u8, 102u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.operator,
),
<alloy::sol_types::sol_data::Bytes as alloy_sol_types::SolType>::tokenize(
&self.newPreferences,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
onUpdatePreferencesReturn::_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 queryDeveloperPaymentAddressCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 queryDeveloperPaymentAddressReturn {
#[allow(missing_docs)]
pub developerPaymentAddress: 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<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<queryDeveloperPaymentAddressCall>
for UnderlyingRustTuple<'_> {
fn from(value: queryDeveloperPaymentAddressCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for queryDeveloperPaymentAddressCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: 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<queryDeveloperPaymentAddressReturn>
for UnderlyingRustTuple<'_> {
fn from(value: queryDeveloperPaymentAddressReturn) -> Self {
(value.developerPaymentAddress,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for queryDeveloperPaymentAddressReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
developerPaymentAddress: tuple.0,
}
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for queryDeveloperPaymentAddressCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
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 = "queryDeveloperPaymentAddress(uint64)";
const SELECTOR: [u8; 4] = [8u8, 23u8, 159u8, 53u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[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: queryDeveloperPaymentAddressReturn = r.into();
r.developerPaymentAddress
})
}
#[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: queryDeveloperPaymentAddressReturn = r.into();
r.developerPaymentAddress
})
}
}
};
#[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 queryDisputeOriginCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 queryDisputeOriginReturn {
#[allow(missing_docs)]
pub disputeOrigin: 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<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<queryDisputeOriginCall>
for UnderlyingRustTuple<'_> {
fn from(value: queryDisputeOriginCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for queryDisputeOriginCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: 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<queryDisputeOriginReturn>
for UnderlyingRustTuple<'_> {
fn from(value: queryDisputeOriginReturn) -> Self {
(value.disputeOrigin,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for queryDisputeOriginReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { disputeOrigin: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for queryDisputeOriginCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
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 = "queryDisputeOrigin(uint64)";
const SELECTOR: [u8; 4] = [20u8, 180u8, 223u8, 76u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[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: queryDisputeOriginReturn = r.into();
r.disputeOrigin
})
}
#[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: queryDisputeOriginReturn = r.into();
r.disputeOrigin
})
}
}
};
#[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 queryIsPaymentAssetAllowedCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub asset: 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 queryIsPaymentAssetAllowedReturn {
#[allow(missing_docs)]
pub isAllowed: 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::Uint<64>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, 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<queryIsPaymentAssetAllowedCall>
for UnderlyingRustTuple<'_> {
fn from(value: queryIsPaymentAssetAllowedCall) -> Self {
(value.serviceId, value.asset)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for queryIsPaymentAssetAllowedCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
asset: 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<queryIsPaymentAssetAllowedReturn>
for UnderlyingRustTuple<'_> {
fn from(value: queryIsPaymentAssetAllowedReturn) -> Self {
(value.isAllowed,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for queryIsPaymentAssetAllowedReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { isAllowed: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for queryIsPaymentAssetAllowedCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = bool;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Bool,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "queryIsPaymentAssetAllowed(uint64,address)";
const SELECTOR: [u8; 4] = [227u8, 144u8, 252u8, 219u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.asset,
),
)
}
#[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: queryIsPaymentAssetAllowedReturn = r.into();
r.isAllowed
})
}
#[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: queryIsPaymentAssetAllowedReturn = r.into();
r.isAllowed
})
}
}
};
#[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 querySlashingOriginCall {
#[allow(missing_docs)]
pub serviceId: u64,
}
#[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 querySlashingOriginReturn {
#[allow(missing_docs)]
pub slashingOrigin: 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<64>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64,);
#[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<querySlashingOriginCall>
for UnderlyingRustTuple<'_> {
fn from(value: querySlashingOriginCall) -> Self {
(value.serviceId,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for querySlashingOriginCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { serviceId: 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<querySlashingOriginReturn>
for UnderlyingRustTuple<'_> {
fn from(value: querySlashingOriginReturn) -> Self {
(value.slashingOrigin,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for querySlashingOriginReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { slashingOrigin: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for querySlashingOriginCall {
type Parameters<'a> = (alloy::sol_types::sol_data::Uint<64>,);
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 = "querySlashingOrigin(uint64)";
const SELECTOR: [u8; 4] = [116u8, 206u8, 235u8, 85u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
)
}
#[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: querySlashingOriginReturn = r.into();
r.slashingOrigin
})
}
#[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: querySlashingOriginReturn = r.into();
r.slashingOrigin
})
}
}
};
#[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 requiresAggregationCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub jobIndex: u8,
}
#[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 requiresAggregationReturn {
#[allow(missing_docs)]
pub required: 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::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, u8);
#[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<requiresAggregationCall>
for UnderlyingRustTuple<'_> {
fn from(value: requiresAggregationCall) -> Self {
(value.serviceId, value.jobIndex)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for requiresAggregationCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
jobIndex: 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<requiresAggregationReturn>
for UnderlyingRustTuple<'_> {
fn from(value: requiresAggregationReturn) -> Self {
(value.required,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for requiresAggregationReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { required: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for requiresAggregationCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Uint<8>,
);
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 = "requiresAggregation(uint64,uint8)";
const SELECTOR: [u8; 4] = [25u8, 237u8, 91u8, 178u8];
#[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<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(&self.jobIndex),
)
}
#[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: requiresAggregationReturn = r.into();
r.required
})
}
#[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: requiresAggregationReturn = r.into();
r.required
})
}
}
};
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive()]
pub enum IBlueprintServiceManagerCalls {
#[allow(missing_docs)]
canJoin(canJoinCall),
#[allow(missing_docs)]
canLeave(canLeaveCall),
#[allow(missing_docs)]
computeBillAdjustmentBps(computeBillAdjustmentBpsCall),
#[allow(missing_docs)]
forceRemoveAllowsBelowMin(forceRemoveAllowsBelowMinCall),
#[allow(missing_docs)]
getAggregationThreshold(getAggregationThresholdCall),
#[allow(missing_docs)]
getExitConfig(getExitConfigCall),
#[allow(missing_docs)]
getHeartbeatInterval(getHeartbeatIntervalCall),
#[allow(missing_docs)]
getHeartbeatThreshold(getHeartbeatThresholdCall),
#[allow(missing_docs)]
getMinOperatorStake(getMinOperatorStakeCall),
#[allow(missing_docs)]
getNonPaymentTerminationPolicy(getNonPaymentTerminationPolicyCall),
#[allow(missing_docs)]
getRequiredResultCount(getRequiredResultCountCall),
#[allow(missing_docs)]
getSlashingWindow(getSlashingWindowCall),
#[allow(missing_docs)]
onAggregatedResult(onAggregatedResultCall),
#[allow(missing_docs)]
onApprove(onApproveCall),
#[allow(missing_docs)]
onBlueprintCreated(onBlueprintCreatedCall),
#[allow(missing_docs)]
onExitCanceled(onExitCanceledCall),
#[allow(missing_docs)]
onExitScheduled(onExitScheduledCall),
#[allow(missing_docs)]
onJobCall(onJobCallCall),
#[allow(missing_docs)]
onJobResult(onJobResultCall),
#[allow(missing_docs)]
onOperatorJoined(onOperatorJoinedCall),
#[allow(missing_docs)]
onOperatorLeft(onOperatorLeftCall),
#[allow(missing_docs)]
onRegister(onRegisterCall),
#[allow(missing_docs)]
onReject(onRejectCall),
#[allow(missing_docs)]
onRequest(onRequestCall),
#[allow(missing_docs)]
onServiceInitialized(onServiceInitializedCall),
#[allow(missing_docs)]
onServiceTermination(onServiceTerminationCall),
#[allow(missing_docs)]
onSlash(onSlashCall),
#[allow(missing_docs)]
onUnappliedSlash(onUnappliedSlashCall),
#[allow(missing_docs)]
onUnregister(onUnregisterCall),
#[allow(missing_docs)]
onUpdatePreferences(onUpdatePreferencesCall),
#[allow(missing_docs)]
queryDeveloperPaymentAddress(queryDeveloperPaymentAddressCall),
#[allow(missing_docs)]
queryDisputeOrigin(queryDisputeOriginCall),
#[allow(missing_docs)]
queryIsPaymentAssetAllowed(queryIsPaymentAssetAllowedCall),
#[allow(missing_docs)]
querySlashingOrigin(querySlashingOriginCall),
#[allow(missing_docs)]
requiresAggregation(requiresAggregationCall),
}
impl IBlueprintServiceManagerCalls {
pub const SELECTORS: &'static [[u8; 4usize]] = &[
[0u8, 104u8, 8u8, 11u8],
[8u8, 23u8, 159u8, 53u8],
[8u8, 129u8, 137u8, 143u8],
[11u8, 101u8, 53u8, 215u8],
[20u8, 180u8, 223u8, 76u8],
[21u8, 26u8, 69u8, 118u8],
[21u8, 139u8, 178u8, 235u8],
[25u8, 237u8, 91u8, 178u8],
[37u8, 252u8, 198u8, 78u8],
[63u8, 218u8, 223u8, 204u8],
[76u8, 68u8, 62u8, 4u8],
[84u8, 64u8, 102u8, 44u8],
[84u8, 220u8, 230u8, 194u8],
[103u8, 121u8, 60u8, 198u8],
[113u8, 232u8, 232u8, 93u8],
[116u8, 206u8, 235u8, 85u8],
[126u8, 20u8, 185u8, 25u8],
[130u8, 161u8, 236u8, 228u8],
[146u8, 203u8, 183u8, 142u8],
[150u8, 93u8, 35u8, 27u8],
[152u8, 56u8, 202u8, 163u8],
[154u8, 162u8, 106u8, 146u8],
[162u8, 78u8, 138u8, 144u8],
[177u8, 89u8, 235u8, 52u8],
[180u8, 114u8, 66u8, 232u8],
[194u8, 140u8, 216u8, 18u8],
[196u8, 12u8, 128u8, 209u8],
[201u8, 205u8, 74u8, 24u8],
[210u8, 103u8, 46u8, 212u8],
[224u8, 85u8, 156u8, 99u8],
[227u8, 144u8, 252u8, 219u8],
[229u8, 24u8, 222u8, 118u8],
[243u8, 226u8, 143u8, 50u8],
[245u8, 142u8, 32u8, 102u8],
[249u8, 63u8, 242u8, 183u8],
];
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(getHeartbeatInterval),
::core::stringify!(queryDeveloperPaymentAddress),
::core::stringify!(onUnappliedSlash),
::core::stringify!(onBlueprintCreated),
::core::stringify!(queryDisputeOrigin),
::core::stringify!(onUnregister),
::core::stringify!(onAggregatedResult),
::core::stringify!(requiresAggregation),
::core::stringify!(getAggregationThreshold),
::core::stringify!(getSlashingWindow),
::core::stringify!(getRequiredResultCount),
::core::stringify!(onExitCanceled),
::core::stringify!(getMinOperatorStake),
::core::stringify!(onRegister),
::core::stringify!(getNonPaymentTerminationPolicy),
::core::stringify!(querySlashingOrigin),
::core::stringify!(onSlash),
::core::stringify!(onServiceInitialized),
::core::stringify!(getHeartbeatThreshold),
::core::stringify!(onOperatorLeft),
::core::stringify!(onJobCall),
::core::stringify!(onOperatorJoined),
::core::stringify!(onServiceTermination),
::core::stringify!(onApprove),
::core::stringify!(canJoin),
::core::stringify!(onRequest),
::core::stringify!(onJobResult),
::core::stringify!(onReject),
::core::stringify!(getExitConfig),
::core::stringify!(onExitScheduled),
::core::stringify!(queryIsPaymentAssetAllowed),
::core::stringify!(canLeave),
::core::stringify!(forceRemoveAllowsBelowMin),
::core::stringify!(onUpdatePreferences),
::core::stringify!(computeBillAdjustmentBps),
];
pub const SIGNATURES: &'static [&'static str] = &[
<getHeartbeatIntervalCall as alloy_sol_types::SolCall>::SIGNATURE,
<queryDeveloperPaymentAddressCall as alloy_sol_types::SolCall>::SIGNATURE,
<onUnappliedSlashCall as alloy_sol_types::SolCall>::SIGNATURE,
<onBlueprintCreatedCall as alloy_sol_types::SolCall>::SIGNATURE,
<queryDisputeOriginCall as alloy_sol_types::SolCall>::SIGNATURE,
<onUnregisterCall as alloy_sol_types::SolCall>::SIGNATURE,
<onAggregatedResultCall as alloy_sol_types::SolCall>::SIGNATURE,
<requiresAggregationCall as alloy_sol_types::SolCall>::SIGNATURE,
<getAggregationThresholdCall as alloy_sol_types::SolCall>::SIGNATURE,
<getSlashingWindowCall as alloy_sol_types::SolCall>::SIGNATURE,
<getRequiredResultCountCall as alloy_sol_types::SolCall>::SIGNATURE,
<onExitCanceledCall as alloy_sol_types::SolCall>::SIGNATURE,
<getMinOperatorStakeCall as alloy_sol_types::SolCall>::SIGNATURE,
<onRegisterCall as alloy_sol_types::SolCall>::SIGNATURE,
<getNonPaymentTerminationPolicyCall as alloy_sol_types::SolCall>::SIGNATURE,
<querySlashingOriginCall as alloy_sol_types::SolCall>::SIGNATURE,
<onSlashCall as alloy_sol_types::SolCall>::SIGNATURE,
<onServiceInitializedCall as alloy_sol_types::SolCall>::SIGNATURE,
<getHeartbeatThresholdCall as alloy_sol_types::SolCall>::SIGNATURE,
<onOperatorLeftCall as alloy_sol_types::SolCall>::SIGNATURE,
<onJobCallCall as alloy_sol_types::SolCall>::SIGNATURE,
<onOperatorJoinedCall as alloy_sol_types::SolCall>::SIGNATURE,
<onServiceTerminationCall as alloy_sol_types::SolCall>::SIGNATURE,
<onApproveCall as alloy_sol_types::SolCall>::SIGNATURE,
<canJoinCall as alloy_sol_types::SolCall>::SIGNATURE,
<onRequestCall as alloy_sol_types::SolCall>::SIGNATURE,
<onJobResultCall as alloy_sol_types::SolCall>::SIGNATURE,
<onRejectCall as alloy_sol_types::SolCall>::SIGNATURE,
<getExitConfigCall as alloy_sol_types::SolCall>::SIGNATURE,
<onExitScheduledCall as alloy_sol_types::SolCall>::SIGNATURE,
<queryIsPaymentAssetAllowedCall as alloy_sol_types::SolCall>::SIGNATURE,
<canLeaveCall as alloy_sol_types::SolCall>::SIGNATURE,
<forceRemoveAllowsBelowMinCall as alloy_sol_types::SolCall>::SIGNATURE,
<onUpdatePreferencesCall as alloy_sol_types::SolCall>::SIGNATURE,
<computeBillAdjustmentBpsCall 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 IBlueprintServiceManagerCalls {
const NAME: &'static str = "IBlueprintServiceManagerCalls";
const MIN_DATA_LENGTH: usize = 0usize;
const COUNT: usize = 35usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::canJoin(_) => <canJoinCall as alloy_sol_types::SolCall>::SELECTOR,
Self::canLeave(_) => <canLeaveCall as alloy_sol_types::SolCall>::SELECTOR,
Self::computeBillAdjustmentBps(_) => {
<computeBillAdjustmentBpsCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::forceRemoveAllowsBelowMin(_) => {
<forceRemoveAllowsBelowMinCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getAggregationThreshold(_) => {
<getAggregationThresholdCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getExitConfig(_) => {
<getExitConfigCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getHeartbeatInterval(_) => {
<getHeartbeatIntervalCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getHeartbeatThreshold(_) => {
<getHeartbeatThresholdCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getMinOperatorStake(_) => {
<getMinOperatorStakeCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getNonPaymentTerminationPolicy(_) => {
<getNonPaymentTerminationPolicyCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getRequiredResultCount(_) => {
<getRequiredResultCountCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getSlashingWindow(_) => {
<getSlashingWindowCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onAggregatedResult(_) => {
<onAggregatedResultCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onApprove(_) => {
<onApproveCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onBlueprintCreated(_) => {
<onBlueprintCreatedCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onExitCanceled(_) => {
<onExitCanceledCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onExitScheduled(_) => {
<onExitScheduledCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onJobCall(_) => {
<onJobCallCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onJobResult(_) => {
<onJobResultCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onOperatorJoined(_) => {
<onOperatorJoinedCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onOperatorLeft(_) => {
<onOperatorLeftCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onRegister(_) => {
<onRegisterCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onReject(_) => <onRejectCall as alloy_sol_types::SolCall>::SELECTOR,
Self::onRequest(_) => {
<onRequestCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onServiceInitialized(_) => {
<onServiceInitializedCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onServiceTermination(_) => {
<onServiceTerminationCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onSlash(_) => <onSlashCall as alloy_sol_types::SolCall>::SELECTOR,
Self::onUnappliedSlash(_) => {
<onUnappliedSlashCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onUnregister(_) => {
<onUnregisterCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::onUpdatePreferences(_) => {
<onUpdatePreferencesCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::queryDeveloperPaymentAddress(_) => {
<queryDeveloperPaymentAddressCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::queryDisputeOrigin(_) => {
<queryDisputeOriginCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::queryIsPaymentAssetAllowed(_) => {
<queryIsPaymentAssetAllowedCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::querySlashingOrigin(_) => {
<querySlashingOriginCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::requiresAggregation(_) => {
<requiresAggregationCall 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<IBlueprintServiceManagerCalls>] = &[
{
fn getHeartbeatInterval(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getHeartbeatIntervalCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::getHeartbeatInterval)
}
getHeartbeatInterval
},
{
fn queryDeveloperPaymentAddress(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<queryDeveloperPaymentAddressCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(
IBlueprintServiceManagerCalls::queryDeveloperPaymentAddress,
)
}
queryDeveloperPaymentAddress
},
{
fn onUnappliedSlash(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onUnappliedSlashCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onUnappliedSlash)
}
onUnappliedSlash
},
{
fn onBlueprintCreated(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onBlueprintCreatedCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onBlueprintCreated)
}
onBlueprintCreated
},
{
fn queryDisputeOrigin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<queryDisputeOriginCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::queryDisputeOrigin)
}
queryDisputeOrigin
},
{
fn onUnregister(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onUnregisterCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onUnregister)
}
onUnregister
},
{
fn onAggregatedResult(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onAggregatedResultCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onAggregatedResult)
}
onAggregatedResult
},
{
fn requiresAggregation(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<requiresAggregationCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::requiresAggregation)
}
requiresAggregation
},
{
fn getAggregationThreshold(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getAggregationThresholdCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::getAggregationThreshold)
}
getAggregationThreshold
},
{
fn getSlashingWindow(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getSlashingWindowCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::getSlashingWindow)
}
getSlashingWindow
},
{
fn getRequiredResultCount(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getRequiredResultCountCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::getRequiredResultCount)
}
getRequiredResultCount
},
{
fn onExitCanceled(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onExitCanceledCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onExitCanceled)
}
onExitCanceled
},
{
fn getMinOperatorStake(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getMinOperatorStakeCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::getMinOperatorStake)
}
getMinOperatorStake
},
{
fn onRegister(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onRegisterCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onRegister)
}
onRegister
},
{
fn getNonPaymentTerminationPolicy(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getNonPaymentTerminationPolicyCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(
IBlueprintServiceManagerCalls::getNonPaymentTerminationPolicy,
)
}
getNonPaymentTerminationPolicy
},
{
fn querySlashingOrigin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<querySlashingOriginCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::querySlashingOrigin)
}
querySlashingOrigin
},
{
fn onSlash(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onSlashCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(IBlueprintServiceManagerCalls::onSlash)
}
onSlash
},
{
fn onServiceInitialized(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onServiceInitializedCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onServiceInitialized)
}
onServiceInitialized
},
{
fn getHeartbeatThreshold(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getHeartbeatThresholdCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::getHeartbeatThreshold)
}
getHeartbeatThreshold
},
{
fn onOperatorLeft(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onOperatorLeftCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onOperatorLeft)
}
onOperatorLeft
},
{
fn onJobCall(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onJobCallCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(IBlueprintServiceManagerCalls::onJobCall)
}
onJobCall
},
{
fn onOperatorJoined(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onOperatorJoinedCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onOperatorJoined)
}
onOperatorJoined
},
{
fn onServiceTermination(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onServiceTerminationCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onServiceTermination)
}
onServiceTermination
},
{
fn onApprove(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onApproveCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(IBlueprintServiceManagerCalls::onApprove)
}
onApprove
},
{
fn canJoin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<canJoinCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(IBlueprintServiceManagerCalls::canJoin)
}
canJoin
},
{
fn onRequest(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onRequestCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(IBlueprintServiceManagerCalls::onRequest)
}
onRequest
},
{
fn onJobResult(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onJobResultCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onJobResult)
}
onJobResult
},
{
fn onReject(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onRejectCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(IBlueprintServiceManagerCalls::onReject)
}
onReject
},
{
fn getExitConfig(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getExitConfigCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::getExitConfig)
}
getExitConfig
},
{
fn onExitScheduled(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onExitScheduledCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onExitScheduled)
}
onExitScheduled
},
{
fn queryIsPaymentAssetAllowed(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<queryIsPaymentAssetAllowedCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(
IBlueprintServiceManagerCalls::queryIsPaymentAssetAllowed,
)
}
queryIsPaymentAssetAllowed
},
{
fn canLeave(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<canLeaveCall as alloy_sol_types::SolCall>::abi_decode_raw(data)
.map(IBlueprintServiceManagerCalls::canLeave)
}
canLeave
},
{
fn forceRemoveAllowsBelowMin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<forceRemoveAllowsBelowMinCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(
IBlueprintServiceManagerCalls::forceRemoveAllowsBelowMin,
)
}
forceRemoveAllowsBelowMin
},
{
fn onUpdatePreferences(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onUpdatePreferencesCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::onUpdatePreferences)
}
onUpdatePreferences
},
{
fn computeBillAdjustmentBps(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<computeBillAdjustmentBpsCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(IBlueprintServiceManagerCalls::computeBillAdjustmentBps)
}
computeBillAdjustmentBps
},
];
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<IBlueprintServiceManagerCalls>] = &[
{
fn getHeartbeatInterval(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getHeartbeatIntervalCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::getHeartbeatInterval)
}
getHeartbeatInterval
},
{
fn queryDeveloperPaymentAddress(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<queryDeveloperPaymentAddressCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(
IBlueprintServiceManagerCalls::queryDeveloperPaymentAddress,
)
}
queryDeveloperPaymentAddress
},
{
fn onUnappliedSlash(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onUnappliedSlashCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onUnappliedSlash)
}
onUnappliedSlash
},
{
fn onBlueprintCreated(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onBlueprintCreatedCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onBlueprintCreated)
}
onBlueprintCreated
},
{
fn queryDisputeOrigin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<queryDisputeOriginCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::queryDisputeOrigin)
}
queryDisputeOrigin
},
{
fn onUnregister(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onUnregisterCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onUnregister)
}
onUnregister
},
{
fn onAggregatedResult(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onAggregatedResultCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onAggregatedResult)
}
onAggregatedResult
},
{
fn requiresAggregation(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<requiresAggregationCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::requiresAggregation)
}
requiresAggregation
},
{
fn getAggregationThreshold(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getAggregationThresholdCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::getAggregationThreshold)
}
getAggregationThreshold
},
{
fn getSlashingWindow(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getSlashingWindowCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::getSlashingWindow)
}
getSlashingWindow
},
{
fn getRequiredResultCount(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getRequiredResultCountCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::getRequiredResultCount)
}
getRequiredResultCount
},
{
fn onExitCanceled(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onExitCanceledCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onExitCanceled)
}
onExitCanceled
},
{
fn getMinOperatorStake(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getMinOperatorStakeCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::getMinOperatorStake)
}
getMinOperatorStake
},
{
fn onRegister(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onRegisterCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onRegister)
}
onRegister
},
{
fn getNonPaymentTerminationPolicy(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getNonPaymentTerminationPolicyCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(
IBlueprintServiceManagerCalls::getNonPaymentTerminationPolicy,
)
}
getNonPaymentTerminationPolicy
},
{
fn querySlashingOrigin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<querySlashingOriginCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::querySlashingOrigin)
}
querySlashingOrigin
},
{
fn onSlash(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onSlashCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onSlash)
}
onSlash
},
{
fn onServiceInitialized(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onServiceInitializedCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onServiceInitialized)
}
onServiceInitialized
},
{
fn getHeartbeatThreshold(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getHeartbeatThresholdCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::getHeartbeatThreshold)
}
getHeartbeatThreshold
},
{
fn onOperatorLeft(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onOperatorLeftCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onOperatorLeft)
}
onOperatorLeft
},
{
fn onJobCall(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onJobCallCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onJobCall)
}
onJobCall
},
{
fn onOperatorJoined(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onOperatorJoinedCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onOperatorJoined)
}
onOperatorJoined
},
{
fn onServiceTermination(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onServiceTerminationCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onServiceTermination)
}
onServiceTermination
},
{
fn onApprove(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onApproveCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onApprove)
}
onApprove
},
{
fn canJoin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<canJoinCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::canJoin)
}
canJoin
},
{
fn onRequest(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onRequestCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onRequest)
}
onRequest
},
{
fn onJobResult(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onJobResultCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onJobResult)
}
onJobResult
},
{
fn onReject(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onRejectCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onReject)
}
onReject
},
{
fn getExitConfig(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<getExitConfigCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::getExitConfig)
}
getExitConfig
},
{
fn onExitScheduled(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onExitScheduledCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onExitScheduled)
}
onExitScheduled
},
{
fn queryIsPaymentAssetAllowed(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<queryIsPaymentAssetAllowedCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(
IBlueprintServiceManagerCalls::queryIsPaymentAssetAllowed,
)
}
queryIsPaymentAssetAllowed
},
{
fn canLeave(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<canLeaveCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::canLeave)
}
canLeave
},
{
fn forceRemoveAllowsBelowMin(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<forceRemoveAllowsBelowMinCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(
IBlueprintServiceManagerCalls::forceRemoveAllowsBelowMin,
)
}
forceRemoveAllowsBelowMin
},
{
fn onUpdatePreferences(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<onUpdatePreferencesCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::onUpdatePreferences)
}
onUpdatePreferences
},
{
fn computeBillAdjustmentBps(
data: &[u8],
) -> alloy_sol_types::Result<IBlueprintServiceManagerCalls> {
<computeBillAdjustmentBpsCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(IBlueprintServiceManagerCalls::computeBillAdjustmentBps)
}
computeBillAdjustmentBps
},
];
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::canJoin(inner) => {
<canJoinCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::canLeave(inner) => {
<canLeaveCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::computeBillAdjustmentBps(inner) => {
<computeBillAdjustmentBpsCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::forceRemoveAllowsBelowMin(inner) => {
<forceRemoveAllowsBelowMinCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getAggregationThreshold(inner) => {
<getAggregationThresholdCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getExitConfig(inner) => {
<getExitConfigCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getHeartbeatInterval(inner) => {
<getHeartbeatIntervalCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getHeartbeatThreshold(inner) => {
<getHeartbeatThresholdCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getMinOperatorStake(inner) => {
<getMinOperatorStakeCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getNonPaymentTerminationPolicy(inner) => {
<getNonPaymentTerminationPolicyCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getRequiredResultCount(inner) => {
<getRequiredResultCountCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::getSlashingWindow(inner) => {
<getSlashingWindowCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onAggregatedResult(inner) => {
<onAggregatedResultCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onApprove(inner) => {
<onApproveCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::onBlueprintCreated(inner) => {
<onBlueprintCreatedCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onExitCanceled(inner) => {
<onExitCanceledCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onExitScheduled(inner) => {
<onExitScheduledCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onJobCall(inner) => {
<onJobCallCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::onJobResult(inner) => {
<onJobResultCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onOperatorJoined(inner) => {
<onOperatorJoinedCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onOperatorLeft(inner) => {
<onOperatorLeftCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onRegister(inner) => {
<onRegisterCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::onReject(inner) => {
<onRejectCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::onRequest(inner) => {
<onRequestCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::onServiceInitialized(inner) => {
<onServiceInitializedCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onServiceTermination(inner) => {
<onServiceTerminationCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onSlash(inner) => {
<onSlashCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::onUnappliedSlash(inner) => {
<onUnappliedSlashCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onUnregister(inner) => {
<onUnregisterCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::onUpdatePreferences(inner) => {
<onUpdatePreferencesCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::queryDeveloperPaymentAddress(inner) => {
<queryDeveloperPaymentAddressCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::queryDisputeOrigin(inner) => {
<queryDisputeOriginCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::queryIsPaymentAssetAllowed(inner) => {
<queryIsPaymentAssetAllowedCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::querySlashingOrigin(inner) => {
<querySlashingOriginCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::requiresAggregation(inner) => {
<requiresAggregationCall 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::canJoin(inner) => {
<canJoinCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::canLeave(inner) => {
<canLeaveCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::computeBillAdjustmentBps(inner) => {
<computeBillAdjustmentBpsCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::forceRemoveAllowsBelowMin(inner) => {
<forceRemoveAllowsBelowMinCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getAggregationThreshold(inner) => {
<getAggregationThresholdCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getExitConfig(inner) => {
<getExitConfigCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getHeartbeatInterval(inner) => {
<getHeartbeatIntervalCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getHeartbeatThreshold(inner) => {
<getHeartbeatThresholdCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getMinOperatorStake(inner) => {
<getMinOperatorStakeCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getNonPaymentTerminationPolicy(inner) => {
<getNonPaymentTerminationPolicyCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getRequiredResultCount(inner) => {
<getRequiredResultCountCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getSlashingWindow(inner) => {
<getSlashingWindowCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onAggregatedResult(inner) => {
<onAggregatedResultCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onApprove(inner) => {
<onApproveCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onBlueprintCreated(inner) => {
<onBlueprintCreatedCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onExitCanceled(inner) => {
<onExitCanceledCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onExitScheduled(inner) => {
<onExitScheduledCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onJobCall(inner) => {
<onJobCallCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onJobResult(inner) => {
<onJobResultCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onOperatorJoined(inner) => {
<onOperatorJoinedCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onOperatorLeft(inner) => {
<onOperatorLeftCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onRegister(inner) => {
<onRegisterCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onReject(inner) => {
<onRejectCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onRequest(inner) => {
<onRequestCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onServiceInitialized(inner) => {
<onServiceInitializedCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onServiceTermination(inner) => {
<onServiceTerminationCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onSlash(inner) => {
<onSlashCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::onUnappliedSlash(inner) => {
<onUnappliedSlashCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onUnregister(inner) => {
<onUnregisterCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::onUpdatePreferences(inner) => {
<onUpdatePreferencesCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::queryDeveloperPaymentAddress(inner) => {
<queryDeveloperPaymentAddressCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::queryDisputeOrigin(inner) => {
<queryDisputeOriginCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::queryIsPaymentAssetAllowed(inner) => {
<queryIsPaymentAssetAllowedCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::querySlashingOrigin(inner) => {
<querySlashingOriginCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::requiresAggregation(inner) => {
<requiresAggregationCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
}
}
}
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,
) -> IBlueprintServiceManagerInstance<P, N> {
IBlueprintServiceManagerInstance::<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<IBlueprintServiceManagerInstance<P, N>>,
> {
IBlueprintServiceManagerInstance::<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> {
IBlueprintServiceManagerInstance::<P, N>::deploy_builder(__provider)
}
#[derive(Clone)]
pub struct IBlueprintServiceManagerInstance<
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 IBlueprintServiceManagerInstance<P, N> {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("IBlueprintServiceManagerInstance")
.field(&self.address)
.finish()
}
}
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> IBlueprintServiceManagerInstance<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<IBlueprintServiceManagerInstance<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> IBlueprintServiceManagerInstance<&P, N> {
#[inline]
pub fn with_cloned_provider(self) -> IBlueprintServiceManagerInstance<P, N> {
IBlueprintServiceManagerInstance {
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,
> IBlueprintServiceManagerInstance<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 canJoin(
&self,
serviceId: u64,
operator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, canJoinCall, N> {
self.call_builder(&canJoinCall { serviceId, operator })
}
pub fn canLeave(
&self,
serviceId: u64,
operator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, canLeaveCall, N> {
self.call_builder(
&canLeaveCall {
serviceId,
operator,
},
)
}
pub fn computeBillAdjustmentBps(
&self,
serviceId: u64,
periodStart: u64,
periodEnd: u64,
) -> alloy_contract::SolCallBuilder<&P, computeBillAdjustmentBpsCall, N> {
self.call_builder(
&computeBillAdjustmentBpsCall {
serviceId,
periodStart,
periodEnd,
},
)
}
pub fn forceRemoveAllowsBelowMin(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, forceRemoveAllowsBelowMinCall, N> {
self.call_builder(
&forceRemoveAllowsBelowMinCall {
serviceId,
},
)
}
pub fn getAggregationThreshold(
&self,
serviceId: u64,
jobIndex: u8,
) -> alloy_contract::SolCallBuilder<&P, getAggregationThresholdCall, N> {
self.call_builder(
&getAggregationThresholdCall {
serviceId,
jobIndex,
},
)
}
pub fn getExitConfig(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, getExitConfigCall, N> {
self.call_builder(&getExitConfigCall { serviceId })
}
pub fn getHeartbeatInterval(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, getHeartbeatIntervalCall, N> {
self.call_builder(
&getHeartbeatIntervalCall {
serviceId,
},
)
}
pub fn getHeartbeatThreshold(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, getHeartbeatThresholdCall, N> {
self.call_builder(
&getHeartbeatThresholdCall {
serviceId,
},
)
}
pub fn getMinOperatorStake(
&self,
) -> alloy_contract::SolCallBuilder<&P, getMinOperatorStakeCall, N> {
self.call_builder(&getMinOperatorStakeCall)
}
pub fn getNonPaymentTerminationPolicy(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, getNonPaymentTerminationPolicyCall, N> {
self.call_builder(
&getNonPaymentTerminationPolicyCall {
serviceId,
},
)
}
pub fn getRequiredResultCount(
&self,
serviceId: u64,
jobIndex: u8,
) -> alloy_contract::SolCallBuilder<&P, getRequiredResultCountCall, N> {
self.call_builder(
&getRequiredResultCountCall {
serviceId,
jobIndex,
},
)
}
pub fn getSlashingWindow(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, getSlashingWindowCall, N> {
self.call_builder(&getSlashingWindowCall { serviceId })
}
pub fn onAggregatedResult(
&self,
serviceId: u64,
job: u8,
jobCallId: u64,
output: alloy::sol_types::private::Bytes,
signerBitmap: alloy::sol_types::private::primitives::aliases::U256,
aggregatedSignature: [alloy::sol_types::private::primitives::aliases::U256; 2usize],
aggregatedPubkey: [alloy::sol_types::private::primitives::aliases::U256; 4usize],
) -> alloy_contract::SolCallBuilder<&P, onAggregatedResultCall, N> {
self.call_builder(
&onAggregatedResultCall {
serviceId,
job,
jobCallId,
output,
signerBitmap,
aggregatedSignature,
aggregatedPubkey,
},
)
}
pub fn onApprove(
&self,
operator: alloy::sol_types::private::Address,
requestId: u64,
stakingPercent: u8,
) -> alloy_contract::SolCallBuilder<&P, onApproveCall, N> {
self.call_builder(
&onApproveCall {
operator,
requestId,
stakingPercent,
},
)
}
pub fn onBlueprintCreated(
&self,
blueprintId: u64,
owner: alloy::sol_types::private::Address,
tangleCore: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, onBlueprintCreatedCall, N> {
self.call_builder(
&onBlueprintCreatedCall {
blueprintId,
owner,
tangleCore,
},
)
}
pub fn onExitCanceled(
&self,
serviceId: u64,
operator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, onExitCanceledCall, N> {
self.call_builder(
&onExitCanceledCall {
serviceId,
operator,
},
)
}
pub fn onExitScheduled(
&self,
serviceId: u64,
operator: alloy::sol_types::private::Address,
executeAfter: u64,
) -> alloy_contract::SolCallBuilder<&P, onExitScheduledCall, N> {
self.call_builder(
&onExitScheduledCall {
serviceId,
operator,
executeAfter,
},
)
}
pub fn onJobCall(
&self,
serviceId: u64,
job: u8,
jobCallId: u64,
inputs: alloy::sol_types::private::Bytes,
) -> alloy_contract::SolCallBuilder<&P, onJobCallCall, N> {
self.call_builder(
&onJobCallCall {
serviceId,
job,
jobCallId,
inputs,
},
)
}
pub fn onJobResult(
&self,
serviceId: u64,
job: u8,
jobCallId: u64,
operator: alloy::sol_types::private::Address,
inputs: alloy::sol_types::private::Bytes,
outputs: alloy::sol_types::private::Bytes,
) -> alloy_contract::SolCallBuilder<&P, onJobResultCall, N> {
self.call_builder(
&onJobResultCall {
serviceId,
job,
jobCallId,
operator,
inputs,
outputs,
},
)
}
pub fn onOperatorJoined(
&self,
serviceId: u64,
operator: alloy::sol_types::private::Address,
exposureBps: u16,
) -> alloy_contract::SolCallBuilder<&P, onOperatorJoinedCall, N> {
self.call_builder(
&onOperatorJoinedCall {
serviceId,
operator,
exposureBps,
},
)
}
pub fn onOperatorLeft(
&self,
serviceId: u64,
operator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, onOperatorLeftCall, N> {
self.call_builder(
&onOperatorLeftCall {
serviceId,
operator,
},
)
}
pub fn onRegister(
&self,
operator: alloy::sol_types::private::Address,
registrationInputs: alloy::sol_types::private::Bytes,
) -> alloy_contract::SolCallBuilder<&P, onRegisterCall, N> {
self.call_builder(
&onRegisterCall {
operator,
registrationInputs,
},
)
}
pub fn onReject(
&self,
operator: alloy::sol_types::private::Address,
requestId: u64,
) -> alloy_contract::SolCallBuilder<&P, onRejectCall, N> {
self.call_builder(
&onRejectCall {
operator,
requestId,
},
)
}
pub fn onRequest(
&self,
requestId: u64,
requester: alloy::sol_types::private::Address,
operators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
requestInputs: alloy::sol_types::private::Bytes,
ttl: u64,
paymentAsset: alloy::sol_types::private::Address,
paymentAmount: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, onRequestCall, N> {
self.call_builder(
&onRequestCall {
requestId,
requester,
operators,
requestInputs,
ttl,
paymentAsset,
paymentAmount,
},
)
}
pub fn onServiceInitialized(
&self,
blueprintId: u64,
requestId: u64,
serviceId: u64,
owner: alloy::sol_types::private::Address,
permittedCallers: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
ttl: u64,
) -> alloy_contract::SolCallBuilder<&P, onServiceInitializedCall, N> {
self.call_builder(
&onServiceInitializedCall {
blueprintId,
requestId,
serviceId,
owner,
permittedCallers,
ttl,
},
)
}
pub fn onServiceTermination(
&self,
serviceId: u64,
owner: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, onServiceTerminationCall, N> {
self.call_builder(
&onServiceTerminationCall {
serviceId,
owner,
},
)
}
pub fn onSlash(
&self,
serviceId: u64,
offender: alloy::sol_types::private::Bytes,
slashPercent: u8,
) -> alloy_contract::SolCallBuilder<&P, onSlashCall, N> {
self.call_builder(
&onSlashCall {
serviceId,
offender,
slashPercent,
},
)
}
pub fn onUnappliedSlash(
&self,
serviceId: u64,
offender: alloy::sol_types::private::Bytes,
slashPercent: u8,
) -> alloy_contract::SolCallBuilder<&P, onUnappliedSlashCall, N> {
self.call_builder(
&onUnappliedSlashCall {
serviceId,
offender,
slashPercent,
},
)
}
pub fn onUnregister(
&self,
operator: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, onUnregisterCall, N> {
self.call_builder(&onUnregisterCall { operator })
}
pub fn onUpdatePreferences(
&self,
operator: alloy::sol_types::private::Address,
newPreferences: alloy::sol_types::private::Bytes,
) -> alloy_contract::SolCallBuilder<&P, onUpdatePreferencesCall, N> {
self.call_builder(
&onUpdatePreferencesCall {
operator,
newPreferences,
},
)
}
pub fn queryDeveloperPaymentAddress(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, queryDeveloperPaymentAddressCall, N> {
self.call_builder(
&queryDeveloperPaymentAddressCall {
serviceId,
},
)
}
pub fn queryDisputeOrigin(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, queryDisputeOriginCall, N> {
self.call_builder(
&queryDisputeOriginCall {
serviceId,
},
)
}
pub fn queryIsPaymentAssetAllowed(
&self,
serviceId: u64,
asset: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, queryIsPaymentAssetAllowedCall, N> {
self.call_builder(
&queryIsPaymentAssetAllowedCall {
serviceId,
asset,
},
)
}
pub fn querySlashingOrigin(
&self,
serviceId: u64,
) -> alloy_contract::SolCallBuilder<&P, querySlashingOriginCall, N> {
self.call_builder(
&querySlashingOriginCall {
serviceId,
},
)
}
pub fn requiresAggregation(
&self,
serviceId: u64,
jobIndex: u8,
) -> alloy_contract::SolCallBuilder<&P, requiresAggregationCall, N> {
self.call_builder(
&requiresAggregationCall {
serviceId,
jobIndex,
},
)
}
}
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> IBlueprintServiceManagerInstance<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)
}
}
}