Skip to content

Commit ea4adc9

Browse files
authored
Merge pull request #415 from SocketDotTech/bungee-chains
Bungee chains
2 parents d0e9a80 + ded382d commit ea4adc9

21 files changed

+650
-4
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,5 @@ MONAD_TESTNET_RPC=' '
125125
SCROLL_RPC=' '
126126

127127
SONEIUM_RPC=' '
128+
129+
SWELLCHAIN_RPC=' '

deployments/prod_addresses.json

+594
Large diffs are not rendered by default.

deployments/prod_verification.json

+26
Original file line numberDiff line numberDiff line change
@@ -2855,6 +2855,32 @@
28552855
[]
28562856
]
28572857
],
2858+
"1923": [
2859+
[
2860+
"0x8c36353db4F3a2DDDeed38405199d13DCF8a1B82",
2861+
"SocketSimulator",
2862+
"contracts/mocks/fee-updater/SocketSimulator.sol",
2863+
[
2864+
1923,
2865+
1923,
2866+
"0x9B8c323468AEC7A7Cb041CeD48F92559bFF33705",
2867+
"0x1CAdCd88fC148D3966eDe75D029937C886f66009",
2868+
"IMLI"
2869+
]
2870+
],
2871+
[
2872+
"0xb4Ef469c9d8317851270346070dA0ecE24616E6b",
2873+
"CapacitorFactory",
2874+
"contracts/CapacitorFactory.sol",
2875+
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", 10]
2876+
],
2877+
[
2878+
"0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3",
2879+
"SafeProxyFactory",
2880+
"contracts/utils/multisig/proxies/SafeProxyFactory.sol",
2881+
[]
2882+
]
2883+
],
28582884
"2999": [
28592885
[
28602886
"0x74EBb564b92A3F7AcfFeb8aF3b322831bF57ac22",

hardhat.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ if (isProduction) {
126126
[HardhatChainName.UNICHAIN]: getChainConfig(ChainSlug.UNICHAIN),
127127
[HardhatChainName.SCROLL]: getChainConfig(ChainSlug.SCROLL),
128128
[HardhatChainName.SONEIUM]: getChainConfig(ChainSlug.SONEIUM),
129+
[HardhatChainName.SWELLCHAIN]: getChainConfig(ChainSlug.SWELLCHAIN),
129130
};
130131
}
131132

@@ -184,6 +185,7 @@ const config: HardhatUserConfig = {
184185
unichain: process.env.UNICHAIN_API_KEY || "none",
185186
scroll: process.env.SCROLLSCAN_API_KEY || "",
186187
soneium: process.env.SONEIUM_API_KEY || "none",
188+
swellchain: process.env.SWELLCHAIN_API_KEY || "none",
187189
},
188190
customChains: [
189191
{
@@ -394,6 +396,14 @@ const config: HardhatUserConfig = {
394396
browserURL: "https://soneium.blockscout.com/",
395397
},
396398
},
399+
{
400+
network: "swellchain",
401+
chainId: ChainId.SWELLCHAIN,
402+
urls: {
403+
apiURL: "https://explorer.swellnetwork.io/api",
404+
browserURL: "https://explorer.swellnetwork.io/",
405+
},
406+
},
397407
],
398408
},
399409
networks: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@socket.tech/dl-core",
33
"license": "UNLICENSED",
4-
"version": "2.41.0",
4+
"version": "2.42.0",
55
"description": "Smart contracts for socket data layer.",
66
"main": "./dist/src/index.js",
77
"types": "./dist/src/index.d.ts",

scripts/admin/rotate-owner/2-claim-with-multisig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const main = async () => {
5959
parseInt(chainSlug),
6060
chainAddresses,
6161
true,
62-
false
62+
true
6363
);
6464

6565
// startBlock field ignored since it is not contract

scripts/deploy/scripts/roles.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ const executeTransactions = async (
207207
chainSlug,
208208
allAddresses[chainSlug],
209209
safeChains.includes(chainSlug),
210-
!safeChains.includes(chainSlug)
210+
// !safeChains.includes(chainSlug)
211+
true
211212
);
212213
await executeRoleTransactions(chainSlug, newRoleStatus, relaySigner);
213214
await executeOtherTransactions(chainSlug, relaySigner);

scripts/rpcConfig/constants/batcherSupportedChainSlug.ts

+1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ export const batcherSupportedChainSlugs = [
5858
// ChainSlug.MONAD_TESTNET,
5959
ChainSlug.SCROLL,
6060
ChainSlug.SONEIUM,
61+
ChainSlug.SWELLCHAIN,
6162
];

