diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index adf1db3..a4d5ba6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 781ad37..cd35aab 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: diff --git a/Cargo.lock b/Cargo.lock index d71c242..1b731a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -138,7 +138,7 @@ dependencies = [ [[package]] name = "anychain-bitcoin" -version = "0.1.7" +version = "0.1.8" dependencies = [ "anychain-core", "base58", @@ -173,7 +173,7 @@ dependencies = [ [[package]] name = "anychain-core" -version = "0.1.6" +version = "0.1.7" dependencies = [ "base58", "bech32", @@ -188,7 +188,7 @@ dependencies = [ [[package]] name = "anychain-ethereum" -version = "0.1.18" +version = "0.1.19" dependencies = [ "anychain-core", "ethabi", @@ -214,7 +214,7 @@ dependencies = [ [[package]] name = "anychain-filecoin" -version = "0.1.8" +version = "0.1.9" dependencies = [ "anychain-core", "anyhow", @@ -241,7 +241,7 @@ dependencies = [ [[package]] name = "anychain-kms" -version = "0.1.12" +version = "0.1.13" dependencies = [ "anyhow", "bs58 0.4.0", @@ -287,7 +287,7 @@ dependencies = [ [[package]] name = "anychain-polkadot" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anychain-core", "base58", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "anychain-ripple" -version = "0.1.9" +version = "0.1.10" dependencies = [ "anychain-core", "base58", @@ -310,7 +310,7 @@ dependencies = [ [[package]] name = "anychain-tron" -version = "0.2.7" +version = "0.2.8" dependencies = [ "anychain-core", "base58", diff --git a/Cargo.toml b/Cargo.toml index a072446..4fb4427 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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/*", ] diff --git a/README.md b/README.md index 2f49bff..030c5dd 100644 --- a/README.md +++ b/README.md @@ -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) @@ -67,6 +75,7 @@ public blockchains including Bitcoin, Ethereum, Tron, Filecoin, etc. - Sui - Aptos - Sei +- Ton ## License diff --git a/anychain-bitcoin/Cargo.toml b/crates/anychain-bitcoin/Cargo.toml similarity index 90% rename from anychain-bitcoin/Cargo.toml rename to crates/anychain-bitcoin/Cargo.toml index c29328f..e67f72e 100644 --- a/anychain-bitcoin/Cargo.toml +++ b/crates/anychain-bitcoin/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-bitcoin" description = "A Rust library for Bitcoin-focused cryptocurrency wallets, enabling seamless transactions on the Bitcoin blockchain" -version = "0.1.7" +version = "0.1.8" keywords = ["bitcoin", "blockchain", "cryptocurrencies", "wallet", "transactions"] # Workspace inherited keys @@ -12,7 +12,7 @@ license = { workspace = true } repository = { workspace = true } [dependencies] -anychain-core = { path = "../anychain-core", version = "0.1.6" } +anychain-core = { path = "../anychain-core", version = "0.1.7" } base58 = { workspace = true } bech32 = { workspace = true } serde = { workspace = true } diff --git a/anychain-bitcoin/README.md b/crates/anychain-bitcoin/README.md similarity index 98% rename from anychain-bitcoin/README.md rename to crates/anychain-bitcoin/README.md index e7f9a41..259c59c 100644 --- a/anychain-bitcoin/README.md +++ b/crates/anychain-bitcoin/README.md @@ -14,7 +14,7 @@ anychain-bitcoin is a Rust crate that provides a simple and efficient way to int To use anychain-bitcoin in your Rust project, add the following to your Cargo.toml file: ```toml [dependencies] -anychain-bitcoin = "0.1.4" +anychain-bitcoin = "0.1.8" ``` Then, import the crate in your code: diff --git a/anychain-bitcoin/src/address.rs b/crates/anychain-bitcoin/src/address.rs similarity index 100% rename from anychain-bitcoin/src/address.rs rename to crates/anychain-bitcoin/src/address.rs diff --git a/anychain-bitcoin/src/amount.rs b/crates/anychain-bitcoin/src/amount.rs similarity index 100% rename from anychain-bitcoin/src/amount.rs rename to crates/anychain-bitcoin/src/amount.rs diff --git a/anychain-bitcoin/src/format.rs b/crates/anychain-bitcoin/src/format.rs similarity index 100% rename from anychain-bitcoin/src/format.rs rename to crates/anychain-bitcoin/src/format.rs diff --git a/anychain-bitcoin/src/lib.rs b/crates/anychain-bitcoin/src/lib.rs similarity index 100% rename from anychain-bitcoin/src/lib.rs rename to crates/anychain-bitcoin/src/lib.rs diff --git a/anychain-bitcoin/src/network/bitcoin.rs b/crates/anychain-bitcoin/src/network/bitcoin.rs similarity index 100% rename from anychain-bitcoin/src/network/bitcoin.rs rename to crates/anychain-bitcoin/src/network/bitcoin.rs diff --git a/anychain-bitcoin/src/network/bitcoin_testnet.rs b/crates/anychain-bitcoin/src/network/bitcoin_testnet.rs similarity index 100% rename from anychain-bitcoin/src/network/bitcoin_testnet.rs rename to crates/anychain-bitcoin/src/network/bitcoin_testnet.rs diff --git a/anychain-bitcoin/src/network/bitcoincash.rs b/crates/anychain-bitcoin/src/network/bitcoincash.rs similarity index 100% rename from anychain-bitcoin/src/network/bitcoincash.rs rename to crates/anychain-bitcoin/src/network/bitcoincash.rs diff --git a/anychain-bitcoin/src/network/bitcoincash_testnet.rs b/crates/anychain-bitcoin/src/network/bitcoincash_testnet.rs similarity index 100% rename from anychain-bitcoin/src/network/bitcoincash_testnet.rs rename to crates/anychain-bitcoin/src/network/bitcoincash_testnet.rs diff --git a/anychain-bitcoin/src/network/dogecoin.rs b/crates/anychain-bitcoin/src/network/dogecoin.rs similarity index 100% rename from anychain-bitcoin/src/network/dogecoin.rs rename to crates/anychain-bitcoin/src/network/dogecoin.rs diff --git a/anychain-bitcoin/src/network/dogecoin_testnet.rs b/crates/anychain-bitcoin/src/network/dogecoin_testnet.rs similarity index 100% rename from anychain-bitcoin/src/network/dogecoin_testnet.rs rename to crates/anychain-bitcoin/src/network/dogecoin_testnet.rs diff --git a/anychain-bitcoin/src/network/litecoin.rs b/crates/anychain-bitcoin/src/network/litecoin.rs similarity index 100% rename from anychain-bitcoin/src/network/litecoin.rs rename to crates/anychain-bitcoin/src/network/litecoin.rs diff --git a/anychain-bitcoin/src/network/litecoin_testnet.rs b/crates/anychain-bitcoin/src/network/litecoin_testnet.rs similarity index 100% rename from anychain-bitcoin/src/network/litecoin_testnet.rs rename to crates/anychain-bitcoin/src/network/litecoin_testnet.rs diff --git a/anychain-bitcoin/src/network/mod.rs b/crates/anychain-bitcoin/src/network/mod.rs similarity index 100% rename from anychain-bitcoin/src/network/mod.rs rename to crates/anychain-bitcoin/src/network/mod.rs diff --git a/anychain-bitcoin/src/public_key.rs b/crates/anychain-bitcoin/src/public_key.rs similarity index 100% rename from anychain-bitcoin/src/public_key.rs rename to crates/anychain-bitcoin/src/public_key.rs diff --git a/anychain-bitcoin/src/transaction.rs b/crates/anychain-bitcoin/src/transaction.rs similarity index 100% rename from anychain-bitcoin/src/transaction.rs rename to crates/anychain-bitcoin/src/transaction.rs diff --git a/anychain-bitcoin/src/witness_program.rs b/crates/anychain-bitcoin/src/witness_program.rs similarity index 100% rename from anychain-bitcoin/src/witness_program.rs rename to crates/anychain-bitcoin/src/witness_program.rs diff --git a/anychain-core/Cargo.toml b/crates/anychain-core/Cargo.toml similarity index 97% rename from anychain-core/Cargo.toml rename to crates/anychain-core/Cargo.toml index aa54c95..b02d385 100644 --- a/anychain-core/Cargo.toml +++ b/crates/anychain-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anychain-core" -version = "0.1.6" +version = "0.1.7" description = "A core support for cryptocurrency wallets" categories = ["command-line-utilities", "cryptocurrencies"] keywords = ["bitcoin", "blockchain", "ethereum", "no_std"] diff --git a/anychain-core/README.md b/crates/anychain-core/README.md similarity index 98% rename from anychain-core/README.md rename to crates/anychain-core/README.md index 387a152..f254b3b 100644 --- a/anychain-core/README.md +++ b/crates/anychain-core/README.md @@ -14,7 +14,7 @@ anychain-core is a Rust crate that provides core functionality for working with To start using anychain-core, add it as a dependency in your Cargo.toml file: ```toml [dependencies] -anychain-core = "0.1.3" +anychain-core = "0.1.7" ``` Then, import the crate in your Rust code: diff --git a/anychain-core/src/address.rs b/crates/anychain-core/src/address.rs similarity index 100% rename from anychain-core/src/address.rs rename to crates/anychain-core/src/address.rs diff --git a/anychain-core/src/amount.rs b/crates/anychain-core/src/amount.rs similarity index 100% rename from anychain-core/src/amount.rs rename to crates/anychain-core/src/amount.rs diff --git a/anychain-core/src/error.rs b/crates/anychain-core/src/error.rs similarity index 100% rename from anychain-core/src/error.rs rename to crates/anychain-core/src/error.rs diff --git a/anychain-core/src/format.rs b/crates/anychain-core/src/format.rs similarity index 100% rename from anychain-core/src/format.rs rename to crates/anychain-core/src/format.rs diff --git a/anychain-core/src/lib.rs b/crates/anychain-core/src/lib.rs similarity index 100% rename from anychain-core/src/lib.rs rename to crates/anychain-core/src/lib.rs diff --git a/anychain-core/src/network.rs b/crates/anychain-core/src/network.rs similarity index 100% rename from anychain-core/src/network.rs rename to crates/anychain-core/src/network.rs diff --git a/anychain-core/src/no_std/io.rs b/crates/anychain-core/src/no_std/io.rs similarity index 100% rename from anychain-core/src/no_std/io.rs rename to crates/anychain-core/src/no_std/io.rs diff --git a/anychain-core/src/no_std/mod.rs b/crates/anychain-core/src/no_std/mod.rs similarity index 100% rename from anychain-core/src/no_std/mod.rs rename to crates/anychain-core/src/no_std/mod.rs diff --git a/anychain-core/src/public_key.rs b/crates/anychain-core/src/public_key.rs similarity index 100% rename from anychain-core/src/public_key.rs rename to crates/anychain-core/src/public_key.rs diff --git a/anychain-core/src/transaction.rs b/crates/anychain-core/src/transaction.rs similarity index 100% rename from anychain-core/src/transaction.rs rename to crates/anychain-core/src/transaction.rs diff --git a/anychain-core/src/utilities/crypto.rs b/crates/anychain-core/src/utilities/crypto.rs similarity index 100% rename from anychain-core/src/utilities/crypto.rs rename to crates/anychain-core/src/utilities/crypto.rs diff --git a/anychain-core/src/utilities/mod.rs b/crates/anychain-core/src/utilities/mod.rs similarity index 100% rename from anychain-core/src/utilities/mod.rs rename to crates/anychain-core/src/utilities/mod.rs diff --git a/anychain-ethereum/Cargo.toml b/crates/anychain-ethereum/Cargo.toml similarity index 89% rename from anychain-ethereum/Cargo.toml rename to crates/anychain-ethereum/Cargo.toml index 85a6673..3d78178 100644 --- a/anychain-ethereum/Cargo.toml +++ b/crates/anychain-ethereum/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-ethereum" description = "A Rust library for Ethereum-focused cryptocurrency wallets, enabling seamless transactions on the Ethereum blockchain" -version = "0.1.18" +version = "0.1.19" keywords = ["blockchain", "crypto", "cryptocurrencies", "ethereum", "wallet"] # Workspace inherited keys @@ -12,7 +12,7 @@ license = { workspace = true } repository = { workspace = true } [dependencies] -anychain-core = { path = "../anychain-core", version = "0.1.6" } +anychain-core = { path = "../anychain-core", version = "0.1.7" } regex = { workspace = true } rlp = { workspace = true } serde = { workspace = true } diff --git a/anychain-ethereum/README.md b/crates/anychain-ethereum/README.md similarity index 98% rename from anychain-ethereum/README.md rename to crates/anychain-ethereum/README.md index 5a2dd72..e49f17d 100644 --- a/anychain-ethereum/README.md +++ b/crates/anychain-ethereum/README.md @@ -18,7 +18,7 @@ This is the README for the anychain-ethereum crate, a Rust library that provides To use the anychain-ethereum crate in your Rust project, add the following to your Cargo.toml file: ```toml [dependencies] -anychain-ethereum = "0.1.4" +anychain-ethereum = "0.1.19" ``` ## Usage diff --git a/anychain-ethereum/src/address.rs b/crates/anychain-ethereum/src/address.rs similarity index 100% rename from anychain-ethereum/src/address.rs rename to crates/anychain-ethereum/src/address.rs diff --git a/anychain-ethereum/src/format.rs b/crates/anychain-ethereum/src/format.rs similarity index 100% rename from anychain-ethereum/src/format.rs rename to crates/anychain-ethereum/src/format.rs diff --git a/anychain-ethereum/src/lib.rs b/crates/anychain-ethereum/src/lib.rs similarity index 100% rename from anychain-ethereum/src/lib.rs rename to crates/anychain-ethereum/src/lib.rs diff --git a/anychain-ethereum/src/network/arbitrum.rs b/crates/anychain-ethereum/src/network/arbitrum.rs similarity index 100% rename from anychain-ethereum/src/network/arbitrum.rs rename to crates/anychain-ethereum/src/network/arbitrum.rs diff --git a/anychain-ethereum/src/network/arbitrum_goerli.rs b/crates/anychain-ethereum/src/network/arbitrum_goerli.rs similarity index 100% rename from anychain-ethereum/src/network/arbitrum_goerli.rs rename to crates/anychain-ethereum/src/network/arbitrum_goerli.rs diff --git a/anychain-ethereum/src/network/avalanche.rs b/crates/anychain-ethereum/src/network/avalanche.rs similarity index 100% rename from anychain-ethereum/src/network/avalanche.rs rename to crates/anychain-ethereum/src/network/avalanche.rs diff --git a/anychain-ethereum/src/network/avalanche_testnet.rs b/crates/anychain-ethereum/src/network/avalanche_testnet.rs similarity index 100% rename from anychain-ethereum/src/network/avalanche_testnet.rs rename to crates/anychain-ethereum/src/network/avalanche_testnet.rs diff --git a/anychain-ethereum/src/network/base.rs b/crates/anychain-ethereum/src/network/base.rs similarity index 100% rename from anychain-ethereum/src/network/base.rs rename to crates/anychain-ethereum/src/network/base.rs diff --git a/anychain-ethereum/src/network/base_goerli.rs b/crates/anychain-ethereum/src/network/base_goerli.rs similarity index 100% rename from anychain-ethereum/src/network/base_goerli.rs rename to crates/anychain-ethereum/src/network/base_goerli.rs diff --git a/anychain-ethereum/src/network/binance_smart_chain.rs b/crates/anychain-ethereum/src/network/binance_smart_chain.rs similarity index 100% rename from anychain-ethereum/src/network/binance_smart_chain.rs rename to crates/anychain-ethereum/src/network/binance_smart_chain.rs diff --git a/anychain-ethereum/src/network/binance_smart_chain_testnet.rs b/crates/anychain-ethereum/src/network/binance_smart_chain_testnet.rs similarity index 100% rename from anychain-ethereum/src/network/binance_smart_chain_testnet.rs rename to crates/anychain-ethereum/src/network/binance_smart_chain_testnet.rs diff --git a/anychain-ethereum/src/network/ethereum.rs b/crates/anychain-ethereum/src/network/ethereum.rs similarity index 100% rename from anychain-ethereum/src/network/ethereum.rs rename to crates/anychain-ethereum/src/network/ethereum.rs diff --git a/anychain-ethereum/src/network/ethereum_classic.rs b/crates/anychain-ethereum/src/network/ethereum_classic.rs similarity index 100% rename from anychain-ethereum/src/network/ethereum_classic.rs rename to crates/anychain-ethereum/src/network/ethereum_classic.rs diff --git a/anychain-ethereum/src/network/goerli.rs b/crates/anychain-ethereum/src/network/goerli.rs similarity index 100% rename from anychain-ethereum/src/network/goerli.rs rename to crates/anychain-ethereum/src/network/goerli.rs diff --git a/anychain-ethereum/src/network/huobi_eco.rs b/crates/anychain-ethereum/src/network/huobi_eco.rs similarity index 100% rename from anychain-ethereum/src/network/huobi_eco.rs rename to crates/anychain-ethereum/src/network/huobi_eco.rs diff --git a/anychain-ethereum/src/network/huobi_eco_testnet.rs b/crates/anychain-ethereum/src/network/huobi_eco_testnet.rs similarity index 100% rename from anychain-ethereum/src/network/huobi_eco_testnet.rs rename to crates/anychain-ethereum/src/network/huobi_eco_testnet.rs diff --git a/anychain-ethereum/src/network/kotti.rs b/crates/anychain-ethereum/src/network/kotti.rs similarity index 100% rename from anychain-ethereum/src/network/kotti.rs rename to crates/anychain-ethereum/src/network/kotti.rs diff --git a/anychain-ethereum/src/network/mod.rs b/crates/anychain-ethereum/src/network/mod.rs similarity index 100% rename from anychain-ethereum/src/network/mod.rs rename to crates/anychain-ethereum/src/network/mod.rs diff --git a/anychain-ethereum/src/network/mumbai.rs b/crates/anychain-ethereum/src/network/mumbai.rs similarity index 100% rename from anychain-ethereum/src/network/mumbai.rs rename to crates/anychain-ethereum/src/network/mumbai.rs diff --git a/anychain-ethereum/src/network/okex.rs b/crates/anychain-ethereum/src/network/okex.rs similarity index 100% rename from anychain-ethereum/src/network/okex.rs rename to crates/anychain-ethereum/src/network/okex.rs diff --git a/anychain-ethereum/src/network/okex_testnet.rs b/crates/anychain-ethereum/src/network/okex_testnet.rs similarity index 100% rename from anychain-ethereum/src/network/okex_testnet.rs rename to crates/anychain-ethereum/src/network/okex_testnet.rs diff --git a/anychain-ethereum/src/network/opbnb.rs b/crates/anychain-ethereum/src/network/opbnb.rs similarity index 100% rename from anychain-ethereum/src/network/opbnb.rs rename to crates/anychain-ethereum/src/network/opbnb.rs diff --git a/anychain-ethereum/src/network/opbnb_testnet.rs b/crates/anychain-ethereum/src/network/opbnb_testnet.rs similarity index 100% rename from anychain-ethereum/src/network/opbnb_testnet.rs rename to crates/anychain-ethereum/src/network/opbnb_testnet.rs diff --git a/anychain-ethereum/src/network/optimism.rs b/crates/anychain-ethereum/src/network/optimism.rs similarity index 100% rename from anychain-ethereum/src/network/optimism.rs rename to crates/anychain-ethereum/src/network/optimism.rs diff --git a/anychain-ethereum/src/network/optimism_goerli.rs b/crates/anychain-ethereum/src/network/optimism_goerli.rs similarity index 100% rename from anychain-ethereum/src/network/optimism_goerli.rs rename to crates/anychain-ethereum/src/network/optimism_goerli.rs diff --git a/anychain-ethereum/src/network/polygon.rs b/crates/anychain-ethereum/src/network/polygon.rs similarity index 100% rename from anychain-ethereum/src/network/polygon.rs rename to crates/anychain-ethereum/src/network/polygon.rs diff --git a/anychain-ethereum/src/network/sepolia.rs b/crates/anychain-ethereum/src/network/sepolia.rs similarity index 100% rename from anychain-ethereum/src/network/sepolia.rs rename to crates/anychain-ethereum/src/network/sepolia.rs diff --git a/anychain-ethereum/src/public_key.rs b/crates/anychain-ethereum/src/public_key.rs similarity index 100% rename from anychain-ethereum/src/public_key.rs rename to crates/anychain-ethereum/src/public_key.rs diff --git a/anychain-ethereum/src/transaction.rs b/crates/anychain-ethereum/src/transaction.rs similarity index 100% rename from anychain-ethereum/src/transaction.rs rename to crates/anychain-ethereum/src/transaction.rs diff --git a/anychain-ethereum/src/util.rs b/crates/anychain-ethereum/src/util.rs similarity index 100% rename from anychain-ethereum/src/util.rs rename to crates/anychain-ethereum/src/util.rs diff --git a/anychain-filecoin/Cargo.toml b/crates/anychain-filecoin/Cargo.toml similarity index 94% rename from anychain-filecoin/Cargo.toml rename to crates/anychain-filecoin/Cargo.toml index cc15279..1748063 100644 --- a/anychain-filecoin/Cargo.toml +++ b/crates/anychain-filecoin/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-filecoin" description = "A Rust library for Filecoin-focused cryptocurrency wallets, enabling seamless transactions on the Filecoin blockchain" -version = "0.1.8" +version = "0.1.9" keywords = ["filecoin", "blockchain", "cryptocurrencies", "wallet", "transactions"] # Workspace inherited keys @@ -14,7 +14,7 @@ repository = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anychain-core = { path = "../anychain-core", version = "0.1.6" } +anychain-core = { path = "../anychain-core", version = "0.1.7" } serde = { workspace = true } serde_json = { workspace = true } fvm_shared = { workspace = true } diff --git a/anychain-filecoin/README.md b/crates/anychain-filecoin/README.md similarity index 98% rename from anychain-filecoin/README.md rename to crates/anychain-filecoin/README.md index b0c08fb..f9ff2d5 100644 --- a/anychain-filecoin/README.md +++ b/crates/anychain-filecoin/README.md @@ -17,7 +17,7 @@ anychain-filecoin is a Rust library that provides a simple and unified interface Add the following to your Cargo.toml file: ```toml [dependencies] -anychain-filecoin = "0.1.3" +anychain-filecoin = "0.1.9" ``` Then run cargo build to download and compile the library. diff --git a/anychain-filecoin/src/address.rs b/crates/anychain-filecoin/src/address.rs similarity index 100% rename from anychain-filecoin/src/address.rs rename to crates/anychain-filecoin/src/address.rs diff --git a/anychain-filecoin/src/amount.rs b/crates/anychain-filecoin/src/amount.rs similarity index 100% rename from anychain-filecoin/src/amount.rs rename to crates/anychain-filecoin/src/amount.rs diff --git a/anychain-filecoin/src/format.rs b/crates/anychain-filecoin/src/format.rs similarity index 100% rename from anychain-filecoin/src/format.rs rename to crates/anychain-filecoin/src/format.rs diff --git a/anychain-filecoin/src/lib.rs b/crates/anychain-filecoin/src/lib.rs similarity index 100% rename from anychain-filecoin/src/lib.rs rename to crates/anychain-filecoin/src/lib.rs diff --git a/anychain-filecoin/src/public_key.rs b/crates/anychain-filecoin/src/public_key.rs similarity index 100% rename from anychain-filecoin/src/public_key.rs rename to crates/anychain-filecoin/src/public_key.rs diff --git a/anychain-filecoin/src/transaction.rs b/crates/anychain-filecoin/src/transaction.rs similarity index 100% rename from anychain-filecoin/src/transaction.rs rename to crates/anychain-filecoin/src/transaction.rs diff --git a/anychain-filecoin/src/utilities/crypto.rs b/crates/anychain-filecoin/src/utilities/crypto.rs similarity index 100% rename from anychain-filecoin/src/utilities/crypto.rs rename to crates/anychain-filecoin/src/utilities/crypto.rs diff --git a/anychain-filecoin/src/utilities/mod.rs b/crates/anychain-filecoin/src/utilities/mod.rs similarity index 100% rename from anychain-filecoin/src/utilities/mod.rs rename to crates/anychain-filecoin/src/utilities/mod.rs diff --git a/anychain-kms/.gitignore b/crates/anychain-kms/.gitignore similarity index 100% rename from anychain-kms/.gitignore rename to crates/anychain-kms/.gitignore diff --git a/anychain-kms/Cargo.lock b/crates/anychain-kms/Cargo.lock similarity index 100% rename from anychain-kms/Cargo.lock rename to crates/anychain-kms/Cargo.lock diff --git a/anychain-kms/Cargo.toml b/crates/anychain-kms/Cargo.toml similarity index 98% rename from anychain-kms/Cargo.toml rename to crates/anychain-kms/Cargo.toml index d4fc379..77eff3d 100644 --- a/anychain-kms/Cargo.toml +++ b/crates/anychain-kms/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-kms" description = "A Rust library providing Key Management Schema for AnyChain. Handles general security and signature algorithms." -version = "0.1.12" +version = "0.1.13" keywords = ["cryptography", "security", "signature", "algorithm"] # Workspace inherited keys diff --git a/anychain-kms/README.md b/crates/anychain-kms/README.md similarity index 100% rename from anychain-kms/README.md rename to crates/anychain-kms/README.md diff --git a/anychain-kms/src/bip32/child_number.rs b/crates/anychain-kms/src/bip32/child_number.rs similarity index 100% rename from anychain-kms/src/bip32/child_number.rs rename to crates/anychain-kms/src/bip32/child_number.rs diff --git a/anychain-kms/src/bip32/derivation_path.rs b/crates/anychain-kms/src/bip32/derivation_path.rs similarity index 100% rename from anychain-kms/src/bip32/derivation_path.rs rename to crates/anychain-kms/src/bip32/derivation_path.rs diff --git a/anychain-kms/src/bip32/error.rs b/crates/anychain-kms/src/bip32/error.rs similarity index 100% rename from anychain-kms/src/bip32/error.rs rename to crates/anychain-kms/src/bip32/error.rs diff --git a/anychain-kms/src/bip32/extended_key/attrs.rs b/crates/anychain-kms/src/bip32/extended_key/attrs.rs similarity index 100% rename from anychain-kms/src/bip32/extended_key/attrs.rs rename to crates/anychain-kms/src/bip32/extended_key/attrs.rs diff --git a/anychain-kms/src/bip32/extended_key/extended_private_key.rs b/crates/anychain-kms/src/bip32/extended_key/extended_private_key.rs similarity index 100% rename from anychain-kms/src/bip32/extended_key/extended_private_key.rs rename to crates/anychain-kms/src/bip32/extended_key/extended_private_key.rs diff --git a/anychain-kms/src/bip32/extended_key/extended_public_key.rs b/crates/anychain-kms/src/bip32/extended_key/extended_public_key.rs similarity index 100% rename from anychain-kms/src/bip32/extended_key/extended_public_key.rs rename to crates/anychain-kms/src/bip32/extended_key/extended_public_key.rs diff --git a/anychain-kms/src/bip32/extended_key/mod.rs b/crates/anychain-kms/src/bip32/extended_key/mod.rs similarity index 100% rename from anychain-kms/src/bip32/extended_key/mod.rs rename to crates/anychain-kms/src/bip32/extended_key/mod.rs diff --git a/anychain-kms/src/bip32/mod.rs b/crates/anychain-kms/src/bip32/mod.rs similarity index 100% rename from anychain-kms/src/bip32/mod.rs rename to crates/anychain-kms/src/bip32/mod.rs diff --git a/anychain-kms/src/bip32/prefix.rs b/crates/anychain-kms/src/bip32/prefix.rs similarity index 100% rename from anychain-kms/src/bip32/prefix.rs rename to crates/anychain-kms/src/bip32/prefix.rs diff --git a/anychain-kms/src/bip32/private_key.rs b/crates/anychain-kms/src/bip32/private_key.rs similarity index 100% rename from anychain-kms/src/bip32/private_key.rs rename to crates/anychain-kms/src/bip32/private_key.rs diff --git a/anychain-kms/src/bip32/public_key.rs b/crates/anychain-kms/src/bip32/public_key.rs similarity index 100% rename from anychain-kms/src/bip32/public_key.rs rename to crates/anychain-kms/src/bip32/public_key.rs diff --git a/anychain-kms/src/bip39/crypto.rs b/crates/anychain-kms/src/bip39/crypto.rs similarity index 100% rename from anychain-kms/src/bip39/crypto.rs rename to crates/anychain-kms/src/bip39/crypto.rs diff --git a/anychain-kms/src/bip39/error.rs b/crates/anychain-kms/src/bip39/error.rs similarity index 100% rename from anychain-kms/src/bip39/error.rs rename to crates/anychain-kms/src/bip39/error.rs diff --git a/anychain-kms/src/bip39/langs/chinese_simplified.txt b/crates/anychain-kms/src/bip39/langs/chinese_simplified.txt similarity index 100% rename from anychain-kms/src/bip39/langs/chinese_simplified.txt rename to crates/anychain-kms/src/bip39/langs/chinese_simplified.txt diff --git a/anychain-kms/src/bip39/langs/chinese_traditional.txt b/crates/anychain-kms/src/bip39/langs/chinese_traditional.txt similarity index 100% rename from anychain-kms/src/bip39/langs/chinese_traditional.txt rename to crates/anychain-kms/src/bip39/langs/chinese_traditional.txt diff --git a/anychain-kms/src/bip39/langs/english.txt b/crates/anychain-kms/src/bip39/langs/english.txt similarity index 100% rename from anychain-kms/src/bip39/langs/english.txt rename to crates/anychain-kms/src/bip39/langs/english.txt diff --git a/anychain-kms/src/bip39/langs/french.txt b/crates/anychain-kms/src/bip39/langs/french.txt similarity index 100% rename from anychain-kms/src/bip39/langs/french.txt rename to crates/anychain-kms/src/bip39/langs/french.txt diff --git a/anychain-kms/src/bip39/langs/italian.txt b/crates/anychain-kms/src/bip39/langs/italian.txt similarity index 100% rename from anychain-kms/src/bip39/langs/italian.txt rename to crates/anychain-kms/src/bip39/langs/italian.txt diff --git a/anychain-kms/src/bip39/langs/japanese.txt b/crates/anychain-kms/src/bip39/langs/japanese.txt similarity index 100% rename from anychain-kms/src/bip39/langs/japanese.txt rename to crates/anychain-kms/src/bip39/langs/japanese.txt diff --git a/anychain-kms/src/bip39/langs/korean.txt b/crates/anychain-kms/src/bip39/langs/korean.txt similarity index 100% rename from anychain-kms/src/bip39/langs/korean.txt rename to crates/anychain-kms/src/bip39/langs/korean.txt diff --git a/anychain-kms/src/bip39/langs/spanish.txt b/crates/anychain-kms/src/bip39/langs/spanish.txt similarity index 100% rename from anychain-kms/src/bip39/langs/spanish.txt rename to crates/anychain-kms/src/bip39/langs/spanish.txt diff --git a/anychain-kms/src/bip39/language.rs b/crates/anychain-kms/src/bip39/language.rs similarity index 100% rename from anychain-kms/src/bip39/language.rs rename to crates/anychain-kms/src/bip39/language.rs diff --git a/anychain-kms/src/bip39/mnemonic.rs b/crates/anychain-kms/src/bip39/mnemonic.rs similarity index 100% rename from anychain-kms/src/bip39/mnemonic.rs rename to crates/anychain-kms/src/bip39/mnemonic.rs diff --git a/anychain-kms/src/bip39/mnemonic_type.rs b/crates/anychain-kms/src/bip39/mnemonic_type.rs similarity index 100% rename from anychain-kms/src/bip39/mnemonic_type.rs rename to crates/anychain-kms/src/bip39/mnemonic_type.rs diff --git a/anychain-kms/src/bip39/mod.rs b/crates/anychain-kms/src/bip39/mod.rs similarity index 100% rename from anychain-kms/src/bip39/mod.rs rename to crates/anychain-kms/src/bip39/mod.rs diff --git a/anychain-kms/src/bip39/seed.rs b/crates/anychain-kms/src/bip39/seed.rs similarity index 100% rename from anychain-kms/src/bip39/seed.rs rename to crates/anychain-kms/src/bip39/seed.rs diff --git a/anychain-kms/src/bip39/util.rs b/crates/anychain-kms/src/bip39/util.rs similarity index 100% rename from anychain-kms/src/bip39/util.rs rename to crates/anychain-kms/src/bip39/util.rs diff --git a/anychain-kms/src/crypto.rs b/crates/anychain-kms/src/crypto.rs similarity index 100% rename from anychain-kms/src/crypto.rs rename to crates/anychain-kms/src/crypto.rs diff --git a/anychain-kms/src/error.rs b/crates/anychain-kms/src/error.rs similarity index 100% rename from anychain-kms/src/error.rs rename to crates/anychain-kms/src/error.rs diff --git a/anychain-kms/src/lib.rs b/crates/anychain-kms/src/lib.rs similarity index 100% rename from anychain-kms/src/lib.rs rename to crates/anychain-kms/src/lib.rs diff --git a/anychain-neo/Cargo.toml b/crates/anychain-neo/Cargo.toml similarity index 100% rename from anychain-neo/Cargo.toml rename to crates/anychain-neo/Cargo.toml diff --git a/anychain-neo/src/address.rs b/crates/anychain-neo/src/address.rs similarity index 100% rename from anychain-neo/src/address.rs rename to crates/anychain-neo/src/address.rs diff --git a/anychain-neo/src/format.rs b/crates/anychain-neo/src/format.rs similarity index 100% rename from anychain-neo/src/format.rs rename to crates/anychain-neo/src/format.rs diff --git a/anychain-neo/src/lib.rs b/crates/anychain-neo/src/lib.rs similarity index 100% rename from anychain-neo/src/lib.rs rename to crates/anychain-neo/src/lib.rs diff --git a/anychain-neo/src/public_key.rs b/crates/anychain-neo/src/public_key.rs similarity index 100% rename from anychain-neo/src/public_key.rs rename to crates/anychain-neo/src/public_key.rs diff --git a/anychain-neo/src/transaction.rs b/crates/anychain-neo/src/transaction.rs similarity index 100% rename from anychain-neo/src/transaction.rs rename to crates/anychain-neo/src/transaction.rs diff --git a/anychain-polkadot/Cargo.toml b/crates/anychain-polkadot/Cargo.toml similarity index 89% rename from anychain-polkadot/Cargo.toml rename to crates/anychain-polkadot/Cargo.toml index 807a45d..b538bcc 100644 --- a/anychain-polkadot/Cargo.toml +++ b/crates/anychain-polkadot/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-polkadot" description = "A Rust library for Polkadot cryptocurrency wallets, enabling seamless transactions on the Polkadot blockchain" -version = "0.1.3" +version = "0.1.4" keywords = ["polkadot", "blockchain", "cryptocurrencies", "wallet", "transactions"] # Workspace inherited keys @@ -12,7 +12,7 @@ license = { workspace = true } repository = { workspace = true } [dependencies] -anychain-core = { path = "../anychain-core", version = "0.1.6" } +anychain-core = { path = "../anychain-core", version = "0.1.7" } sp-core = "30.0.0" base58 = { workspace = true } parity-scale-codec = { version = "3.6.5" } diff --git a/anychain-polkadot/README.md b/crates/anychain-polkadot/README.md similarity index 97% rename from anychain-polkadot/README.md rename to crates/anychain-polkadot/README.md index 53f63be..bcd6378 100644 --- a/anychain-polkadot/README.md +++ b/crates/anychain-polkadot/README.md @@ -14,7 +14,7 @@ Add the following to your `Cargo.toml` file: ```toml [dependencies] -anychain-polkadot = "0.1.1" +anychain-polkadot = "0.1.4" ``` Then run `cargo build` to download and compile the library. diff --git a/anychain-polkadot/src/address.rs b/crates/anychain-polkadot/src/address.rs similarity index 100% rename from anychain-polkadot/src/address.rs rename to crates/anychain-polkadot/src/address.rs diff --git a/anychain-polkadot/src/format.rs b/crates/anychain-polkadot/src/format.rs similarity index 100% rename from anychain-polkadot/src/format.rs rename to crates/anychain-polkadot/src/format.rs diff --git a/anychain-polkadot/src/lib.rs b/crates/anychain-polkadot/src/lib.rs similarity index 100% rename from anychain-polkadot/src/lib.rs rename to crates/anychain-polkadot/src/lib.rs diff --git a/anychain-polkadot/src/network/kusama.rs b/crates/anychain-polkadot/src/network/kusama.rs similarity index 100% rename from anychain-polkadot/src/network/kusama.rs rename to crates/anychain-polkadot/src/network/kusama.rs diff --git a/anychain-polkadot/src/network/mod.rs b/crates/anychain-polkadot/src/network/mod.rs similarity index 100% rename from anychain-polkadot/src/network/mod.rs rename to crates/anychain-polkadot/src/network/mod.rs diff --git a/anychain-polkadot/src/network/polkadot.rs b/crates/anychain-polkadot/src/network/polkadot.rs similarity index 100% rename from anychain-polkadot/src/network/polkadot.rs rename to crates/anychain-polkadot/src/network/polkadot.rs diff --git a/anychain-polkadot/src/network/rococo.rs b/crates/anychain-polkadot/src/network/rococo.rs similarity index 100% rename from anychain-polkadot/src/network/rococo.rs rename to crates/anychain-polkadot/src/network/rococo.rs diff --git a/anychain-polkadot/src/network/westend.rs b/crates/anychain-polkadot/src/network/westend.rs similarity index 100% rename from anychain-polkadot/src/network/westend.rs rename to crates/anychain-polkadot/src/network/westend.rs diff --git a/anychain-polkadot/src/public_key.rs b/crates/anychain-polkadot/src/public_key.rs similarity index 100% rename from anychain-polkadot/src/public_key.rs rename to crates/anychain-polkadot/src/public_key.rs diff --git a/anychain-polkadot/src/transaction.rs b/crates/anychain-polkadot/src/transaction.rs similarity index 100% rename from anychain-polkadot/src/transaction.rs rename to crates/anychain-polkadot/src/transaction.rs diff --git a/anychain-polkadot/src/utilities/crypto.rs b/crates/anychain-polkadot/src/utilities/crypto.rs similarity index 100% rename from anychain-polkadot/src/utilities/crypto.rs rename to crates/anychain-polkadot/src/utilities/crypto.rs diff --git a/anychain-polkadot/src/utilities/mod.rs b/crates/anychain-polkadot/src/utilities/mod.rs similarity index 100% rename from anychain-polkadot/src/utilities/mod.rs rename to crates/anychain-polkadot/src/utilities/mod.rs diff --git a/anychain-ripple/Cargo.toml b/crates/anychain-ripple/Cargo.toml similarity index 89% rename from anychain-ripple/Cargo.toml rename to crates/anychain-ripple/Cargo.toml index d2dd2ed..ab9f28a 100644 --- a/anychain-ripple/Cargo.toml +++ b/crates/anychain-ripple/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-ripple" description = "A Rust library for interacting with the Ripple blockchain. It provides core functionalities such as transaction signing and serialization, address generation, and network communication." -version = "0.1.9" +version = "0.1.10" keywords = ["ripple", "blockchain", "cryptocurrencies", "wallet", "transactions"] # Workspace inherited keys @@ -14,6 +14,6 @@ repository = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anychain-core = { path = "../anychain-core", version = "0.1.6" } +anychain-core = { path = "../anychain-core", version = "0.1.7" } base58 = { workspace = true } libsecp256k1 = { workspace = true } \ No newline at end of file diff --git a/anychain-ripple/README.md b/crates/anychain-ripple/README.md similarity index 97% rename from anychain-ripple/README.md rename to crates/anychain-ripple/README.md index f91c717..d79a70f 100644 --- a/anychain-ripple/README.md +++ b/crates/anychain-ripple/README.md @@ -15,7 +15,7 @@ Features Add the following to your Cargo.toml file: ```toml [dependencies] -anychain-ripple = "0.1.5" +anychain-ripple = "0.1.10" ``` Then run cargo build to download and compile the anychain-ripple library. diff --git a/anychain-ripple/src/address.rs b/crates/anychain-ripple/src/address.rs similarity index 100% rename from anychain-ripple/src/address.rs rename to crates/anychain-ripple/src/address.rs diff --git a/anychain-ripple/src/format.rs b/crates/anychain-ripple/src/format.rs similarity index 100% rename from anychain-ripple/src/format.rs rename to crates/anychain-ripple/src/format.rs diff --git a/anychain-ripple/src/lib.rs b/crates/anychain-ripple/src/lib.rs similarity index 100% rename from anychain-ripple/src/lib.rs rename to crates/anychain-ripple/src/lib.rs diff --git a/anychain-ripple/src/public_key.rs b/crates/anychain-ripple/src/public_key.rs similarity index 100% rename from anychain-ripple/src/public_key.rs rename to crates/anychain-ripple/src/public_key.rs diff --git a/anychain-ripple/src/transaction.rs b/crates/anychain-ripple/src/transaction.rs similarity index 100% rename from anychain-ripple/src/transaction.rs rename to crates/anychain-ripple/src/transaction.rs diff --git a/anychain-tron/Cargo.toml b/crates/anychain-tron/Cargo.toml similarity index 91% rename from anychain-tron/Cargo.toml rename to crates/anychain-tron/Cargo.toml index 428fbf8..46994ae 100644 --- a/anychain-tron/Cargo.toml +++ b/crates/anychain-tron/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-tron" description = "A Rust library for Tron-focused cryptocurrency wallets, enabling seamless transactions on the Tron blockchain" -version = "0.2.7" +version = "0.2.8" keywords = ["tron", "blockchain", "cryptocurrencies", "wallet", "transactions"] # Workspace inherited keys @@ -14,7 +14,7 @@ repository = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anychain-core = { path = "../anychain-core", version = "0.1.6" } +anychain-core = { path = "../anychain-core", version = "0.1.7" } serde = { workspace = true } sha3 = { workspace = true } sha2 = { workspace = true } diff --git a/anychain-tron/README.md b/crates/anychain-tron/README.md similarity index 98% rename from anychain-tron/README.md rename to crates/anychain-tron/README.md index 2368f86..a338712 100644 --- a/anychain-tron/README.md +++ b/crates/anychain-tron/README.md @@ -16,7 +16,7 @@ anychain-tron is a Rust library that provides a simple and unified interface for Add the following to your Cargo.toml file: ```toml [dependencies] -anychain-tron = "0.2.2" +anychain-tron = "0.2.8" ``` Then, run cargo build to download and compile the library. diff --git a/anychain-tron/src/abi.rs b/crates/anychain-tron/src/abi.rs similarity index 100% rename from anychain-tron/src/abi.rs rename to crates/anychain-tron/src/abi.rs diff --git a/anychain-tron/src/address.rs b/crates/anychain-tron/src/address.rs similarity index 100% rename from anychain-tron/src/address.rs rename to crates/anychain-tron/src/address.rs diff --git a/anychain-tron/src/format.rs b/crates/anychain-tron/src/format.rs similarity index 100% rename from anychain-tron/src/format.rs rename to crates/anychain-tron/src/format.rs diff --git a/anychain-tron/src/lib.rs b/crates/anychain-tron/src/lib.rs similarity index 100% rename from anychain-tron/src/lib.rs rename to crates/anychain-tron/src/lib.rs diff --git a/anychain-tron/src/protocol/Discover.rs b/crates/anychain-tron/src/protocol/Discover.rs similarity index 100% rename from anychain-tron/src/protocol/Discover.rs rename to crates/anychain-tron/src/protocol/Discover.rs diff --git a/anychain-tron/src/protocol/Tron.rs b/crates/anychain-tron/src/protocol/Tron.rs similarity index 100% rename from anychain-tron/src/protocol/Tron.rs rename to crates/anychain-tron/src/protocol/Tron.rs diff --git a/anychain-tron/src/protocol/account_contract.rs b/crates/anychain-tron/src/protocol/account_contract.rs similarity index 100% rename from anychain-tron/src/protocol/account_contract.rs rename to crates/anychain-tron/src/protocol/account_contract.rs diff --git a/anychain-tron/src/protocol/asset_issue_contract.rs b/crates/anychain-tron/src/protocol/asset_issue_contract.rs similarity index 100% rename from anychain-tron/src/protocol/asset_issue_contract.rs rename to crates/anychain-tron/src/protocol/asset_issue_contract.rs diff --git a/anychain-tron/src/protocol/balance_contract.rs b/crates/anychain-tron/src/protocol/balance_contract.rs similarity index 100% rename from anychain-tron/src/protocol/balance_contract.rs rename to crates/anychain-tron/src/protocol/balance_contract.rs diff --git a/anychain-tron/src/protocol/common.rs b/crates/anychain-tron/src/protocol/common.rs similarity index 100% rename from anychain-tron/src/protocol/common.rs rename to crates/anychain-tron/src/protocol/common.rs diff --git a/anychain-tron/src/protocol/exchange_contract.rs b/crates/anychain-tron/src/protocol/exchange_contract.rs similarity index 100% rename from anychain-tron/src/protocol/exchange_contract.rs rename to crates/anychain-tron/src/protocol/exchange_contract.rs diff --git a/anychain-tron/src/protocol/market_contract.rs b/crates/anychain-tron/src/protocol/market_contract.rs similarity index 100% rename from anychain-tron/src/protocol/market_contract.rs rename to crates/anychain-tron/src/protocol/market_contract.rs diff --git a/anychain-tron/src/protocol/mod.rs b/crates/anychain-tron/src/protocol/mod.rs similarity index 100% rename from anychain-tron/src/protocol/mod.rs rename to crates/anychain-tron/src/protocol/mod.rs diff --git a/anychain-tron/src/protocol/proposal_contract.rs b/crates/anychain-tron/src/protocol/proposal_contract.rs similarity index 100% rename from anychain-tron/src/protocol/proposal_contract.rs rename to crates/anychain-tron/src/protocol/proposal_contract.rs diff --git a/anychain-tron/src/protocol/shield_contract.rs b/crates/anychain-tron/src/protocol/shield_contract.rs similarity index 100% rename from anychain-tron/src/protocol/shield_contract.rs rename to crates/anychain-tron/src/protocol/shield_contract.rs diff --git a/anychain-tron/src/protocol/smart_contract.rs b/crates/anychain-tron/src/protocol/smart_contract.rs similarity index 100% rename from anychain-tron/src/protocol/smart_contract.rs rename to crates/anychain-tron/src/protocol/smart_contract.rs diff --git a/anychain-tron/src/protocol/storage_contract.rs b/crates/anychain-tron/src/protocol/storage_contract.rs similarity index 100% rename from anychain-tron/src/protocol/storage_contract.rs rename to crates/anychain-tron/src/protocol/storage_contract.rs diff --git a/anychain-tron/src/protocol/vote_asset_contract.rs b/crates/anychain-tron/src/protocol/vote_asset_contract.rs similarity index 100% rename from anychain-tron/src/protocol/vote_asset_contract.rs rename to crates/anychain-tron/src/protocol/vote_asset_contract.rs diff --git a/anychain-tron/src/protocol/witness_contract.rs b/crates/anychain-tron/src/protocol/witness_contract.rs similarity index 100% rename from anychain-tron/src/protocol/witness_contract.rs rename to crates/anychain-tron/src/protocol/witness_contract.rs diff --git a/anychain-tron/src/public_key.rs b/crates/anychain-tron/src/public_key.rs similarity index 100% rename from anychain-tron/src/public_key.rs rename to crates/anychain-tron/src/public_key.rs diff --git a/anychain-tron/src/transaction.rs b/crates/anychain-tron/src/transaction.rs similarity index 100% rename from anychain-tron/src/transaction.rs rename to crates/anychain-tron/src/transaction.rs diff --git a/anychain-tron/src/trx.rs b/crates/anychain-tron/src/trx.rs similarity index 100% rename from anychain-tron/src/trx.rs rename to crates/anychain-tron/src/trx.rs diff --git a/examples/anychain-bitcoin-cli/Cargo.toml b/examples/anychain-bitcoin-cli/Cargo.toml index a8fe278..17d27dd 100644 --- a/examples/anychain-bitcoin-cli/Cargo.toml +++ b/examples/anychain-bitcoin-cli/Cargo.toml @@ -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 } \ No newline at end of file diff --git a/examples/anychain-bitcoin-client/Cargo.toml b/examples/anychain-bitcoin-client/Cargo.toml index 21f1e5f..f609bd8 100644 --- a/examples/anychain-bitcoin-client/Cargo.toml +++ b/examples/anychain-bitcoin-client/Cargo.toml @@ -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 } \ No newline at end of file diff --git a/examples/anychain-ethereum-cli/Cargo.toml b/examples/anychain-ethereum-cli/Cargo.toml index 03e5e7e..e40da44 100644 --- a/examples/anychain-ethereum-cli/Cargo.toml +++ b/examples/anychain-ethereum-cli/Cargo.toml @@ -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 } diff --git a/examples/anychain-neo-cli/Cargo.toml b/examples/anychain-neo-cli/Cargo.toml index f0518cf..4240875 100644 --- a/examples/anychain-neo-cli/Cargo.toml +++ b/examples/anychain-neo-cli/Cargo.toml @@ -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 } diff --git a/scripts/cargo_build_check.sh b/scripts/cargo_build_check.sh deleted file mode 100755 index 59d4fb6..0000000 --- a/scripts/cargo_build_check.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# check fmt, clippy, testcase - -set -e -cd .. - -cargo fmt -- --check -cargo clippy --workspace --all-targets --tests -- -D warnings -cargo test --all-features - -exit 0