-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: validate contract config (#176)
* validate config * refactor * refactor * use right sol * add * feat: code * add
- Loading branch information
1 parent
8eb227b
commit bc3bdb1
Showing
10 changed files
with
263 additions
and
91 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,30 @@ | ||
package proposer | ||
|
||
type SpanProofRequest struct { | ||
Start uint64 `json:"start"` | ||
End uint64 `json:"end"` | ||
} | ||
|
||
type AggProofRequest struct { | ||
Subproofs [][]byte `json:"subproofs"` | ||
L1Head string `json:"head"` | ||
} | ||
|
||
type ValidateConfigRequest struct { | ||
Address string `json:"address"` | ||
} | ||
|
||
type ValidateConfigResponse struct { | ||
RollupConfigHashValid bool `json:"rollup_config_hash_valid"` | ||
AggVkeyValid bool `json:"agg_vkey_valid"` | ||
RangeVkeyValid bool `json:"range_vkey_valid"` | ||
} | ||
|
||
type ProofResponse struct { | ||
ProofID string `json:"proof_id"` | ||
} | ||
|
||
type ProofStatus struct { | ||
Status string `json:"status"` | ||
Proof []byte `json:"proof"` | ||
} |
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
Oops, something went wrong.