Skip to content

Commit

Permalink
Fix: typos (#2559)
Browse files Browse the repository at this point in the history
* Fix: typos

* Fix: typos
  • Loading branch information
omahs authored Jun 12, 2023
1 parent 462bd91 commit c4c34b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
<!-- /TOC -->

# 1. Introduction
This project is initiated and facilitated by the Acala Foundation. Acala Foundation nurtures applications in the fields of decentralized finance protocols, particularly those that serve as open finance infrastructures such as stable currency and staking liquidity. The Acala Foundation is founded by [Laminar](https://laminar.one/) and [Polkawallet](https://polkawallet.io/) , participants and contributors to the Polkadot ecosystem. The Acala Foundation welcomes more industry participants as it progresses.
This project is initiated and facilitated by the Acala Foundation. Acala Foundation nurtures applications in the fields of decentralized finance protocols, particularly those that serve as open finance infrastructures such as stable currency and staking liquidity. The Acala Foundation is founded by [Laminar](https://laminar.one/) and [Polkawallet](https://polkawallet.io/), participants and contributors to the Polkadot ecosystem. The Acala Foundation welcomes more industry participants as it progresses.

# 2. Overview
The significance of cross-chain communication to the blockchain is like that of the internet to the intranet. Polkadot empowers a network of public, consortium and private blockchains, and enables true interoperability, economic and transactional scalability. A cross-chain stablecoin system will:
1. Create a sound, stable currency for low cost, borderless value transfer for all chains in the network
2. Enable commerical lending with predictable risk
2. Enable commercial lending with predictable risk
3. Serve as a building block for more open finance services

The Acala Dollar stablecoin (ticker: aUSD) is a multi-collateral-backed cryptocurrency, with value stable against US Dollar (aka. 1:1 aUSD to USD soft peg). It is completely decentralized, that it can be created using assets from blockchains connected to the Polkadot network including Ethereum and Bitcoin as collaterals, and can be used by any chains (or digital jurisdictions) within the Polkadot network and applications on those chains.
Expand Down Expand Up @@ -258,13 +258,13 @@ docker volume prune
# 10. Build For Release

For release artifacts, a more optimized build config is used.
This config takes around 2x to 3x longer to build, but produces an more optimized binary to run.
This config takes around 2x to 3x longer to build, but produces a more optimized binary to run.

```bash
make build-release
```

# 11. Setup Local EVM+ Test Enviroment
# 11. Setup Local EVM+ Test Environment

To set up a basic local network you need two things running locally, a node and the eth-rpc-adapter. Setup each service in their respective terminals and then you are free to use your favorite EVM tools locally! (ex: hardhat)

Expand Down Expand Up @@ -294,4 +294,4 @@ docker run -it --rm -p 9944:9944 -p 9933:9933 ghcr.io/acalanetwork/mandala-node:
npx @acala-network/eth-rpc-adapter -l 1
```

Note: If your usecase needs `eth_getLogs` rpc call, then you need to have a subquery instance to index the local chain. For this case, follow the tutorial found here: [Local Network Tutorial](https://evmdocs.acala.network/network/network-setup/local-development-network)
Note: If your use case needs `eth_getLogs` rpc call, then you need to have a subquery instance to index the local chain. For this case, follow the tutorial found here: [Local Network Tutorial](https://evmdocs.acala.network/network/network-setup/local-development-network)
6 changes: 3 additions & 3 deletions modules/evm-accounts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ pub mod module {

impl<T: Config> Pallet<T> {
#[cfg(any(feature = "runtime-benchmarks", feature = "std"))]
// Returns an Etherum public key derived from an Ethereum secret key.
// Returns an Ethereum public key derived from an Ethereum secret key.
pub fn eth_public(secret: &libsecp256k1::SecretKey) -> libsecp256k1::PublicKey {
libsecp256k1::PublicKey::from_secret_key(secret)
}

#[cfg(any(feature = "runtime-benchmarks", feature = "std"))]
// Returns an Etherum address derived from an Ethereum secret key.
// Returns an Ethereum address derived from an Ethereum secret key.
// Only for tests
pub fn eth_address(secret: &libsecp256k1::SecretKey) -> EvmAddress {
EvmAddress::from_slice(&keccak_256(&Self::eth_public(secret).serialize()[1..65])[12..])
Expand Down Expand Up @@ -266,7 +266,7 @@ fn recover_signer(sig: &[u8; 65], msg_hash: &[u8; 32]) -> Option<H160> {
.ok()
}

// Creates a an EvmAddress from an AccountId by appending the bytes "evm:" to
// Creates an EvmAddress from an AccountId by appending the bytes "evm:" to
// the account_id and hashing it.
fn account_to_default_evm_address(account_id: &impl Encode) -> EvmAddress {
let payload = (b"evm:", account_id);
Expand Down

0 comments on commit c4c34b3

Please sign in to comment.