Skip to content
Termbook
App integrations

Integration overview

An app implements a standard TypeScript interface. Termbook verifies its execution, accounting and recovery rules.

On this page

What your app implements

Your integration is a TypeScript object with metadata, a reviewable definition and three runtime interfaces: account.read, actions[capability].build and exit.next. Pick spot, perps, vault, staking or liquidity. Each use case has a uniform state shape and standard actions.

You provideTermbook uses it to
definitionPin dependencies and configure shared execution, valuation and recovery rules.
account.read(context)Read holdings, positions, pending orders, requests and liabilities at one block.
actions.place_order.build(context)Build an approved bounded execution plan for a standard action.
exit.next(context)Plan the next safe unwind step or report a concrete wait or block.

A platform-specific Solidity integration is not required when the shared modules can represent the app’s reads, calls and recovery policies. The definition still needs independently verifiable onchain data. Arbitrary TypeScript assertions cannot authorize borrowed funds.

From integration to modal

App admission and borrower use

Loading diagram…

App authors implement and submit a version. Termbook validates the lifecycle and activates approved rules. The active app token selects that version in the borrower modal.

App admission and borrower use

App authors implement and submit a version. Termbook validates the lifecycle and activates approved rules. The active app token selects that version in the borrower modal.

  1. Register the app and prove ownership of its web origin.
  2. Build the integration using the SDK’s use-case type and shared assessment rules.
  3. Validate the exact definition against a prepared operator environment.
  4. Register its validation ID; authorized governance activates the configuration.
  5. Use the active app_token with create_termbook and open the modal.

Before you start

  • A deployed app and market on the supported lending chain.
  • Readable account ownership, holdings and all outstanding obligations.
  • Exact ABI calls with spend caps, recipient control and price protection.
  • An exit path that an approved recovery keeper can run without the borrower.
  • Pinned code and implementation identities for every relevant dependency.
  • An operator validation environment with funded actors and meaningful assertions.
Documentation
8 results

Let’s talk

Tell us what you have in mind.

Supply liquidity