ABI to interface
paste an abi, get a solidity interface with structs.
interface name
abijson abi, a foundry/hardhat artifact, or human-readable lines
try
IExchange.sol
5 abi items · tap to copy
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IExchange {
struct Order {
address maker;
uint256 amount;
uint64 deadline;
}
event Filled(address indexed maker, uint256 amount);
error Expired(uint64 deadline);
function balanceOf(address owner) external view returns (uint256);
function fill(Order calldata order, bytes calldata signature) external payable returns (uint256 filled);
receive() external payable;
}
