forked from Xoulomon/Scavenger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQUICKSTART.txt
More file actions
40 lines (31 loc) · 998 Bytes
/
QUICKSTART.txt
File metadata and controls
40 lines (31 loc) · 998 Bytes
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
SCAVNGR - QUICK START GUIDE
===========================
1. VERIFY SETUP
Windows: .\scripts\verify-setup.ps1
Linux/Mac: ./scripts/verify-setup.sh
2. BUILD PROJECT
cargo build
3. RUN TESTS
cargo test
4. BUILD WASM
Windows: .\scripts\build-wasm.ps1
Linux/Mac: ./scripts/build-wasm.sh
5. DEPLOY TO TESTNET
a. Generate keypair:
soroban keys generate testnet-deployer
b. Fund account:
curl "https://friendbot.stellar.org?addr=$(soroban keys address testnet-deployer)"
c. Deploy:
soroban contract deploy \
--wasm target/wasm32-unknown-unknown/release/stellar_scavngr_contract.optimized.wasm \
--source testnet-deployer \
--network testnet
6. TEST CONTRACT
soroban contract invoke \
--id <CONTRACT_ID> \
--source testnet-deployer \
--network testnet \
-- register_participant \
--address $(soroban keys address testnet-deployer) \
--role '{"Recycler": {}}'
For more details, see README.md