Skip to content

Commit

Permalink
feat: Extend Vm interface (#28)
Browse files Browse the repository at this point in the history
* fix: add string functions to vm interface

* fix: update vm interface
  • Loading branch information
vbidin authored Nov 29, 2022
1 parent ce287e9 commit fec5fa5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions contracts/interfaces.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,26 @@ interface Vm {
// Creates and selects a new fork from the given endpoint and at the specified block.
function createSelectFork(string calldata urlOrAlias, uint256 block) external returns (uint256 forkId);

function toString(address) external returns (string memory);

function toString(bool) external returns (string memory);

function toString(uint256) external returns (string memory);

function toString(int256) external returns (string memory);

function toString(bytes32) external returns (string memory);

function toString(bytes memory) external returns (string memory);

function setEnv(string calldata, string calldata) external;

function broadcast(address) external;

function broadcast() external;

function startBroadcast() external;

function stopBroadcast() external;

}

0 comments on commit fec5fa5

Please sign in to comment.