diff --git a/.i18n-codegen.json b/.i18n-codegen.json index f51efba6f577..34cc48a439bc 100644 --- a/.i18n-codegen.json +++ b/.i18n-codegen.json @@ -234,6 +234,18 @@ "trans": "Translate" } }, + { + "input": "./packages/mask/src/plugins/RedPacket/locales/en-US.json", + "output": "./packages/mask/src/plugins/RedPacket/locales/i18n_generated", + "parser": { "type": "i18next", "contextSeparator": "$", "pluralSeparator": "_" }, + "generator": { + "type": "i18next/react-hooks", + "hooks": "useI18N", + "namespace": "com.maskbook.red_packet", + "trans": "Translate", + "sourceMap": "inline" + } + }, { "input": "./packages/mask/src/plugins/Tips/locales/en-US.json", "output": "./packages/mask/src/plugins/Tips/locales/i18n_generated", diff --git a/cspell.json b/cspell.json index 8bab630fe39c..3e673dad755f 100644 --- a/cspell.json +++ b/cspell.json @@ -29,6 +29,9 @@ "attrace", "avalanche", "avax", + "beamshare", + "beamswap", + "betanet", "bgcolor", "bignumber", "binancecoin", @@ -86,6 +89,7 @@ "gapcheck", "gasnow", "geckoview", + "glmr", "gltf", "goodghosting", "gundb", @@ -148,6 +152,7 @@ "openx", "overridable", "overscan", + "padswap", "pageable", "pagelet", "pancakeswap", @@ -198,6 +203,7 @@ "steganographic", "steganography", "stego", + "stellaswap", "subrepo", "sushiswap", "swappable", @@ -239,6 +245,8 @@ "wmatic", "xdai", "xlarge", + "xlink", + "zenlink", "zerion", "zora", "zubin" diff --git a/packages/mask/shared-ui/locales/ko-KR.json b/packages/mask/shared-ui/locales/ko-KR.json index 750f0d43b02a..1f19a9ec60cb 100644 --- a/packages/mask/shared-ui/locales/ko-KR.json +++ b/packages/mask/shared-ui/locales/ko-KR.json @@ -119,7 +119,6 @@ "wallet_rename": "월렛 이름 바꾸기", "wallet_loading_nft_contract": "NFT 컨트렉트 로딩...", "wallet_search_contract_no_result": "검색 포준에 맞추는 결과나 컨트렉트 주소가 없습니다.", - "wallet_search_no_result": "결과 없음.", "wallet_airdrop_nft_unclaimed_title": "수령하지 않는 NFT 에어드랍:", "plugin_airdrop_nft_start_time": "시작 시간: {{date}}", "plugin_airdrop_nft_end_time": "종료 시간: {{date}}", diff --git a/packages/mask/shared-ui/locales/qya-AA.json b/packages/mask/shared-ui/locales/qya-AA.json index ce2495fba6cf..de9ef21d79c5 100644 --- a/packages/mask/shared-ui/locales/qya-AA.json +++ b/packages/mask/shared-ui/locales/qya-AA.json @@ -210,7 +210,6 @@ "wallet_rename": "crwdns4489:0crwdne4489:0", "wallet_loading_nft_contract": "crwdns8135:0crwdne8135:0", "wallet_search_contract_no_result": "crwdns8137:0crwdne8137:0", - "wallet_search_no_result": "crwdns8139:0crwdne8139:0", "wallet_confirm_with_password": "crwdns10141:0crwdne10141:0", "wallet_airdrop_nft_unclaimed_title": "crwdns8093:0crwdne8093:0", "plugin_external_unknown_plugin": "crwdns10143:0crwdne10143:0", diff --git a/packages/mask/shared-ui/locales/zh-CN.json b/packages/mask/shared-ui/locales/zh-CN.json index c7c79f6e707b..70b15a7c7569 100644 --- a/packages/mask/shared-ui/locales/zh-CN.json +++ b/packages/mask/shared-ui/locales/zh-CN.json @@ -163,7 +163,6 @@ "wallet_rename": "重新命名钱包", "wallet_loading_nft_contract": "正在加载 NFT 合约...", "wallet_search_contract_no_result": "没有结果或合同地址不符合查询标准。", - "wallet_search_no_result": "没有任何结果。", "wallet_confirm_with_password": "使用密码确认", "wallet_airdrop_nft_unclaimed_title": "未认领的NFT Airdrop:", "plugin_external_unknown_plugin": "发现新的未知Mask插件,您想要加载它们吗?", diff --git a/packages/mask/shared-ui/locales/zh-TW.json b/packages/mask/shared-ui/locales/zh-TW.json index 2ea263e1a531..3fb1f8833e7b 100644 --- a/packages/mask/shared-ui/locales/zh-TW.json +++ b/packages/mask/shared-ui/locales/zh-TW.json @@ -98,7 +98,6 @@ "wallet_name": "錢包名稱", "wallet_rename": "重新命名錢包", "wallet_loading_nft_contract": "加載NFT合約中...", - "wallet_search_no_result": "無結果", "wallet_confirm_with_password": "確認密碼", "wallet_airdrop_nft_unclaimed_title": "尚未認領的NFT空投", "plugin_external_loader_search_holder": "搜尋外部插件", diff --git a/packages/mask/shared/flags.ts b/packages/mask/shared/flags.ts index 358602b9ea40..646b77dc7002 100644 --- a/packages/mask/shared/flags.ts +++ b/packages/mask/shared/flags.ts @@ -34,6 +34,7 @@ export const Flags = { fantom_enabled: true, celo_enabled: true, aurora_enabled: true, + moonbeam_enabled: true, harmony_enabled: true, nft_airdrop_enabled: false, post_actions_enabled: true, diff --git a/packages/mask/src/extension/popups/pages/Wallet/GasSetting/Prior1559GasSetting.tsx b/packages/mask/src/extension/popups/pages/Wallet/GasSetting/Prior1559GasSetting.tsx index 58825bce73a1..d27ccbf7a8a2 100644 --- a/packages/mask/src/extension/popups/pages/Wallet/GasSetting/Prior1559GasSetting.tsx +++ b/packages/mask/src/extension/popups/pages/Wallet/GasSetting/Prior1559GasSetting.tsx @@ -1,5 +1,11 @@ import { makeStyles } from '@masknet/theme' -import { GasOptionType, isLessThan, NetworkPluginID, pow10, TransactionDescriptorType } from '@masknet/web3-shared-base' +import { + GasOptionType, + isLessThan, + NetworkPluginID, + TransactionDescriptorType, + scale10, +} from '@masknet/web3-shared-base' import { memo, useEffect, useMemo, useState } from 'react' import { useI18N } from '../../../../../utils' import { useAsync, useAsyncFn, useUpdateEffect } from 'react-use' @@ -90,9 +96,10 @@ const useStyles = makeStyles()((theme) => ({ })) const minGasPriceOfChain: ChainIdOptionalRecord = { - [ChainId.BSC]: pow10(9).multipliedBy(5), // 5 Gwei - [ChainId.Conflux]: pow10(9).multipliedBy(5), // 5 Gwei - [ChainId.Matic]: pow10(9).multipliedBy(30), // 30 Gwei + [ChainId.BSC]: scale10(5, 9), // 5 Gwei + [ChainId.Conflux]: scale10(5, 9), // 5 Gwei + [ChainId.Matic]: scale10(30, 9), // 30 Gwei + [ChainId.Moonbeam]: scale10(1, 9), // 1 Gwei } export const Prior1559GasSetting = memo(() => { diff --git a/packages/mask/src/plugins/Gitcoin/SNSAdaptor/index.tsx b/packages/mask/src/plugins/Gitcoin/SNSAdaptor/index.tsx index f0792704ed93..8b3d698063ac 100644 --- a/packages/mask/src/plugins/Gitcoin/SNSAdaptor/index.tsx +++ b/packages/mask/src/plugins/Gitcoin/SNSAdaptor/index.tsx @@ -1,19 +1,15 @@ import { useMemo } from 'react' -import { ChainId } from '@masknet/web3-shared-evm' import { usePostInfoDetails, Plugin, usePluginWrapper, PluginId } from '@masknet/plugin-infra/content-script' -import { useChainId } from '@masknet/plugin-infra/web3' -import { NetworkPluginID } from '@masknet/web3-shared-base' import { extractTextFromTypedMessage } from '@masknet/typed-message' import { parseURL } from '@masknet/shared-base' import { GitcoinIcon } from '@masknet/icons' -import { PreviewCard } from './PreviewCard' import { Trans } from 'react-i18next' import { base } from '../base' -import { PLUGIN_NAME, PLUGIN_META_KEY } from '../constants' +import { PLUGIN_META_KEY, PLUGIN_NAME } from '../constants' import { DonateDialog } from './DonateDialog' +import { PreviewCard } from './PreviewCard' const isGitcoin = (x: string): boolean => /^https:\/\/gitcoin.co\/grants\/\d+/.test(x) -const isGitCoinSupported = (chainId: ChainId) => [ChainId.Mainnet, ChainId.Matic].includes(chainId) const sns: Plugin.SNSAdaptor.Definition = { ...base, @@ -60,7 +56,6 @@ const sns: Plugin.SNSAdaptor.Definition = { function Renderer(props: React.PropsWithChildren<{ url: string }>) { const [id = ''] = props.url.match(/\d+/) ?? [] - const chainId = useChainId(NetworkPluginID.PLUGIN_EVM) usePluginWrapper(true) return } diff --git a/packages/mask/src/plugins/NextID/base.ts b/packages/mask/src/plugins/NextID/base.ts index 5f54d1f829f4..ec17d2c583b3 100644 --- a/packages/mask/src/plugins/NextID/base.ts +++ b/packages/mask/src/plugins/NextID/base.ts @@ -31,6 +31,7 @@ export const base: Plugin.Shared.Definition = { ChainId.Fantom, ChainId.Harmony, ChainId.Conflux, + ChainId.Moonbeam, ], }, [NetworkPluginID.PLUGIN_FLOW]: { supportedChainIds: [] }, diff --git a/packages/mask/src/plugins/RedPacket/SNSAdaptor/NftList.tsx b/packages/mask/src/plugins/RedPacket/SNSAdaptor/NftList.tsx index 9438384321da..edc2736eb856 100644 --- a/packages/mask/src/plugins/RedPacket/SNSAdaptor/NftList.tsx +++ b/packages/mask/src/plugins/RedPacket/SNSAdaptor/NftList.tsx @@ -3,9 +3,9 @@ import { ChainId, formatTokenId, SchemaType } from '@masknet/web3-shared-evm' import { List, ListItem, ListProps, Typography } from '@mui/material' import classnames from 'classnames' import { FC, HTMLProps, useState } from 'react' -import { useI18N } from '../../../utils' import { NFTCardStyledAssetPlayer } from '@masknet/shared' import type { NonFungibleTokenContract } from '@masknet/web3-shared-base' +import { useI18N } from '../locales' const useStyles = makeStyles()((theme) => { const smallQuery = `@media (max-width: ${theme.breakpoints.values.sm}px)` @@ -100,7 +100,7 @@ interface NftItemProps extends HTMLProps { } export const NftItem: FC = ({ contract, tokenId, className, claimed, renderOrder, ...rest }) => { - const { t } = useI18N() + const t = useI18N() const { classes } = useStyles() const [name, setName] = useState(formatTokenId(tokenId, 2)) @@ -117,7 +117,7 @@ export const NftItem: FC = ({ contract, tokenId, className, claime setERC721TokenName={setName} /> {name} - {claimed && {t('plugin_red_packet_claimed')}} + {claimed && {t.claimed()}} ) } diff --git a/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedPacketInHistoryList.tsx b/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedPacketInHistoryList.tsx index 6a8665b28fa0..cbff4b7a9b6c 100644 --- a/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedPacketInHistoryList.tsx +++ b/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedPacketInHistoryList.tsx @@ -285,7 +285,7 @@ export function RedPacketInHistoryList(props: RedPacketInHistoryListProps) { {t.history_total_amount({ amount: formatBalance(history.total, historyToken?.decimals, 6), - symbol: historyToken?.symbol, + symbol: historyToken?.symbol!, })} @@ -364,7 +364,7 @@ export function RedPacketInHistoryList(props: RedPacketInHistoryListProps) { historyToken?.decimals, 6, ), - symbol: historyToken?.symbol, + symbol: historyToken?.symbol!, }} /> diff --git a/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedpacketNftConfirmDialog.tsx b/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedpacketNftConfirmDialog.tsx index 5c1559b206f8..2584ccecc563 100644 --- a/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedpacketNftConfirmDialog.tsx +++ b/packages/mask/src/plugins/RedPacket/SNSAdaptor/RedpacketNftConfirmDialog.tsx @@ -169,13 +169,8 @@ export function RedpacketNftConfirmDialog(props: RedpacketNftConfirmDialogProps) const { t: i18n } = useBaseI18N() const t = useI18N() - const { address: publicKey, privateKey } = useMemo( - () => web3?.eth.accounts.create() ?? { address: '', privateKey: '' }, - [web3], - )! const duration = 60 * 60 * 24 const currentIdentity = useCurrentIdentity() - const { value: linkedPersona } = useAsync(async () => { if (!currentIdentity?.linkedPersona) return return Services.Identity.queryPersona(currentIdentity.linkedPersona) diff --git a/packages/mask/src/plugins/Savings/base.ts b/packages/mask/src/plugins/Savings/base.ts index 51b9ef9821f1..a073d9e15141 100644 --- a/packages/mask/src/plugins/Savings/base.ts +++ b/packages/mask/src/plugins/Savings/base.ts @@ -28,6 +28,7 @@ export const base: Plugin.Shared.Definition = { ChainId.Aurora, ChainId.Avalanche, ChainId.Fantom, + ChainId.Moonbeam, ChainId.Harmony, ], }, diff --git a/packages/mask/src/plugins/Trader/apis/trader/index.ts b/packages/mask/src/plugins/Trader/apis/trader/index.ts index 23310f16c3d8..32365a3ee1bc 100644 --- a/packages/mask/src/plugins/Trader/apis/trader/index.ts +++ b/packages/mask/src/plugins/Trader/apis/trader/index.ts @@ -36,6 +36,7 @@ export async function getAvailableTraderProviders(chainId: ChainId) { TradeProvider.DODO, TradeProvider.ZRX, TradeProvider.OPENOCEAN, + TradeProvider.PADSWAP, TradeProvider.MDEX, ] case NetworkType.Arbitrum: @@ -52,6 +53,15 @@ export async function getAvailableTraderProviders(chainId: ChainId) { return [TradeProvider.SUSHISWAP] case NetworkType.Aurora: return [TradeProvider.DODO, TradeProvider.WANNASWAP, TradeProvider.TRISOLARIS] + case NetworkType.Moonbeam: + return [ + TradeProvider.SUSHISWAP, + TradeProvider.BEAMSWAP, + TradeProvider.STELLASWAP, + TradeProvider.PADSWAP, + TradeProvider.ZENLINK, + TradeProvider.SOLFLARE, + ] case NetworkType.Harmony: return [ TradeProvider.SUSHISWAP, diff --git a/packages/mask/src/plugins/Trader/base.ts b/packages/mask/src/plugins/Trader/base.ts index 7ae069e8d5db..f128d8e64f35 100644 --- a/packages/mask/src/plugins/Trader/base.ts +++ b/packages/mask/src/plugins/Trader/base.ts @@ -24,6 +24,7 @@ export const base: Plugin.Shared.Definition = { ChainId.Aurora, ChainId.Avalanche, ChainId.Fantom, + ChainId.Moonbeam, ChainId.Harmony, ], }, diff --git a/packages/mask/src/plugins/Trader/constants/0x.ts b/packages/mask/src/plugins/Trader/constants/0x.ts index 9edc0eec1c8f..9ba7518cb186 100644 --- a/packages/mask/src/plugins/Trader/constants/0x.ts +++ b/packages/mask/src/plugins/Trader/constants/0x.ts @@ -14,6 +14,7 @@ export const ZRX_BASE_URL: Record = { [NetworkType.Fuse]: '', [NetworkType.Metis]: '', [NetworkType.Optimistic]: '', + [NetworkType.Moonbeam]: '', [NetworkType.Harmony]: '', [NetworkType.Conflux]: '', } diff --git a/packages/mask/src/plugins/Trader/constants/beamswap.ts b/packages/mask/src/plugins/Trader/constants/beamswap.ts new file mode 100644 index 000000000000..5b48e0f6e3bd --- /dev/null +++ b/packages/mask/src/plugins/Trader/constants/beamswap.ts @@ -0,0 +1,13 @@ +import { DAI, USDC, USDT, WBTC, SHARE, WNATIVE, WNATIVE_ONLY, ChainId } from '@masknet/web3-shared-evm' +import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' + +/** + * Some tokens can only be swapped via certain pairs, + * so we override the list of bases that are considered for these tokens. + */ +export const BEAMSWAP_CUSTOM_BASES: ERC20TokenCustomizedBase = {} + +export const BEAMSWAP_BASE_AGAINST_TOKENS: ERC20AgainstToken = { + ...WNATIVE_ONLY, + [ChainId.Moonbeam]: [WNATIVE, DAI, SHARE, USDT, USDC, WBTC].map((x) => x[ChainId.Moonbeam]), +} diff --git a/packages/mask/src/plugins/Trader/constants/dodo.ts b/packages/mask/src/plugins/Trader/constants/dodo.ts index 05a4d2ea4c55..cf716d15a8d1 100644 --- a/packages/mask/src/plugins/Trader/constants/dodo.ts +++ b/packages/mask/src/plugins/Trader/constants/dodo.ts @@ -16,6 +16,7 @@ export const networkNames: Record = { [NetworkType.Fuse]: '', [NetworkType.Metis]: '', [NetworkType.Optimistic]: '', + [NetworkType.Moonbeam]: '', [NetworkType.Harmony]: 'harmony', [NetworkType.Conflux]: '', } diff --git a/packages/mask/src/plugins/Trader/constants/index.ts b/packages/mask/src/plugins/Trader/constants/index.ts index 8b2ec0bf672c..1d0cf91c2e38 100644 --- a/packages/mask/src/plugins/Trader/constants/index.ts +++ b/packages/mask/src/plugins/Trader/constants/index.ts @@ -13,6 +13,12 @@ export * from './traderjoe' export * from './pangolindex' export * from './wannaswap' export * from './trisolaris' +export * from './beamswap' +export * from './stellaswap' +export * from './padswap' +export * from './mdex' +export * from './zenlink' +export * from './solflare' export * from './venomswap' export * from './openswap' export * from './mdex' diff --git a/packages/mask/src/plugins/Trader/constants/openocean.ts b/packages/mask/src/plugins/Trader/constants/openocean.ts index c7c970c5dd4d..9682b935fe8f 100644 --- a/packages/mask/src/plugins/Trader/constants/openocean.ts +++ b/packages/mask/src/plugins/Trader/constants/openocean.ts @@ -16,6 +16,7 @@ export const networkNames: Record = { [NetworkType.Fuse]: '', [NetworkType.Metis]: '', [NetworkType.Optimistic]: '', + [NetworkType.Moonbeam]: '', [NetworkType.Harmony]: '', [NetworkType.Conflux]: '', } diff --git a/packages/mask/src/plugins/Trader/constants/padswap.ts b/packages/mask/src/plugins/Trader/constants/padswap.ts new file mode 100644 index 000000000000..5201ff3176b0 --- /dev/null +++ b/packages/mask/src/plugins/Trader/constants/padswap.ts @@ -0,0 +1,14 @@ +import { DAI, USDC, USDT, PAD, WBTC, WNATIVE, WNATIVE_ONLY, ChainId } from '@masknet/web3-shared-evm' +import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' + +/** + * Some tokens can only be swapped via certain pairs, + * so we override the list of bases that are considered for these tokens. + */ +export const PADSWAP_CUSTOM_BASES: ERC20TokenCustomizedBase = {} + +export const PADSWAP_BASE_AGAINST_TOKENS: ERC20AgainstToken = { + ...WNATIVE_ONLY, + [ChainId.Moonbeam]: [WNATIVE, DAI, PAD, USDT, USDC, WBTC].map((x) => x[ChainId.Moonbeam]), + [ChainId.BSC]: [WNATIVE, DAI, PAD, USDT, USDC, WBTC].map((x) => x[ChainId.BSC]), +} diff --git a/packages/mask/src/plugins/Trader/constants/solflare.ts b/packages/mask/src/plugins/Trader/constants/solflare.ts new file mode 100644 index 000000000000..fb2a32227963 --- /dev/null +++ b/packages/mask/src/plugins/Trader/constants/solflare.ts @@ -0,0 +1,13 @@ +import { DAI, USDC, USDT, WBTC, FLARE, WNATIVE, WNATIVE_ONLY, ChainId } from '@masknet/web3-shared-evm' +import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' + +/** + * Some tokens can only be swapped via certain pairs, + * so we override the list of bases that are considered for these tokens. + */ +export const SOLFLARE_CUSTOM_BASES: ERC20TokenCustomizedBase = {} + +export const SOLFLARE_BASE_AGAINST_TOKENS: ERC20AgainstToken = { + ...WNATIVE_ONLY, + [ChainId.Moonbeam]: [WNATIVE, DAI, FLARE, USDT, USDC, WBTC].map((x) => x[ChainId.Moonbeam]), +} diff --git a/packages/mask/src/plugins/Trader/constants/stellaswap.ts b/packages/mask/src/plugins/Trader/constants/stellaswap.ts new file mode 100644 index 000000000000..6e261cc20a28 --- /dev/null +++ b/packages/mask/src/plugins/Trader/constants/stellaswap.ts @@ -0,0 +1,13 @@ +import { DAI, USDC, STELLA, USDT, WBTC, WNATIVE, WNATIVE_ONLY, ChainId } from '@masknet/web3-shared-evm' +import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' + +/** + * Some tokens can only be swapped via certain pairs, + * so we override the list of bases that are considered for these tokens. + */ +export const STELLASWAP_CUSTOM_BASES: ERC20TokenCustomizedBase = {} + +export const STELLASWAP_BASE_AGAINST_TOKENS: ERC20AgainstToken = { + ...WNATIVE_ONLY, + [ChainId.Moonbeam]: [WNATIVE, STELLA, DAI, USDT, USDC, WBTC].map((x) => x[ChainId.Moonbeam]), +} diff --git a/packages/mask/src/plugins/Trader/constants/sushiswap.ts b/packages/mask/src/plugins/Trader/constants/sushiswap.ts index 5f5e7931a4c6..46524b6868e6 100644 --- a/packages/mask/src/plugins/Trader/constants/sushiswap.ts +++ b/packages/mask/src/plugins/Trader/constants/sushiswap.ts @@ -33,5 +33,6 @@ export const SUSHISWAP_BASE_AGAINST_TOKENS: ERC20AgainstToken = { [ChainId.Celo]: [WNATIVE, CUSD, CEUR].map((x) => x[ChainId.Celo]), [ChainId.Fantom]: [WNATIVE, DAI, USDC, fUSDT, WBTC].map((x) => x[ChainId.Fantom]), [ChainId.Avalanche]: [WNATIVE, DAI, USDC, WBTC, USDT].map((x) => x[ChainId.Avalanche]), + [ChainId.Moonbeam]: [WNATIVE, DAI, USDC, WBTC, USDT].map((x) => x[ChainId.Moonbeam]), [ChainId.Harmony]: [WNATIVE, DAI, USDC, WBTC, USDT].map((x) => x[ChainId.Harmony]), } diff --git a/packages/mask/src/plugins/Trader/constants/zenlink.ts b/packages/mask/src/plugins/Trader/constants/zenlink.ts new file mode 100644 index 000000000000..b1e960176ca2 --- /dev/null +++ b/packages/mask/src/plugins/Trader/constants/zenlink.ts @@ -0,0 +1,13 @@ +import { DAI, USDC, USDT, WBTC, ZLK, WNATIVE, WNATIVE_ONLY, ChainId } from '@masknet/web3-shared-evm' +import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' + +/** + * Some tokens can only be swapped via certain pairs, + * so we override the list of bases that are considered for these tokens. + */ +export const ZENLINK_CUSTOM_BASES: ERC20TokenCustomizedBase = {} + +export const ZENLINK_BASE_AGAINST_TOKENS: ERC20AgainstToken = { + ...WNATIVE_ONLY, + [ChainId.Moonbeam]: [WNATIVE, DAI, ZLK, USDT, USDC, WBTC].map((x) => x[ChainId.Moonbeam]), +} diff --git a/packages/mask/src/plugins/Trader/pipes.ts b/packages/mask/src/plugins/Trader/pipes.ts index ddd843c48fc5..a359dc769593 100644 --- a/packages/mask/src/plugins/Trader/pipes.ts +++ b/packages/mask/src/plugins/Trader/pipes.ts @@ -40,6 +40,12 @@ export const resolveTradeProviderName = createLookupTableResolver Promise] as AsyncFnReturn< diff --git a/packages/mask/src/plugins/Trader/types/trader.ts b/packages/mask/src/plugins/Trader/types/trader.ts index a1e1f9f24a74..6c4ff717f5ca 100644 --- a/packages/mask/src/plugins/Trader/types/trader.ts +++ b/packages/mask/src/plugins/Trader/types/trader.ts @@ -71,7 +71,12 @@ export enum ZrxTradePool { PangolinDex = 'PangolinDex', Trisolaris = 'Trisolaris', WannaSwap = 'WannaSwap', + StellaSwap = 'StellaSwap', + BeamSwap = 'BeamSwap', + PADSwap = 'PADSwap', Mdex = 'Mdex', + ZenLink = 'ZenLink', + SolFlare = 'SolFlare', VenomSwap = 'VenomSwap', OpenSwap = 'OpenSwap', DefiKingdoms = 'DefiKingdoms', diff --git a/packages/mask/src/plugins/Wallet/SNSAdaptor/GasSettingDialog/Prior1559GasSetting.tsx b/packages/mask/src/plugins/Wallet/SNSAdaptor/GasSettingDialog/Prior1559GasSetting.tsx index cf06f8e401e5..1b492c208fce 100644 --- a/packages/mask/src/plugins/Wallet/SNSAdaptor/GasSettingDialog/Prior1559GasSetting.tsx +++ b/packages/mask/src/plugins/Wallet/SNSAdaptor/GasSettingDialog/Prior1559GasSetting.tsx @@ -13,13 +13,14 @@ import { z as zod } from 'zod' import { useI18N } from '../../../../utils' import type { GasSettingProps } from './types' import { useGasSettingStyles } from './useGasSettingStyles' -import { GasOptionType, NetworkPluginID, pow10 } from '@masknet/web3-shared-base' +import { GasOptionType, NetworkPluginID, scale10 } from '@masknet/web3-shared-base' import { useChainId, useGasOptions, useNativeTokenPrice } from '@masknet/plugin-infra/web3' const minGasPriceOfChain: ChainIdOptionalRecord = { - [ChainId.BSC]: pow10(9).multipliedBy(5), // 5 Gwei - [ChainId.Conflux]: pow10(9).multipliedBy(5), // 5 Gwei - [ChainId.Matic]: pow10(9).multipliedBy(30), // 30 Gwei + [ChainId.BSC]: scale10(5, 9), // 5 Gwei + [ChainId.Conflux]: scale10(5, 9), // 5 Gwei + [ChainId.Matic]: scale10(30, 9), // 30 Gwei + [ChainId.Moonbeam]: scale10(1, 9), // 1 Gwei } export const Prior1559GasSetting: FC = memo( diff --git a/packages/mask/src/plugins/Wallet/services/account.ts b/packages/mask/src/plugins/Wallet/services/account.ts index e48f83445a68..a3238d5ac954 100644 --- a/packages/mask/src/plugins/Wallet/services/account.ts +++ b/packages/mask/src/plugins/Wallet/services/account.ts @@ -71,6 +71,7 @@ export async function getSupportedNetworks() { Flags.fantom_enabled ? NetworkType.Fantom : undefined, Flags.avalanche_enabled ? NetworkType.Avalanche : undefined, Flags.aurora_enabled ? NetworkType.Aurora : undefined, + Flags.moonbeam_enabled ? NetworkType.Moonbeam : undefined, Flags.harmony_enabled ? NetworkType.Harmony : undefined, ].filter(Boolean) as NetworkType[] } diff --git a/packages/public-api/src/web.ts b/packages/public-api/src/web.ts index 1d6c6227e69f..f252bc5a9788 100644 --- a/packages/public-api/src/web.ts +++ b/packages/public-api/src/web.ts @@ -194,6 +194,11 @@ export enum TradeProvider { TRADERJOE = 13, PANGOLIN = 14, MDEX = 15, + BEAMSWAP = 16, + STELLASWAP = 17, + PADSWAP = 18, + SOLFLARE = 19, + ZENLINK = 20, VENOMSWAP = 16, OPENSWAP = 17, DEFIKINGDOMS = 18, diff --git a/packages/web3-constants/compile-constants.ts b/packages/web3-constants/compile-constants.ts index ef2c95494704..5c57071f62e7 100644 --- a/packages/web3-constants/compile-constants.ts +++ b/packages/web3-constants/compile-constants.ts @@ -62,6 +62,7 @@ compileConstants(path.join(__dirname, 'evm'), [ 'Conflux', 'Harmony', 'Harmony_Test', + 'Moonbeam', ]) compileConstants(path.join(__dirname, 'solana'), ['Mainnet', 'Testnet', 'Devnet']) diff --git a/packages/web3-constants/evm/aave.json b/packages/web3-constants/evm/aave.json index 8fc273982e95..25718e281e74 100644 --- a/packages/web3-constants/evm/aave.json +++ b/packages/web3-constants/evm/aave.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "AAVE_LENDING_POOL_ADDRESSES_PROVIDER_CONTRACT_ADDRESS": { "Mainnet": "0xb53c1a33016b2dc2ff3653530bff1848a515c8c5", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "AAVE_PROTOCOL_DATA_PROVIDER_CONTRACT_ADDRESS": { "Mainnet": "0x057835Ad21a177dbdd3090bB1CAE03EaCF78Fc6d", @@ -66,6 +68,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/airdrop.json b/packages/web3-constants/evm/airdrop.json index c2926befc023..9ab75a8b4ca5 100644 --- a/packages/web3-constants/evm/airdrop.json +++ b/packages/web3-constants/evm/airdrop.json @@ -20,6 +20,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/artblocks.json b/packages/web3-constants/evm/artblocks.json index fb6b6d224eae..8fc38c7ef18f 100644 --- a/packages/web3-constants/evm/artblocks.json +++ b/packages/web3-constants/evm/artblocks.json @@ -20,6 +20,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/coingecko.json b/packages/web3-constants/evm/coingecko.json index a0b9c6d8b510..dde6a4c4ba38 100644 --- a/packages/web3-constants/evm/coingecko.json +++ b/packages/web3-constants/evm/coingecko.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "harmony", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "moonbeam" }, "COIN_ID": { "Mainnet": "ethereum", @@ -43,6 +44,7 @@ "Aurora_Testnet": "", "Conflux": "conflux-token", "Harmony": "harmony", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "moonbeam" } } diff --git a/packages/web3-constants/evm/coinmarketcap.json b/packages/web3-constants/evm/coinmarketcap.json index bb8ef5c346d4..62ca7b77c2ef 100644 --- a/packages/web3-constants/evm/coinmarketcap.json +++ b/packages/web3-constants/evm/coinmarketcap.json @@ -20,6 +20,7 @@ "Aurora_Testnet": "", "Conflux": "7334", "Harmony": "3945", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "6836" } } diff --git a/packages/web3-constants/evm/cryptoartai.json b/packages/web3-constants/evm/cryptoartai.json index 8c0fd4f8d36f..5e55b81b6cbf 100644 --- a/packages/web3-constants/evm/cryptoartai.json +++ b/packages/web3-constants/evm/cryptoartai.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "ARTIST_ACCEPTING_BIDS_V2": { "Mainnet": "0x78C889749f29D2965a76Ede3BBb232A9729Ccf0b", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "CANFT_MARKET": { "Mainnet": "0x72d081953957723e540780a0C6bA31725469238E", @@ -66,6 +68,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/debank.json b/packages/web3-constants/evm/debank.json index f62c9f0461ba..52f980d5f535 100644 --- a/packages/web3-constants/evm/debank.json +++ b/packages/web3-constants/evm/debank.json @@ -20,6 +20,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "hmy", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "mobm" } } diff --git a/packages/web3-constants/evm/dhedge.json b/packages/web3-constants/evm/dhedge.json index 845dc5287bfc..284aa7738d6c 100644 --- a/packages/web3-constants/evm/dhedge.json +++ b/packages/web3-constants/evm/dhedge.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "API_URL": { "Mainnet": "https://api-v2.dhedge.org/graphql", @@ -43,6 +44,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/ethereum.json b/packages/web3-constants/evm/ethereum.json index d2aae0d26463..66b9ea794e9e 100644 --- a/packages/web3-constants/evm/ethereum.json +++ b/packages/web3-constants/evm/ethereum.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xc119574d5fb333f5ac018658d4d8b5035e16bf39", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0xf5056B96ab242C566002852d0b98ce0BcDf1af51" }, "MULTICALL_ADDRESS": { "Mainnet": "0x1F98415757620B543A52E61c46B32eB19261F984", @@ -29,21 +30,22 @@ "Kovan": "0x1F98415757620B543A52E61c46B32eB19261F984", "Gorli": "0x1F98415757620B543A52E61c46B32eB19261F984", "BSC": "0x5211fe40fE49a13CC86E3bC77855152457eDE585", - "BSCT": "", + "BSCT": "0xcA11bde05977b3631167028862bE2a173976CA11", "Matic": "0x54c06a5D7C6447BE47E07390eD7da7e6994585f4", - "Mumbai": "", + "Mumbai": "0xcA11bde05977b3631167028862bE2a173976CA11", "Arbitrum": "0xadF885960B47eA2CD9B55E6DAc6B42b7Cb2806dB", "Arbitrum_Rinkeby": "0xa501c031958F579dB7676fF1CE78AD305794d579", "xDai": "0xAb7B1bE4233A04e5C43a810E75657ECED8E5463B", "Avalanche": "0x6cc1b1058F9153358278C35E0b2D382f1585854B", - "Avalanche_Fuji": "", + "Avalanche_Fuji": "0xcA11bde05977b3631167028862bE2a173976CA11", "Celo": "0x072453AdEC16cFC7FB6Af1517c3f25407180cccC", "Fantom": "0x913975af2Bb8a6Be4100D7dc5e9765B77F6A5d6c", "Aurora": "0x6cc1b1058F9153358278C35E0b2D382f1585854B", - "Aurora_Testnet": "", + "Aurora_Testnet": "0xcA11bde05977b3631167028862bE2a173976CA11", "Conflux": "0x19f179d7e0d7d9f9d5386afff64271d98a91615b", "Harmony": "0x6cc1b1058f9153358278c35e0b2d382f1585854b", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0xcA11bde05977b3631167028862bE2a173976CA11" }, "ENS_REGISTRAR_ADDRESS": { "Mainnet": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", @@ -66,7 +68,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "ENS_REVERSE_RECORDS_ADDRESS": { "Mainnet": "0x3671aE578E63FdF66ad4F3E12CC0c0d71Ac7510C", @@ -89,6 +92,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/explorer.json b/packages/web3-constants/evm/explorer.json index b6b05a3396f4..efd471fe552d 100644 --- a/packages/web3-constants/evm/explorer.json +++ b/packages/web3-constants/evm/explorer.json @@ -20,7 +20,8 @@ "Aurora_Testnet": [], "Conflux": [], "Harmony": [], - "Harmony_Test": [] + "Harmony_Test": [], + "Moonbeam": [] }, "EXPLORER_API": { "Mainnet": "https://api.etherscan.io/api", @@ -43,6 +44,7 @@ "Aurora_Testnet": "https://explorer.testnet.aurora.dev/api", "Conflux": "https://evmapi.confluxscan.net/api", "Harmony": "https://explorer.harmony.one", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "https://api-moonbeam.moonscan.io/api" } } diff --git a/packages/web3-constants/evm/gitcoin.json b/packages/web3-constants/evm/gitcoin.json index 47630e59da64..0a93b637d14d 100644 --- a/packages/web3-constants/evm/gitcoin.json +++ b/packages/web3-constants/evm/gitcoin.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BULK_CHECKOUT_ADDRESS": { "Mainnet": "0x7d655c57f71464B6f83811C55D84009Cd9f5221C", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "GITCOIN_ETH_ADDRESS": { "Mainnet": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", @@ -66,7 +68,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "GITCOIN_TIP_PERCENTAGE": { "Mainnet": 5, @@ -89,6 +92,7 @@ "Aurora_Testnet": 0, "Conflux": 0, "Harmony": 0, - "Harmony_Test": 0 + "Harmony_Test": 0, + "Moonbeam": 0 } } diff --git a/packages/web3-constants/evm/good-ghosting.json b/packages/web3-constants/evm/good-ghosting.json index 6c86d726b946..231a8718aead 100644 --- a/packages/web3-constants/evm/good-ghosting.json +++ b/packages/web3-constants/evm/good-ghosting.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "GOOD_GHOSTING_INCENTIVES_CONTRACT_ADDRESS": { "Mainnet": "", @@ -43,6 +44,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/ito.json b/packages/web3-constants/evm/ito.json index ed88c8ac7f71..cbb0cce8fa67 100644 --- a/packages/web3-constants/evm/ito.json +++ b/packages/web3-constants/evm/ito.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MASK_ITO_CONTRACT_ADDRESS": { "Mainnet": "0x86812da3A623ab9606976078588b80C315E55FA3", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "ITO2_CONTRACT_ADDRESS": { "Mainnet": "0xc2CFbF22d6Dc87D0eE18d38d73733524c109Ff46", @@ -66,7 +68,8 @@ "Aurora_Testnet": "0xdcA6F476EebCDE8FE8b072e3fC80dBC28dC209b3", "Conflux": "0x066804d9123bf2609ed4a4a40b1177a9c5a9ed51", "Harmony": "0x5b966f3a32db9c180843bcb40267a66b73e4f022", - "Harmony_Test": "0x578a7fee5f0d8cec7d00578bf37374c5b95c4b98" + "Harmony_Test": "0x578a7fee5f0d8cec7d00578bf37374c5b95c4b98", + "Moonbeam": "0x981be454a930479d92C91a0092D204b64845A5D6" }, "ITO2_CONTRACT_CREATION_BLOCK_HEIGHT": { "Mainnet": 12766513, @@ -89,7 +92,8 @@ "Aurora_Testnet": 77919102, "Conflux": 37722805, "Harmony": 24133305, - "Harmony_Test": 22744597 + "Harmony_Test": 22744597, + "Moonbeam": 1314566 }, "DEFAULT_QUALIFICATION_ADDRESS": { "Mainnet": "0x81b6ae377e360dcad63611846a2516f4ba8c88ac", @@ -112,7 +116,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DEFAULT_QUALIFICATION2_ADDRESS": { "Mainnet": "0x4dC5f343Fe57E4fbDA1B454d125D396A3181272c", @@ -135,7 +140,8 @@ "Aurora_Testnet": "", "Conflux": "0x05ee315e407c21a594f807d61d6cc11306d1f149", "Harmony": "0x02Ea0720254F7fa4eca7d09A1b9C783F1020EbEF", - "Harmony_Test": "0x812463356F58fc8194645A1838ee6C52D8ca2D26" + "Harmony_Test": "0x812463356F58fc8194645A1838ee6C52D8ca2D26", + "Moonbeam": "0x83D6b366f21e413f214EB077D5378478e71a5eD2" }, "SUBGRAPH_URL": { "Mainnet": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-ito-mainnet", @@ -158,6 +164,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-ito-harmony", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-ito-moonbeam" } } diff --git a/packages/web3-constants/evm/lido.json b/packages/web3-constants/evm/lido.json index 6bce00b13733..0dd1a9c854d2 100644 --- a/packages/web3-constants/evm/lido.json +++ b/packages/web3-constants/evm/lido.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "LIDO_REFERRAL_ADDRESS": { "Mainnet": "0x934b510d4c9103e6a87aef13b816fb080286d649", @@ -43,6 +44,7 @@ "Aurora_Testnet": "0x934b510d4c9103e6a87aef13b816fb080286d649", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/mask-box.json b/packages/web3-constants/evm/mask-box.json index 46222400694a..758dd7585f9f 100644 --- a/packages/web3-constants/evm/mask-box.json +++ b/packages/web3-constants/evm/mask-box.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "0xB4D669bc117735FdA44e90e52795132187705B21", "Conflux": "", "Harmony": "0xDc0905F2Dac875E29A36f22F1Ea046e063875D3e", - "Harmony_Test": "0x4Fda6d9Bb68Af18E5d686555b18cCeA7C82E0A3F" + "Harmony_Test": "0x4Fda6d9Bb68Af18E5d686555b18cCeA7C82E0A3F", + "Moonbeam": "" }, "MASK_BOX_CONTRACT_FROM_BLOCK": { "Mainnet": 13687866, @@ -43,6 +44,7 @@ "Aurora_Testnet": 77919118, "Conflux": 0, "Harmony": 24172689, - "Harmony_Test": 22787067 + "Harmony_Test": 22787067, + "Moonbeam": 0 } } diff --git a/packages/web3-constants/evm/nft-red-packet.json b/packages/web3-constants/evm/nft-red-packet.json index 7475a36b6c43..0ec9b3285ce8 100644 --- a/packages/web3-constants/evm/nft-red-packet.json +++ b/packages/web3-constants/evm/nft-red-packet.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "0x97369fEE7db34E0BfE47861f2ec44b4378d13eB4", "Conflux": "0x5b966f3a32db9c180843bcb40267a66b73e4f022", "Harmony": "0x83d6b366f21e413f214eb077d5378478e71a5ed2", - "Harmony_Test": "0x981be454a930479d92c91a0092d204b64845a5d6" + "Harmony_Test": "0x981be454a930479d92c91a0092d204b64845a5d6", + "Moonbeam": "0xF9F7C1496c21bC0180f4B64daBE0754ebFc8A8c0" }, "SUBGRAPH_URL": { "Mainnet": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-nft-red-packet-mainnet", @@ -43,6 +44,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-nft-red-packet-harmony", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-nft-red-packet-moonbeam" } } diff --git a/packages/web3-constants/evm/openocean.json b/packages/web3-constants/evm/openocean.json index 6cc2a20b1148..fadb35939347 100644 --- a/packages/web3-constants/evm/openocean.json +++ b/packages/web3-constants/evm/openocean.json @@ -20,6 +20,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/opensea-api.json b/packages/web3-constants/evm/opensea-api.json index 5f5acdc0beae..36661774b803 100644 --- a/packages/web3-constants/evm/opensea-api.json +++ b/packages/web3-constants/evm/opensea-api.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "GET_SINGLE_ASSET_URL": { "Mainnet": "https://api.opensea.io/api/v1/asset", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "GET_ASSETS_URL": { "Mainnet": "https://api.opensea.io/api/v1/assets", @@ -66,6 +68,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/pooltogether.json b/packages/web3-constants/evm/pooltogether.json index 76bb72969f5a..50d1cb7b4403 100644 --- a/packages/web3-constants/evm/pooltogether.json +++ b/packages/web3-constants/evm/pooltogether.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MASK_POOL_ADDRESS": { "Mainnet": "", @@ -43,6 +44,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/red-packet.json b/packages/web3-constants/evm/red-packet.json index 1b52af2433b4..9be13e532a8b 100644 --- a/packages/web3-constants/evm/red-packet.json +++ b/packages/web3-constants/evm/red-packet.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "HAPPY_RED_PACKET_ADDRESS_V2": { "Mainnet": "0x8D8912E1237F9FF3EF661F32743CFB276E052F98", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "HAPPY_RED_PACKET_ADDRESS_V3": { "Mainnet": "", @@ -66,7 +68,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "HAPPY_RED_PACKET_ADDRESS_V4": { "Mainnet": "0xaBBe1101FD8fa5847c452A6D70C8655532B03C33", @@ -89,7 +92,8 @@ "Aurora_Testnet": "0xdB93cCd481012bB5D1E2c8d0aF7C5f2940c00fdC", "Conflux": "0x96c7d011cdfd467f551605f0f5fce279f86f4186", "Harmony": "0xab7b1be4233a04e5c43a810e75657eced8e5463b", - "Harmony_Test": "0x96c7d011cdfd467f551605f0f5fce279f86f4186" + "Harmony_Test": "0x96c7d011cdfd467f551605f0f5fce279f86f4186", + "Moonbeam": "0x578a7Fee5f0D8CEc7d00578Bf37374C5b95C4b98" }, "HAPPY_RED_PACKET_ADDRESS_V4_BLOCK_HEIGHT": { "Mainnet": 12939427, @@ -112,7 +116,8 @@ "Aurora_Testnet": 77918765, "Conflux": 37670572, "Harmony": 24134162, - "Harmony_Test": 22701101 + "Harmony_Test": 22701101, + "Moonbeam": 1314596 }, "SUBGRAPH_URL": { "Mainnet": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-red-packet-mainnet", @@ -135,6 +140,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-red-packet-harmony", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "https://api.thegraph.com/subgraphs/name/dimensiondev/mask-red-packet-moobeam" } } diff --git a/packages/web3-constants/evm/rpc.json b/packages/web3-constants/evm/rpc.json index 6187ee5f547f..a7915d86c75e 100644 --- a/packages/web3-constants/evm/rpc.json +++ b/packages/web3-constants/evm/rpc.json @@ -68,7 +68,11 @@ "https://api.s0.t.hmny.io", "https://rpc.hermesdefi.io/" ], - "Harmony_Test": ["https://api.s0.b.hmny.io/"] + "Harmony_Test": ["https://api.s0.b.hmny.io/"], + "Moonbeam": [ + "https://moonbeam.api.onfinality.io/rpc?apikey=e5e810e6-6162-4427-8ba3-d5ad8b9cf4c0", + "https://moonbeam.blastapi.io/905553b4-5acd-4f24-b473-ebca226a76c4" + ] }, "RPC_WEIGHTS": { "Mainnet": [0, 1, 2, 3, 4], @@ -91,6 +95,7 @@ "Aurora_Testnet": [0, 0, 0, 0, 0], "Conflux": [0, 0, 0, 0, 0], "Harmony": [0, 0, 0, 0, 0], - "Harmony_Test": [0, 0, 0, 0, 0] + "Harmony_Test": [0, 0, 0, 0, 0], + "Moonbeam": [0, 0, 0, 0, 0] } } diff --git a/packages/web3-constants/evm/space-station-galaxy.json b/packages/web3-constants/evm/space-station-galaxy.json index dccfde580628..9b5249d253c8 100644 --- a/packages/web3-constants/evm/space-station-galaxy.json +++ b/packages/web3-constants/evm/space-station-galaxy.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SUBGRAPH_URL": { "Mainnet": "", @@ -43,6 +44,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/token-asset-base-url.json b/packages/web3-constants/evm/token-asset-base-url.json index f491027b2f4e..8d5800e1d078 100644 --- a/packages/web3-constants/evm/token-asset-base-url.json +++ b/packages/web3-constants/evm/token-asset-base-url.json @@ -68,6 +68,7 @@ "https://raw.githubusercontent.com/dimensiondev/assets/master/blockchains/harmony", "https://rawcdn.githack.com/dimensiondev/assets/master/blockchains/harmony" ], - "Harmony_Test": [] + "Harmony_Test": [], + "Moonbeam": [] } } diff --git a/packages/web3-constants/evm/token-list.json b/packages/web3-constants/evm/token-list.json index 2abc144015ae..dc78eacd112c 100644 --- a/packages/web3-constants/evm/token-list.json +++ b/packages/web3-constants/evm/token-list.json @@ -20,7 +20,8 @@ "Aurora_Testnet": [], "Conflux": ["https://tokens.r2d2.to/latest/1030/tokens.json"], "Harmony": ["https://tokens.r2d2.to/latest/1666600000/tokens.json"], - "Harmony_Test": ["https://tokens.r2d2.to/latest/1666700000/tokens.json"] + "Harmony_Test": ["https://tokens.r2d2.to/latest/1666700000/tokens.json"], + "Moonbeam": ["https://token-list.sushi.com/", "https://tokens.r2d2.to/latest/1284/tokens.json"] }, "NON_FUNGIBLE_TOKEN_LISTS": { "Mainnet": ["https://tokens.r2d2.to/latest/1/non-fungible-tokens.json"], diff --git a/packages/web3-constants/evm/token.json b/packages/web3-constants/evm/token.json index 1486158cf340..cc06519bbd35 100644 --- a/packages/web3-constants/evm/token.json +++ b/packages/web3-constants/evm/token.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xcF664087a5bB0237a0BAd6742852ec6c8d69A27a", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0xAcc15dC74880C9944775448304B263D191c6077F" }, "LDO_stETH_ADDRESS": { "Mainnet": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "USDC_ADDRESS": { "Mainnet": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", @@ -66,7 +68,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x985458E523dB3d53125813eD68c274899e9DfAb4", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b" }, "USDT_ADDRESS": { "Mainnet": "0xdAC17F958D2ee523a2206206994597C13D831ec7", @@ -89,7 +92,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x3c2b8be99c50593081eaa2a724f0b8285f5aba8f", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0xeFAeeE334F0Fd1712f9a8cc375f427D9Cdd40d73" }, "aUSDT_ADDRESS": { "Mainnet": "0x71fc860F7D3A592A4a98740e39dB31d25db65ae8", @@ -112,7 +116,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x3C2B8Be99c50593081EAA2A724F0B8285F5aba8f", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "HUSD_ADDRESS": { "Mainnet": "0xdf574c24545e5ffecb9a659c229253d4111d87e1", @@ -135,7 +140,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BUSD_ADDRESS": { "Mainnet": "0x4fabb145d64652a948d72533023f6e7a623c7c53", @@ -158,7 +164,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xE176EBE47d621b984a73036B9DA5d834411ef734", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0xA649325Aa7C5093d12D6F98EB4378deAe68CE23F" }, "COMP_ADDRESS": { "Mainnet": "0xc00e94Cb662C3520282E6f5717214004A7f26888", @@ -181,7 +188,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "EASY_ADDRESS": { "Mainnet": "", @@ -204,7 +212,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MKR_ADDRESS": { "Mainnet": "0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2", @@ -227,7 +236,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MASK_ADDRESS": { "Mainnet": "0x69af81e73A73B40adF4f3d4223Cd9b1ECE623074", @@ -250,7 +260,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MSKA_ADDRESS": { "Mainnet": "", @@ -273,7 +284,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MSKB_ADDRESS": { "Mainnet": "", @@ -296,7 +308,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MSKC_ADDRESS": { "Mainnet": "", @@ -319,7 +332,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MSKD_ADDRESS": { "Mainnet": "", @@ -342,7 +356,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MSKE_ADDRESS": { "Mainnet": "", @@ -365,7 +380,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DAI_ADDRESS": { "Mainnet": "0x6B175474E89094C44Da98b954EedeAC495271d0F", @@ -388,7 +404,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xEf977d2f931C1978Db5F6747666fa1eACB0d0339", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0xc234A67a4F840E61adE794be47de455361b52413" }, "AMPL_ADDRESS": { "Mainnet": "0xD46bA6D942050d489DBd938a2C909A5d5039A161", @@ -411,7 +428,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OKB_ADDRESS": { "Mainnet": "0x75231F58b43240C9718Dd58B4967c5114342a86c", @@ -434,7 +452,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UST_ADDRESS": { "Mainnet": "0xa47c8bf37f92aBed4A126BDA807A7b7498661acD", @@ -457,7 +476,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x224e64ec1BDce3870a6a6c777eDd450454068FEC", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0x8e70cD5B4Ff3f62659049e74b6649c6603A0E594" }, "eUSDC_ADDRESS": { "Mainnet": "", @@ -480,7 +500,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "eUSDT_ADDRESS": { "Mainnet": "", @@ -503,7 +524,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "fUSDT_ADDRESS": { "Mainnet": "", @@ -526,7 +548,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "eDAI_ADDRESS": { "Mainnet": "", @@ -549,7 +572,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNITOKEN_ADDRESS": { "Mainnet": "", @@ -572,7 +596,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TT01_ADDRESS": { "Mainnet": "", @@ -595,7 +620,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TT02_ADDRESS": { "Mainnet": "", @@ -618,7 +644,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "QUICK_ADDRESS": { "Mainnet": "", @@ -641,7 +668,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "WANNA_ADDRESS": { "Mainnet": "", @@ -664,7 +692,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "WBTC_ADDRESS": { "Mainnet": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", @@ -687,7 +716,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x3095c7557bCb296ccc6e363DE01b760bA031F2d9", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0x1DC78Acda13a8BC4408B207c9E48CDBc096D95e0" }, "IGG_ADDRESS": { "Mainnet": "", @@ -710,7 +740,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OM_ADDRESS": { "Mainnet": "", @@ -733,7 +764,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SUSHI_ADDRESS": { "Mainnet": "0x6B3595068778DD592e39A122f4f5a5cF09C90fE2", @@ -756,7 +788,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xBEC775Cb42AbFa4288dE81F387a9b1A3c4Bc552A", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "YAM_ADDRESS": { "Mainnet": "0x0e2298E3B3390e3b945a5456fBf59eCc3f55DA16", @@ -779,7 +812,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "RUNE_ADDRESS": { "Mainnet": "0x3155BA85D5F96b2d030a4966AF206230e46849cb", @@ -802,7 +836,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "YFI_ADDRESS": { "Mainnet": "0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e", @@ -825,7 +860,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "sUSD_ADDRESS": { "Mainnet": "0x57ab1ec28d129707052df4df418d58a2d46d5f51", @@ -848,7 +884,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BTCB_ADDRESS": { "Mainnet": "", @@ -871,7 +908,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "CAKE_ADDRESS": { "Mainnet": "", @@ -894,7 +932,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "maUSDC_ADDRESS": { "Mainnet": "", @@ -917,7 +956,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "stETH_ADDRESS": { "Mainnet": "0xDFe66B14D37C77F4E9b180cEb433d1b164f0281D", @@ -940,7 +980,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "NFTX_ADDRESS": { "Mainnet": "0x87d73E916D7057945c9BcD8cdd94e42A6F47f776", @@ -963,7 +1004,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "cUSD_ADDRESS": { "Mainnet": "", @@ -986,7 +1028,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "cEUR_ADDRESS": { "Mainnet": "", @@ -1009,7 +1052,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "xTRI_ADDRESS": { "Mainnet": "", @@ -1032,7 +1076,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "JOE_ADDRESS": { "Mainnet": "", @@ -1055,7 +1100,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PNG_ADDRESS": { "Mainnet": "", @@ -1078,7 +1124,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "VIPER_ADDRESS": { "Mainnet": "", @@ -1101,7 +1148,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xEa589E93Ff18b1a1F1e9BaC7EF3E86Ab62addc79", - "Harmony_Test": "0x69A655c56087D927eb05247FB56495a0f19B9f70" + "Harmony_Test": "0x69A655c56087D927eb05247FB56495a0f19B9f70", + "Moonbeam": "" }, "JEWEL_ADDRESS": { "Mainnet": "", @@ -1124,7 +1172,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x72Cb10C6bfA5624dD07Ef608027E366bd690048F", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "CRYSTAL_ADDRESS": { "Mainnet": "", @@ -1147,7 +1196,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x72Cb10C6bfA5624dD07Ef608027E366bd690048F", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OPENX_ADDRESS": { "Mainnet": "", @@ -1170,7 +1220,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x01A4b054110d57069c1658AFBC46730529A3E326", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "ETHER_ADDRESS": { "Mainnet": "", @@ -1193,7 +1244,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "NATIVE_TOKEN_ADDRESS": { "Mainnet": "0x0000000000000000000000000000000000000000", @@ -1216,7 +1268,8 @@ "Aurora_Testnet": "", "Conflux": "0x0000000000000000000000000000000000000000", "Harmony": "0x0000000000000000000000000000000000000000", - "Harmony_Test": "0x0000000000000000000000000000000000000000" + "Harmony_Test": "0x0000000000000000000000000000000000000000", + "Moonbeam": "0x0000000000000000000000000000000000000000" }, "WETH_ADDRESS": { "Mainnet": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", @@ -1239,7 +1292,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0x30D2a9F5FDf90ACe8c17952cbb4eE48a55D916A7" }, "aWETH_ADDRESS": { "Mainnet": "0x030bA81f1c18d280636F32af80b9AAd02Cf0854e", @@ -1262,7 +1316,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "ZRX_ADDRESS": { "Mainnet": "0xE41d2489571d322189246DaFA5ebDe1F4699F498", @@ -1285,7 +1340,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aZRX_ADDRESS": { "Mainnet": "0xDf7FF54aAcAcbFf42dfe29DD6144A69b629f8C9e", @@ -1308,7 +1364,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNI_ADDRESS": { "Mainnet": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984", @@ -1331,7 +1388,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aUNI_ADDRESS": { "Mainnet": "0xB9D7CB55f463405CDfBe4E90a6D2Df01C2B92BF1", @@ -1354,7 +1412,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "LIDO_ADDRESS": { "Mainnet": "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32", @@ -1377,7 +1436,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "AAVE_ADDRESS": { "Mainnet": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9", @@ -1400,7 +1460,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xcF323Aad9E522B93F11c352CaA519Ad0E14eB40F", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aAAVE_ADDRESS": { "Mainnet": "0xFFC97d72E13E01096502Cb8Eb52dEe56f74DAD7B", @@ -1423,7 +1484,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xf329e36C7bF6E5E86ce2150875a84Ce77f477375", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BAT_ADDRESS": { "Mainnet": "0x0D8775F648430679A709E98d2b0Cb6250d2887EF", @@ -1446,7 +1508,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aBAT_ADDRESS": { "Mainnet": "0x05Ec93c0365baAeAbF7AefFb0972ea7ECdD39CF1", @@ -1469,7 +1532,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "ENJ_ADDRESS": { "Mainnet": "0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c", @@ -1492,7 +1556,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aENJ_ADDRESS": { "Mainnet": "0xaC6Df26a590F08dcC95D5a4705ae8abbc88509Ef", @@ -1515,7 +1580,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "KNC_ADDRESS": { "Mainnet": "0xdd974D5C2e2928deA5F71b9825b8b646686BD200", @@ -1538,7 +1604,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aKNC_ADDRESS": { "Mainnet": "0x39C6b3e42d6A679d7D776778Fe880BC9487C2EDA", @@ -1561,7 +1628,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "LINK_ADDRESS": { "Mainnet": "0x514910771AF9Ca656af840dff83E8264EcF986CA", @@ -1584,7 +1652,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x218532a12a389a4a92fC0C5Fb22901D1c19198aA", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aLINK_ADDRESS": { "Mainnet": "0xa06bC25B5805d5F8d82847D191Cb4Af5A3e873E0", @@ -1607,7 +1676,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MANA_ADDRESS": { "Mainnet": "0x0F5D2fB29fb7d3CFeE444a200298f468908cC942", @@ -1630,7 +1700,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aMANA_ADDRESS": { "Mainnet": "0xa685a61171bb30d4072B338c80Cb7b2c865c873E", @@ -1653,7 +1724,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "REN_ADDRESS": { "Mainnet": "0x408e41876cCCDC0F92210600ef50372656052a38", @@ -1676,7 +1748,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aREN_ADDRESS": { "Mainnet": "0xCC12AbE4ff81c9378D670De1b57F8e0Dd228D77a", @@ -1699,7 +1772,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SNX_ADDRESS": { "Mainnet": "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F", @@ -1722,7 +1796,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aSNX_ADDRESS": { "Mainnet": "0x35f6B052C598d933D69A4EEC4D04c73A191fE6c2", @@ -1745,7 +1820,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TUSD_ADDRESS": { "Mainnet": "0x0000000000085d4780B73119b644AE5ecd22b376", @@ -1768,7 +1844,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aTUSD_ADDRESS": { "Mainnet": "0x101cc05f4A51C0319f570d5E146a8C625198e636", @@ -1791,7 +1868,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "CRV_ADDRESS": { "Mainnet": "0xD533a949740bb3306d119CC777fa900bA034cd52", @@ -1814,7 +1892,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aCRV_ADDRESS": { "Mainnet": "0x8dAE6Cb04688C62d939ed9B68d32Bc62e49970b1", @@ -1837,7 +1916,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "GUSD_ADDRESS": { "Mainnet": "0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd", @@ -1860,7 +1940,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aGUSD_ADDRESS": { "Mainnet": "0xD37EE7e4f452C6638c96536e68090De8cBcdb583", @@ -1883,7 +1964,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BAL_ADDRESS": { "Mainnet": "0xba100000625a3754423978a60c9317c58a424e3D", @@ -1906,7 +1988,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aBAL_ADDRESS": { "Mainnet": "0x272F97b7a56a387aE942350bBC7Df5700f8a4576", @@ -1929,7 +2012,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "xSUSHI_ADDRESS": { "Mainnet": "0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272", @@ -1952,7 +2036,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aXSUSHI_ADDRESS": { "Mainnet": "0xF256CC7847E919FAc9B808cC216cAc87CCF2f47a", @@ -1975,7 +2060,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "renFIL_ADDRESS": { "Mainnet": "0xD5147bc8e386d91Cc5DBE72099DAC6C9b99276F5", @@ -1998,7 +2084,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aRENFIL_ADDRESS": { "Mainnet": "0x514cd6756CCBe28772d4Cb81bC3156BA9d1744aa", @@ -2021,7 +2108,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "RAI_ADDRESS": { "Mainnet": "0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919", @@ -2044,7 +2132,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aRAI_ADDRESS": { "Mainnet": "0xc9BC48c72154ef3e5425641a3c747242112a46AF", @@ -2067,7 +2156,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "USDP_ADDRESS": { "Mainnet": "0x8E870D67F660D95d5be530380D0eC0bd388289E1", @@ -2090,7 +2180,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aUSDP_ADDRESS": { "Mainnet": "0x2e8F4bdbE3d47d7d7DE490437AeA9915D930F1A3", @@ -2113,7 +2204,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DPI_ADDRESS": { "Mainnet": "0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b", @@ -2136,7 +2228,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aDPI_ADDRESS": { "Mainnet": "0x6F634c6135D2EBD550000ac92F494F9CB8183dAe", @@ -2159,7 +2252,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "FRAX_ADDRESS": { "Mainnet": "0x853d955aCEf822Db058eb8505911ED77F175b99e", @@ -2182,7 +2276,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xFa7191D292d5633f702B0bd7E3E3BcCC0e633200", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "0x322E86852e492a7Ee17f28a78c663da38FB33bfb" }, "aFRAX_ADDRESS": { "Mainnet": "0xd4937682df3C8aEF4FE912A96A74121C0829E664", @@ -2205,7 +2300,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "FEI_ADDRESS": { "Mainnet": "0x956F47F50A910163D8BF957Cf5846D573E7f87CA", @@ -2228,7 +2324,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aFEI_ADDRESS": { "Mainnet": "0x683923dB55Fead99A79Fa01A27EeC3cB19679cC3", @@ -2251,7 +2348,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aWBTC_ADDRESS": { "Mainnet": "0x9ff58f4fFB29fA2266Ab25e75e2A8b3503311656", @@ -2274,7 +2372,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x078f358208685046a11C85e8ad32895DED33A249", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aYFI_ADDRESS": { "Mainnet": "0x5165d24277cD063F5ac44Efd447B27025e888f37", @@ -2297,7 +2396,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aBUSD_ADDRESS": { "Mainnet": "0xA361718326c15715591c299427c62086F69923D9", @@ -2320,7 +2420,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aDAI_ADDRESS": { "Mainnet": "0x028171bCA77440897B824Ca71D1c56caC55b68A3", @@ -2343,7 +2444,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aMKR_ADDRESS": { "Mainnet": "0xc713e5E149D5D0715DcD1c156a020976e7E56B88", @@ -2366,7 +2468,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aSUSD_ADDRESS": { "Mainnet": "0x6C5024Cd4F8A59110119C56f8933403A539555EB", @@ -2389,7 +2492,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aUSDC_ADDRESS": { "Mainnet": "0xBcca60bB61934080951369a648Fb03DF4F96263C", @@ -2412,7 +2516,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "aAMPL_ADDRESS": { "Mainnet": "0x1E6bb68Acec8fefBD87D192bE09bb274170a0548", @@ -2435,6 +2540,175 @@ "Aurora_Testnet": "", "Conflux": "0x0000000000000000000000000000000000000000", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" + }, + "SHARE_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "0x60781C2586D68229fde47564546784ab3fACA982", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x4204cAd97732282d261FbB7088e07557810A6408" + }, + "STELLA_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "0x60781C2586D68229fde47564546784ab3fACA982", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x0e358838ce72d5e61e0018a2ffac4bec5f4c88d2" + }, + "TOAD_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "0x463e737d8f740395abf44f7aac2d9531d8d539e9", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "0x60781C2586D68229fde47564546784ab3fACA982", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xF480f38C366dAaC4305dC484b2Ad7a496FF00CeA" + }, + "PAD_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "0xc0888d80ee0abf84563168b3182650c0addeb6d5", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "0x60781C2586D68229fde47564546784ab3fACA982", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x59193512877E2EC3bB27C178A8888Cfac62FB32D" + }, + "ZLK_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x0f47ba9d9Bde3442b42175e51d6A367928A1173B" + }, + "FLARE_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xE3e43888fa7803cDC7BEA478aB327cF1A0dc11a7" + }, + "GLINT_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xcd3B51D98478D53F4515A306bE565c6EebeF1D58" } } diff --git a/packages/web3-constants/evm/trader.json b/packages/web3-constants/evm/trader.json index 3b20c45fa677..b4617dd748d0 100644 --- a/packages/web3-constants/evm/trader.json +++ b/packages/web3-constants/evm/trader.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V2_FACTORY_ADDRESS": { "Mainnet": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V2_THEGRAPH": { "Mainnet": "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2", @@ -66,7 +68,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V2_INIT_CODE_HASH": { "Mainnet": "0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f", @@ -89,7 +92,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_SWAP_ROUTER_ADDRESS": { "Mainnet": "0xe592427a0aece92de3edee1f18e0157c05861564", @@ -112,7 +116,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V3_FACTORY_ADDRESS": { "Mainnet": "0x1F98431c8aD98523631AE4a59f267346ea31F984", @@ -135,7 +140,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V3_QUOTER_ADDRESS": { "Mainnet": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", @@ -158,7 +164,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V3_THEGRAPH": { "Mainnet": "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3", @@ -181,7 +188,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V3_INIT_CODE_HASH": { "Mainnet": "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54", @@ -204,7 +212,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SUSHISWAP_ROUTER_ADDRESS": { "Mainnet": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F", @@ -227,7 +236,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "Harmony_Test": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506" + "Harmony_Test": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "Moonbeam": "" }, "SUSHISWAP_FACTORY_ADDRESS": { "Mainnet": "0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac", @@ -250,7 +260,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4", - "Harmony_Test": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + "Harmony_Test": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4", + "Moonbeam": "" }, "SUSHISWAP_THEGRAPH": { "Mainnet": "https://api.thegraph.com/subgraphs/name/zippoxer/sushiswap-subgraph-fork", @@ -273,7 +284,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SUSHISWAP_INIT_CODE_HASH": { "Mainnet": "0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303", @@ -296,7 +308,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303", - "Harmony_Test": "0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303" + "Harmony_Test": "0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303", + "Moonbeam": "" }, "SASHIMISWAP_ROUTER_ADDRESS": { "Mainnet": "0xe4fe6a45f354e845f954cddee6084603cedb9410", @@ -319,7 +332,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SASHIMISWAP_FACTORY_ADDRESS": { "Mainnet": "0xF028F723ED1D0fE01cC59973C49298AA95c57472", @@ -342,7 +356,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SASHIMISWAP_THEGRAPH": { "Mainnet": "https://api.thegraph.com/subgraphs/name/sashimiproject/sashimi", @@ -365,7 +380,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "SASHIMISWAP_INIT_CODE_HASH": { "Mainnet": "0xb465bbe4edb8c9b0da8ff0b2b36ce0065de9fcd5a33f32c6856ea821779c8b72", @@ -388,7 +404,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "QUICKSWAP_ROUTER_ADDRESS": { "Mainnet": "", @@ -411,7 +428,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "QUICKSWAP_FACTORY_ADDRESS": { "Mainnet": "", @@ -434,7 +452,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "QUICKSWAP_THEGRAPH": { "Mainnet": "", @@ -457,7 +476,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "QUICKSWAP_INIT_CODE_HASH": { "Mainnet": "", @@ -480,7 +500,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANCAKESWAP_ROUTER_ADDRESS": { "Mainnet": "", @@ -503,7 +524,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANCAKESWAP_FACTORY_ADDRESS": { "Mainnet": "", @@ -526,7 +548,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANCAKESWAP_THEGRAPH": { "Mainnet": "", @@ -549,7 +572,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANCAKESWAP_INIT_CODE_HASH": { "Mainnet": "", @@ -572,7 +596,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BALANCER_ETH_ADDRESS": { "Mainnet": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", @@ -595,7 +620,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BALANCER_EXCHANGE_PROXY_ADDRESS": { "Mainnet": "0x3E66B66Fd1d0b02fDa6C811Da9E0547970DB2f21", @@ -618,7 +644,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BALANCER_POOLS_URL": { "Mainnet": "https://ipfs.fleek.co/ipns/balancer-bucket.storage.fleek.co/balancer-exchange/pools", @@ -641,7 +668,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DODO_ETH_ADDRESS": { "Mainnet": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", @@ -664,7 +692,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DODO_EXCHANGE_PROXY_ADDRESS": { "Mainnet": "0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149", @@ -687,7 +716,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BANCOR_ETH_ADDRESS": { "Mainnet": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", @@ -710,7 +740,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "BANCOR_EXCHANGE_PROXY_ADDRESS": { "Mainnet": "0x2F9EC37d6CcFFf1caB21733BdaDEdE11c823cCB0", @@ -733,7 +764,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRADERJOE_ROUTER_ADDRESS": { "Mainnet": "", @@ -756,7 +788,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRADERJOE_FACTORY_ADDRESS": { "Mainnet": "", @@ -779,7 +812,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRADERJOE_THEGRAPH": { "Mainnet": "https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange", @@ -802,7 +836,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRADERJOE_INIT_CODE_HASH": { "Mainnet": "", @@ -825,7 +860,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OPENOCEAN_ETH_ADDRESS": { "Mainnet": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", @@ -848,7 +884,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OPENOCEAN_EXCHANGE_PROXY_ADDRESS": { "Mainnet": "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", @@ -871,7 +908,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANGOLIN_ROUTER_ADDRESS": { "Mainnet": "", @@ -894,7 +932,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANGOLIN_FACTORY_ADDRESS": { "Mainnet": "", @@ -917,7 +956,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANGOLIN_THEGRAPH": { "Mainnet": "", @@ -940,7 +980,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "PANGOLIN_INIT_CODE_HASH": { "Mainnet": "", @@ -963,7 +1004,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "WANNASWAP_ROUTER_V2_ADDRESS": { "Mainnet": "", @@ -986,7 +1028,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "WANNASWAP_ROUTER_ADDRESS": { "Mainnet": "", @@ -1009,7 +1052,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "WANNASWAP_FACTORY_ADDRESS": { "Mainnet": "", @@ -1032,7 +1076,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "WANNASWAP_THEGRAPH": { "Mainnet": "", @@ -1055,7 +1100,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "WANNASWAP_INIT_CODE_HASH": { "Mainnet": "", @@ -1078,7 +1124,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRISOLARIS_ROUTER_ADDRESS": { "Mainnet": "", @@ -1101,7 +1148,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRISOLARIS_FACTORY_ADDRESS": { "Mainnet": "", @@ -1124,7 +1172,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRISOLARIS_THEGRAPH": { "Mainnet": "", @@ -1147,7 +1196,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "TRISOLARIS_INIT_CODE_HASH": { "Mainnet": "", @@ -1170,7 +1220,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MDEX_ROUTER_ADDRESS": { "Mainnet": "0x74119c3bca85bEA0538A62319a79b4a372590B47", @@ -1193,7 +1244,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MDEX_FACTORY_ADDRESS": { "Mainnet": "0x7DAe51BD3E3376B8c7c4900E9107f12Be3AF1bA8", @@ -1216,7 +1268,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MDEX_THEGRAPH": { "Mainnet": "", @@ -1239,7 +1292,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "MDEX_INIT_CODE_HASH": { "Mainnet": "0x8ecc069c645df696f2ca5116ab459c5c2889f299e73c1b208aaa3cdd7d110b16", @@ -1262,7 +1316,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "VENOMSWAP_ROUTER_ADDRESS": { "Mainnet": "", @@ -1285,7 +1340,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xf012702a5f0e54015362cbca26a26fc90aa832a3", - "Harmony_Test": "0x8e9A3cE409B13ef459fE4448aE97a79d6Ecd8b4b" + "Harmony_Test": "0x8e9A3cE409B13ef459fE4448aE97a79d6Ecd8b4b", + "Moonbeam": "" }, "VENOMSWAP_FACTORY_ADDRESS": { "Mainnet": "", @@ -1308,7 +1364,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x7D02c116b98d0965ba7B642ace0183ad8b8D2196", - "Harmony_Test": "0x066bafafC84607a956967F6f050bD14A8347952F" + "Harmony_Test": "0x066bafafC84607a956967F6f050bD14A8347952F", + "Moonbeam": "" }, "VENOMSWAP_THEGRAPH": { "Mainnet": "", @@ -1331,7 +1388,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "VENOMSWAP_INIT_CODE_HASH": { "Mainnet": "", @@ -1354,7 +1412,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x162f79e638367cd45a118c778971dfd8d96c625d2798d3b71994b035cfe9b6dc", - "Harmony_Test": "0x162f79e638367cd45a118c778971dfd8d96c625d2798d3b71994b035cfe9b6dc" + "Harmony_Test": "0x162f79e638367cd45a118c778971dfd8d96c625d2798d3b71994b035cfe9b6dc", + "Moonbeam": "" }, "OPENSWAP_ROUTER_ADDRESS": { "Mainnet": "", @@ -1377,7 +1436,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x2F99992024DCC51324BA4956bB1c510F36FA54F5", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OPENSWAP_FACTORY_ADDRESS": { "Mainnet": "", @@ -1400,7 +1460,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x5d2F9817303b940C9bB4F47C8C566c5C034d9848", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OPENSWAP_THEGRAPH": { "Mainnet": "", @@ -1423,7 +1484,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "OPENSWAP_INIT_CODE_HASH": { "Mainnet": "", @@ -1446,7 +1508,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x613b6eaa34b43dcb7eb8881dd4b5af85805be104d5f2f385304ffa8bda5e219c", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DEFIKINGDOMS_ROUTER_ADDRESS": { "Mainnet": "", @@ -1469,7 +1532,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x24ad62502d1C652Cc7684081169D04896aC20f30", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DEFIKINGDOMS_FACTORY_ADDRESS": { "Mainnet": "", @@ -1492,7 +1556,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0x9014B937069918bd319f80e8B3BB4A2cf6FAA5F7", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DEFIKINGDOMS_THEGRAPH": { "Mainnet": "", @@ -1515,7 +1580,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "DEFIKINGDOMS_INIT_CODE_HASH": { "Mainnet": "", @@ -1538,6 +1604,487 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "0xf1c21a825f13eff153022ddea53156462dd79972b6f88adf06f79ca8b042c3c1", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" + }, + "BEAMSWAP_ROUTER_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "0x60913758635b54e6C9685f92201A5704eEe74748", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "0x2CB45Edb4517d5947aFdE3BEAbF95A582506858B", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x96b244391D98B62D19aE89b1A4dCcf0fc56970C7" + }, + "BEAMSWAP_FACTORY_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x985BcA32293A7A496300a48081947321177a86FD" + }, + "BEAMSWAP_THEGRAPH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "" + }, + "BEAMSWAP_INIT_CODE_HASH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xe31da4209ffcce713230a74b5287fa8ec84797c9e77e1f7cfeccea015cdc97ea" + }, + "STELLASWAP_ROUTER_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "0x60913758635b54e6C9685f92201A5704eEe74748", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "0x2CB45Edb4517d5947aFdE3BEAbF95A582506858B", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xd0A01ec574D1fC6652eDF79cb2F880fd47D34Ab1" + }, + "STELLASWAP_FACTORY_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x68A384D826D3678f78BB9FB1533c7E9577dACc0E" + }, + "STELLASWAP_THEGRAPH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "" + }, + "STELLASWAP_INIT_CODE_HASH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x48a6ca3d52d0d0a6c53a83cc3c8688dd46ea4cb786b169ee959b95ad30f61643" + }, + "PADSWAP_ROUTER_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "0x76437234D29f84D9A12820A137c6c6A719138C24", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x40F1fEF0Fe68Fd10ff904070ee00a7769EE7fe34 " + }, + "PADSWAP_FACTORY_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "0xB836017ACf10b8A7c6c6C9e99eFE0f5B0250FC45", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x663a07a2648296f1A3C02EE86A126fE1407888E5" + }, + "PADSWAP_THEGRAPH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "" + }, + "PADSWAP_INIT_CODE_HASH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "0x71e6e31358ee16b3d9300fae77629fc40a171f4cc53183576ba7ba5fb318c931", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x3eb475f0bc063c4f457199bae925b27d909f4af70ef7db78ba734972fc1a8543" + }, + "ZENLINK_ROUTER_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x7a3909C7996EFE42d425cD932fc44E3840fCAB71" + }, + "ZENLINK_FACTORY_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xf49255205dfd7933c4d0f25a57d40b1511f92fef" + }, + "ZENLINK_THEGRAPH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "" + }, + "ZENLINK_INIT_CODE_HASH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x7eba2084662eb5b00a4d7e2a74743051dc33bfe07fcbcd724b88b351a7078fda" + }, + "SOLFLARE_ROUTER_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xd3b02ff30c218c7f7756ba14bca075bf7c2c951e" + }, + "SOLFLARE_FACTORY_ADDRESS": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0x19b85ae92947e0725d5265ffb3389e7e4f191fda" + }, + "SOLFLARE_THEGRAPH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "" + }, + "SOLFLARE_INIT_CODE_HASH": { + "Mainnet": "", + "Ropsten": "", + "Rinkeby": "", + "Kovan": "", + "Gorli": "", + "BSC": "", + "BSCT": "", + "Matic": "", + "Mumbai": "", + "Arbitrum": "", + "Arbitrum_Rinkeby": "", + "xDai": "", + "Avalanche": "", + "Avalanche_Fuji": "", + "Celo": "", + "Fantom": "", + "Aurora": "", + "Aurora_Testnet": "", + "Conflux": "", + "Harmony": "", + "Harmony_Test": "", + "Moonbeam": "0xe21386787732ef8059a646602f85a5ebb23848cddd90ef5a8d111ec84a4cb71f " } } diff --git a/packages/web3-constants/evm/trending.json b/packages/web3-constants/evm/trending.json index d905555795f4..4de9c781d5fb 100644 --- a/packages/web3-constants/evm/trending.json +++ b/packages/web3-constants/evm/trending.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "UNISWAP_V2_HEALTH_URL": { "Mainnet": "https://api.thegraph.com/index-node/graphql", @@ -43,7 +44,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" }, "ETHEREUM_BLOCKS_SUBGRAPH_URL": { "Mainnet": "https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks", @@ -66,6 +68,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "" } } diff --git a/packages/web3-constants/evm/zerion.json b/packages/web3-constants/evm/zerion.json index e37ba5227d63..64a82c90fa9c 100644 --- a/packages/web3-constants/evm/zerion.json +++ b/packages/web3-constants/evm/zerion.json @@ -20,7 +20,8 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "harmony-assets", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "moonbeam-assets" }, "TRANSACTIONS_SCOPE_NAME": { "Mainnet": "transactions", @@ -43,6 +44,7 @@ "Aurora_Testnet": "", "Conflux": "", "Harmony": "harmony-transactions", - "Harmony_Test": "" + "Harmony_Test": "", + "Moonbeam": "moonbeam-assets" } } diff --git a/packages/web3-providers/src/zerion/format.ts b/packages/web3-providers/src/zerion/format.ts index ca77b158043e..f5a0c2061b2a 100644 --- a/packages/web3-providers/src/zerion/format.ts +++ b/packages/web3-providers/src/zerion/format.ts @@ -64,7 +64,8 @@ export function formatAssets( return data.map(({ asset, quantity }) => { const balance = leftShift(quantity, asset.decimals).toNumber() const value = (asset as ZerionAsset).price?.value ?? (asset as ZerionCovalentAsset).value ?? 0 - const isNativeToken = (symbol: string) => ['ETH', 'BNB', 'MATIC', 'ARETH', 'AETH', 'ONE'].includes(symbol) + const isNativeToken = (symbol: string) => + ['ETH', 'BNB', 'MATIC', 'ARETH', 'AETH', 'ONE', 'GLMR'].includes(symbol) const address = isNativeToken(asset.symbol) ? getTokenConstants().NATIVE_TOKEN_ADDRESS ?? '' : asset.asset_code return { diff --git a/packages/web3-shared/evm/assets/moonbeam.png b/packages/web3-shared/evm/assets/moonbeam.png new file mode 100644 index 000000000000..360d69ba7692 Binary files /dev/null and b/packages/web3-shared/evm/assets/moonbeam.png differ diff --git a/packages/web3-shared/evm/constants/chains.json b/packages/web3-shared/evm/constants/chains.json index afd4c0883a8a..2d7c739ee235 100644 --- a/packages/web3-shared/evm/constants/chains.json +++ b/packages/web3-shared/evm/constants/chains.json @@ -1708,6 +1708,18 @@ }, "infoURL": "https://mathchain.org" }, + { + "chainId": 1284, + "name": "Moonbeam Polkadot", + "chain": "Moonbeam", + "network": "mainnet", + "rpc": ["https://moonbeam.blastapi.io/905553b4-5acd-4f24-b473-ebca226a76c4"], + "faucets": [], + "features": ["EIP1559"], + "nativeCurrency": { "chainId": 1284, "name": "Glimmer", "symbol": "GLMR", "decimals": 18 }, + "infoURL": "https://moonscan.io/", + "shortName": "Moobeam" + }, { "chainId": 1140, "name": "MATH", diff --git a/packages/web3-shared/evm/constants/descriptors.ts b/packages/web3-shared/evm/constants/descriptors.ts index 8c031fc6c56c..596773089c77 100644 --- a/packages/web3-shared/evm/constants/descriptors.ts +++ b/packages/web3-shared/evm/constants/descriptors.ts @@ -214,6 +214,16 @@ export const NETWORK_DESCRIPTORS: Array> iconColor: 'rgb(112, 212, 74)', isMainnet: true, }, + { + ID: `${PLUGIN_ID}_moonbeam`, + networkSupporterPluginID: PLUGIN_ID, + chainId: ChainId.Moonbeam, + type: NetworkType.Moonbeam, + name: 'Moonbeam', + icon: new URL('../assets/moonbeam.png', import.meta.url), + iconColor: 'rgb(127, 39, 88)', + isMainnet: true, + }, ] export const PROVIDER_DESCRIPTORS: Array> = [ { diff --git a/packages/web3-shared/evm/constants/getContractOwnerDomain.ts b/packages/web3-shared/evm/constants/getContractOwnerDomain.ts index b38f5de4fe91..3d8ccc316f19 100644 --- a/packages/web3-shared/evm/constants/getContractOwnerDomain.ts +++ b/packages/web3-shared/evm/constants/getContractOwnerDomain.ts @@ -50,6 +50,7 @@ const domainAddressMap: Record = { 'WANNASWAP_ROUTER_ADDRESS', 'WANNASWAP_FACTORY_ADDRESS', ]), + 'dex.zenlink.pro': collect(Trader, ['ZENLINK_ROUTER_ADDRESS', 'ZENLINK_FACTORY_ADDRESS']), 'www.trisolaris.io': collect(Trader, ['TRISOLARIS_ROUTER_ADDRESS', 'TRISOLARIS_FACTORY_ADDRESS']), 'mdex.com': collect(Trader, ['MDEX_ROUTER_ADDRESS', 'MDEX_FACTORY_ADDRESS']), 'aave.com': collect(Aave, ['AAVE_LENDING_POOL_ADDRESSES_PROVIDER_CONTRACT_ADDRESS']), diff --git a/packages/web3-shared/evm/constants/tokens.ts b/packages/web3-shared/evm/constants/tokens.ts index d3652d387008..cd8a289b7dd1 100644 --- a/packages/web3-shared/evm/constants/tokens.ts +++ b/packages/web3-shared/evm/constants/tokens.ts @@ -53,9 +53,15 @@ export const CUSD = createERC20Tokens('cUSD_ADDRESS', 'Celo Dollar', 'cUSD', 18) export const CEUR = createERC20Tokens('cEUR_ADDRESS', 'Celo Euro', 'cEUR', 18) export const JOE = createERC20Tokens('JOE_ADDRESS', 'JoeToken', 'JOE', 18) export const PNG = createERC20Tokens('PNG_ADDRESS', 'Pangolin', 'PNG', 18) +export const SHARE = createERC20Tokens('SHARE_ADDRESS', 'Beamshare Token', 'SHARE', 18) +export const STELLA = createERC20Tokens('STELLA_ADDRESS', 'StellaSwap', 'STELLA', 18) +export const PAD = createERC20Tokens('PAD_ADDRESS', 'Glmr Pad', 'PAD', 18) +export const FLARE = createERC20Tokens('FLARE_ADDRESS', 'Flare Token', 'FLARE', 18) +export const ZLK = createERC20Tokens('ZLK_ADDRESS', 'Zenlink Network Token ', 'ZLK', 18) export const VIPER = createERC20Tokens('VIPER_ADDRESS', 'Viper', 'VIPER', 18) export const OPENX = createERC20Tokens('OPENX_ADDRESS', 'OpenSwap Token', 'OpenX', 18) export const JEWEL = createERC20Tokens('JEWEL_ADDRESS', 'Jewels', 'JEWEL', 18) +export const GLINT = createERC20Tokens('GLINT_ADDRESS', 'Beamswap Token', 'GLINT', 18) export const WNATIVE = createERC20Tokens( 'WNATIVE_ADDRESS', @@ -83,5 +89,6 @@ export const WNATIVE_ONLY: ERC20AgainstToken = { [ChainId.Fantom]: [WNATIVE[ChainId.Fantom]], [ChainId.Aurora]: [WNATIVE[ChainId.Aurora]], [ChainId.Aurora_Testnet]: [WNATIVE[ChainId.Aurora_Testnet]], + [ChainId.Moonbeam]: [WNATIVE[ChainId.Moonbeam]], [ChainId.Harmony]: [WNATIVE[ChainId.Harmony]], } diff --git a/packages/web3-shared/evm/types/index.ts b/packages/web3-shared/evm/types/index.ts index 88cf990015d6..0c2cd874f8cc 100644 --- a/packages/web3-shared/evm/types/index.ts +++ b/packages/web3-shared/evm/types/index.ts @@ -63,6 +63,9 @@ export enum ChainId { // Optimistic Optimistic = 10, + // Moonbeam + Moonbeam = 1284, + // Harmony Harmony = 1666600000, Harmony_Test = 1666700000, @@ -257,6 +260,7 @@ export enum NetworkType { Fuse = 'Fuse', Metis = 'Metis', Optimistic = 'Optimistic', + Moonbeam = 'Moonbeam', Harmony = 'Harmony', Conflux = 'Conflux', }