-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: labeling whitelist address with verify character
- Loading branch information
tiendn
committed
Sep 6, 2023
1 parent
fdeb764
commit cb446fe
Showing
5 changed files
with
47 additions
and
16 deletions.
There are no files selected for viewing
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,8 @@ | ||
{ | ||
"0x661276b8c832da06c709dbc2b0c063e2f1d25ef9": "Tiki Account", | ||
"0x82121cdf2f8c14c809eb2fd2d0a1ec246bbbac59": "Tiki Deposit Account", | ||
"0x6637d8275dc58983cb3a2fa64b705ec11f6ec670": "WASA: Wrap Astra", | ||
"0x5fc4435aca131f1f541d2fc67dc3a6a20d10a99d": "Tether: USDT Stablecoin", | ||
"0x7dad3d655ea4be30e1fd95addbdeeddcdae0c2c6": "SolarswapRouter", | ||
"0x647db4fcf734c387b0ce8500314732f94afe5211": "Tiki Reward" | ||
} |
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 @@ | ||
[] |
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,10 @@ | ||
import { isMainnet } from './helper' | ||
|
||
const addressLabelArr = isMainnet ? require('../data/address/mainnet.json') : require('../data/address/testnet.json') | ||
|
||
export const getAddressLabel = (label, address: string) => { | ||
if (label && label.trim() !== '') return label + ' ✅' | ||
if (!address) return '' | ||
if (addressLabelArr[address.toLowerCase()]) return addressLabelArr[address.toLowerCase()] + ' ✅' | ||
return '' | ||
} |
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