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

chore: Add scroll token list #269

Merged
merged 1 commit into from
Oct 18, 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
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(),
}),
};
Loading