Releases: tempoxyz/tempo-ts
[email protected]
[email protected]
[email protected]
Minor Changes
-
#84
4524445Thanks @jxom! - Breaking: RenamedtempoDevchain totempoDevnet. -
#84
4524445Thanks @jxom! - Breaking: RenamedlinkingUsdtopathUsd. -
#84
4524445Thanks @jxom! - Breaking: RemovedcreateAccountcapability fromwebAuthnconnector. Usetype: 'sign-up'instead. -
#84
4524445Thanks @jxom! - Breaking: RemovedtempoAndantinochain. UsetempoTestnetinstead.
Patch Changes
-
#84
4524445Thanks @jxom! -tempo.ts/ox: Addedkeychaintype toSignatureEnvelope. -
#84
4524445Thanks @jxom! -tempo.ts/ox: AddedKeyAuthorizationmodule. -
#84
4524445Thanks @jxom! -tempo.ts/viem: AddedsignKeyAuthorizationfunction to theAccountto sign over key authorizations. -
#84
4524445Thanks @jxom! -tempo.ts/viem: Addedaccessattribute toAccountto indicate if the account is an "access key" variant. -
#84
4524445Thanks @jxom! -tempo.ts/ox: AddedkeyAuthorizationattribute toTransaction&TransactionEnvelopeAA. -
#84
4524445Thanks @jxom! -tempo.ts/wagmi: AddedgrantAccessKeyattribute to thewebAuthnconnector.
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Patch Changes
-
#90
625c8e4Thanks @jxom! - AddedHandler.composeto compose multiple handlers into a single handler.import { Handler, Kv } from 'tempo.ts/server' const handler = Handler.compose([ Handler.feePayer({ account, client, path: '/fee-payer' }), Handler.keyManager({ kv: Kv.memory() path: '/key' }), ], { path: '/api' }) Bun.serve(handler) // Bun Deno.serve(handler) // Deno createServer(handler.listener) // Node.js app.use(c => handler.fetch(c.req.raw)) // Hono app.use(handler.listener) // Express // Exposed endpoints: // - '/api/fee-payer' // - '/api/key/*'
[email protected]
[email protected]
Minor Changes
-
#88
f6da019Thanks @jxom! - RemoveduserToken.amountfromamm.mint, and flattened the API:Actions.amm.mint({ - userToken: { - address: '0x...', - amount: 100n, - }, + userTokenAddress: '0x...', - validatorToken: { - address: '0x...', - amount: 100n, - }, + validatorTokenAddress: '0x...', + validatorTokenAmount: 100n, to: '0x...', }) -
#88
f6da019Thanks @jxom! - Removed the following APIs:tempo.ts/viemActions.reward.cancelActions.reward.cancelSyncActions.reward.getStream
tempo.ts/wagmiActions.reward.cancelActions.reward.cancelSyncActions.reward.getStreamHooks.reward.useCancelHooks.reward.useCancelSyncHooks.reward.useGetStream
Patch Changes
-
#87
e5ff1a4Thanks @jxom! - AddedHandler.feePayerserver handler for fee sponsorship.Handler.feePayerreturns afetchorlistenerhandler that can be used by the majority of
server frameworks.For example:
import { privateKeyToAccount } from "viem/accounts"; import { Handler } from "tempo.ts/server"; import { client } from "./viem.config"; const handler = Handler.feePayer({ account: privateKeyToAccount("0x..."), client, }); // Node.js import { createServer } from "node:http"; const server = createServer(handler.listener); server.listen(3000); // Bun Bun.serve(handler); // Cloudflare export default { fetch(request) { return handler.fetch(request); }, }; // Express import express from "express"; const app = express(); app.use(handler.listener); app.listen(3000);
-
#82
94388bcThanks @jxom! - Addedtempo.ts/serverentrypoint with aHandlermodule. TheHandlermodule provides akeyManagerhandler to instantiate a lightweight Key Manager API to use for WebAuthn credential management.Each
Handlerfunction returns afetchorlistenerhandler that can be used by the majority of
server frameworks.For example:
import { Handler, Kv } from "tempo.ts/server"; const handler = Handler.keyManager({ kv: Kv.memory() }); // Node.js import { createServer } from "node:http"; const server = createServer(handler.listener); server.listen(3000); // Bun Bun.serve(handler); // Cloudflare export default { fetch(request) { return handler.fetch(request); }, }; // Express import express from "express"; const app = express(); app.use(handler.listener); app.listen(3000);