Install project dependencies:
npm i
pip install bitcoin-utils==0.5.9
Compile contract:
npx scrypt-cli compile
For BTC, adjust TODOs in btc-scripts
and run:
python3 btc-scripts/deploy.py
You can broadcast the generated TX using this site.
To deploy the sCrypt contract, configure your values in deploy.ts
and run:
npx scrypt-cli deploy
Don't forget to fund your key beforehand. You can use our faucet.
To run local tests for the sCrypt smart contract, run:
npm t
To run a test (deployment and contract calls) on the BSV testnet, run:
npm run testnet