-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fault Testing Support - update client to not rely on Optimism d…
…ependencies
- Loading branch information
1 parent
714a86b
commit 3beaae8
Showing
8 changed files
with
66 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package common | ||
|
||
import "fmt" | ||
|
||
var ( | ||
ErrInvalidDomainType = fmt.Errorf("invalid domain type") | ||
) | ||
|
||
// DomainType is a enumeration type for the different data domains for which a | ||
// blob can exist between | ||
type DomainType uint8 | ||
|
||
const ( | ||
BinaryDomain DomainType = iota | ||
PolyDomain | ||
UnknownDomain | ||
) | ||
|
||
func (d DomainType) String() string { | ||
switch d { | ||
case BinaryDomain: | ||
return "binary" | ||
case PolyDomain: | ||
return "polynomial" | ||
default: | ||
return "unknown" | ||
} | ||
} | ||
|
||
func StrToDomainType(s string) DomainType { | ||
switch s { | ||
case "binary": | ||
return BinaryDomain | ||
case "polynomial": | ||
return PolyDomain | ||
default: | ||
return UnknownDomain | ||
} | ||
} |
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
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