|
3 | 3 | The EVM Block Explorer example demonstrates how an ICP smart contract can obtain information directly from other blockchain networks. Using HTTPS outcalls, smart contracts on ICP can interact with other networks without needing to go through a third-party service such as a bridge or an oracle. Supported interactions with other chains include querying network data, signing transactions, and submitting transactions directly to other networks.
|
4 | 4 | In this example, you'll also see how to sign transactions with canister ECDSA or Schnorr signatures.
|
5 | 5 |
|
6 |
| -This application's logic is written in [Motoko](https://internetcomputer.org/docs/motoko/main/getting-started/motoko-introduction), a programming language designed specifically for developing canisters on ICP. |
7 |
| - |
8 | 6 | ## Deploying from ICP Ninja
|
9 | 7 |
|
10 | 8 | When viewing this project in ICP Ninja, you can deploy it directly to the mainnet for free by clicking "Deploy" in the upper right corner. Open this project in ICP Ninja:
|
11 | 9 |
|
12 | 10 | [](https://icp.ninja/i?g=https://github.com/dfinity/examples/motoko/evm_block_explorer)
|
13 | 11 |
|
14 |
| -## Project structure |
| 12 | +## Build and deploy from the command-line |
| 13 | + |
| 14 | +### 1. [Download and install the IC SDK.](https://internetcomputer.org/docs/building-apps/getting-started/install) |
15 | 15 |
|
16 |
| -The `/backend` folder contains the Motoko canister, `app.mo`. The `/frontend` folder contains web assets for the application's user interface. The user interface is written using the React framework. Edit the `mops.toml` file to add [Motoko dependencies](https://mops.one/) to the project. |
| 16 | +### 2. Download your project from ICP Ninja using the 'Download files' button on the upper left corner, or [clone the GitHub examples repository.](https://github.com/dfinity/examples/) |
17 | 17 |
|
18 |
| -## Build and deploy from the command-line |
| 18 | +### 3. Navigate into the project's directory. |
19 | 19 |
|
20 |
| -To migrate your ICP Ninja project off of the web browser and develop it locally, follow these steps. These steps are necessary if you want to deploy this project for long-term, production use on the mainnet. |
| 20 | +### 4. Run `dfx start --background --clean && dfx deploy` to deploy the project to your local environment. |
21 | 21 |
|
22 |
| -### 1. Download your project from ICP Ninja using the 'Download files' button on the upper left corner under the pink ninja star icon. |
| 22 | +## Security considerations and best practices |
23 | 23 |
|
24 |
| -### 2. Open the `BUILD.md` file for further instructions. |
| 24 | +If you base your application on this example, it is recommended that you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/building-apps/security/overview) for developing on ICP. This example may not implement all the best practices. |
0 commit comments