Skip to content

Latest commit

 

History

History
77 lines (63 loc) · 1.51 KB

File metadata and controls

77 lines (63 loc) · 1.51 KB

Deploy instructions:

git clone https://github.com/Infinity-Task-Protocol/Infinity-task-protocol.git
cd Infinity-task-protoco

Replica initialice

dfx start --clean --background

Idenitity creation for ledger minter account

dfx identity list | grep -q "^minter$" || dfx identity new minter

Deploy dependencies

dfx deps pull
dfx deps init internet_identity
dfx deps init icp_ledger --argument "(variant { 
    Init = record {
        minting_account = \"$(dfx ledger account-id --identity minter)\";
        initial_values = vec {};
        send_whitelist = vec {};
        transfer_fee = opt record { e8s = 10_000 : nat64; };
        token_symbol = opt \"LICP\";
        token_name = opt \"Local ICP\"; 
    }
})"
dfx deps deploy

Candid generation

dfx generate backend
dfx generate treasury

Backend and Treasury Canister deploy

dfx deploy backend
dfx deploy treasury

SetTreasury reference in main canister

dfx canister call backend setTreasuryCanisterId "(principal \"$(dfx canister id treasury)\")"

Build and deploy frontend canister

cd src/frontend
npm install
npm run deploy
npm run build
npm run generate
dfx deploy frontend

Deploying and configuring canister chat

dfx deploy chat
export chatCanisterID=$(dfx canister id chat)
dfx canister call backend setChatCanisterId "(principal \"${chatCanisterID}\")"

In case there are already registered users on the platform

dfx canister call backend syncUsersInCanisterChat

Will continue ...