-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathboot.sh
executable file
·75 lines (48 loc) · 2.06 KB
/
boot.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
source ./conf_private.sh
source ./conf.sh
source ./functions.sh
echo -e "\n\n----------------- BOOT SEQUENCE -------------------\n\n";
run_cmd "set contract eosio "$CONTRACTS/eosio.bios" -p eosio";
run_cmd "create account eosio eosio.msig $EOSIO_PUB"
sleep 1;
cleos --wallet-url $WALLET_URL -u $API_URL get account eosio.msig;
run_cmd "create account eosio eosio.token $EOSIO_PUB"
sleep 1;
cleos --wallet-url $WALLET_URL -u $API_URL get account eosio.token;
run_cmd "create account eosio eosio.ram $EOSIO_PUB"
sleep 1;
cleos -u $API_URL get account eosio.ram;
run_cmd "create account eosio eosio.ramfee $EOSIO_PUB"
sleep 1;
cleos -u $API_URL get account eosio.ramfee;
run_cmd "create account eosio eosio.names $EOSIO_PUB"
sleep 1;
cleos -u $API_URL get account eosio.names;
run_cmd "create account eosio eosio.stake $EOSIO_PUB"
sleep 1;
cleos -u $API_URL get account eosio.stake;
run_cmd "create account eosio eosio.saving $EOSIO_PUB"
sleep 1;
cleos -u $API_URL get account eosio.saving;
run_cmd "create account eosio eosio.bpay $EOSIO_PUB"
sleep 1;
cleos -u $API_URL get account eosio.bpay;
run_cmd "create account eosio eosio.vpay $EOSIO_PUB"
sleep 1;
cleos -u $API_URL get account eosio.vpay;
run_cmd "push action eosio setpriv "'["eosio.msig",1]'" -p eosio"
sleep 1;
cleos -u $API_URL get account -j eosio.msig | jq
run_cmd "set contract eosio.msig "$CONTRACTS/eosio.msig" -p eosio.msig"
run_cmd "get code eosio.msig"
run_cmd "set contract eosio.token "$CONTRACTS/eosio.token" -p eosio.token"
run_cmd "get code eosio.token"
cleos --wallet-url $WALLET_URL -u $API_URL push action eosio.token create '["eosio","10000000000.0000 EOS"]' -p eosio.token
cleos --wallet-url $WALLET_URL -u $API_URL get currency stats eosio.token EOS
cleos --wallet-url $WALLET_URL -u $API_URL push action eosio.token issue '["eosio", "1000000000.0000 EOS", "initial issuance"]' -p eosio
cleos --wallet-url $WALLET_URL -u $API_URL get currency stats eosio.token EOS
sleep 2
# Install system contract
run_cmd "set contract eosio "$CONTRACTS/eosio.system" -p eosio"
run_cmd "get code eosio"