Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $WIF and BONK to trusted list #107

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions data/solana/trusted-tokenlist.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"name": "Brave-trusted Solana Token List",
"logoURI": "",
"keywords": [
"solana",
"spl"
],
"keywords": ["solana", "spl"],
"tags": {
"lp-token": {
"name": "lp-token",
Expand All @@ -20,16 +17,37 @@
"name": "Basic Attention Token (Portal)",
"decimals": 8,
"logoURI": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPeUFDgHRxs9xxEPVaL6kfGQvCon7jmAWKVUHuux1Tpz/logo.png",
"tags": [
"wrapped",
"wormhole"
],
"tags": ["wrapped", "wormhole"],
"extensions": {
"address": "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
"assetContract": "https://etherscan.io/address/0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
"bridgeContract": "https://etherscan.io/address/0x3ee18B2214AFF97000D974cf647E7C347E8fa585",
"coingeckoId": "basic-attention-token"
}
},
{
"chainId": 101,
"address": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"symbol": "BONK",
"name": "Bonk",
"decimals": 5,
"logoURI": "https://assets.coingecko.com/coins/images/28600/standard/bonk.jpg",
"tags": [],
"extensions": {
"coingeckoId": "bonk"
}
},
{
"chainId": 101,
"address": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
"symbol": "$WIF",
"name": "dogwifhat",
"decimals": 5,
"logoURI": "https://assets.coingecko.com/coins/images/33566/standard/dogwifhat.jpg",
"tags": [],
"extensions": {
"coingeckoId": "dogwifcoin"
}
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "token-lists",
"version": "1.19.0",
"version": "1.20.0",
"description": "Manages custom token lists for Brave Wallet",
"dependencies": {
"@metamask/contract-metadata": "git+https://[email protected]/MetaMask/contract-metadata.git",
Expand Down
8 changes: 7 additions & 1 deletion scripts/solana.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ async function generateTokensList() {
const tokenMap = await generator.generateTokenList();
const tokenMapWithTrustedList = {
...tokenMap,
tokens: [...tokenMap.tokens, ...trustedTokenList.tokens],
tokens: [
...tokenMap.tokens,
...trustedTokenList.tokens.filter(
(token) =>
tokenMap.tokens.findIndex((t) => t.address === token.address) === -1
),
],
};

fs.writeFileSync(
Expand Down