You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order not to call `dfx canister logs CanisterLogs` after every canister call in a separate terminal window/pane C start a script that will constantly poll logs:
76
74
@@ -86,7 +84,7 @@ $ ./poll_logs.sh
86
84
...
87
85
```
88
86
89
-
###Step 6: Call `print`, `trap` and other canister methods:
87
+
## Step 6: Call `print`, `trap` and other canister methods
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/rust/basic_bitcoin)
8
-
9
-
## Overview
10
3
This tutorial will walk you through how to deploy a sample [canister smart contract](https://internetcomputer.org/docs/current/developer-docs/multi-chain/bitcoin/overview)**that can send and receive Bitcoin** on the Internet Computer.
11
4
12
5
## Architecture
@@ -21,18 +14,16 @@ of the Internet Computer.
21
14
22
15
For a deeper understanding of the ICP < > BTC integration, see the [Bitcoin integration documentation](https://wiki.internetcomputer.org/wiki/Bitcoin_Integration).
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/rust/basic_dao)
8
-
9
3
This sample project demonstrates a basic [decentralized autonomous organization](https://en.wikipedia.org/wiki/Decentralized_autonomous_organization) (DAO) that can be deployed to the [Internet Computer](https://github.com/dfinity/ic). The basic DAO sample code is available in [Motoko](https://github.com/dfinity/examples/tree/master/motoko/basic_dao) and [Rust](https://github.com/dfinity/examples/tree/master/rust/basic_dao). You can see a quick introduction on [YouTube](https://youtu.be/3IcYlieA-EE).
10
4
11
-
## Overview
12
-
13
5
A `basic_dao` can be initialized with a set of accounts: mappings from principal IDs to a number of tokens. Account owners can query their account balance by calling `account_balance` and transfer tokens to other accounts by calling `transfer`. Anyone can call `list_accounts` to view all accounts.
14
6
15
7
Account owners can submit proposals by calling `submit_proposal`. A proposal specifies a canister, method, and arguments for this method. Account owners can cast votes (either `Yes` or `No`) on a proposal by calling `vote`. The amount of votes cast is equal to the amount of tokens the account owner has. If enough `Yes` votes are cast, `basic_dao` will execute the proposal by calling the proposal’s given method with the given args against the given canister. If enough `No` votes are cast, the proposal is not executed, and is instead marked as `Rejected`.
@@ -18,37 +10,39 @@ Certain system parameters, like the number of `Yes` votes needed to pass a propo
18
10
19
11
View the [canister service definition](https://github.com/dfinity/examples/blob/master/rust/basic_dao/src/basic_dao/src/basic_dao.did) for more details.
Copy file name to clipboardExpand all lines: rust/canister-info/README.md
-6
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,5 @@
1
-
---
2
-
keywords: [beginner, rust, canister info]
3
-
---
4
-
5
1
# Canister info
6
2
7
-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/rust/canister-info)
8
-
9
3
The purpose of this dapp is to give developers a small (backend) dapp that uses the IC's `canister_info` management call to retrieve information about canisters including canister history.
10
4
11
5
You can find a detailed description of its methods in the form of doc comments in the source code.
0 commit comments