brahma-trade-widget
Version:
A React component for trade automation within the Brahma ecosystem.
63 lines (54 loc) • 1.71 kB
text/typescript
import { arbitrum, base, Chain } from "viem/chains"
export const swell = {
id: 1923,
name: "Swell",
// iconUrl: 'https://brahma-static.s3.us-east-2.amazonaws.com/Asset/Blast.svg',
testnet: false,
nativeCurrency: {
decimals: 18,
name: "Ethereum",
symbol: "ETH",
},
rpcUrls: {
public: {
http: ["https://swell-mainnet.alt.technology"],
},
default: {
http: ["https://swell-mainnet.alt.technology"],
},
appOnly: {
http: ["https://swell-mainnet.alt.technology"],
},
},
blockExplorers: {
etherscan: {
name: "Swellscan",
url: "https://explorer.swellnetwork.io/",
},
default: {
name: "Swellscan",
url: "https://explorer.swellnetwork.io/",
},
},
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11",
blockCreated: 305649,
},
},
} as const satisfies Chain
export const SUPPORTED_CHAINS = [base, swell] as const satisfies Chain[]
export const SUPPORTED_CHAINS_IDS = SUPPORTED_CHAINS.map((chain) => chain.id)
export const ARBITRUM_CHAIN_ID = arbitrum.id
export const BASE_CHAIN_ID = base.id
export const SWELL_CHAIN_ID = swell.id
export const USER_REJECTED_REQUEST_CODE = 4001
export const MULTICALL_CONTRACT_ADDRESS =
"0xcA11bde05977b3631167028862bE2a173976CA11"
export const SCAM_TOKEN_WORDS = ["claim", "visit", "airdrop", "rewards", "http"]
export const SCAM_TOKEN_ADDRESSES = [
"0x33567e90505edde4c6331e12e01860301115ba84",
]
export const URL_API_KEY_PROD = "7fd0342f-fb08-430d-8443-116e212f8be3"
export const URL_API_KEY_DEV = "f27abba2-0749-4d95-aa3d-3c6beb95f59a"
export const WETH_ADDRESS = "0x4200000000000000000000000000000000000006"