change photon to aphoton (#476)

* change photon to aphoton

* fix test

* photon docs

* update doc

Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
This commit is contained in:
Justin Thompson
2020-08-31 12:40:53 -04:00
committed by GitHub
co-authored by Federico Kunze
parent a6e152bbb6
commit 4344dc10c7
15 changed files with 52 additions and 18 deletions
+1
View File
@@ -11,5 +11,6 @@ This repository contains reference documentation on the basic concepts of Etherm
1. [Accounts](./accounts.md)
2. [Gas and Fees](./gas.md)
3. [Lifecycle of a transaction](./transactions.md)
4. [Photon](./photon.md)
After reading the basics, head on to the [Core Reference](../core/README.md) for more advanced material.
+1 -1
View File
@@ -26,4 +26,4 @@ The `AnteHandler` is a special `handler` that is run for every transaction durin
## Next {hide}
Learn about the [encoding](./../core/encoding.md) formats used on Ethermint {hide}
Learn about the [Photon](./photon.md) token {hide}
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

+33
View File
@@ -0,0 +1,33 @@
<!--
order: 4
-->
# Photon
Learn about the Photon, Ethermint's staking token. {synopsis}
## Introduction
::: tip
The photon's initial distribution and supply is still TBD and will be announced in the future.
:::
The photon is the staking token used in Ethermint.
## Base Denomination
Ethermint uses [Atto](https://en.wikipedia.org/wiki/Atto-) Photon as the base denomination to maintain parity with Ethereum.
```
1 photon = 1×10⁻¹⁸ aphoton
```
This matches Ethereum denomination of:
```
1 ETH = 1x10⁻¹⁸ wei
```
## Next {hide}
Learn about the [encoding](./../core/encoding.md) formats used on Ethermint {hide}
+2 -2
View File
@@ -50,7 +50,7 @@ ethermintcli keys unsafe-export-eth-key mykey
Go back to the browser and select the `Private Key` option. Then paste the private key exported from
the `unsafe-export-eth-key` command.
Your account balance should show up as `1 PHOTON` and do transfers as usual.
Your account balance should show up as `1 APHOTON` and do transfers as usual.
::: tip
If it takes some time to load the balance of the account, change the network to `Main Ethereum
@@ -63,4 +63,4 @@ to see metamask logs, go to top right circle -> settings -> advanced -> download
## Known issues
Currently, it's not possible to add custom tokens (even for Photons) unless you deploy a token contract (eg: ERC20).
Currently, it's not possible to add custom tokens (even for APhotons) unless you deploy a token contract (eg: ERC20).
+3 -3
View File
@@ -48,7 +48,7 @@ You can edit the `$HOME/.ethermintd/config/app.toml` file in order to enable the
# The minimum gas prices a validator is willing to accept for processing a
# transaction. A transaction's fees must meet the minimum of any denomination
# specified in this config (e.g. 10photon).
# specified in this config (e.g. 10aphoton).
minimum-gas-prices = ""
```
@@ -62,7 +62,7 @@ ethermintcli keys add $KEY
# Add that key into the genesis.app_state.accounts array in the genesis file
# NOTE: this command lets you set the number of coins. Make sure this account has some coins
# with the genesis.app_state.staking.params.bond_denom denom, the default is staking
ethermintd add-genesis-account $(ethermintcli keys show validator -a) 1000000000stake,10000000000photon
ethermintd add-genesis-account $(ethermintcli keys show validator -a) 1000000000stake,10000000000aphoton
# Generate the transaction that creates your validator
ethermintd gentx --name $KEY
@@ -319,7 +319,7 @@ Once the ethermint daemon is up and running, you can request tokens to your addr
ethermintcli q bank balances $(ethermintcli keys show <mykey> -a)
# send a tx to request tokens to your account address
ethermintcli tx faucet request 100photon --from <mykey>
ethermintcli tx faucet request 100aphoton --from <mykey>
# query your balance after the request
ethermintcli q bank balances $(ethermintcli keys show <mykey> -a)
+2 -2
View File
@@ -33,7 +33,7 @@ To create your validator, just use the following command:
```bash
ethermintcli tx staking create-validator \
--amount=1000000photon \
--amount=1000000aphoton \
--pubkey=$(ethermintd tendermint show-validator) \
--moniker=<ethermint_validator> \
--chain-id=<chain_id> \
@@ -51,7 +51,7 @@ When specifying commission parameters, the `commission-max-change-rate` is used
:::
::: tip
`Min-self-delegation` is a stritly positive integer that represents the minimum amount of self-delegated voting power your validator must always have. A `min-self-delegation` of 1 means your validator will never have a self-delegation lower than `1000000photon`
`Min-self-delegation` is a stritly positive integer that represents the minimum amount of self-delegated voting power your validator must always have. A `min-self-delegation` of 1 means your validator will never have a self-delegation lower than `1000000aphoton`
:::
You can confirm that you are in the validator set by using a third party explorer.