@tevm/client-types
v1.0.0-next.118
Published
A typesafe library for writing forge scripts in typescript
Downloads
299
Maintainers
Readme
@tevm/spec
@tevm/spec
is the official tevm spec represented as a typescript object Tevm. This spec is implemented by all tevm clients
including the
Tevm.ts
Tevm
is the API type of Tevm implemented by
@tevm/vm
package the evm implementation of tevm@tevm/client
package the remote JSON-RPC client for talking to a remote Tevm EVM
High level API
Tevm core api follows an input/output pattern and is implemented in two ways:
- The ergonomic high level
action
based API - The lower level JSON-RPC based API used for remote calls
This API is implemented with the following packages
Tevm high-level action based API
The high-level action based API is what most users and internal code are using whenever possible. It's more ergonomic, types are generic, and it is able to return more than 1 error.
- @tevm/api/params - Inputs for tevm handlers
- @tevm/api/result - Outputs for tevm handlers
- @tevm/api/handlers - Generic handler types for processing params into results
Tevm low-level JSON-rpc based API
The lower level JSON-RPC api is more suitable for sending tevm requests remotely and mirrors the high level api. Though sometimes a single JSON-RPC method will be overloaded with multiple higher level API actions.
- @tevm/api/params - Inputs for tevm handlers
- @tevm/api/result - Outputs for tevm handlers
- @tevm/api/handlers - Generic handler types for processing params into results