Tradegen
Search…
⌃K

Getting Started

The pages that follow contain technical reference information on the Tradegen SDK.
The SDK is written in TypeScript, has a robust test suite, and performs arbitrary precision arithmetic. The principal exports of the SDK are 'entities': classes that contain initialization and validation checks, necessary data fields, and helper functions.
An important concept in the SDK is fractions. Because Solidity performs integer math, care must be taken in non-EVM environments to faithfully replicate the actual computation carried out on-chain. The main concern here is to ensure that an overflow-safe integer implementation is used. Ideally, the SDK would be able to use native 'BigInts'. However, until support becomes more widespread, 'JSBI' objects are used instead.
At the time of writing, the Tradegen SDK is only compatible with Celo Alfajores testnet.

Code

The source code is available on Github.