From e10abf96d6161780dd190629bcf495a73e4bffe1 Mon Sep 17 00:00:00 2001 From: evalir Date: Mon, 6 Jan 2025 15:11:42 +0100 Subject: [PATCH] chore(bindings): make bundle_helper consistent with rest, export all members (#70) --- src/bindings.rs | 23 +++++++++++++---------- src/lib.rs | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/bindings.rs b/src/bindings.rs index bf4f90c..f2f87d8 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -380,6 +380,15 @@ mod rollup_passage { } } +mod bundle_helper { + alloy_sol_types::sol!( + #[derive(Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)] + #[sol(rpc)] + BundleHelper, + "abi/BundleHelper.json" + ); +} + pub use zenith::Zenith; /// Contract Bindings for the RollupOrders contract. @@ -432,15 +441,9 @@ pub mod RollupPassage { pub use super::rollup_passage::UsesPermit2::*; } -pub mod bundle_helper { - //! Bundle Helper contract bindings - alloy_sol_types::sol!( - #[derive(Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)] - #[sol(rpc)] - BundleHelper, - "abi/BundleHelper.json" - ); - - pub use super::bundle_helper::BundleHelper::{new, submitCall, FillPermit2}; +/// Contract Bindings for the BundleHelper contract. +#[allow(non_snake_case)] +pub mod BundleHelper { + pub use super::bundle_helper::BundleHelper::*; pub use super::bundle_helper::Zenith::BlockHeader; } diff --git a/src/lib.rs b/src/lib.rs index 2ef5fcd..2f8f8b4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ mod bindings; pub use bindings::{ - bundle_helper, mintCall, HostOrders, Passage, RollupOrders, RollupPassage, Transactor, Zenith, + mintCall, BundleHelper, HostOrders, Passage, RollupOrders, RollupPassage, Transactor, Zenith, }; mod block;