@tevm/actions
Version:
A typesafe library for writing forge scripts in typescript
16 lines (14 loc) • 447 B
text/typescript
import type { SetAccountParams } from './SetAccountParams.js'
import type { SetAccountResult } from './SetAccountResult.js'
/**
* Sets the state of a specific ethereum address
* @example
* import {parseEther} from 'tevm'
*
* await tevm.setAccount({
* address: '0x123...',
* deployedBytecode: '0x6080604...',
* balance: parseEther('1.0')
* })
*/
export type SetAccountHandler = (params: SetAccountParams) => Promise<SetAccountResult>