The latest version of the SDK is used in production in the Premia Interface,
but it is considered Alpha software and may contain bugs or change significantly between patch versions.
If you have questions about how to use the SDK, please reach out in the #engineering channel of the Discord.
Pull requests are welcome!
In-depth documentation on this SDK is available at docs.premia.blue.
Auto-generated documentation is available at docs-sdk.premia.finance.
Feedback is welcome!
API_KEY_ALCHEMY, API_KEY_INFURA and TESTNET_PRIVATE_KEY to a .env file (see example)yarn install to download dependencieschmod ug+x .husky/* to make the husky precommit script an executable.In order to use Anvil as a local blockchain for dev purposes, Forge needs to be installed. Instructions on how to install are here.
anvil --fork-url <INSERT RPC URL> --fork-block-number <INSERT BLOCK NUMBER>ctrl + z to pause and then type bg to run the fork in the backgroundyarn test through the command lineGenerated using TypeDoc