@tevm/memory-client
Version:
MemoryClient for tevm is an in memory devnet for JavaScript
27 lines • 1.18 kB
TypeScript
import type { TevmActionsApi } from '@tevm/decorators';
import type { TevmNode } from '@tevm/node';
/**
* A custom [viem extension](https://viem.sh/docs/clients/custom#extending-with-actions-or-configuration) for adding powerful
* Tevm specific actions to the client. These actions come preloaded with [MemoryClient](https://tevm.sh/reference/tevm/memory-client/type-aliases/memoryclient/)
* To add these actions use the `extend` method on a TevmClient with the tevmViemActions() extension.
* @example
* ```typescript
* import { createTevmClient, tevmViemActions } from 'tevm'
*
* const client = createTevmClient()
* .extend(tevmViemActions())
* ```
*/
export type TevmViemActionsApi = {
tevmReady: TevmNode['ready'];
tevmCall: TevmActionsApi['call'];
tevmContract: TevmActionsApi['contract'];
tevmDeploy: TevmActionsApi['deploy'];
tevmMine: TevmActionsApi['mine'];
tevmLoadState: TevmActionsApi['loadState'];
tevmDumpState: TevmActionsApi['dumpState'];
tevmSetAccount: TevmActionsApi['setAccount'];
tevmGetAccount: TevmActionsApi['getAccount'];
tevmDeal: TevmActionsApi['deal'];
};
//# sourceMappingURL=TevmViemActionsApi.d.ts.map