This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: added interface contract and natspec linter (#92)
* fix: justfile * deps(contracts): ran 'bun update' * imp: improved lint * deps: added 'natspec-smells' * just: added linter * refactor: fixing linter complaints * imp: all linting done * imp: removed rust-toolchain
- Loading branch information
Showing
11 changed files
with
135 additions
and
71 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,39 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.25; | ||
|
||
import { ILightClient } from "solidity-ibc/interfaces/ILightClient.sol"; | ||
import { IICS07TendermintMsgs } from "../src/msgs/IICS07TendermintMsgs.sol"; | ||
import { ISP1Verifier } from "@sp1-contracts/ISP1Verifier.sol"; | ||
|
||
/// @title ISP1ICS07Tendermint | ||
/// @notice ISP1ICS07Tendermint is the interface for the ICS07 Tendermint light client | ||
interface ISP1ICS07Tendermint is ILightClient { | ||
/// @notice Immutable update client program verification key. | ||
/// @return The verification key for the update client program. | ||
function UPDATE_CLIENT_PROGRAM_VKEY() external view returns (bytes32); | ||
|
||
/// @notice Immutable membership program verification key. | ||
/// @return The verification key for the membership program. | ||
function MEMBERSHIP_PROGRAM_VKEY() external view returns (bytes32); | ||
|
||
/// @notice Immutable update client and membership program verification key. | ||
/// @return The verification key for the update client and membership program. | ||
function UPDATE_CLIENT_AND_MEMBERSHIP_PROGRAM_VKEY() external view returns (bytes32); | ||
|
||
/// @notice Immutable SP1 verifier contract address. | ||
/// @return The SP1 verifier contract. | ||
function VERIFIER() external view returns (ISP1Verifier); | ||
|
||
/// @notice Constant allowed clock drift in seconds. | ||
/// @return The allowed clock drift in seconds. | ||
function ALLOWED_SP1_CLOCK_DRIFT() external view returns (uint16); | ||
|
||
/// @notice Returns the client state. | ||
/// @return The client state. | ||
function getClientState() external view returns (IICS07TendermintMsgs.ClientState memory); | ||
|
||
/// @notice Returns the consensus state keccak256 hash at the given revision height. | ||
/// @param revisionHeight The revision height. | ||
/// @return The consensus state at the given revision height. | ||
function getConsensusStateHash(uint32 revisionHeight) external view returns (bytes32); | ||
} |
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
Oops, something went wrong.