UNPKG

ponder-client

Version:
48 lines 1.23 kB
import { createSchema } from '@ponder/core'; export default createSchema((p) => ({ UserOp: p.createTable({ id: p.string(), hash: p.hex(), txHash: p.hex(), chainId: p.int(), actualGasCost: p.bigint(), actualGasUsed: p.bigint(), nonce: p.bigint(), paymaster: p.hex(), sender: p.hex(), success: p.boolean(), entryPoint: p.hex(), }), Account: p.createTable({ id: p.string(), address: p.hex(), chainId: p.int(), factory: p.hex(), modules: p.hex().list(), }), Module: p.createTable({ id: p.string(), txHash: p.hex(), block: p.bigint(), chainId: p.int(), address: p.hex(), }), ModuleInstallation: p.createTable({ id: p.string(), txHash: p.hex(), block: p.bigint(), chainId: p.int(), account: p.hex(), module: p.hex(), }), ModuleExecution: p.createTable({ id: p.string(), txHash: p.hex(), block: p.bigint(), chainId: p.int(), account: p.hex(), module: p.hex(), success: p.boolean(), }), })); //# sourceMappingURL=schema.js.map