You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Vm.sol
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -172,8 +172,12 @@ interface Vm {
172
172
function createFork(stringcalldata,uint256) externalreturns(uint256);
173
173
// Creates a new fork with the given endpoint and the _latest_ block and returns the identifier of the fork
174
174
function createFork(stringcalldata) externalreturns(uint256);
175
+
// Creates a new fork with the given endpoint and at the block the given transaction was mined in, and replays all transaction mined in the block before the transaction
176
+
function createFork(stringcalldata, bytes32) externalreturns (uint256);
175
177
// Creates _and_ also selects a new fork with the given endpoint and block and returns the identifier of the fork
176
178
function createSelectFork(stringcalldata,uint256) externalreturns(uint256);
179
+
// Creates _and_ also selects new fork with the given endpoint and at the block the given transaction was mined in, and replays all transaction mined in the block before the transaction
180
+
function createSelectFork(stringcalldata, bytes32) externalreturns (uint256);
177
181
// Creates _and_ also selects a new fork with the given endpoint and the latest block and returns the identifier of the fork
178
182
function createSelectFork(stringcalldata) externalreturns(uint256);
179
183
// Takes a fork identifier created by `createFork` and sets the corresponding forked state as active.
@@ -184,8 +188,13 @@ interface Vm {
184
188
// Updates the currently active fork to given block number
185
189
// This is similar to `roll` but for the currently active fork
186
190
function rollFork(uint256) external;
191
+
// Updates the currently active fork to given transaction
192
+
// this will `rollFork` with the number of the block the transaction was mined it and replays all transaction mined before it in the block
193
+
function rollFork(bytes32) external;
187
194
// Updates the given fork to given block number
188
195
function rollFork(uint256forkId, uint256blockNumber) external;
196
+
// Updates the given fork to block number of the given transaction and replays all transaction mined before it in the block
197
+
function rollFork(uint256forkId, bytes32transaction) external;
189
198
190
199
// Marks that the account(s) should use persistent storage across fork swaps in a multifork setup
191
200
// Meaning, changes made to the state of this account will be kept when switching forks
0 commit comments