-
Notifications
You must be signed in to change notification settings - Fork 0
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
10 changed files
with
223 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./invalidChainId.exception"; | ||
export * from "./metricsService.exception"; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class InvalidChainId extends Error { | ||
constructor(message: string) { | ||
super(message); | ||
this.name = "InvalidChainId"; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export class MetricsServiceException extends Error { | ||
constructor(message: string) { | ||
super(message); | ||
this.name = "MetricsServiceException"; | ||
} | ||
} | ||
|
||
export class L1MetricsServiceException extends MetricsServiceException { | ||
constructor(message: string) { | ||
super(message); | ||
this.name = "L1MetricsServiceException"; | ||
} | ||
} |
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,3 +1,4 @@ | ||
export * from "./bridgeHub.abi"; | ||
export * from "./diamondProxy.abi"; | ||
export * from "./sharedBridge.abi"; | ||
export * from "./tokenBalances.abi"; |
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,2 +1,3 @@ | ||
export * from "./rollup.type"; | ||
export * from "./utils.type"; | ||
export * from "./l1.type"; |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Represents the information about the batches from L2 chain | ||
*/ | ||
export interface BatchesInfo { | ||
/** | ||
* The total number of batches that were committed | ||
*/ | ||
commited: bigint; | ||
/** | ||
* The total number of batches that were committed & verified | ||
*/ | ||
verified: bigint; | ||
/** | ||
* The total number of batches that were committed & verified & executed | ||
*/ | ||
executed: bigint; | ||
} |
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,5 +1,6 @@ | ||
import { Abi, Address } from "abitype"; | ||
import { Address } from "abitype"; | ||
import { AbiItem } from "viem"; | ||
|
||
export type AbiWithAddress = { abi: Abi; address: Address }; | ||
export type AbiWithAddress<T extends AbiItem[]> = { abi: T; address: Address }; | ||
|
||
export type ChainId = number; |