10min
SDK
The sdk contains provides easy access to ethers.Contract objects for the protocol contracts (with address as per the network connected) along with typescript typings. It also contains some util functions. The sdk is used in frontend app and bot scripts.
You can view the SDK on GitHub.
Installation
NPM
Shell
|
Yarn
Shell
|
Usage
Core Contracts
TypeScript
|
Vault Contracts
TypeScript
|
Utils
TypeScript
|
REPL
For quick debugging, ragetradesdk is available as a cli, which starts a Node.js REPL with the sdk available under the sdk namespace.
Shell
|