@mayflower-sys/evm-avm-interfaces-gen
v202607.1306.150
Published
Transport-neutral, strongly-typed viem bindings for the AVM public interfaces.
Readme
evm-avm-interfaces-gen
Explicit, strongly-typed viem bindings for the AVM public interfaces — one module
per interface in @mayflower-sys/avm-interfaces-abis. Plain generated code, no
runtime magic. Per function: a <Fn>Params type and a pure encode<Fn> calldata
builder. For every function with outputs (views and state-changing ones, so
simulated writes decode too): a <Fn>Outputs type and a decode<Fn> decoder.
Calldata primitives (the layer SDKs build on)
import { IAvmFactory } from "@mayflower-sys/evm-avm-interfaces-gen"
const data = IAvmFactory.encodeCreateMarket(params) // build calldata, send it however you like
const market = IAvmFactory.decodeCreateMarket(returnData) // decode a return -> AddressBatch encode<Fn> into a multicall, hand the calldata to any
signer/multisig/simulator, and decode<Fn> results without re-deriving types.
