Skip to content

Releases: tempoxyz/tempo-ts

[email protected]

04 Dec 01:54
bbbbd89

Choose a tag to compare

Patch Changes

  • #102 b7d18b1 Thanks @gorried! - Added watchRewardRecipientSet and watchRewardScheduled actions and hooks.

  • 5280a23 Thanks @jxom! - tempo.ts/viem: Removed eip1559 → aa type conversion in Transaction.serialize.

[email protected]

03 Dec 22:53
199a611

Choose a tag to compare

Patch Changes

[email protected]

03 Dec 22:23
1bedad5

Choose a tag to compare

Minor Changes

  • #84 4524445 Thanks @jxom! - Breaking: Renamed tempoDev chain to tempoDevnet.

  • #84 4524445 Thanks @jxom! - Breaking: Renamed linkingUsd to pathUsd.

  • #84 4524445 Thanks @jxom! - Breaking: Removed createAccount capability from webAuthn connector. Use type: 'sign-up' instead.

  • #84 4524445 Thanks @jxom! - Breaking: Removed tempoAndantino chain. Use tempoTestnet instead.

Patch Changes

  • #84 4524445 Thanks @jxom! - tempo.ts/ox: Added keychain type to SignatureEnvelope.

  • #84 4524445 Thanks @jxom! - tempo.ts/ox: Added KeyAuthorization module.

  • #84 4524445 Thanks @jxom! - tempo.ts/viem: Added signKeyAuthorization function to the Account to sign over key authorizations.

  • #84 4524445 Thanks @jxom! - tempo.ts/viem: Added access attribute to Account to indicate if the account is an "access key" variant.

  • #84 4524445 Thanks @jxom! - tempo.ts/ox: Added keyAuthorization attribute to Transaction & TransactionEnvelopeAA.

  • #84 4524445 Thanks @jxom! - tempo.ts/wagmi: Added grantAccessKey attribute to the webAuthn connector.

[email protected]

03 Dec 00:16
b8d9187

Choose a tag to compare

Patch Changes

  • #96 02c4885 Thanks @gorried! - Adds FeeAMM decorators for burn, rebalanceSwap, and associated watch events

[email protected]

27 Nov 23:06
72936a2

Choose a tag to compare

Patch Changes

  • 3c43d28 Thanks @jxom! - Propogated options in Handler.feePayer.

[email protected]

27 Nov 22:16
d28b612

Choose a tag to compare

Patch Changes

  • 1b5c63b Thanks @jxom! - Added headers to Handler functions.

[email protected]

27 Nov 20:45
bdea0fa

Choose a tag to compare

Patch Changes

  • f0369cd Thanks @jxom! - Added error handling to Handler.feePayer.

[email protected]

27 Nov 03:04
dc0c4a0

Choose a tag to compare

Patch Changes

  • #90 625c8e4 Thanks @jxom! - Added Handler.compose to 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]

27 Nov 00:24
8857d6d

Choose a tag to compare

Patch Changes

[email protected]

26 Nov 21:26
c73da4e

Choose a tag to compare

Minor Changes

  • #88 f6da019 Thanks @jxom! - Removed userToken.amount from amm.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 f6da019 Thanks @jxom! - Removed the following APIs:

    tempo.ts/viem

    • Actions.reward.cancel
    • Actions.reward.cancelSync
    • Actions.reward.getStream

    tempo.ts/wagmi

    • Actions.reward.cancel
    • Actions.reward.cancelSync
    • Actions.reward.getStream
    • Hooks.reward.useCancel
    • Hooks.reward.useCancelSync
    • Hooks.reward.useGetStream

Patch Changes

  • #87 e5ff1a4 Thanks @jxom! - Added Handler.feePayer server handler for fee sponsorship.

    Handler.feePayer returns a fetch or listener handler 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 94388bc Thanks @jxom! - Added tempo.ts/server entrypoint with a Handler module. The Handler module provides a keyManager handler to instantiate a lightweight Key Manager API to use for WebAuthn credential management.

    Each Handler function returns a fetch or listener handler 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);