scripts/rpcConfig/constants/explorers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ export const explorers = {
3737
[ChainSlug.MONAD_TESTNET]: "https://monad-testnet.socialscan.io/",
3838
[ChainSlug.SCROLL]: "https://scrollscan.com/",
3939
[ChainSlug.SONEIUM]: "https://soneium.blockscout.com/",
40+
[ChainSlug.SWELLCHAIN]: "https://explorer.swellnetwork.io/",
4041
};

scripts/rpcConfig/constants/icons.ts

+1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ export const icons = {
3535
[ChainSlug.MONAD_TESTNET]: "",
3636
[ChainSlug.SCROLL]: "",
3737
[ChainSlug.SONEIUM]: "",
38+
[ChainSlug.SWELLCHAIN]: "",
3839
};

scripts/rpcConfig/constants/rpc.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ export const rpcs = {
7070
[ChainSlug.MONAD_TESTNET]: checkEnvValue("MONAD_TESTNET_RPC"),
7171
[ChainSlug.SCROLL]: checkEnvValue("SCROLL_RPC"),
7272
[ChainSlug.SONEIUM]: checkEnvValue("SONEIUM_RPC"),
73+
[ChainSlug.SWELLCHAIN]: checkEnvValue("SWELLCHAIN_RPC"),
7374
};

scripts/rpcConfig/constants/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src";
22

33
export const version = {
44
[DeploymentMode.DEV]: "1.0.5",
5-
[DeploymentMode.PROD]: "1.0.85",
5+
[DeploymentMode.PROD]: "1.0.87",
66
};

src/enums/chainId.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ export enum ChainId {
6666
MONAD_TESTNET = 10143,
6767
SCROLL = 534352,
6868
SONEIUM = 1868,
69+
SWELLCHAIN = 1923,
6970
}

src/enums/chainSlug.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ export enum ChainSlug {
6868
MONAD_TESTNET = ChainId.MONAD_TESTNET,
6969
SCROLL = ChainId.SCROLL,
7070
SONEIUM = ChainId.SONEIUM,
71+
SWELLCHAIN = ChainId.SWELLCHAIN,
7172
}

src/enums/chainSlugToHardhatChainName.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ export const chainSlugToHardhatChainName = {
6969
[ChainSlug.MONAD_TESTNET]: HardhatChainName.MONAD_TESTNET,
7070
[ChainSlug.SCROLL]: HardhatChainName.SCROLL,
7171
[ChainSlug.SONEIUM]: HardhatChainName.SONEIUM,
72+
[ChainSlug.SWELLCHAIN]: HardhatChainName.SWELLCHAIN,
7273
};

src/enums/chainSlugToId.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ export const ChainSlugToId = {
6969
[ChainSlug.MONAD_TESTNET]: ChainId.MONAD_TESTNET,
7070
[ChainSlug.SCROLL]: ChainId.SCROLL,
7171
[ChainSlug.SONEIUM]: ChainId.SONEIUM,
72+
[ChainSlug.SWELLCHAIN]: ChainId.SWELLCHAIN,
7273
};

src/enums/chainSlugToKey.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ export const ChainSlugToKey = {
6969
[ChainSlug.MONAD_TESTNET]: HardhatChainName.MONAD_TESTNET,
7070
[ChainSlug.SCROLL]: HardhatChainName.SCROLL,
7171
[ChainSlug.SONEIUM]: HardhatChainName.SONEIUM,
72+
[ChainSlug.SWELLCHAIN]: HardhatChainName.SWELLCHAIN,
7273
};

src/enums/hardhatChainName.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ export enum HardhatChainName {
6666
MONAD_TESTNET = "monad_testnet",
6767
SCROLL = "scroll",
6868
SONEIUM = "soneium",
69+
SWELLCHAIN = "swellchain",
6970
}

src/enums/hardhatChainNameToSlug.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ export const hardhatChainNameToSlug = {
6969
[HardhatChainName.MONAD_TESTNET]: ChainSlug.MONAD_TESTNET,
7070
[HardhatChainName.SCROLL]: ChainSlug.SCROLL,
7171
[HardhatChainName.SONEIUM]: ChainSlug.SONEIUM,
72+
[HardhatChainName.SWELLCHAIN]: ChainSlug.SWELLCHAIN,
7273
};

src/enums/mainnetIds.ts

+1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ export const MainnetIds: ChainSlug[] = [
3939
ChainSlug.UNICHAIN,
4040
ChainSlug.SCROLL,
4141
ChainSlug.SONEIUM,
42+
ChainSlug.SWELLCHAIN,
4243
];

src/enums/opStackChains.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ export const opStackL2Chain = [
2626
ChainSlug.B3,
2727
ChainSlug.UNICHAIN,
2828
ChainSlug.SONEIUM,
29+
ChainSlug.SWELLCHAIN,
2930
];

0 commit comments

Comments
 (0)