-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (36 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
start katana:
katana --accounts 3 --seed 0 --gas-price 250
build:
cd ./packages/snfoundry/ && \
scarb build
declare:
cd ./packages/snfoundry/ && \
starkli declare \
$(TARGET_SIERA) \
--compiler-version 2.1.0 --rpc http://0.0.0.0:5050 \
--account ./starkli-katana/katana_account.json \
--keystore ./starkli-katana/katana_key.json
deploy:
cd ./packages/snfoundry/ && \
starkli deploy $(CLASS_HASH) \
--rpc http://0.0.0.0:5050 \
--account ./starkli-katana/katana_account.json \
--keystore ./starkli-katana/katana_key.json
# starkli deploy $(CLASS_HASH) $(CTOR_ARGS) \
test:
cd ./packages/snfoundry/ && \
snfoundry
install bun:
curl -fsSL https://bun.sh/install | bash
install katana:
mkdir ~/.dojo && cd ~/.dojo
git clone https://github.com/dojoengine/dojo
cd dojo
cargo install --path ./crates/katana --locked --force
install snfoundry:
curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh
install starkli:
curl https://get.starkli.sh | sh
create signer:
cd ./packages/snfoundry/ && \
starkli signer keystore from-key ./starkli-katana/katana_account$(ACC_NO).json