-
Notifications
You must be signed in to change notification settings - Fork 1
/
bindings-testnet.sh
executable file
·20 lines (14 loc) · 1.06 KB
/
bindings-testnet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# alias soroban="(cd ~/Desktop/Web/Soroban/soroban-tools/; cargo build --quiet) && ~/Desktop/Web/Soroban/soroban-tools/target/debug/soroban"
# make clean
# make build-opt
contract_id=$(soroban contract deploy --wasm target/wasm32-unknown-unknown/release/colorglyph.optimized.wasm --source default --network testnet)
echo 'contract deployed' $contract_id
# contract_id=CC5YDEXJXBOBNUSHX52DIIAOOJJMACKFTFU7FRIWJRRNZG2K5YRCETVW
token_address=CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC
fee_address=GA55USY2TY4DEO5YFQ3KZECL2A3A5IVYVCKPB4LLTAE57TOE6PM46D7C
# SBSBEB2WAVVRO3ITSLJACCQNSL67KIBV46FYGELSZXNGJCKYN5KL3F7P
# initialize
soroban contract invoke --id $contract_id --source default --network testnet -- initialize --token_address $token_address --fee_address $fee_address --owner_address default --mine_multiplier 500000
echo 'contract initialized'
soroban contract bindings typescript --wasm target/wasm32-unknown-unknown/release/colorglyph.optimized.wasm --contract-id $contract_id --network testnet --output-dir ./colorglyph-sdk --overwrite
echo 'bindings generated'