Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Ergo support #1427

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/rust-ergo-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
pull_request:
paths:
- rust/apps/ergo/**

name: ERGO Checks

jobs:
UnitTest:
name: Unit Test And Code coverage
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-12-01
override: true
components: rustfmt
target: x86_64-apple-darwin

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Run rust/apps/ergo
run: cd rust/apps/ergo && cargo +nightly-2023-12-01 llvm-cov --fail-under-functions 50 --fail-under-lines 50 --fail-under-regions 50
Binary file added images/coin/coinErg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"apps/bitcoin",
"apps/cardano",
"apps/cosmos",
"apps/ergo",
"apps/ethereum",
"apps/near",
"apps/solana",
Expand All @@ -27,6 +28,7 @@ members = [
"rust_c/src/cardano",
"rust_c/src/common",
"rust_c/src/cosmos",
"rust_c/src/ergo",
"rust_c/src/ethereum",
# "rust_c/src/kt_allocator",
"rust_c/src/near",
Expand Down Expand Up @@ -56,6 +58,7 @@ app_bitcoin = { path = "apps/bitcoin" }
app_cardano = { path = "apps/cardano" }
app_cosmos = { path = "apps/cosmos", default-features = false }
app_ethereum = { path = "apps/ethereum" }
app_ergo = { path = "apps/ergo"}
app_near = { path = "apps/near" }
app_solana = { path = "apps/solana" }
app_stellar = { path = "apps/stellar" }
Expand Down
3 changes: 3 additions & 0 deletions rust/apps/ergo/.rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
indent_style="Block"
reorder_imports=true
binop_separator="Front"
Loading