11use crate :: domain:: primitives:: { Address , Bytes } ;
22use crate :: domain:: MetabasedSequencerChainService ;
3- use crate :: infrastructure:: sol:: MetabasedSequencerChain :: MetabasedSequencerChainInstance ;
43use alloy:: network:: Network ;
54use alloy:: providers:: Provider ;
6- use alloy:: sol;
75use alloy:: transports:: Transport ;
86use async_trait:: async_trait;
97use std:: marker:: PhantomData ;
10-
11- sol ! {
12- #[ derive( Debug , PartialEq , Eq ) ]
13- #[ sol( rpc) ]
14- contract MetabasedSequencerChain {
15- event TransactionProcessed ( address indexed sender, bytes encodedTxn) ;
16- error InvalidTransactionForm ( ) ;
17- function emitTransactionProcessed( bytes calldata encodedTxn) public;
18- function processTransaction( bytes calldata encodedTxn) public;
19- function processBulkTransactions( bytes[ ] calldata encodedTxns) public;
20- }
21- }
8+ use crate :: infrastructure:: MetabasedSequencerChain :: MetabasedSequencerChainInstance ;
229
2310#[ derive( Debug ) ]
2411pub struct SolMetabasedSequencerChainService < P : Provider < T , N > , T : Transport + Clone , N : Network > {
@@ -41,7 +28,7 @@ impl<P: Provider<T, N>, T: Transport + Clone, N: Network>
4128 }
4229
4330 pub fn contract ( & self ) -> MetabasedSequencerChainInstance < T , & P , N > {
44- MetabasedSequencerChain :: new ( self . account , & self . provider )
31+ MetabasedSequencerChainInstance :: new ( self . account , & self . provider )
4532 }
4633}
4734
0 commit comments