Documentation

Vertex Typescript SDK

Monorepo for the Vertex TS SDK. The Vertex SDK is a collection of utilities for interacting with the Vertex API and contracts.

SDK Docs

1.x.x now uses viem instead of ethers. When upgrading to 1.x.x:

  • Remove ethers and add viem as dependencies
  • The ethers Wallet instance has been replaced with viem's WalletClient
  • The ethers Provider instance has been replaced with viem's PublicClient

Exposes the top-level VertexClient, which composes subpackages for API & contract interaction.

Exports queries & executes that talk to the off-chain matching engine.

Exports queries that talk to the indexer.

Exports queries and executes that talk to the trigger service (used for stop & TP/SL orders).

Common utilities, including bignumber.js, which is used for representing large numbers.

This is a Lerna monorepo. See package.json for common tasks, some of which are:

clean/build/dev/lint: Fairly common & self-explanatory tasks, operate on the entire repo

gen-typedoc: Generates documentation using TypeDoc

link/unlink-local: Used for local package development. Uses yarn link/unlink (docs) to enable other local repos to consume Vertex packages without having to publish a new version.

When making a change to the SDK, you will need to build the SDK, then run yarn install --force on the consuming repo for the changes to be picked up.