Monorepo for the Vertex TS SDK. The Vertex SDK is a collection of utilities for interacting with the Vertex API and contracts.
1.x.x
now uses viem
instead of ethers
. When upgrading to 1.x.x
:
ethers
and add viem
as dependenciesethers
Wallet
instance has been replaced with viem
's WalletClient
ethers
Provider
instance has been replaced with viem
's PublicClient
@vertex-protocol/client
Exposes the top-level VertexClient
, which composes subpackages for API & contract interaction.
@vertex-protocol/engine-client
Exports queries & executes that talk to the off-chain matching engine.
@vertex-protocol/indexer-client
Exports queries that talk to the indexer.
@vertex-protocol/trigger-client
Exports queries and executes that talk to the trigger service (used for stop & TP/SL orders).
@vertex-protocol/utils
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.