-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.sh
executable file
·56 lines (43 loc) · 1.73 KB
/
demo.sh
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
51
52
53
54
55
56
#!/bin/bash
set -e
./initialize.sh standalone
echo Funding my freighter wallet
curl -X POST "localhost:8000/friendbot?addr=GDVVHZF4H5FANTUSN556CPS3BOVPB3I5KBE3J3PL6SZ7EDP2X6ESSNPX"
export VOTING_ID="$(cat .soroban/voting_id)"
export TOKEN_CODE="MYNFT"
export TOKEN_ADMIN="GBHCFFI5ZCRNHW6RZVR5WG7ERSP7NOOVKF36QBB4PVESDCMZQL6OQYEM"
TOKEN_ADMIN_HEX="4e22951dc8a2d3dbd1cd63db1be48c9ff6b9d55177e8043c7d4921899982fce8"
TOKEN_ADMIN_SECRET="SC4OVVO2RKSUXWAPRMOQSHDZL2Q5COBGOFZSF5MWVTYXC2LHVFFSAVEJ"
export SOROBAN_RPC_HOST="http://localhost:8000"
export SOROBAN_RPC_URL="$SOROBAN_RPC_HOST/soroban/rpc"
export SOROBAN_NETWORK_PASSPHRASE="Standalone Network ; February 2017"
export SOROBAN_SECRET_KEY="$TOKEN_ADMIN_SECRET"
pushd accounts_setup
python3 ~/Library/Python/3.9/lib/python/site-packages/pipenv/__main__.py run python script.py \
-l SBGNL7EX2WC4C2Q3ASQBYH7KYY2GV3XNJ4CB5A75WCZFH4ZFOOUFY5QU \
SBJOK2H4QMH2G6O7V23GBVN4J7RPQQNLF3XBIMRB26QWI6YAHESRTRIJ \
SDGGKBZURLA6JQIVX27YC2E6QXCIPHGQRYECIJHNZCOQXJFSYBPJBCBQ \
-c "$TOKEN_CODE" \
-i "$TOKEN_ADMIN" \
-s "$TOKEN_ADMIN_SECRET" \
-u "$SOROBAN_RPC_HOST" \
-p "$SOROBAN_NETWORK_PASSPHRASE" \
-f "$SOROBAN_RPC_HOST/friendbot"
echo "Creating 3 demo proposals..."
export SOROBAN_SECRET_KEY="SBGNL7EX2WC4C2Q3ASQBYH7KYY2GV3XNJ4CB5A75WCZFH4ZFOOUFY5QU"
soroban invoke \
--id "$VOTING_ID" \
--fn propose \
--arg "$(cat proposal1.hex)"
export SOROBAN_SECRET_KEY="SBJOK2H4QMH2G6O7V23GBVN4J7RPQQNLF3XBIMRB26QWI6YAHESRTRIJ"
soroban invoke \
--id "$VOTING_ID" \
--fn propose \
--arg "$(cat proposal2.hex)"
export SOROBAN_SECRET_KEY="SDGGKBZURLA6JQIVX27YC2E6QXCIPHGQRYECIJHNZCOQXJFSYBPJBCBQ"
soroban invoke \
--id "$VOTING_ID" \
--fn propose \
--arg "$(cat proposal3.hex)"
popd
npm run dev