Skip to content

Commit 48d41a6

Browse files
committed
fix(ci): regenerate host rust bindings with foundry v1.3.1
1 parent 10872d4 commit 48d41a6

38 files changed

+640
-3859
lines changed

host-contracts/rust_bindings/src/acl.rs

Lines changed: 18 additions & 328 deletions
Large diffs are not rendered by default.

host-contracts/rust_bindings/src/acl_events.rs

Lines changed: 16 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@ event UnblockedAccount(address indexed account);
956956
}
957957
};
958958
///Container for all the [`ACLEvents`](self) events.
959-
#[derive(Clone)]
960959
#[derive(serde::Serialize, serde::Deserialize)]
961960
#[derive(Debug, PartialEq, Eq, Hash)]
962961
pub enum ACLEventsEvents {
@@ -973,6 +972,7 @@ event UnblockedAccount(address indexed account);
973972
#[allow(missing_docs)]
974973
UnblockedAccount(UnblockedAccount),
975974
}
975+
#[automatically_derived]
976976
impl ACLEventsEvents {
977977
/// All the selectors of this enum.
978978
///
@@ -1012,44 +1012,6 @@ event UnblockedAccount(address indexed account);
10121012
248u8, 197u8, 123u8, 97u8, 99u8, 11u8, 229u8, 108u8, 199u8, 54u8, 106u8,
10131013
],
10141014
];
1015-
/// The names of the variants in the same order as `SELECTORS`.
1016-
pub const VARIANT_NAMES: &'static [&'static str] = &[
1017-
::core::stringify!(DelegatedForUserDecryption),
1018-
::core::stringify!(RevokedDelegationForUserDecryption),
1019-
::core::stringify!(BlockedAccount),
1020-
::core::stringify!(UnblockedAccount),
1021-
::core::stringify!(AllowedForDecryption),
1022-
::core::stringify!(Allowed),
1023-
];
1024-
/// The signatures in the same order as `SELECTORS`.
1025-
pub const SIGNATURES: &'static [&'static str] = &[
1026-
<DelegatedForUserDecryption as alloy_sol_types::SolEvent>::SIGNATURE,
1027-
<RevokedDelegationForUserDecryption as alloy_sol_types::SolEvent>::SIGNATURE,
1028-
<BlockedAccount as alloy_sol_types::SolEvent>::SIGNATURE,
1029-
<UnblockedAccount as alloy_sol_types::SolEvent>::SIGNATURE,
1030-
<AllowedForDecryption as alloy_sol_types::SolEvent>::SIGNATURE,
1031-
<Allowed as alloy_sol_types::SolEvent>::SIGNATURE,
1032-
];
1033-
/// Returns the signature for the given selector, if known.
1034-
#[inline]
1035-
pub fn signature_by_selector(
1036-
selector: [u8; 32usize],
1037-
) -> ::core::option::Option<&'static str> {
1038-
match Self::SELECTORS.binary_search(&selector) {
1039-
::core::result::Result::Ok(idx) => {
1040-
::core::option::Option::Some(Self::SIGNATURES[idx])
1041-
}
1042-
::core::result::Result::Err(_) => ::core::option::Option::None,
1043-
}
1044-
}
1045-
/// Returns the enum variant name for the given selector, if known.
1046-
#[inline]
1047-
pub fn name_by_selector(
1048-
selector: [u8; 32usize],
1049-
) -> ::core::option::Option<&'static str> {
1050-
let sig = Self::signature_by_selector(selector)?;
1051-
sig.split_once('(').map(|(name, _)| name)
1052-
}
10531015
}
10541016
#[automatically_derived]
10551017
impl alloy_sol_types::SolEventInterface for ACLEventsEvents {
@@ -1176,9 +1138,9 @@ See the [wrapper's documentation](`ACLEventsInstance`) for more details.*/
11761138
N: alloy_contract::private::Network,
11771139
>(
11781140
address: alloy_sol_types::private::Address,
1179-
__provider: P,
1141+
provider: P,
11801142
) -> ACLEventsInstance<P, N> {
1181-
ACLEventsInstance::<P, N>::new(address, __provider)
1143+
ACLEventsInstance::<P, N>::new(address, provider)
11821144
}
11831145
/**Deploys this contract using the given `provider` and constructor arguments, if any.
11841146
@@ -1190,11 +1152,11 @@ For more fine-grained control over the deployment process, use [`deploy_builder`
11901152
P: alloy_contract::private::Provider<N>,
11911153
N: alloy_contract::private::Network,
11921154
>(
1193-
__provider: P,
1155+
provider: P,
11941156
) -> impl ::core::future::Future<
11951157
Output = alloy_contract::Result<ACLEventsInstance<P, N>>,
11961158
> {
1197-
ACLEventsInstance::<P, N>::deploy(__provider)
1159+
ACLEventsInstance::<P, N>::deploy(provider)
11981160
}
11991161
/**Creates a `RawCallBuilder` for deploying this contract using the given `provider`
12001162
and constructor arguments, if any.
@@ -1205,8 +1167,8 @@ the bytecode concatenated with the constructor's ABI-encoded arguments.*/
12051167
pub fn deploy_builder<
12061168
P: alloy_contract::private::Provider<N>,
12071169
N: alloy_contract::private::Network,
1208-
>(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
1209-
ACLEventsInstance::<P, N>::deploy_builder(__provider)
1170+
>(provider: P) -> alloy_contract::RawCallBuilder<P, N> {
1171+
ACLEventsInstance::<P, N>::deploy_builder(provider)
12101172
}
12111173
/**A [`ACLEvents`](self) instance.
12121174
@@ -1233,6 +1195,7 @@ See the [module-level documentation](self) for all the available methods.*/
12331195
}
12341196
}
12351197
/// Instantiation and getters/setters.
1198+
#[automatically_derived]
12361199
impl<
12371200
P: alloy_contract::private::Provider<N>,
12381201
N: alloy_contract::private::Network,
@@ -1243,11 +1206,11 @@ See the [wrapper's documentation](`ACLEventsInstance`) for more details.*/
12431206
#[inline]
12441207
pub const fn new(
12451208
address: alloy_sol_types::private::Address,
1246-
__provider: P,
1209+
provider: P,
12471210
) -> Self {
12481211
Self {
12491212
address,
1250-
provider: __provider,
1213+
provider,
12511214
_network: ::core::marker::PhantomData,
12521215
}
12531216
}
@@ -1258,9 +1221,9 @@ Returns a new instance of the contract, if the deployment was successful.
12581221
For more fine-grained control over the deployment process, use [`deploy_builder`] instead.*/
12591222
#[inline]
12601223
pub async fn deploy(
1261-
__provider: P,
1224+
provider: P,
12621225
) -> alloy_contract::Result<ACLEventsInstance<P, N>> {
1263-
let call_builder = Self::deploy_builder(__provider);
1226+
let call_builder = Self::deploy_builder(provider);
12641227
let contract_address = call_builder.deploy().await?;
12651228
Ok(Self::new(contract_address, call_builder.provider))
12661229
}
@@ -1270,9 +1233,9 @@ and constructor arguments, if any.
12701233
This is a simple wrapper around creating a `RawCallBuilder` with the data set to
12711234
the bytecode concatenated with the constructor's ABI-encoded arguments.*/
12721235
#[inline]
1273-
pub fn deploy_builder(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
1236+
pub fn deploy_builder(provider: P) -> alloy_contract::RawCallBuilder<P, N> {
12741237
alloy_contract::RawCallBuilder::new_raw_deploy(
1275-
__provider,
1238+
provider,
12761239
::core::clone::Clone::clone(&BYTECODE),
12771240
)
12781241
}
@@ -1309,6 +1272,7 @@ the bytecode concatenated with the constructor's ABI-encoded arguments.*/
13091272
}
13101273
}
13111274
/// Function calls.
1275+
#[automatically_derived]
13121276
impl<
13131277
P: alloy_contract::private::Provider<N>,
13141278
N: alloy_contract::private::Network,
@@ -1325,6 +1289,7 @@ the bytecode concatenated with the constructor's ABI-encoded arguments.*/
13251289
}
13261290
}
13271291
/// Event filters.
1292+
#[automatically_derived]
13281293
impl<
13291294
P: alloy_contract::private::Provider<N>,
13301295
N: alloy_contract::private::Network,

