-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Account Address Metadata to Axelarscan (#638)
- Loading branch information
1 parent
cf86a1b
commit fa22574
Showing
4 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Add Account to Axelarscan | ||
|
||
## Overview | ||
|
||
The ability to add metadata about important on-chain addresses allows users to have a simpler experience seeing on-chain activity for these addresses. | ||
|
||
Rather than seeing a raw address on Axelarscan, users will be able to see a customized photo and name for a given address: | ||
|
||
![Axelar Governance Address](/images/axelar-governance-address.png) | ||
|
||
## How to Add | ||
|
||
To add a new address to the list of tracked addresses in the [accounts directory](https://github.com/CoinHippo-Labs/axelarscan-ui/blob/main/data/accounts/index.js), send a [pull request](https://github.com/CoinHippo-Labs/axelarscan-ui/pulls) to the [Axelarscan-UI repository](https://github.com/CoinHippo-Labs/axelarscan-ui/tree/main). | ||
|
||
Include the following parameters: | ||
|
||
* Address: The address you are looking to add. | ||
* Name: The name you want to be displayed for your address. | ||
* Image: The image you want to appear alongisde the name. | ||
* Environment: Whether this address is for mainnet or testnet transactions. | ||
|
||
## Example | ||
|
||
The following example adds the Axelar Governance Address referenced in the image above to the accounts directory. | ||
|
||
``` | ||
export default [ | ||
{ | ||
address: 'axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj', | ||
name: 'Axelar Governance', | ||
image: '/logos/accounts/axelarnet.svg', | ||
} | ||
] | ||
``` | ||
|
||
No `environnment` was set, so this address will appear on both [mainnet](https://axelarscan.io/account/axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj) and [testnet](https://testnet.axelarscan.io/account/axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj). | ||
|
||
Add the following to include the address on mainnet only: | ||
|
||
``` | ||
export default [ | ||
{ | ||
address: 'axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj', | ||
name: 'Axelar Governance', | ||
image: '/logos/accounts/axelarnet.svg', | ||
environnment: 'mainnet' | ||
} | ||
] | ||
``` | ||
|
||
|
||
|
fa22574
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
axelar-docs – ./
axelar-docs-git-main-axelar-network.vercel.app
axelar-docs-axelar-network.vercel.app
docs.axelar.dev
axelar-docs-xi.vercel.app