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 premia.finance.
NPM_TOKEN
, necessary for using the .npmc file. (you can store the variable locally in the .env file)API_KEY_ALCHEMY
and PKEY_ETH_TEST
to a .env
file (see example)./src/abi
folderyarn install
to download dependencieschmod ug+x .husky/*
to make the husky precommit script an executable.yarn postinstall
to set up and install husky.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 https://arb-goerli.g.alchemy.com/v2/NNaDMKJ64XmaH_zVzjX0GQLTFQlKLx3K --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 line2023-04-24 (Goerli): ~8883219
2023-05-11 (Goerli): ~8983750
2023-05-17 (Goerli): ~9016327
2023-05-22 (Goerli): ~9041200
2023-05-27 (Goerli): ~9069700
2023-05-30 (Goerli): ~9094334
2023-06-03 (Goerli): ~9117574
2023-06-05 (Arbitrum Goerli): ~19452000
2023-06-09 (Arbitrum Goerli): ~25083922
2023-07-12 (Arbitrum Goerli): ~30175019
Generated using TypeDoc