-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kill PublisherDataEncoder and use the encode method from archive instead
- Loading branch information
1 parent
3dbb7a2
commit 32444aa
Showing
10 changed files
with
55 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import { Config } from '../config.js'; | ||
import { AztecEthereumjsTxSender } from './aztec-ethereumjs-tx-sender.js'; | ||
import { L2BlockPublisher } from './l2-block-publisher.js'; | ||
import { MockL2DataEncoder } from './mock-l2-block-encoder.js'; | ||
|
||
export { L2BlockPublisher } from './l2-block-publisher.js'; | ||
|
||
export function getL2BlockPublisher(config: Config): L2BlockPublisher { | ||
return new L2BlockPublisher(new AztecEthereumjsTxSender(config), new MockL2DataEncoder()); | ||
return new L2BlockPublisher(new AztecEthereumjsTxSender(config)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
yarn-project/sequencer-client/src/publisher/mock-l2-block-encoder.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
// TODO: Complete definition or import from another package (add txs at least!). | ||
export interface L2BlockData { | ||
id: number; | ||
} | ||
import { L2Block } from '@aztec/archiver'; | ||
|
||
/** | ||
* Given the necessary rollup data, verifies it, and updates the underlying state accordingly to advance the state of the system. | ||
* See https://hackmd.io/ouVCnacHQRq2o1oRc5ksNA#RollupReceiver. | ||
*/ | ||
export interface L2BlockReceiver { | ||
processL2Block(l2BlockData: L2BlockData): Promise<boolean>; | ||
processL2Block(l2BlockData: L2Block): Promise<boolean>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.