Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ venv/
target/
dist/
.DS_Store

# Yarn 4 local state (not for zero-installs)
.yarn/install-state.gz
25 changes: 25 additions & 0 deletions solidity/ecdsa/contracts/test/IMockTarget.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.0;

/// @notice Test-only interface exercising the shapes `MockContract` has to
/// answer: a view function reached by STATICCALL, a state-changing
/// function whose calls are asserted on, a function returning nothing,
/// a struct return and a multi-value return.
interface IMockTarget {
struct Info {
address owner;
uint64 createdAt;
bool active;
}

function doThing(address who, uint256 amount) external returns (bool);

function noReturn(uint256 value) external;

function readValue(uint256 key) external view returns (uint256);

function readInfo(uint256 key) external view returns (Info memory);

function readPair(uint256 key) external view returns (uint32, uint32);
}
Loading
Loading