-
Notifications
You must be signed in to change notification settings - Fork 7
/
justfile
50 lines (34 loc) · 1.17 KB
/
justfile
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
46
47
48
49
50
set dotenv-load
export PATH := './target/bin:' + env_var('PATH')
export CONFIG_DIR := 'target/'
# hash := `soroban contract install --wasm ./target/wasm32-unknown-unknown/contracts/example_status_message.wasm`
[private]
path:
just --list
loam +args:
@cargo r -- {{args}}
s +args:
@stellar {{args}}
stellar +args:
@stellar {{args}}
build_contract p:
stellar contract build --profile contracts --package {{p}}
# build contracts
build:
just loam build
# Setup the project to use a pinned version of the CLI
setup:
-cargo binstall -y --install-path ./target/bin stellar-cli --version 22.0.1
# Build loam-cli test contracts to speed up testing
build-cli-test-contracts:
cargo run -- build --manifest-path crates/loam-cli/tests/fixtures/soroban-init-boilerplate/Cargo.toml
test: build build-cli-test-contracts
cargo test
create: build
rm -rf .soroban
stellar keys generate default
just stellar contract deploy --wasm ./target/loam/example_core.wasm --alias core
# # Builds contracts. Deploys core subcontract and then redep
# # Builds contracts. Deploys core subcontract and then redeploys to status message.
redeploy:
./redeploy.sh