Skip to content

Commit

Permalink
Revert "feat: support scroll sdk (#11815)"
Browse files Browse the repository at this point in the history
This reverts commit f1dcbdf.
  • Loading branch information
dudu0506 authored Sep 26, 2024
1 parent f1dcbdf commit ae6312f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 63 deletions.
1 change: 0 additions & 1 deletion packages/plugins/RedPacket/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const base: Plugin.Shared.Definition = {
ChainId.Scroll,
ChainId.Metis,
ChainId.XLayer,
ChainId.ScrollSDK,
],
},
[NetworkPluginID.PLUGIN_FLOW]: { supportedChainIds: [] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const useStyles = makeStyles<StyleProps>()((theme, { compact, isList }) => ({
position: 'relative',
},
sidebarContainer: {
paddingBottom: '36px',
width: 27,
height: isList ? 486 : undefined,
},
Expand Down
6 changes: 2 additions & 4 deletions packages/web3-constants/evm/ethereum.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"Scroll": "0xbC7d98985966f56A66B0cB5F23d865676dc2ac84",
"Metis": "0xC119574D5Fb333F5AC018658D4d8b5035E16bf39",
"XLayer": "0x87EDa3a18e8C005e120B235AC52F3305186d5d25",
"XLayer_Testnet": "0x8A42F70047a99298822dD1dbA34b454fc49913F2",
"ScrollSDK": "0xBa76691EC212055AAE6000Eeb84a777648E90135"
"XLayer_Testnet": "0x8A42F70047a99298822dD1dbA34b454fc49913F2"
},
"MULTICALL_ADDRESS": {
"Mainnet": "0x1F98415757620B543A52E61c46B32eB19261F984",
Expand Down Expand Up @@ -52,8 +51,7 @@
"Scroll": "0x20Ee232E34B87061fE3ba0DB738A3531A3e915BF",
"Metis": "0x6cc1b1058F9153358278C35E0b2D382f1585854B",
"XLayer": "0x8A42F70047a99298822dD1dbA34b454fc49913F2",
"XLayer_Testnet": "0xF8935Df67cAB7BfcA9532D1Ac2088C5c39b995b5",
"ScrollSDK": "0x81Dc953657B8714043af6d70E02c31448bFd64EA"
"XLayer_Testnet": "0xF8935Df67cAB7BfcA9532D1Ac2088C5c39b995b5"
},
"ENS_REGISTRAR_ADDRESS": {
"Mainnet": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
Expand Down
6 changes: 2 additions & 4 deletions packages/web3-constants/evm/red-packet.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"Scroll": "0x16f61cb37169523635B6761f3C946892fb3c18fB",
"Metis": "0x2cf91AD8C175305EBe6970Bd8f81231585EFbd77",
"XLayer": "0xDb847f1D8099C5b15519ECfd0b0C981d719bccE6",
"XLayer_Testnet": "0x977baB5f7e2cEd0C91fDA890Ed1DBDfD3Ee9AE81",
"ScrollSDK": "0xb20c685281A43581A2B4A54F613431273E5c8613"
"XLayer_Testnet": "0x977baB5f7e2cEd0C91fDA890Ed1DBDfD3Ee9AE81"
},
"HAPPY_RED_PACKET_ADDRESS_V4_BLOCK_HEIGHT": {
"Mainnet": 12939427,
Expand Down Expand Up @@ -71,7 +70,6 @@
"Scroll": 96705,
"Metis": 1702860,
"XLayer": 0,
"XLayer_Testnet": 7320220,
"ScrollSDK": 0
"XLayer_Testnet": 7320220
}
}
9 changes: 3 additions & 6 deletions packages/web3-constants/evm/rpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
"Scroll": ["https://rpc.scroll.io"],
"Metis": ["https://andromeda.metis.io/?owner=1088"],
"XLayer": ["https://rpc.xlayer.tech"],
"XLayer_Testnet": ["https://testrpc.xlayer.tech"],
"ScrollSDK": ["http://l2-rpc.scrollsdk"]
"XLayer_Testnet": ["https://testrpc.xlayer.tech"]
},
"RPC_URLS_OFFICIAL": {
"Mainnet": ["https://mainnet.infura.io/v3/d65858b010d249419cf8687eca12b094"],
Expand Down Expand Up @@ -105,8 +104,7 @@
"Scroll": ["https://rpc.scroll.io"],
"Metis": ["https://andromeda.metis.io/?owner=1088"],
"XLayer": ["https://rpc.xlayer.tech"],
"XLayer_Testnet": ["https://testrpc.xlayer.tech"],
"ScrollSDK": ["http://l2-rpc.scrollsdk"]
"XLayer_Testnet": ["https://testrpc.xlayer.tech"]
},
"RPC_WEIGHTS": {
"Mainnet": [0, 1, 2, 3, 4],
Expand Down Expand Up @@ -137,7 +135,6 @@
"Scroll": [0, 0, 0, 0, 0],
"Metis": [0, 0, 0, 0, 0],
"XLayer": [0, 0, 0, 0, 0],
"XLayer_Testnet": [0, 0, 0, 0, 0],
"ScrollSDK": [0, 0, 0, 0, 0]
"XLayer_Testnet": [0, 0, 0, 0, 0]
}
}
3 changes: 1 addition & 2 deletions packages/web3-constants/evm/token-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"Astar": ["https://tokens.r2d2.to/latest/592/tokens.json"],
"Scroll": ["https://tokens.r2d2.to/latest/534352/tokens.json"],
"Metis": ["https://tokens.r2d2.to/latest/1088/tokens.json"],
"XLayer": ["https://tokens.r2d2.to/latest/196/tokens.json"],
"ScrollSDK": ["https://media.firefly.land/test/scroll-sdk.json"]
"XLayer": ["https://tokens.r2d2.to/latest/196/tokens.json"]
}
}
30 changes: 1 addition & 29 deletions packages/web3-shared/evm/src/constants/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1376,33 +1376,5 @@
"url": "https://explorer.linea.build"
}
]
},
{
"chainId": 221122,
"type": "ScrollSDK",
"name": "ScrollSDK",
"network": "mainnet",
"fullName": "ScrollSDK",
"shortName": "ScrollSDK",
"rpc": ["http://l2-rpc.scrollsdk"],
"faucets": [],
"features": [],
"nativeCurrency": {
"chainId": 221122,
"name": "Ether",
"symbol": "ETH",
"decimals": 18,
"logoURL": "https://imagedelivery.net/PCnTHRkdRhGodr0AWBAvMA/Assets/blockchains/ethereum/info/logo.png/quality=85"
},
"defaultGasLimit": "90000",
"minGasLimit": "21000",
"infoURL": "http://blockscout.scrollsdk/",
"explorers": [
{
"name": "blockscout",
"url": "http://blockscout.scrollsdk/",
"standard": "EIP3091"
}
]
}
]
]
13 changes: 0 additions & 13 deletions packages/web3-shared/evm/src/constants/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,19 +365,6 @@ export const NETWORK_DESCRIPTORS: ReadonlyArray<NetworkDescriptor<ChainId, Netwo
isMainnet: true,
averageBlockDelay: 10,
},
{
ID: `${PLUGIN_ID}_scroll-sdk`,
networkSupporterPluginID: PLUGIN_ID,
chainId: ChainId.ScrollSDK,
type: NetworkType.ScrollSDK,
name: 'ScrollSDK',
icon: new URL('../assets/scroll.svg', import.meta.url).href,
backgroundGradient:
'linear-gradient(180deg, rgba(98, 126, 234, 0.15) 0%, rgba(98, 126, 234, 0.05) 100%), rgba(255, 255, 255, 0.2)',
iconColor: 'rgb(255, 248, 243)',
averageBlockDelay: 9,
isMainnet: true,
},
]

export const CHAIN_DESCRIPTORS: ReadonlyArray<ChainDescriptor<ChainId, SchemaType, NetworkType>> = CHAINS.map((x) => {
Expand Down
3 changes: 0 additions & 3 deletions packages/web3-shared/evm/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ export enum ChainId {
ZkSyncEra = 324,

Linea = 59144,

ScrollSDK = 221122,
}

export enum AddressType {
Expand Down Expand Up @@ -313,7 +311,6 @@ export enum NetworkType {
Zora = 'Zora',
ZkSyncEra = 'ZkSyncEra',
Linea = 'Linea',
ScrollSDK = 'ScrollSDK',
}

export enum ProviderType {
Expand Down

0 comments on commit ae6312f

Please sign in to comment.