forked from bipquantum/bip721x
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-ic.sh
More file actions
executable file
·66 lines (56 loc) · 1.92 KB
/
install-ic.sh
File metadata and controls
executable file
·66 lines (56 loc) · 1.92 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
set -ex
dfx identity use first_deployement
BACKEND_CANISTER=$(dfx canister id backend --ic)
# Deploy all canisters
dfx deploy icrc7 --ic --argument 'record {
icrc7_args = opt opt record {
symbol = opt "bIP721" : opt text;
name = opt "Intellectual Property" : opt text;
description = opt "A Collection of Intellectual Property by BipQuantum" : opt text;
logo = null : opt text;
supply_cap = null : opt nat;
allow_transfers = null : opt bool;
max_query_batch_size = opt 100 : opt nat;
max_update_batch_size = opt 100 : opt nat;
default_take_value = opt 1000 : opt nat;
max_take_value = opt 10000 : opt nat;
max_memo_size = opt 512 : opt nat;
permitted_drift = null : opt nat;
tx_window = null : opt nat;
burn_account = null;
deployer = principal "'${BACKEND_CANISTER}'";
supported_standards = null;
};
icrc37_args = null;
icrc3_args = null;
}'
dfx deploy idempotent_proxy_canister --argument "(opt variant {Init =
record {
ecdsa_key_name = \"key_1\";
proxy_token_refresh_interval = 86_400;
subnet_size = 13;
service_fee = 10_000_000;
}
})" --ic --mode=reinstall
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;
};
})
' --ic
dfx canister call idempotent_proxy_canister admin_add_managers '(vec {principal "'${BACKEND_CANISTER}'"})' --ic
dfx canister call idempotent_proxy_canister admin_add_callers '(vec {principal "'${BACKEND_CANISTER}'"})' --ic
dfx deploy backend --ic --argument 'variant {
init = record {
e8sTransferFee = 10;
airdrop_per_user = 100_000_000_000;
admin = principal "'${DEPLOYER_PRINCIPAL}'";
chatbot_api_key = "'${CHATBOT_API_KEY}'";
}
}'
dfx canister call backend init_controller --ic
dfx deploy frontend --ic