Skip to content

Commit

Permalink
Merge pull request #123 from aura-nw/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
kienvc authored May 29, 2024
2 parents ec3faba + 34f3b6c commit 48efd43
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
27 changes: 22 additions & 5 deletions docs/integrate/exchange/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ An _account_ designates a pair of _public key_ `PubKey` and _private key_ `PrivK
- The `PrivKey` is used to generate `digital signatures` to prove that an `Address` associated with the `PrivKey` approved of a given `message`.

### Account validation
Aura native accounts have the following formats:
Since Aura support both Cosmos and EVM, native accounts have the following formats:
- Cosmos address: `aura<bech32encoding>`. So an address should look like this: `aura1cxa3axrm9qz22ctk0yppuh90x38afqc7enzckj`.
- EVM address: `0x address`. Example: `0xc1bb1e987b2804a5617679021e5caf344fd4831e`

Expand Down Expand Up @@ -47,7 +47,8 @@ curl -X GET "https://lcd.aura.network/cosmos/tx/v1beta1/txs?events=msg.sender='a
```

However, account history is a dangerous operation and may DOS the node. If it is not critical, you can refer to our guide here to use Aura centralized indexing service:
https://docs.aura.network/integrate/wallet/transaction-history
- Cosmos transactions: https://docs.aura.network/integrate/wallet/cosmos/integrate
- EVM transactions: https://docs.aura.network/integrate/wallet/evm/integrate

## 2. Key management

Expand Down Expand Up @@ -109,15 +110,31 @@ pagination:
```

## 4. Using HTTP endpoints:
You can directly use [LCD endpoints](http://localhost:3000/developer/endpoints) (light client daemon) provided by Aura nodes (public or your own full node) to integrate:

### Cosmos endpoints
You can directly use [LCD endpoints](../../developer/1.getting-started/3.networks-info/1.cosmos-info.md) (light client daemon) provided by Aura nodes (public or your own full node) to integrate:

```bash
curl -X GET "https://lcd.aura.network/cosmos/auth/v1beta1/accounts/aura1wgxdyjkul5hn0jx8y9rfpe8r4eyq5jkvsy0akl" -H "accept: application/json"
```

Detailed references of each API is specified in the LCD [Swagger](https://lcd.aura.network/) document.
Detailed references of each API is specified in the testnet LCD [Swagger](https://lcd.euphoria.aura.network) document.

### EVM endpoints
You can use [JSON RPC endpoints](../../developer/1.getting-started/3.networks-info/2.evm-info.md) to query EVM information:

```bash
curl -X POST https://jsonrpc.aura.network \
-H "Content-Type: application/json" \
--data \
'
{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x0ADfCCa4B2a1132F82488546AcA086D7E24EA324", "latest"],
"id": 1
}
'
```
## 5. Using Cosmjs

You can also do same procedures using [CosmJS](https://github.com/cosmos/cosmjs)
Expand Down
7 changes: 5 additions & 2 deletions docs/integrate/exchange/integrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ This section is dedicated for exchanges (CEX and DEX) to integrate with Aura Net

## Native $AURA currency

Aura mainnet is developed using [Cosmos SDK](https://v1.cosmos.network/sdk). So if you have listed popular coins like [ATOM](https://www.coingecko.com/en/coins/cosmos-hub), the process is very similar.
Aura mainnet is developed using [Cosmos SDK](https://v1.cosmos.network/sdk) with **EVM module**

The coin:

- Coin name is `Aura` and the symbol/ticker for is `AURA`.
- Aura support both Cosmos and EVM transactions
- Aura Network runs on Tendermint consensus, the block is finalized instantly.
- Currently, the expected block time is around 5 - 6 seconds.

Expand All @@ -32,12 +33,14 @@ There are currently 4 ways to integrate with Aura Network:
There are various denominations widely used in Aura Network.

- `AURA` or `aura` : indicates the AURA native currency on mainnet.
- `uAURA` or `uaura` : indicates the smallest unit of native currency on mainnet. 1 `aura` = 10^6 `uaura`.
- `uAURA` or `uaura` : indicates the base unit of native currency on mainnet. 1 `aura` = 10^6 `uaura`.
- `aAURA` or `aaura` : indicates EVM unit, which is **ONLY USE** by EVM transactions on mainnet. 1 `aura` = 10^18 `aaura`.

To avoid confusion with testnet currency, we have different denominations for the Euphoria testnet.

- `EAURA` or `eaura` : indicates the AURA native currency on Euphoria testnet.
- `uEAURA` or `ueaura` : indicates the smallest unit of native currency on Euphoria testnet. 1 `eaura` = 10^6 `ueaura`.
- `aEAURA` or `aeaura` : indicates EVM unit, which is **ONLY USE** by EVM transactions on Euphoria testnet. 1 `aeura` = 10^18 `aeaura`.


## Block explorer
Expand Down

0 comments on commit 48efd43

Please sign in to comment.