0.2.0 • Published 1 year ago

cambria-battle-sdk v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Cambria Battle SDK

Test & Dev setup

To run the 'active' tests (against the testnet contract) and for a development environment, it is recommended to run the cambria/battle repo alongside this one.

git clone git@github.com:playcambria/battle.git
cd battle

install foundry if you haven't:

curl -L https://foundry.paradigm.xyz | bash
foundryup
forge install

then run the anvil network

make anvil

in another terminal, run:

make deploy-tokens-and-batch

If you use a different foundry .env mnemonic, you will probably need to update the anvil (networkId: 31337) deployment addresses in the src/sdk/{VERSION}/addresses.json

Then all tests should pass

yarn test