Skip to content

Commit

Permalink
Add Account Address Metadata to Axelarscan (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin852 authored Nov 22, 2023
1 parent cf86a1b commit fa22574
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
Binary file added public/images/axelar-governance-address.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/layouts/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export const getNavigation = (section) => {
{ title: "Wrap/unwrap tokens", href: "/resources/wrapped-tokens" },
{ title: "Using ipRPC (Free Public RPC)", href: "/resources/lava-iprpc" },
{ title: "Bug Bounty", href: "/bug-bounty" },
{ title: "Add Account to Axelarscan", href: "/resources/axelarscan-add" },
],
});

Expand Down
3 changes: 2 additions & 1 deletion src/pages/resources/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"metamask": "Set up Metamask",
"keplr": "Add Network to Keplr Wallet",
"wrapped-tokens": "Wrap/unwrap tokens",
"lava-iprpc": "Using ipRPC (Free Public RPC)"
"lava-iprpc": "Using ipRPC (Free Public RPC)",
"axelarscan": "Add Account to Axelarscan"
}
52 changes: 52 additions & 0 deletions src/pages/resources/axelarscan-add.mdx
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'
}
]
```



1 comment on commit fa22574

@vercel
Copy link

@vercel vercel bot commented on fa22574 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.