Skip to content

Commit

Permalink
chore: add scroll token list (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
chefjackson authored Oct 18, 2023
1 parent 89a7814 commit 26ffad8
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 1 deletion.
49 changes: 49 additions & 0 deletions lists/pancakeswap-scroll-default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "PancakeSwap Scroll Default",
"timestamp": "2023-10-18T06:20:04.942Z",
"version": {
"major": 0,
"minor": 0,
"patch": 4
},
"logoURI": "https://pancakeswap.finance/logo.png",
"keywords": [
"pancakeswap",
"default",
"scroll"
],
"tokens": [
{
"name": "Wrapped Ether",
"symbol": "WETH",
"address": "0x5300000000000000000000000000000000000004",
"chainId": 534352,
"decimals": 18,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/weth.png"
},
{
"name": "Wrapped BTC",
"symbol": "WBTC",
"address": "0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1",
"chainId": 534352,
"decimals": 8,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/wbtc.png"
},
{
"name": "Tether USD",
"symbol": "USDT",
"address": "0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df",
"chainId": 534352,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdt.png"
},
{
"name": "USD Coin",
"symbol": "USDC",
"address": "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",
"chainId": 534352,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdc.png"
}
]
}
6 changes: 6 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,10 @@ export const LISTS = {
logoURI: "https://pancakeswap.finance/logo.png",
sort: false,
},
"pancakeswap-scroll-default": {
name: "PancakeSwap Scroll Default",
keywords: ["pancakeswap", "default", "scroll"],
logoURI: "https://pancakeswap.finance/logo.png",
sort: false,
},
} as const;
34 changes: 34 additions & 0 deletions src/tokens/pancakeswap-scroll-default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"name": "Wrapped Ether",
"symbol": "WETH",
"address": "0x5300000000000000000000000000000000000004",
"chainId": 534352,
"decimals": 18,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/weth.png"
},
{
"name": "Wrapped BTC",
"symbol": "WBTC",
"address": "0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1",
"chainId": 534352,
"decimals": 8,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/wbtc.png"
},
{
"name": "Tether USD",
"symbol": "USDT",
"address": "0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df",
"chainId": 534352,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdt.png"
},
{
"name": "USD Coin",
"symbol": "USDC",
"address": "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",
"chainId": 534352,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdc.png"
}
]
32 changes: 31 additions & 1 deletion src/utils/publicClients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,33 @@ export const opbnb = {
blockCreated: 512881,
},
},
testnet: true,
} as const satisfies Chain;

export const scroll = {
id: 534352,
name: "Scroll Mainnet",
network: "scroll",
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: {
http: ["https://rpc.scroll.io"],
},
public: {
http: ["https://rpc.scroll.io"],
},
},
blockExplorers: {
default: {
name: "scrollScan",
url: "https://scrollscan.com",
},
},
contracts: {
multicall3: {
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
blockCreated: 14,
},
},
} as const satisfies Chain;

export const publicClients = {
Expand Down Expand Up @@ -104,4 +130,8 @@ export const publicClients = {
chain: opbnb,
transport: http(),
}),
[scroll.id]: createPublicClient({
chain: scroll,
transport: http(),
}),
};

0 comments on commit 26ffad8

Please sign in to comment.