host-contracts/rust_bindings/src/acl_ownable.rs

Lines changed: 16 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ error NotHostOwner(address sender);
7474
const _: () = {
7575
use alloy::sol_types as alloy_sol_types;
7676
#[doc(hidden)]
77-
#[allow(dead_code)]
7877
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
7978
#[doc(hidden)]
8079
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
@@ -135,13 +134,13 @@ error NotHostOwner(address sender);
135134
}
136135
};
137136
///Container for all the [`ACLOwnable`](self) custom errors.
138-
#[derive(Clone)]
139137
#[derive(serde::Serialize, serde::Deserialize)]
140138
#[derive(Debug, PartialEq, Eq, Hash)]
141139
pub enum ACLOwnableErrors {
142140
#[allow(missing_docs)]
143141
NotHostOwner(NotHostOwner),
144142
}
143+
#[automatically_derived]
145144
impl ACLOwnableErrors {
146145
/// All the selectors of this enum.
147146
///
@@ -150,34 +149,6 @@ error NotHostOwner(address sender);
150149
///
151150
/// Prefer using `SolInterface` methods instead.
152151
pub const SELECTORS: &'static [[u8; 4usize]] = &[[33u8, 191u8, 218u8, 16u8]];
153-
/// The names of the variants in the same order as `SELECTORS`.
154-
pub const VARIANT_NAMES: &'static [&'static str] = &[
155-
::core::stringify!(NotHostOwner),
156-
];
157-
/// The signatures in the same order as `SELECTORS`.
158-
pub const SIGNATURES: &'static [&'static str] = &[
159-
<NotHostOwner as alloy_sol_types::SolError>::SIGNATURE,
160-
];
161-
/// Returns the signature for the given selector, if known.
162-
#[inline]
163-
pub fn signature_by_selector(
164-
selector: [u8; 4usize],
165-
) -> ::core::option::Option<&'static str> {
166-
match Self::SELECTORS.binary_search(&selector) {
167-
::core::result::Result::Ok(idx) => {
168-
::core::option::Option::Some(Self::SIGNATURES[idx])
169-
}
170-
::core::result::Result::Err(_) => ::core::option::Option::None,
171-
}
172-
}
173-
/// Returns the enum variant name for the given selector, if known.
174-
#[inline]
175-
pub fn name_by_selector(
176-
selector: [u8; 4usize],
177-
) -> ::core::option::Option<&'static str> {
178-
let sig = Self::signature_by_selector(selector)?;
179-
sig.split_once('(').map(|(name, _)| name)
180-
}
181152
}
182153
#[automatically_derived]
183154
impl alloy_sol_types::SolInterface for ACLOwnableErrors {
@@ -290,9 +261,9 @@ See the [wrapper's documentation](`ACLOwnableInstance`) for more details.*/
290261
N: alloy_contract::private::Network,
291262
>(
292263
address: alloy_sol_types::private::Address,
293-
__provider: P,
264+
provider: P,
294265
) -> ACLOwnableInstance<P, N> {
295-
ACLOwnableInstance::<P, N>::new(address, __provider)
266+
ACLOwnableInstance::<P, N>::new(address, provider)
296267
}
297268
/**Deploys this contract using the given `provider` and constructor arguments, if any.
298269
@@ -304,11 +275,11 @@ For more fine-grained control over the deployment process, use [`deploy_builder`
304275
P: alloy_contract::private::Provider<N>,
305276
N: alloy_contract::private::Network,
306277
>(
307-
__provider: P,
278+
provider: P,
308279
) -> impl ::core::future::Future<
309280
Output = alloy_contract::Result<ACLOwnableInstance<P, N>>,
310281
> {
311-
ACLOwnableInstance::<P, N>::deploy(__provider)
282+
ACLOwnableInstance::<P, N>::deploy(provider)
312283
}
313284
/**Creates a `RawCallBuilder` for deploying this contract using the given `provider`
314285
and constructor arguments, if any.
@@ -319,8 +290,8 @@ the bytecode concatenated with the constructor's ABI-encoded arguments.*/
319290
pub fn deploy_builder<
320291
P: alloy_contract::private::Provider<N>,
321292
N: alloy_contract::private::Network,
322-
>(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
323-
ACLOwnableInstance::<P, N>::deploy_builder(__provider)
293+
>(provider: P) -> alloy_contract::RawCallBuilder<P, N> {
294+
ACLOwnableInstance::<P, N>::deploy_builder(provider)
324295
}
325296
/**A [`ACLOwnable`](self) instance.
326297
@@ -347,6 +318,7 @@ See the [module-level documentation](self) for all the available methods.*/
347318
}
348319
}
349320
/// Instantiation and getters/setters.
321+
#[automatically_derived]
350322
impl<
351323
P: alloy_contract::private::Provider<N>,
352324
N: alloy_contract::private::Network,
@@ -357,11 +329,11 @@ See the [wrapper's documentation](`ACLOwnableInstance`) for more details.*/
357329
#[inline]
358330
pub const fn new(
359331
address: alloy_sol_types::private::Address,
360-
__provider: P,
332+
provider: P,
361333
) -> Self {
362334
Self {
363335
address,
364-
provider: __provider,
336+
provider,
365337
_network: ::core::marker::PhantomData,
366338
}
367339
}
@@ -372,9 +344,9 @@ Returns a new instance of the contract, if the deployment was successful.
372344
For more fine-grained control over the deployment process, use [`deploy_builder`] instead.*/
373345
#[inline]
374346
pub async fn deploy(
375-
__provider: P,
347+
provider: P,
376348
) -> alloy_contract::Result<ACLOwnableInstance<P, N>> {
377-
let call_builder = Self::deploy_builder(__provider);
349+
let call_builder = Self::deploy_builder(provider);
378350
let contract_address = call_builder.deploy().await?;
379351
Ok(Self::new(contract_address, call_builder.provider))
380352
}
@@ -384,9 +356,9 @@ and constructor arguments, if any.
384356
This is a simple wrapper around creating a `RawCallBuilder` with the data set to
385357
the bytecode concatenated with the constructor's ABI-encoded arguments.*/
386358
#[inline]
387-
pub fn deploy_builder(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
359+
pub fn deploy_builder(provider: P) -> alloy_contract::RawCallBuilder<P, N> {
388360
alloy_contract::RawCallBuilder::new_raw_deploy(
389-
__provider,
361+
provider,
390362
::core::clone::Clone::clone(&BYTECODE),
391363
)
392364
}
@@ -423,6 +395,7 @@ the bytecode concatenated with the constructor's ABI-encoded arguments.*/
423395
}
424396
}
425397
/// Function calls.
398+
#[automatically_derived]
426399
impl<
427400
P: alloy_contract::private::Provider<N>,
428401
N: alloy_contract::private::Network,
@@ -439,6 +412,7 @@ the bytecode concatenated with the constructor's ABI-encoded arguments.*/
439412
}
440413
}
441414
/// Event filters.
415+
#[automatically_derived]
442416
impl<
443417
P: alloy_contract::private::Provider<N>,
444418
N: alloy_contract::private::Network,

0 commit comments

Comments
 (0)