https://github.com/nikolas-con/ic-evm-sign-starter
A "No key wallet" example project for the Internet Computer.
https://github.com/nikolas-con/ic-evm-sign-starter
evm example-project internet-computer react rust
Last synced: 4 days ago
JSON representation
A "No key wallet" example project for the Internet Computer.
- Host: GitHub
- URL: https://github.com/nikolas-con/ic-evm-sign-starter
- Owner: nikolas-con
- Created: 2022-12-04T14:49:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T16:13:57.000Z (over 3 years ago)
- Last Synced: 2024-06-05T16:57:18.209Z (about 2 years ago)
- Topics: evm, example-project, internet-computer, react, rust
- Language: JavaScript
- Homepage: https://vqbpb-giaaa-aaaap-qaxda-cai.ic0.app/
- Size: 3.04 MB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
This is an example project of [ic-evm-sign](https://github.com/nikolas-con/ic-evm-sign), a library that signs EVM transactions on the Internet Computer.
The project consists of:
- A react frontend located in `src/frontend` (build with Create React App and React 18).
- A backend canister located in `src/backend` (build with Rust and `ic_cdk`).
- A hardhat node for local testing with config at `hardhat.config.js`.
## Get Started
Install dependencies:
```sh
npm i
```
Run in development:
```sh
npm start
```
Then head to `http://localhost:3000`.
**Note:** The `npm start` script above starts 1) a local Internet Computer replica 2) a local hardhat node and 3) the React frontend of the project. After starting the IC replica it deploys the canister code and an Internet Identity canister for local authentication.
## Production
Deploy backend:
```sh
dfx deploy --network ic backend --argument '(opt variant { Production } )' --with-cycles 200000000000
```
Then create `src/frontend/.env.production` with the backend canister id. Similar to `src/frontend/.env.production.sample`.
Deploy frontend:
```sh
dfx deploy --network ic frontend --with-cycles 200000000000
```
**Note:** Running `dfx deploy frontend` also builds the frontend react code.
Then head to `https://${FRONTEND_CANISTER_ID}.ic0.app/`.
# Security
The code in [ic-evm-sign](https://github.com/nikolas-con/ic-evm-sign) that this starter project relies heavily on has not been audited (as of 13/1/22). Use it at your own risk.
# Funding
This library was initially incentivized by [ICDevs](https://icdevs.org/).