forked from bipquantum/bip721x
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-local.sh
More file actions
executable file
·67 lines (52 loc) · 1.55 KB
/
install-local.sh
File metadata and controls
executable file
·67 lines (52 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
set -ex
dfx identity use default
DEPLOYER_PRINCIPAL=$(dfx identity get-principal)
DEPLOYER_ACCOUNT_ID=$(dfx ledger account-id)
# Create all canisters
dfx canister create --all
BACKEND_CANISTER=$(dfx canister id backend)
# Deploy all canisters
dfx deploy bip721_ledger --argument 'record {
deployer = principal "'${BACKEND_CANISTER}'";
}'
dfx deploy bqc_ledger --argument 'record {
minting_account = record {
owner = principal "'${BACKEND_CANISTER}'";
subaccount = null;
};
}'
dfx deploy idempotent_proxy_canister --argument "(opt variant {Init =
record {
ecdsa_key_name = \"dfx_test_key\";
proxy_token_refresh_interval = 3600;
subnet_size = 13;
service_fee = 10_000_000;
}
})"
dfx canister call idempotent_proxy_canister admin_set_agents '
(vec {
record {
name = "bIPQuantumWorker";
endpoint = "https://idempotent-proxy-cf-worker.bipquantum.workers.dev";
max_cycles = 30000000000;
proxy_token = null;
};
})
'
dfx canister call idempotent_proxy_canister admin_add_managers '(vec {principal "'${BACKEND_CANISTER}'"})'
dfx canister call idempotent_proxy_canister admin_add_callers '(vec {principal "'${BACKEND_CANISTER}'"})'
dfx deploy backend --argument 'variant {
init = record {
e8sTransferFee = 10;
airdrop_per_user = 100_000_000_000;
admin = principal "'${DEPLOYER_PRINCIPAL}'";
chatbot_api_key = "'${CHATBOT_API_KEY}'";
}
}'
## Internet identity
dfx deps pull
dfx deps init
dfx deps deploy internet_identity
dfx canister call backend init_controller
dfx deploy frontend
dfx generate