Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmasken committed Feb 15, 2024
1 parent c16d6fd commit 1a1a54b
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .dfx/network/local/ic-https-outcalls-adapter-pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6753
2490
2 changes: 1 addition & 1 deletion .dfx/network/local/icx-proxy-pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6879
2496
2 changes: 1 addition & 1 deletion .dfx/network/local/pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6743
493
2 changes: 1 addition & 1 deletion .dfx/network/local/replica-configuration/replica-1.port
Original file line number Diff line number Diff line change
@@ -1 +1 @@
38991
41997
2 changes: 1 addition & 1 deletion .dfx/network/local/replica-configuration/replica-pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6760
844
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,24 @@ npm install
npm run dev
```

### Step 8: Login and start transacting
### Step 8: Generate did files
```bash
dfx generate backend
```

This generates the did files for the backend canister. You can find the generated files in the `./src/declarations/backend` directory.This is what allows you to call the backend canister from the frontend.

### Step 9: Login and start transacting
Go to http://localhost:3000 and login with the Internet Identity

### Step 9: Get funds
### Step 10: Get funds
```bash
npm run mint
```

Enter the amount of ckBTC you want to mint and the principal you want to mint to. The principal is the Internet Identity principal of the user you want to mint to. You can find the principal by logging in to the frontend and copying the principal from the URL.Also send some funds to the canister so you can receive funds in your canister subaccount
Enter the amount of ckBTC you want to mint and the principal you want to mint to. The principal is the Internet Identity principal of the user you want to mint to. You can find the principal by logging in to the frontend and copying the principal from the URL.Also send some funds to the canister so you can receive funds when you request test tokens

### Step 10: Start transacting
### Step 11: Start transacting
You can now start transacting with the app. You can send funds to other users and receive funds from other users.

Note that you need to refresh manually to see the updated balance after a transaction.

0 comments on commit 1a1a54b

Please sign in to comment.