-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·53 lines (39 loc) · 1.41 KB
/
deploy.sh
File metadata and controls
executable file
·53 lines (39 loc) · 1.41 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
47
48
49
50
principal=$(dfx identity get-principal --network ic)
echo "principal of command: $principal"
dfx deploy ledger --argument "(variant {Init =
record {
token_symbol = \"time\";
token_name = \"time_token\";
minting_account = record { owner = principal \"$principal\" };
transfer_fee = 100;
metadata = vec {};
initial_balances = vec { record { record { owner = principal \"$principal\"; }; 1000000000000000000 }; };
archive_options = record {
num_blocks_to_archive = 1000000000;
trigger_threshold = 1000000000;
controller_id = principal \"$principal\";
};
feature_flags = opt record {icrc2 = true;};
}
})"
dfx deploy backend
dfx deploy internet_identity
dfx deploy battlechan_frontend
dfx deploy ledger --argument "(variant {Init =
record {
token_symbol = \"time\";
token_name = \"time_token\";
minting_account = record { owner = principal \"$principal\" };
transfer_fee = 100;
metadata = vec {};
initial_balances = vec { record { record { owner = principal \"$principal\"; }; 1000000000000000000 }; };
archive_options = record {
num_blocks_to_archive = 1000000000;
trigger_threshold = 1000000000;
controller_id = principal \"$principal\";
};
feature_flags = opt record {icrc2 = true;};
}
})" --network ic
dfx deploy backend --network ic
dfx deploy battlechan_frontend --network ic