Skip to content

Temporary package for Tempo TypeScript tooling

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

tempoxyz/tempo-ts



tempo combomark



Tempo TS

Note

This is a temporary package for TypeScript tooling for Tempo. It will be merged into Wevm repositories soon.

Install

pnpm i tempo.ts

Entrypoints

Entrypoint Description
tempo.ts/server Framework-agnostic server handlers.

Usage

tempo.ts/server

import { Handler } from 'tempo.ts/server'
import { account, client } from './config'
 
const handler = Handler.feePayer({
  account,
  client,
  feeToken: '0x20c0…0001'
  path: '/fee-payer',
})
 
createServer(handler.listener) // Node.js
 
Bun.serve(handler) // Bun
 
Deno.serve(handler) // Deno
 
app.all('*', c => handler.fetch(c.request)) // Elysia
 
app.use(handler.listener) // Express
 
app.use(c => handler.fetch(c.req.raw)) // Hono
 
export const GET = handler.fetch // Next.js
export const POST = handler.fetch // Next.js

Contributing

Our contributor guidelines can be found in CONTRIBUTING.md.

Security

See SECURITY.md.

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Temporary package for Tempo TypeScript tooling

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Contributing

Security policy

Stars

Watchers

Forks

Contributors 8

Languages