-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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]>
- Loading branch information
1 parent
88e5741
commit 3a1efa7
Showing
13 changed files
with
4,827 additions
and
1 deletion.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: rust-basic-ethereum | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- rust/basic_ethereum/** | ||
- .github/workflows/provision-darwin.sh | ||
- .github/workflows/provision-linux.sh | ||
- .github/workflows/provision-pocket-ic-server.sh | ||
- .github/workflows/rust-basic-ethereum-example.yml | ||
- .ic-commit | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
rust-basic-ethereum-darwin: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Provision Darwin | ||
run: bash .github/workflows/provision-darwin.sh | ||
- name: Provision PocketIC Darwin | ||
run: bash .github/workflows/provision-pocket-ic-server.sh | ||
- name: Build Basic Ethereum Darwin | ||
run: | | ||
pushd rust/basic_ethereum | ||
cargo build --target wasm32-unknown-unknown --release | ||
popd | ||
- name: Lint Basic Ethereum Darwin | ||
run: | | ||
pushd rust/basic_ethereum | ||
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings | ||
popd | ||
- name: Test Basic Ethereum Darwin | ||
run: | | ||
pushd rust/basic_ethereum | ||
cargo test | ||
popd | ||
rust-basic-ethereum-linux: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Provision Linux | ||
run: bash .github/workflows/provision-linux.sh | ||
- name: Provision PocketIC Linux | ||
run: bash .github/workflows/provision-pocket-ic-server.sh | ||
- name: Build Basic Ethereum Linux | ||
run: | | ||
pushd rust/basic_ethereum | ||
cargo build --target wasm32-unknown-unknown --release | ||
popd | ||
- name: Lint Basic Ethereum Linux | ||
run: | | ||
pushd rust/basic_ethereum | ||
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings | ||
popd | ||
- name: Test Basic Ethereum Linux | ||
run: | | ||
pushd rust/basic_ethereum | ||
cargo test | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.