#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style,
clippy::empty_structs_with_brackets
)]
pub mod IBlobsFacade {
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"",
);
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct BlobStatus(u8);
const _: () = {
use ::alloy_sol_types as alloy_sol_types;
#[automatically_derived]
impl alloy_sol_types::private::SolTypeValue<BlobStatus> for u8 {
#[inline]
fn stv_to_tokens(
&self,
) -> <::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::Token<'_> {
alloy_sol_types::private::SolTypeValue::<
::alloy_sol_types::sol_data::Uint<8>,
>::stv_to_tokens(self)
}
#[inline]
fn stv_eip712_data_word(&self) -> alloy_sol_types::Word {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::tokenize(self)
.0
}
#[inline]
fn stv_abi_encode_packed_to(
&self,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::abi_encode_packed_to(self, out)
}
#[inline]
fn stv_abi_packed_encoded_size(&self) -> usize {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::abi_encoded_size(self)
}
}
#[automatically_derived]
impl BlobStatus {
pub const NAME: &'static str = stringify!(@ name);
#[inline]
pub const fn from(value: u8) -> Self {
Self(value)
}
#[inline]
pub const fn into(self) -> u8 {
self.0
}
#[inline]
pub fn abi_encode(&self) -> alloy_sol_types::private::Vec<u8> {
<Self as alloy_sol_types::SolType>::abi_encode(&self.0)
}
#[inline]
pub fn abi_encode_packed(&self) -> alloy_sol_types::private::Vec<u8> {
<Self as alloy_sol_types::SolType>::abi_encode_packed(&self.0)
}
}
#[automatically_derived]
impl alloy_sol_types::SolType for BlobStatus {
type RustType = u8;
type Token<'a> = <::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::Token<'a>;
const SOL_NAME: &'static str = Self::NAME;
const ENCODED_SIZE: Option<usize> = <::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::ENCODED_SIZE;
const PACKED_ENCODED_SIZE: Option<usize> = <::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE;
#[inline]
fn valid_token(token: &Self::Token<'_>) -> bool {
Self::type_check(token).is_ok()
}
#[inline]
fn type_check(token: &Self::Token<'_>) -> alloy_sol_types::Result<()> {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::type_check(token)
}
#[inline]
fn detokenize(token: Self::Token<'_>) -> Self::RustType {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::SolType>::detokenize(token)
}
}
#[automatically_derived]
impl alloy_sol_types::EventTopic for BlobStatus {
#[inline]
fn topic_preimage_length(rust: &Self::RustType) -> usize {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::EventTopic>::topic_preimage_length(rust)
}
#[inline]
fn encode_topic_preimage(
rust: &Self::RustType,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(rust, out)
}
#[inline]
fn encode_topic(
rust: &Self::RustType,
) -> alloy_sol_types::abi::token::WordToken {
<::alloy_sol_types::sol_data::Uint<
8,
> as alloy_sol_types::EventTopic>::encode_topic(rust)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct Blob {
#[allow(missing_docs)]
pub size: u64,
#[allow(missing_docs)]
pub metadataHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub subscriptions: ::alloy_sol_types::private::Vec<
<Subscription as ::alloy_sol_types::SolType>::RustType,
>,
#[allow(missing_docs)]
pub status: <BlobStatus as ::alloy_sol_types::SolType>::RustType,
}
#[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)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::Uint<64>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Array<Subscription>,
BlobStatus,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
u64,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::Vec<
<Subscription as ::alloy_sol_types::SolType>::RustType,
>,
<BlobStatus as ::alloy_sol_types::SolType>::RustType,
);
#[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<Blob> for UnderlyingRustTuple<'_> {
fn from(value: Blob) -> Self {
(value.size, value.metadataHash, value.subscriptions, value.status)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for Blob {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
size: tuple.0,
metadataHash: tuple.1,
subscriptions: tuple.2,
status: tuple.3,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolValue for Blob {
type SolType = Self;
}
#[automatically_derived]
impl alloy_sol_types::private::SolTypeValue<Self> for Blob {
#[inline]
fn stv_to_tokens(&self) -> <Self as alloy_sol_types::SolType>::Token<'_> {
(
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.size),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.metadataHash),
<::alloy_sol_types::sol_data::Array<
Subscription,
> as alloy_sol_types::SolType>::tokenize(&self.subscriptions),
<BlobStatus as alloy_sol_types::SolType>::tokenize(&self.status),
)
}
#[inline]
fn stv_abi_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encoded_size(&tuple)
}
#[inline]
fn stv_eip712_data_word(&self) -> alloy_sol_types::Word {
<Self as alloy_sol_types::SolStruct>::eip712_hash_struct(self)
}
#[inline]
fn stv_abi_encode_packed_to(
&self,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encode_packed_to(&tuple, out)
}
#[inline]
fn stv_abi_packed_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_packed_encoded_size(&tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolType for Blob {
type RustType = Self;
type Token<'a> = <UnderlyingSolTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SOL_NAME: &'static str = <Self as alloy_sol_types::SolStruct>::NAME;
const ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::ENCODED_SIZE;
const PACKED_ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE;
#[inline]
fn valid_token(token: &Self::Token<'_>) -> bool {
<UnderlyingSolTuple<'_> as alloy_sol_types::SolType>::valid_token(token)
}
#[inline]
fn detokenize(token: Self::Token<'_>) -> Self::RustType {
let tuple = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::detokenize(token);
<Self as ::core::convert::From<UnderlyingRustTuple<'_>>>::from(tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolStruct for Blob {
const NAME: &'static str = "Blob";
#[inline]
fn eip712_root_type() -> alloy_sol_types::private::Cow<'static, str> {
alloy_sol_types::private::Cow::Borrowed(
"Blob(uint64 size,bytes32 metadataHash,Subscription[] subscriptions,uint8 status)",
)
}
#[inline]
fn eip712_components() -> alloy_sol_types::private::Vec<
alloy_sol_types::private::Cow<'static, str>,
> {
let mut components = alloy_sol_types::private::Vec::with_capacity(1);
components
.push(
<Subscription as alloy_sol_types::SolStruct>::eip712_root_type(),
);
components
.extend(
<Subscription as alloy_sol_types::SolStruct>::eip712_components(),
);
components
}
#[inline]
fn eip712_encode_data(&self) -> alloy_sol_types::private::Vec<u8> {
[
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.size)
.0,
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::eip712_data_word(&self.metadataHash)
.0,
<::alloy_sol_types::sol_data::Array<
Subscription,
> as alloy_sol_types::SolType>::eip712_data_word(&self.subscriptions)
.0,
<BlobStatus as alloy_sol_types::SolType>::eip712_data_word(
&self.status,
)
.0,
]
.concat()
}
}
#[automatically_derived]
impl alloy_sol_types::EventTopic for Blob {
#[inline]
fn topic_preimage_length(rust: &Self::RustType) -> usize {
0usize
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(&rust.size)
+ <::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.metadataHash,
)
+ <::alloy_sol_types::sol_data::Array<
Subscription,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.subscriptions,
)
+ <BlobStatus as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.status,
)
}
#[inline]
fn encode_topic_preimage(
rust: &Self::RustType,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
out.reserve(
<Self as alloy_sol_types::EventTopic>::topic_preimage_length(rust),
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.size,
out,
);
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.metadataHash,
out,
);
<::alloy_sol_types::sol_data::Array<
Subscription,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.subscriptions,
out,
);
<BlobStatus as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.status,
out,
);
}
#[inline]
fn encode_topic(
rust: &Self::RustType,
) -> alloy_sol_types::abi::token::WordToken {
let mut out = alloy_sol_types::private::Vec::new();
<Self as alloy_sol_types::EventTopic>::encode_topic_preimage(
rust,
&mut out,
);
alloy_sol_types::abi::token::WordToken(
alloy_sol_types::private::keccak256(out),
)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct SubnetStats {
#[allow(missing_docs)]
pub balance: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub capacityFree: u64,
#[allow(missing_docs)]
pub capacityUsed: u64,
#[allow(missing_docs)]
pub creditSold: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub creditCommitted: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub creditDebited: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub tokenCreditRate: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub numAccounts: u64,
#[allow(missing_docs)]
pub numBlobs: u64,
#[allow(missing_docs)]
pub numAdded: u64,
#[allow(missing_docs)]
pub bytesAdded: u64,
#[allow(missing_docs)]
pub numResolving: u64,
#[allow(missing_docs)]
pub bytesResolving: 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)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::Uint<256>,
::alloy_sol_types::sol_data::Uint<64>,
::alloy_sol_types::sol_data::Uint<64>,
::alloy_sol_types::sol_data::Uint<256>,
::alloy_sol_types::sol_data::Uint<256>,
::alloy_sol_types::sol_data::Uint<256>,
::alloy_sol_types::sol_data::Uint<256>,
::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::Uint<64>,
::alloy_sol_types::sol_data::Uint<64>,
::alloy_sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
::alloy_sol_types::private::primitives::aliases::U256,
u64,
u64,
::alloy_sol_types::private::primitives::aliases::U256,
::alloy_sol_types::private::primitives::aliases::U256,
::alloy_sol_types::private::primitives::aliases::U256,
::alloy_sol_types::private::primitives::aliases::U256,
u64,
u64,
u64,
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<SubnetStats> for UnderlyingRustTuple<'_> {
fn from(value: SubnetStats) -> Self {
(
value.balance,
value.capacityFree,
value.capacityUsed,
value.creditSold,
value.creditCommitted,
value.creditDebited,
value.tokenCreditRate,
value.numAccounts,
value.numBlobs,
value.numAdded,
value.bytesAdded,
value.numResolving,
value.bytesResolving,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for SubnetStats {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
balance: tuple.0,
capacityFree: tuple.1,
capacityUsed: tuple.2,
creditSold: tuple.3,
creditCommitted: tuple.4,
creditDebited: tuple.5,
tokenCreditRate: tuple.6,
numAccounts: tuple.7,
numBlobs: tuple.8,
numAdded: tuple.9,
bytesAdded: tuple.10,
numResolving: tuple.11,
bytesResolving: tuple.12,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolValue for SubnetStats {
type SolType = Self;
}
#[automatically_derived]
impl alloy_sol_types::private::SolTypeValue<Self> for SubnetStats {
#[inline]
fn stv_to_tokens(&self) -> <Self as alloy_sol_types::SolType>::Token<'_> {
(
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.balance),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.capacityFree),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.capacityUsed),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.creditSold),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.creditCommitted),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.creditDebited),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.tokenCreditRate),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.numAccounts),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.numBlobs),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.numAdded),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.bytesAdded),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.numResolving),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.bytesResolving),
)
}
#[inline]
fn stv_abi_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encoded_size(&tuple)
}
#[inline]
fn stv_eip712_data_word(&self) -> alloy_sol_types::Word {
<Self as alloy_sol_types::SolStruct>::eip712_hash_struct(self)
}
#[inline]
fn stv_abi_encode_packed_to(
&self,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encode_packed_to(&tuple, out)
}
#[inline]
fn stv_abi_packed_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_packed_encoded_size(&tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolType for SubnetStats {
type RustType = Self;
type Token<'a> = <UnderlyingSolTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SOL_NAME: &'static str = <Self as alloy_sol_types::SolStruct>::NAME;
const ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::ENCODED_SIZE;
const PACKED_ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE;
#[inline]
fn valid_token(token: &Self::Token<'_>) -> bool {
<UnderlyingSolTuple<'_> as alloy_sol_types::SolType>::valid_token(token)
}
#[inline]
fn detokenize(token: Self::Token<'_>) -> Self::RustType {
let tuple = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::detokenize(token);
<Self as ::core::convert::From<UnderlyingRustTuple<'_>>>::from(tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolStruct for SubnetStats {
const NAME: &'static str = "SubnetStats";
#[inline]
fn eip712_root_type() -> alloy_sol_types::private::Cow<'static, str> {
alloy_sol_types::private::Cow::Borrowed(
"SubnetStats(uint256 balance,uint64 capacityFree,uint64 capacityUsed,uint256 creditSold,uint256 creditCommitted,uint256 creditDebited,uint256 tokenCreditRate,uint64 numAccounts,uint64 numBlobs,uint64 numAdded,uint64 bytesAdded,uint64 numResolving,uint64 bytesResolving)",
)
}
#[inline]
fn eip712_components() -> alloy_sol_types::private::Vec<
alloy_sol_types::private::Cow<'static, str>,
> {
alloy_sol_types::private::Vec::new()
}
#[inline]
fn eip712_encode_type() -> alloy_sol_types::private::Cow<'static, str> {
<Self as alloy_sol_types::SolStruct>::eip712_root_type()
}
#[inline]
fn eip712_encode_data(&self) -> alloy_sol_types::private::Vec<u8> {
[
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::eip712_data_word(&self.balance)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.capacityFree)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.capacityUsed)
.0,
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::eip712_data_word(&self.creditSold)
.0,
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::eip712_data_word(
&self.creditCommitted,
)
.0,
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::eip712_data_word(&self.creditDebited)
.0,
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::eip712_data_word(
&self.tokenCreditRate,
)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.numAccounts)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.numBlobs)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.numAdded)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.bytesAdded)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.numResolving)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(
&self.bytesResolving,
)
.0,
]
.concat()
}
}
#[automatically_derived]
impl alloy_sol_types::EventTopic for SubnetStats {
#[inline]
fn topic_preimage_length(rust: &Self::RustType) -> usize {
0usize
+ <::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.balance,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.capacityFree,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.capacityUsed,
)
+ <::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.creditSold,
)
+ <::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.creditCommitted,
)
+ <::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.creditDebited,
)
+ <::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.tokenCreditRate,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.numAccounts,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.numBlobs,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.numAdded,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.bytesAdded,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.numResolving,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.bytesResolving,
)
}
#[inline]
fn encode_topic_preimage(
rust: &Self::RustType,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
out.reserve(
<Self as alloy_sol_types::EventTopic>::topic_preimage_length(rust),
);
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.balance,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.capacityFree,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.capacityUsed,
out,
);
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.creditSold,
out,
);
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.creditCommitted,
out,
);
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.creditDebited,
out,
);
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.tokenCreditRate,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.numAccounts,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.numBlobs,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.numAdded,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.bytesAdded,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.numResolving,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.bytesResolving,
out,
);
}
#[inline]
fn encode_topic(
rust: &Self::RustType,
) -> alloy_sol_types::abi::token::WordToken {
let mut out = alloy_sol_types::private::Vec::new();
<Self as alloy_sol_types::EventTopic>::encode_topic_preimage(
rust,
&mut out,
);
alloy_sol_types::abi::token::WordToken(
alloy_sol_types::private::keccak256(out),
)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct Subscription {
#[allow(missing_docs)]
pub subscriptionId: ::alloy_sol_types::private::String,
#[allow(missing_docs)]
pub expiry: 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)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::String,
::alloy_sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (::alloy_sol_types::private::String, 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<Subscription> for UnderlyingRustTuple<'_> {
fn from(value: Subscription) -> Self {
(value.subscriptionId, value.expiry)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for Subscription {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
subscriptionId: tuple.0,
expiry: tuple.1,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolValue for Subscription {
type SolType = Self;
}
#[automatically_derived]
impl alloy_sol_types::private::SolTypeValue<Self> for Subscription {
#[inline]
fn stv_to_tokens(&self) -> <Self as alloy_sol_types::SolType>::Token<'_> {
(
<::alloy_sol_types::sol_data::String as alloy_sol_types::SolType>::tokenize(
&self.subscriptionId,
),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.expiry),
)
}
#[inline]
fn stv_abi_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encoded_size(&tuple)
}
#[inline]
fn stv_eip712_data_word(&self) -> alloy_sol_types::Word {
<Self as alloy_sol_types::SolStruct>::eip712_hash_struct(self)
}
#[inline]
fn stv_abi_encode_packed_to(
&self,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encode_packed_to(&tuple, out)
}
#[inline]
fn stv_abi_packed_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_packed_encoded_size(&tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolType for Subscription {
type RustType = Self;
type Token<'a> = <UnderlyingSolTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SOL_NAME: &'static str = <Self as alloy_sol_types::SolStruct>::NAME;
const ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::ENCODED_SIZE;
const PACKED_ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE;
#[inline]
fn valid_token(token: &Self::Token<'_>) -> bool {
<UnderlyingSolTuple<'_> as alloy_sol_types::SolType>::valid_token(token)
}
#[inline]
fn detokenize(token: Self::Token<'_>) -> Self::RustType {
let tuple = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::detokenize(token);
<Self as ::core::convert::From<UnderlyingRustTuple<'_>>>::from(tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolStruct for Subscription {
const NAME: &'static str = "Subscription";
#[inline]
fn eip712_root_type() -> alloy_sol_types::private::Cow<'static, str> {
alloy_sol_types::private::Cow::Borrowed(
"Subscription(string subscriptionId,uint64 expiry)",
)
}
#[inline]
fn eip712_components() -> alloy_sol_types::private::Vec<
alloy_sol_types::private::Cow<'static, str>,
> {
alloy_sol_types::private::Vec::new()
}
#[inline]
fn eip712_encode_type() -> alloy_sol_types::private::Cow<'static, str> {
<Self as alloy_sol_types::SolStruct>::eip712_root_type()
}
#[inline]
fn eip712_encode_data(&self) -> alloy_sol_types::private::Vec<u8> {
[
<::alloy_sol_types::sol_data::String as alloy_sol_types::SolType>::eip712_data_word(
&self.subscriptionId,
)
.0,
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::eip712_data_word(&self.expiry)
.0,
]
.concat()
}
}
#[automatically_derived]
impl alloy_sol_types::EventTopic for Subscription {
#[inline]
fn topic_preimage_length(rust: &Self::RustType) -> usize {
0usize
+ <::alloy_sol_types::sol_data::String as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.subscriptionId,
)
+ <::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.expiry,
)
}
#[inline]
fn encode_topic_preimage(
rust: &Self::RustType,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
out.reserve(
<Self as alloy_sol_types::EventTopic>::topic_preimage_length(rust),
);
<::alloy_sol_types::sol_data::String as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.subscriptionId,
out,
);
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.expiry,
out,
);
}
#[inline]
fn encode_topic(
rust: &Self::RustType,
) -> alloy_sol_types::abi::token::WordToken {
let mut out = alloy_sol_types::private::Vec::new();
<Self as alloy_sol_types::EventTopic>::encode_topic_preimage(
rust,
&mut out,
);
alloy_sol_types::abi::token::WordToken(
alloy_sol_types::private::keccak256(out),
)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct TrimBlobExpiries {
#[allow(missing_docs)]
pub processed: u32,
#[allow(missing_docs)]
pub nextKey: ::alloy_sol_types::private::FixedBytes<32>,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use ::alloy_sol_types as alloy_sol_types;
#[doc(hidden)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::Uint<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u32, ::alloy_sol_types::private::FixedBytes<32>);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<TrimBlobExpiries> for UnderlyingRustTuple<'_> {
fn from(value: TrimBlobExpiries) -> Self {
(value.processed, value.nextKey)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for TrimBlobExpiries {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
processed: tuple.0,
nextKey: tuple.1,
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolValue for TrimBlobExpiries {
type SolType = Self;
}
#[automatically_derived]
impl alloy_sol_types::private::SolTypeValue<Self> for TrimBlobExpiries {
#[inline]
fn stv_to_tokens(&self) -> <Self as alloy_sol_types::SolType>::Token<'_> {
(
<::alloy_sol_types::sol_data::Uint<
32,
> as alloy_sol_types::SolType>::tokenize(&self.processed),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.nextKey),
)
}
#[inline]
fn stv_abi_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encoded_size(&tuple)
}
#[inline]
fn stv_eip712_data_word(&self) -> alloy_sol_types::Word {
<Self as alloy_sol_types::SolStruct>::eip712_hash_struct(self)
}
#[inline]
fn stv_abi_encode_packed_to(
&self,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_encode_packed_to(&tuple, out)
}
#[inline]
fn stv_abi_packed_encoded_size(&self) -> usize {
if let Some(size) = <Self as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE {
return size;
}
let tuple = <UnderlyingRustTuple<
'_,
> as ::core::convert::From<Self>>::from(self.clone());
<UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::abi_packed_encoded_size(&tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolType for TrimBlobExpiries {
type RustType = Self;
type Token<'a> = <UnderlyingSolTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SOL_NAME: &'static str = <Self as alloy_sol_types::SolStruct>::NAME;
const ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::ENCODED_SIZE;
const PACKED_ENCODED_SIZE: Option<usize> = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE;
#[inline]
fn valid_token(token: &Self::Token<'_>) -> bool {
<UnderlyingSolTuple<'_> as alloy_sol_types::SolType>::valid_token(token)
}
#[inline]
fn detokenize(token: Self::Token<'_>) -> Self::RustType {
let tuple = <UnderlyingSolTuple<
'_,
> as alloy_sol_types::SolType>::detokenize(token);
<Self as ::core::convert::From<UnderlyingRustTuple<'_>>>::from(tuple)
}
}
#[automatically_derived]
impl alloy_sol_types::SolStruct for TrimBlobExpiries {
const NAME: &'static str = "TrimBlobExpiries";
#[inline]
fn eip712_root_type() -> alloy_sol_types::private::Cow<'static, str> {
alloy_sol_types::private::Cow::Borrowed(
"TrimBlobExpiries(uint32 processed,bytes32 nextKey)",
)
}
#[inline]
fn eip712_components() -> alloy_sol_types::private::Vec<
alloy_sol_types::private::Cow<'static, str>,
> {
alloy_sol_types::private::Vec::new()
}
#[inline]
fn eip712_encode_type() -> alloy_sol_types::private::Cow<'static, str> {
<Self as alloy_sol_types::SolStruct>::eip712_root_type()
}
#[inline]
fn eip712_encode_data(&self) -> alloy_sol_types::private::Vec<u8> {
[
<::alloy_sol_types::sol_data::Uint<
32,
> as alloy_sol_types::SolType>::eip712_data_word(&self.processed)
.0,
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::eip712_data_word(&self.nextKey)
.0,
]
.concat()
}
}
#[automatically_derived]
impl alloy_sol_types::EventTopic for TrimBlobExpiries {
#[inline]
fn topic_preimage_length(rust: &Self::RustType) -> usize {
0usize
+ <::alloy_sol_types::sol_data::Uint<
32,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.processed,
)
+ <::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::EventTopic>::topic_preimage_length(
&rust.nextKey,
)
}
#[inline]
fn encode_topic_preimage(
rust: &Self::RustType,
out: &mut alloy_sol_types::private::Vec<u8>,
) {
out.reserve(
<Self as alloy_sol_types::EventTopic>::topic_preimage_length(rust),
);
<::alloy_sol_types::sol_data::Uint<
32,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.processed,
out,
);
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::EventTopic>::encode_topic_preimage(
&rust.nextKey,
out,
);
}
#[inline]
fn encode_topic(
rust: &Self::RustType,
) -> alloy_sol_types::abi::token::WordToken {
let mut out = alloy_sol_types::private::Vec::new();
<Self as alloy_sol_types::EventTopic>::encode_topic_preimage(
rust,
&mut out,
);
alloy_sol_types::abi::token::WordToken(
alloy_sol_types::private::keccak256(out),
)
}
}
};
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct BlobAdded {
#[allow(missing_docs)]
pub subscriber: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub hash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub size: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub expiry: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub bytesUsed: ::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;
#[automatically_derived]
impl alloy_sol_types::SolEvent for BlobAdded {
type DataTuple<'a> = (
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Uint<256>,
::alloy_sol_types::sol_data::Uint<256>,
::alloy_sol_types::sol_data::Uint<256>,
);
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (
alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Address,
);
const SIGNATURE: &'static str = "BlobAdded(address,bytes32,uint256,uint256,uint256)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
212u8,
44u8,
120u8,
20u8,
81u8,
143u8,
27u8,
127u8,
89u8,
25u8,
85u8,
125u8,
50u8,
126u8,
136u8,
205u8,
219u8,
123u8,
2u8,
252u8,
145u8,
8u8,
91u8,
64u8,
46u8,
148u8,
8u8,
50u8,
67u8,
160u8,
106u8,
141u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self {
subscriber: topics.1,
hash: data.0,
size: data.1,
expiry: data.2,
bytesUsed: data.3,
}
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
(
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.hash),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.size),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.expiry),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.bytesUsed),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(Self::SIGNATURE_HASH.into(), self.subscriber.clone())
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
out[1usize] = <::alloy_sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.subscriber,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for BlobAdded {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&BlobAdded> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &BlobAdded) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct BlobDeleted {
#[allow(missing_docs)]
pub subscriber: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub hash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub size: ::alloy_sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub bytesReleased: ::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;
#[automatically_derived]
impl alloy_sol_types::SolEvent for BlobDeleted {
type DataTuple<'a> = (
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Uint<256>,
::alloy_sol_types::sol_data::Uint<256>,
);
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (
alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Address,
);
const SIGNATURE: &'static str = "BlobDeleted(address,bytes32,uint256,uint256)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
46u8,
101u8,
103u8,
183u8,
48u8,
130u8,
181u8,
71u8,
220u8,
112u8,
177u8,
225u8,
105u8,
125u8,
194u8,
13u8,
44u8,
33u8,
196u8,
73u8,
21u8,
195u8,
175u8,
78u8,
253u8,
108u8,
231u8,
204u8,
153u8,
5u8,
161u8,
206u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self {
subscriber: topics.1,
hash: data.0,
size: data.1,
bytesReleased: data.2,
}
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
(
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.hash),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.size),
<::alloy_sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.bytesReleased),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(Self::SIGNATURE_HASH.into(), self.subscriber.clone())
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
out[1usize] = <::alloy_sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.subscriber,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for BlobDeleted {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&BlobDeleted> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &BlobDeleted) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct BlobFinalized {
#[allow(missing_docs)]
pub subscriber: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub hash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub resolved: bool,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use ::alloy_sol_types as alloy_sol_types;
#[automatically_derived]
impl alloy_sol_types::SolEvent for BlobFinalized {
type DataTuple<'a> = (
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Bool,
);
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (
alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Address,
);
const SIGNATURE: &'static str = "BlobFinalized(address,bytes32,bool)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
116u8,
172u8,
203u8,
29u8,
168u8,
112u8,
99u8,
90u8,
78u8,
117u8,
126u8,
212u8,
91u8,
242u8,
248u8,
1u8,
111u8,
155u8,
8u8,
191u8,
180u8,
106u8,
159u8,
97u8,
131u8,
187u8,
116u8,
178u8,
163u8,
98u8,
194u8,
128u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self {
subscriber: topics.1,
hash: data.0,
resolved: data.1,
}
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
(
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.hash),
<::alloy_sol_types::sol_data::Bool as alloy_sol_types::SolType>::tokenize(
&self.resolved,
),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(Self::SIGNATURE_HASH.into(), self.subscriber.clone())
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
out[1usize] = <::alloy_sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.subscriber,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for BlobFinalized {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&BlobFinalized> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &BlobFinalized) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct BlobPending {
#[allow(missing_docs)]
pub subscriber: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub hash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub sourceId: ::alloy_sol_types::private::FixedBytes<32>,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use ::alloy_sol_types as alloy_sol_types;
#[automatically_derived]
impl alloy_sol_types::SolEvent for BlobPending {
type DataTuple<'a> = (
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
);
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (
alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Address,
);
const SIGNATURE: &'static str = "BlobPending(address,bytes32,bytes32)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
87u8,
228u8,
118u8,
151u8,
116u8,
250u8,
107u8,
54u8,
200u8,
250u8,
243u8,
44u8,
91u8,
23u8,
122u8,
92u8,
21u8,
215u8,
7u8,
117u8,
211u8,
114u8,
154u8,
83u8,
11u8,
142u8,
193u8,
112u8,
9u8,
243u8,
17u8,
34u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self {
subscriber: topics.1,
hash: data.0,
sourceId: data.1,
}
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
(
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.hash),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.sourceId),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(Self::SIGNATURE_HASH.into(), self.subscriber.clone())
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
out[1usize] = <::alloy_sol_types::sol_data::Address as alloy_sol_types::EventTopic>::encode_topic(
&self.subscriber,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for BlobPending {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&BlobPending> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &BlobPending) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct addBlobCall {
#[allow(missing_docs)]
pub sponsor: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub source: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub blobHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub metadataHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub subscriptionId: ::alloy_sol_types::private::String,
#[allow(missing_docs)]
pub size: u64,
#[allow(missing_docs)]
pub ttl: u64,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct addBlobReturn {}
#[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)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::String,
::alloy_sol_types::sol_data::Uint<64>,
::alloy_sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
::alloy_sol_types::private::Address,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::String,
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<addBlobCall> for UnderlyingRustTuple<'_> {
fn from(value: addBlobCall) -> Self {
(
value.sponsor,
value.source,
value.blobHash,
value.metadataHash,
value.subscriptionId,
value.size,
value.ttl,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for addBlobCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
sponsor: tuple.0,
source: tuple.1,
blobHash: tuple.2,
metadataHash: tuple.3,
subscriptionId: tuple.4,
size: tuple.5,
ttl: tuple.6,
}
}
}
}
{
#[doc(hidden)]
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<addBlobReturn> for UnderlyingRustTuple<'_> {
fn from(value: addBlobReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for addBlobReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for addBlobCall {
type Parameters<'a> = (
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::String,
::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 = addBlobReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "addBlob(address,bytes32,bytes32,bytes32,string,uint64,uint64)";
const SELECTOR: [u8; 4] = [91u8, 92u8, 193u8, 79u8];
#[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.sponsor,
),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.source),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.blobHash),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.metadataHash),
<::alloy_sol_types::sol_data::String as alloy_sol_types::SolType>::tokenize(
&self.subscriptionId,
),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.size),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.ttl),
)
}
#[inline]
fn abi_decode_returns(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct deleteBlobCall {
#[allow(missing_docs)]
pub subscriber: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub blobHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub subscriptionId: ::alloy_sol_types::private::String,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct deleteBlobReturn {}
#[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)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::String,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
::alloy_sol_types::private::Address,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::String,
);
#[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<deleteBlobCall> for UnderlyingRustTuple<'_> {
fn from(value: deleteBlobCall) -> Self {
(value.subscriber, value.blobHash, value.subscriptionId)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for deleteBlobCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
subscriber: tuple.0,
blobHash: tuple.1,
subscriptionId: tuple.2,
}
}
}
}
{
#[doc(hidden)]
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<deleteBlobReturn> for UnderlyingRustTuple<'_> {
fn from(value: deleteBlobReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for deleteBlobReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for deleteBlobCall {
type Parameters<'a> = (
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::String,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = deleteBlobReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "deleteBlob(address,bytes32,string)";
const SELECTOR: [u8; 4] = [190u8, 169u8, 1u8, 106u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<::alloy_sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.subscriber,
),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.blobHash),
<::alloy_sol_types::sol_data::String as alloy_sol_types::SolType>::tokenize(
&self.subscriptionId,
),
)
}
#[inline]
fn abi_decode_returns(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getBlobCall {
#[allow(missing_docs)]
pub blobHash: ::alloy_sol_types::private::FixedBytes<32>,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getBlobReturn {
#[allow(missing_docs)]
pub blob: <Blob as ::alloy_sol_types::SolType>::RustType,
}
#[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)]
type UnderlyingSolTuple<'a> = (::alloy_sol_types::sol_data::FixedBytes<32>,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (::alloy_sol_types::private::FixedBytes<32>,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<getBlobCall> for UnderlyingRustTuple<'_> {
fn from(value: getBlobCall) -> Self {
(value.blobHash,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getBlobCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { blobHash: tuple.0 }
}
}
}
{
#[doc(hidden)]
type UnderlyingSolTuple<'a> = (Blob,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
<Blob as ::alloy_sol_types::SolType>::RustType,
);
#[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<getBlobReturn> for UnderlyingRustTuple<'_> {
fn from(value: getBlobReturn) -> Self {
(value.blob,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getBlobReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { blob: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getBlobCall {
type Parameters<'a> = (::alloy_sol_types::sol_data::FixedBytes<32>,);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getBlobReturn;
type ReturnTuple<'a> = (Blob,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getBlob(bytes32)";
const SELECTOR: [u8; 4] = [138u8, 77u8, 26u8, 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::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.blobHash),
)
}
#[inline]
fn abi_decode_returns(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getStatsCall {}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct getStatsReturn {
#[allow(missing_docs)]
pub stats: <SubnetStats as ::alloy_sol_types::SolType>::RustType,
}
#[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)]
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<getStatsCall> for UnderlyingRustTuple<'_> {
fn from(value: getStatsCall) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getStatsCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
{
#[doc(hidden)]
type UnderlyingSolTuple<'a> = (SubnetStats,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
<SubnetStats as ::alloy_sol_types::SolType>::RustType,
);
#[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<getStatsReturn> for UnderlyingRustTuple<'_> {
fn from(value: getStatsReturn) -> Self {
(value.stats,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for getStatsReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { stats: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for getStatsCall {
type Parameters<'a> = ();
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = getStatsReturn;
type ReturnTuple<'a> = (SubnetStats,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "getStats()";
const SELECTOR: [u8; 4] = [197u8, 157u8, 72u8, 71u8];
#[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 abi_decode_returns(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct overwriteBlobCall {
#[allow(missing_docs)]
pub oldHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub sponsor: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub source: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub blobHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub metadataHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub subscriptionId: ::alloy_sol_types::private::String,
#[allow(missing_docs)]
pub size: u64,
#[allow(missing_docs)]
pub ttl: u64,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct overwriteBlobReturn {}
#[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)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::String,
::alloy_sol_types::sol_data::Uint<64>,
::alloy_sol_types::sol_data::Uint<64>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::Address,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::FixedBytes<32>,
::alloy_sol_types::private::String,
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<overwriteBlobCall> for UnderlyingRustTuple<'_> {
fn from(value: overwriteBlobCall) -> Self {
(
value.oldHash,
value.sponsor,
value.source,
value.blobHash,
value.metadataHash,
value.subscriptionId,
value.size,
value.ttl,
)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for overwriteBlobCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
oldHash: tuple.0,
sponsor: tuple.1,
source: tuple.2,
blobHash: tuple.3,
metadataHash: tuple.4,
subscriptionId: tuple.5,
size: tuple.6,
ttl: tuple.7,
}
}
}
}
{
#[doc(hidden)]
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<overwriteBlobReturn> for UnderlyingRustTuple<'_> {
fn from(value: overwriteBlobReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for overwriteBlobReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for overwriteBlobCall {
type Parameters<'a> = (
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::String,
::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 = overwriteBlobReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "overwriteBlob(bytes32,address,bytes32,bytes32,bytes32,string,uint64,uint64)";
const SELECTOR: [u8; 4] = [67u8, 79u8, 197u8, 164u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.oldHash),
<::alloy_sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.sponsor,
),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.source),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.blobHash),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.metadataHash),
<::alloy_sol_types::sol_data::String as alloy_sol_types::SolType>::tokenize(
&self.subscriptionId,
),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.size),
<::alloy_sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.ttl),
)
}
#[inline]
fn abi_decode_returns(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
}
}
};
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct trimBlobExpiriesCall {
#[allow(missing_docs)]
pub subscriber: ::alloy_sol_types::private::Address,
#[allow(missing_docs)]
pub startingHash: ::alloy_sol_types::private::FixedBytes<32>,
#[allow(missing_docs)]
pub limit: u32,
}
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct trimBlobExpiriesReturn {
#[allow(missing_docs)]
pub _0: <TrimBlobExpiries as ::alloy_sol_types::SolType>::RustType,
}
#[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)]
type UnderlyingSolTuple<'a> = (
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Uint<32>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
::alloy_sol_types::private::Address,
::alloy_sol_types::private::FixedBytes<32>,
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<trimBlobExpiriesCall>
for UnderlyingRustTuple<'_> {
fn from(value: trimBlobExpiriesCall) -> Self {
(value.subscriber, value.startingHash, value.limit)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for trimBlobExpiriesCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
subscriber: tuple.0,
startingHash: tuple.1,
limit: tuple.2,
}
}
}
}
{
#[doc(hidden)]
type UnderlyingSolTuple<'a> = (TrimBlobExpiries,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
<TrimBlobExpiries as ::alloy_sol_types::SolType>::RustType,
);
#[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<trimBlobExpiriesReturn>
for UnderlyingRustTuple<'_> {
fn from(value: trimBlobExpiriesReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for trimBlobExpiriesReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for trimBlobExpiriesCall {
type Parameters<'a> = (
::alloy_sol_types::sol_data::Address,
::alloy_sol_types::sol_data::FixedBytes<32>,
::alloy_sol_types::sol_data::Uint<32>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = trimBlobExpiriesReturn;
type ReturnTuple<'a> = (TrimBlobExpiries,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "trimBlobExpiries(address,bytes32,uint32)";
const SELECTOR: [u8; 4] = [120u8, 248u8, 175u8, 133u8];
#[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.subscriber,
),
<::alloy_sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.startingHash),
<::alloy_sol_types::sol_data::Uint<
32,
> as alloy_sol_types::SolType>::tokenize(&self.limit),
)
}
#[inline]
fn abi_decode_returns(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
}
}
};
pub enum IBlobsFacadeCalls {
#[allow(missing_docs)]
addBlob(addBlobCall),
#[allow(missing_docs)]
deleteBlob(deleteBlobCall),
#[allow(missing_docs)]
getBlob(getBlobCall),
#[allow(missing_docs)]
getStats(getStatsCall),
#[allow(missing_docs)]
overwriteBlob(overwriteBlobCall),
#[allow(missing_docs)]
trimBlobExpiries(trimBlobExpiriesCall),
}
#[automatically_derived]
impl IBlobsFacadeCalls {
pub const SELECTORS: &'static [[u8; 4usize]] = &[
[67u8, 79u8, 197u8, 164u8],
[91u8, 92u8, 193u8, 79u8],
[120u8, 248u8, 175u8, 133u8],
[138u8, 77u8, 26u8, 212u8],
[190u8, 169u8, 1u8, 106u8],
[197u8, 157u8, 72u8, 71u8],
];
}
#[automatically_derived]
impl alloy_sol_types::SolInterface for IBlobsFacadeCalls {
const NAME: &'static str = "IBlobsFacadeCalls";
const MIN_DATA_LENGTH: usize = 0usize;
const COUNT: usize = 6usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::addBlob(_) => <addBlobCall as alloy_sol_types::SolCall>::SELECTOR,
Self::deleteBlob(_) => {
<deleteBlobCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::getBlob(_) => <getBlobCall as alloy_sol_types::SolCall>::SELECTOR,
Self::getStats(_) => <getStatsCall as alloy_sol_types::SolCall>::SELECTOR,
Self::overwriteBlob(_) => {
<overwriteBlobCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::trimBlobExpiries(_) => {
<trimBlobExpiriesCall 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],
validate: bool,
) -> alloy_sol_types::Result<Self> {
static DECODE_SHIMS: &[fn(
&[u8],
bool,
) -> alloy_sol_types::Result<IBlobsFacadeCalls>] = &[
{
fn overwriteBlob(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<IBlobsFacadeCalls> {
<overwriteBlobCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
validate,
)
.map(IBlobsFacadeCalls::overwriteBlob)
}
overwriteBlob
},
{
fn addBlob(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<IBlobsFacadeCalls> {
<addBlobCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
validate,
)
.map(IBlobsFacadeCalls::addBlob)
}
addBlob
},
{
fn trimBlobExpiries(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<IBlobsFacadeCalls> {
<trimBlobExpiriesCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
validate,
)
.map(IBlobsFacadeCalls::trimBlobExpiries)
}
trimBlobExpiries
},
{
fn getBlob(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<IBlobsFacadeCalls> {
<getBlobCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
validate,
)
.map(IBlobsFacadeCalls::getBlob)
}
getBlob
},
{
fn deleteBlob(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<IBlobsFacadeCalls> {
<deleteBlobCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
validate,
)
.map(IBlobsFacadeCalls::deleteBlob)
}
deleteBlob
},
{
fn getStats(
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<IBlobsFacadeCalls> {
<getStatsCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
validate,
)
.map(IBlobsFacadeCalls::getStats)
}
getStats
},
];
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, validate)
}
#[inline]
fn abi_encoded_size(&self) -> usize {
match self {
Self::addBlob(inner) => {
<addBlobCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::deleteBlob(inner) => {
<deleteBlobCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::getBlob(inner) => {
<getBlobCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::getStats(inner) => {
<getStatsCall as alloy_sol_types::SolCall>::abi_encoded_size(inner)
}
Self::overwriteBlob(inner) => {
<overwriteBlobCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::trimBlobExpiries(inner) => {
<trimBlobExpiriesCall 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::addBlob(inner) => {
<addBlobCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::deleteBlob(inner) => {
<deleteBlobCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::getBlob(inner) => {
<getBlobCall as alloy_sol_types::SolCall>::abi_encode_raw(inner, out)
}
Self::getStats(inner) => {
<getStatsCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::overwriteBlob(inner) => {
<overwriteBlobCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::trimBlobExpiries(inner) => {
<trimBlobExpiriesCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
}
}
}
pub enum IBlobsFacadeEvents {
#[allow(missing_docs)]
BlobAdded(BlobAdded),
#[allow(missing_docs)]
BlobDeleted(BlobDeleted),
#[allow(missing_docs)]
BlobFinalized(BlobFinalized),
#[allow(missing_docs)]
BlobPending(BlobPending),
}
#[automatically_derived]
impl IBlobsFacadeEvents {
pub const SELECTORS: &'static [[u8; 32usize]] = &[
[
46u8,
101u8,
103u8,
183u8,
48u8,
130u8,
181u8,
71u8,
220u8,
112u8,
177u8,
225u8,
105u8,
125u8,
194u8,
13u8,
44u8,
33u8,
196u8,
73u8,
21u8,
195u8,
175u8,
78u8,
253u8,
108u8,
231u8,
204u8,
153u8,
5u8,
161u8,
206u8,
],
[
87u8,
228u8,
118u8,
151u8,
116u8,
250u8,
107u8,
54u8,
200u8,
250u8,
243u8,
44u8,
91u8,
23u8,
122u8,
92u8,
21u8,
215u8,
7u8,
117u8,
211u8,
114u8,
154u8,
83u8,
11u8,
142u8,
193u8,
112u8,
9u8,
243u8,
17u8,
34u8,
],
[
116u8,
172u8,
203u8,
29u8,
168u8,
112u8,
99u8,
90u8,
78u8,
117u8,
126u8,
212u8,
91u8,
242u8,
248u8,
1u8,
111u8,
155u8,
8u8,
191u8,
180u8,
106u8,
159u8,
97u8,
131u8,
187u8,
116u8,
178u8,
163u8,
98u8,
194u8,
128u8,
],
[
212u8,
44u8,
120u8,
20u8,
81u8,
143u8,
27u8,
127u8,
89u8,
25u8,
85u8,
125u8,
50u8,
126u8,
136u8,
205u8,
219u8,
123u8,
2u8,
252u8,
145u8,
8u8,
91u8,
64u8,
46u8,
148u8,
8u8,
50u8,
67u8,
160u8,
106u8,
141u8,
],
];
}
#[automatically_derived]
impl alloy_sol_types::SolEventInterface for IBlobsFacadeEvents {
const NAME: &'static str = "IBlobsFacadeEvents";
const COUNT: usize = 4usize;
fn decode_raw_log(
topics: &[alloy_sol_types::Word],
data: &[u8],
validate: bool,
) -> alloy_sol_types::Result<Self> {
match topics.first().copied() {
Some(<BlobAdded as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<BlobAdded as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
validate,
)
.map(Self::BlobAdded)
}
Some(<BlobDeleted as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<BlobDeleted as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
validate,
)
.map(Self::BlobDeleted)
}
Some(<BlobFinalized as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<BlobFinalized as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
validate,
)
.map(Self::BlobFinalized)
}
Some(<BlobPending as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<BlobPending as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
validate,
)
.map(Self::BlobPending)
}
_ => {
alloy_sol_types::private::Err(alloy_sol_types::Error::InvalidLog {
name: <Self as alloy_sol_types::SolEventInterface>::NAME,
log: alloy_sol_types::private::Box::new(
alloy_sol_types::private::LogData::new_unchecked(
topics.to_vec(),
data.to_vec().into(),
),
),
})
}
}
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for IBlobsFacadeEvents {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
match self {
Self::BlobAdded(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
Self::BlobDeleted(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
Self::BlobFinalized(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
Self::BlobPending(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
}
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
match self {
Self::BlobAdded(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
Self::BlobDeleted(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
Self::BlobFinalized(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
Self::BlobPending(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
}
}
}
}