Skip to content

Commit

Permalink
refactor: anychain crates
Browse files Browse the repository at this point in the history
  • Loading branch information
loki-cmu committed Nov 3, 2024
1 parent c9564a1 commit 4bcd699
Show file tree
Hide file tree
Showing 168 changed files with 31 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get the release version from the tag
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Cache Cargo dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand Down
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[workspace]
resolver = "2"
members = [
"anychain-core",
"anychain-bitcoin",
"anychain-ethereum",
"anychain-tron",
"anychain-filecoin",
"anychain-polkadot",
"anychain-ripple",
"anychain-neo",
"anychain-kms",
"crates/anychain-core",
"crates/anychain-bitcoin",
"crates/anychain-ethereum",
"crates/anychain-tron",
"crates/anychain-filecoin",
"crates/anychain-polkadot",
"crates/anychain-ripple",
"crates/anychain-neo",
"crates/anychain-kms",
"examples/*",
]

Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ public blockchains including Bitcoin, Ethereum, Tron, Filecoin, etc.
* Build signed transactions for different blockchains by merging the raw transaction and the corresponding signature
taken from the user of this library

### Design Doc
### Architecture & Design Doc


```mermaid
flowchart LR
A[iOS/Android App] --> |Link library| B[anychain-ffi-rust];
B --> |Wrap| C[anychain-bitcoin C library];
C --> |Implement| D[anychain-core];
```

[Design Principles for AnyChain Wallet SDK](docs/design-en.md)

Expand Down Expand Up @@ -67,6 +75,7 @@ public blockchains including Bitcoin, Ethereum, Tron, Filecoin, etc.
- Sui
- Aptos
- Sei
- Ton

## License

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions examples/anychain-bitcoin-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anychain-core = { path = "../../anychain-core" }
anychain-bitcoin = { path = "../../anychain-bitcoin" }
anychain-core = { path = "../../crates/anychain-core" }
anychain-bitcoin = { path = "../../crates/anychain-bitcoin" }
clap = { workspace = true }
serde_json = { workspace = true }
libsecp256k1 = { workspace = true }
4 changes: 2 additions & 2 deletions examples/anychain-bitcoin-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anychain-core = { path = "../../anychain-core" }
anychain-bitcoin = { path = "../../anychain-bitcoin" }
anychain-core = { path = "../../crates/anychain-core" }
anychain-bitcoin = { path = "../../crates/anychain-bitcoin" }
libsecp256k1 = { workspace = true }
4 changes: 2 additions & 2 deletions examples/anychain-ethereum-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anychain-core = { path = "../../anychain-core" }
anychain-ethereum = { path = "../../anychain-ethereum" }
anychain-core = { path = "../../crates/anychain-core" }
anychain-ethereum = { path = "../../crates/anychain-ethereum" }
clap = { workspace = true }
rlp = { workspace = true }
primitive-types = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions examples/anychain-neo-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anychain-core = { path = "../../anychain-core" }
anychain-neo = { path = "../../anychain-neo" }
anychain-core = { path = "../../crates/anychain-core" }
anychain-neo = { path = "../../crates/anychain-neo" }
clap = { workspace = true }
12 changes: 0 additions & 12 deletions scripts/cargo_build_check.sh

This file was deleted.

0 comments on commit 4bcd699

Please sign in to comment.