Skip to content

Commit 3a1efa7

Browse files
gregorydemayTHLO
andauthored
basic ethereum (#931)
* init basic_ethereum * hello world * canister init * initiate tecdsa key * derive Ethereum address * transaction count * create and sign transaction * send transaction * CI * lint * basic wallet * state module * ecdsa module * simplify errors * README * Apply suggestions from code review Fix typos and apply minor suggestions Co-authored-by: Thomas Locher <[email protected]> * use --ic instead of --network ic * add Wei alias * inline keccak * rename constant * method estimate_transaction_fees * improve error message * improve README address tied to principal * fix typo --------- Co-authored-by: Thomas Locher <[email protected]>
1 parent 88e5741 commit 3a1efa7

File tree

13 files changed

+4827
-1
lines changed

13 files changed

+4827
-1
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
/rust/basic_bitcoin/ @dfinity/execution
6161
/rust/basic_dao/ @dfinity/testing-verification
62+
/rust/basic_ethereum/ @dfinity/cross-chain-team
6263
/rust/canister-info/ @dfinity/testing-verification
6364
/rust/canister_logs/ @dfinity/execution
6465
/rust/composite_query/ @dfinity/execution
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: rust-basic-ethereum
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- rust/basic_ethereum/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/provision-pocket-ic-server.sh
12+
- .github/workflows/rust-basic-ethereum-example.yml
13+
- .ic-commit
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
jobs:
18+
rust-basic-ethereum-darwin:
19+
runs-on: macos-12
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Provision Darwin
23+
run: bash .github/workflows/provision-darwin.sh
24+
- name: Provision PocketIC Darwin
25+
run: bash .github/workflows/provision-pocket-ic-server.sh
26+
- name: Build Basic Ethereum Darwin
27+
run: |
28+
pushd rust/basic_ethereum
29+
cargo build --target wasm32-unknown-unknown --release
30+
popd
31+
- name: Lint Basic Ethereum Darwin
32+
run: |
33+
pushd rust/basic_ethereum
34+
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings
35+
popd
36+
- name: Test Basic Ethereum Darwin
37+
run: |
38+
pushd rust/basic_ethereum
39+
cargo test
40+
popd
41+
rust-basic-ethereum-linux:
42+
runs-on: ubuntu-20.04
43+
steps:
44+
- uses: actions/checkout@v1
45+
- name: Provision Linux
46+
run: bash .github/workflows/provision-linux.sh
47+
- name: Provision PocketIC Linux
48+
run: bash .github/workflows/provision-pocket-ic-server.sh
49+
- name: Build Basic Ethereum Linux
50+
run: |
51+
pushd rust/basic_ethereum
52+
cargo build --target wasm32-unknown-unknown --release
53+
popd
54+
- name: Lint Basic Ethereum Linux
55+
run: |
56+
pushd rust/basic_ethereum
57+
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings
58+
popd
59+
- name: Test Basic Ethereum Linux
60+
run: |
61+
pushd rust/basic_ethereum
62+
cargo test
63+
popd

rust/basic_bitcoin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords: [advanced, rust, bitcoin, btc, integration, bitcoin integration]
77
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/rust/basic_bitcoin)
88

99
## Overview
10-
This tutorial will walk you through how to deploy a sample [canister smart contract](/docs/current/developer-docs/multi-chain/bitcoin/overview) **that can send and receive Bitcoin** on the Internet Computer.
10+
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.
1111

1212
## Architecture
1313

0 commit comments

Comments
 (0)