Skip to content

Commit

Permalink
feat(target_chains/starknet): add JS SDK (#1676)
Browse files Browse the repository at this point in the history
* feat(target_chains/starknet): add JS SDK

* chore(target_chains/starknet): add sdk to packages.json, update lint config

* chore(target_chains/starknet): add CI check for ABI files in SDK

* chore(target_chains/starknet): add SDK to pnpm
  • Loading branch information
Riateche committed Jun 11, 2024
1 parent 3115a3c commit 74e8a3b
Show file tree
Hide file tree
Showing 11 changed files with 2,133 additions and 517 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-starknet-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ jobs:
run: scarb fmt --check
- name: Run tests
run: snforge test
- name: Build contracts
run: scarb build
- name: Check ABI files
run: |
cat target/dev/pyth_pyth.contract_class.json | jq .abi > /tmp/pyth.json
cat target/dev/pyth_ERC20.contract_class.json | jq .abi > /tmp/erc20.json
if ! cmp --silent /tmp/pyth.json ../sdk/js/src/abi/pyth.json ; then
>&2 echo ABI file mismatch for sdk/js/src/abi/pyth.json
exit 1
fi
if ! cmp --silent /tmp/erc20.json ../sdk/js/src/abi/erc20.json ; then
>&2 echo ABI file mismatch for sdk/js/src/abi/erc20.json
exit 1
fi
- name: Test local deployment script
run: bash -c 'PATH="$PATH:$HOME/.config/.dojo/bin" katana & . ~/.config/.starkli/env && deploy/deploy.sh'
- name: Verify version
Expand Down
Loading

0 comments on commit 74e8a3b

Please sign in to comment.