nikolas-con / ic-evm-sign-starter

A "No key wallet" example project for the Internet Computer.

Home Page:https://vqbpb-giaaa-aaaap-qaxda-cai.ic0.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This is an example project of 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:

npm i

Run in development:

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:

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:

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 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.

About

A "No key wallet" example project for the Internet Computer.

https://vqbpb-giaaa-aaaap-qaxda-cai.ic0.app/


Languages

Language:JavaScript 78.0%Language:Rust 21.1%Language:HTML 0.9%