Skip to content

Commit 74e8a3b

Browse files
authored
feat(target_chains/starknet): add JS SDK (#1676)
* 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
1 parent 3115a3c commit 74e8a3b

File tree

11 files changed

+2133
-517
lines changed

11 files changed

+2133
-517
lines changed

.github/workflows/ci-starknet-contract.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ jobs:
3333
run: scarb fmt --check
3434
- name: Run tests
3535
run: snforge test
36+
- name: Build contracts
37+
run: scarb build
38+
- name: Check ABI files
39+
run: |
40+
cat target/dev/pyth_pyth.contract_class.json | jq .abi > /tmp/pyth.json
41+
cat target/dev/pyth_ERC20.contract_class.json | jq .abi > /tmp/erc20.json
42+
if ! cmp --silent /tmp/pyth.json ../sdk/js/src/abi/pyth.json ; then
43+
>&2 echo ABI file mismatch for sdk/js/src/abi/pyth.json
44+
exit 1
45+
fi
46+
if ! cmp --silent /tmp/erc20.json ../sdk/js/src/abi/erc20.json ; then
47+
>&2 echo ABI file mismatch for sdk/js/src/abi/erc20.json
48+
exit 1
49+
fi
3650
- name: Test local deployment script
3751
run: bash -c 'PATH="$PATH:$HOME/.config/.dojo/bin" katana & . ~/.config/.starkli/env && deploy/deploy.sh'
3852
- name: Verify version

0 commit comments

Comments
 (0)