-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
47 lines (33 loc) · 1.55 KB
/
deploy.sh
File metadata and controls
47 lines (33 loc) · 1.55 KB
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
dfx stop
trap 'echo "DONE"' EXIT
dfx start --background --clean
dfx canister create --all
dfx build
dfx canister install rep
dfx canister install rep_token
dfx canister install ver_ii_backend
dfx canister install ver_ii_frontend
dfx deploy --argument '(record { initial_mints =
vec {
record { account = record {
owner = principal "ao6hk-x5zgr-aa6y2-zq5ei-meewq-doeim-hwbws-zzxql-rjtcc-hmabt-xqe"; subaccount = null }; amount = 1000 } };
minting_account = record { owner = principal "ao6hk-x5zgr-aa6y2-zq5ei-meewq-doeim-hwbws-zzxql-rjtcc-hmabt-xqe"; subaccount = null };
token_name = "aVa Reputation Token";
token_symbol = "AVAR";
decimals = 6;
transfer_fee = 0 })' ledger
echo "Getting init balance of branch 0: "
dfx canister call rep_token userBalanceByBranch '(principal "ao6hk-x5zgr-aa6y2-zq5ei-meewq-doeim-hwbws-zzxql-rjtcc-hmabt-xqe", 0)'
dfx canister call rep setNewTag '( "Shared Reputation" )'
dfx canister call rep setNewTag '( "Incenitive Reputation" )'
dfx canister call rep setNewTag '( "IT" )'
echo "Getting init balance of branch 2: "
dfx canister call rep getReputationByBranch '(principal "ao6hk-x5zgr-aa6y2-zq5ei-meewq-doeim-hwbws-zzxql-rjtcc-hmabt-xqe", 2)'
echo "Trasfer:"
dfx canister call rep setUserReputation '(
principal "ao6hk-x5zgr-aa6y2-zq5ei-meewq-doeim-hwbws-zzxql-rjtcc-hmabt-xqe",
2,
5
)'
echo "Getting new balance of branch 2: "
dfx canister call rep getReputationByBranch '(principal "ao6hk-x5zgr-aa6y2-zq5ei-meewq-doeim-hwbws-zzxql-rjtcc-hmabt-xqe", 2)'