-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
45 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
export { EVMGateway, StorageLayout } from './EVMGateway.js'; | ||
export { EVMProofHelper, type StateProof } from './EVMProofHelper.js'; | ||
export type { IProofService, ProvableBlock } from './IProofService.js'; | ||
export { propsDecoder, convertIntoMerkleTrieProof,type Router } from './utils.js'; | ||
export { | ||
propsDecoder, | ||
convertIntoMerkleTrieProof, | ||
type Router, | ||
} from './utils.js'; |
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
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,18 +1,17 @@ | ||
import { EVMGateway } from '@ensdomains/evm-gateway'; | ||
import { JsonRpcProvider } from 'ethers'; | ||
import { ScrollProofService, type ScrollProvableBlock } from './ScrollProofService.js'; | ||
import { | ||
ScrollProofService, | ||
type ScrollProvableBlock, | ||
} from './ScrollProofService.js'; | ||
|
||
export type ScrollGateway = EVMGateway<ScrollProvableBlock>; | ||
|
||
export async function makeScrollGateway( | ||
l2providerUrl: string, | ||
l2providerUrl: string | ||
): Promise<ScrollGateway> { | ||
const l2Provider = new JsonRpcProvider(l2providerUrl); | ||
return new EVMGateway( | ||
new ScrollProofService( | ||
l2Provider, | ||
) | ||
); | ||
return new EVMGateway(new ScrollProofService(l2Provider)); | ||
} | ||
|
||
export { ScrollProofService, type ScrollProvableBlock }; |
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