diff --git a/README.md b/README.md index 1ba8c9831..393e5bddd 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,33 @@ -# hot-or-not-dapp v2 +# HotOrNot DApp -## Verify frontend build +Repository containing the frontend of the hotornot.wtf app. + +--- + +### To Verify frontend build To get the hash for the `webclient` canister: - Get the canister ID of the `webclient` from [`canister_ids.json`](https://github.com/go-bazzinga/hot-or-not-dapp/blob/main/canister_ids.json). - Get hash using the DFX SDK by running: `dfx canister info --network=ic`. + (`` for [`webclient` is `vyatz-hqaaa-aaaam-qauea-cai`](https://github.com/go-bazzinga/hot-or-not-dapp/blob/main/canister_ids.json)) -- The output of the above command should contain `Module hash` followed up with the hash value. +- The output of the above command should contain `Module hash` followed up with the hash value. Example output: + + ``` + $ > dfx canister info vyatz-hqaaa-aaaam-qauea-cai --network=ic + + Controllers: 7gaq2-4kttl-vtbt4-oo47w-igteo-cpk2k-57h3p-yioqe-wkawi-wz45g-jae + wwyo5-vrahh-jwa74-3m6kj-jqbia-jbebm-7vtyd-uvqem-wk3zw-djpci-vqe + Module hash: 0x98863747bb8b1366ae5e3c5721bfe08ce6b7480fe4c3864d4fec3d9827255480 + ``` To get the hash for `webclient` canister deployment: - Go to [Github actions deployment runs](https://github.com/go-bazzinga/hot-or-not-dapp/actions/workflows/webclient-deploy.yml) -- Open the latest run. ([Click to see an example run](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252)) +- Open the latest succesful run. ([Click to see an example run](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252)) - Go to `web-client-deploy-dapp` job. ([Click to see an example job](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252)) - Open `dfx deploy webclient --network ic --no-wallet` step. You should find the `Module hash` in this step. This value should match the value you got locally. ([Click to see an example step](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252#step:8:16)) + +--- +