Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,5 @@ MONAD_TESTNET_RPC=' '
SCROLL_RPC=' '

SONEIUM_RPC=' '

SWELLCHAIN_RPC=' '
594 changes: 594 additions & 0 deletions deployments/prod_addresses.json

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions deployments/prod_verification.json
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,32 @@
[]
]
],
"1923": [
[
"0x8c36353db4F3a2DDDeed38405199d13DCF8a1B82",
"SocketSimulator",
"contracts/mocks/fee-updater/SocketSimulator.sol",
[
1923,
1923,
"0x9B8c323468AEC7A7Cb041CeD48F92559bFF33705",
"0x1CAdCd88fC148D3966eDe75D029937C886f66009",
"IMLI"
]
],
[
"0xb4Ef469c9d8317851270346070dA0ecE24616E6b",
"CapacitorFactory",
"contracts/CapacitorFactory.sol",
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", 10]
],
[
"0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3",
"SafeProxyFactory",
"contracts/utils/multisig/proxies/SafeProxyFactory.sol",
[]
]
],
"2999": [
[
"0x74EBb564b92A3F7AcfFeb8aF3b322831bF57ac22",
Expand Down
10 changes: 10 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ if (isProduction) {
[HardhatChainName.UNICHAIN]: getChainConfig(ChainSlug.UNICHAIN),
[HardhatChainName.SCROLL]: getChainConfig(ChainSlug.SCROLL),
[HardhatChainName.SONEIUM]: getChainConfig(ChainSlug.SONEIUM),
[HardhatChainName.SWELLCHAIN]: getChainConfig(ChainSlug.SWELLCHAIN),
};
}

Expand Down Expand Up @@ -184,6 +185,7 @@ const config: HardhatUserConfig = {
unichain: process.env.UNICHAIN_API_KEY || "none",
scroll: process.env.SCROLLSCAN_API_KEY || "",
soneium: process.env.SONEIUM_API_KEY || "none",
swellchain: process.env.SWELLCHAIN_API_KEY || "none",
},
customChains: [
{
Expand Down Expand Up @@ -394,6 +396,14 @@ const config: HardhatUserConfig = {
browserURL: "https://soneium.blockscout.com/",
},
},
{
network: "swellchain",
chainId: ChainId.SWELLCHAIN,
urls: {
apiURL: "https://explorer.swellnetwork.io/api",
browserURL: "https://explorer.swellnetwork.io/",
},
},
],
},
networks: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@socket.tech/dl-core",
"license": "UNLICENSED",
"version": "2.41.0",
"version": "2.42.0",
"description": "Smart contracts for socket data layer.",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/admin/rotate-owner/2-claim-with-multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const main = async () => {
parseInt(chainSlug),
chainAddresses,
true,
false
true
);

// startBlock field ignored since it is not contract
Expand Down
3 changes: 2 additions & 1 deletion scripts/deploy/scripts/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ const executeTransactions = async (
chainSlug,
allAddresses[chainSlug],
safeChains.includes(chainSlug),
!safeChains.includes(chainSlug)
// !safeChains.includes(chainSlug)
true
);
await executeRoleTransactions(chainSlug, newRoleStatus, relaySigner);
await executeOtherTransactions(chainSlug, relaySigner);
Expand Down
1 change: 1 addition & 0 deletions scripts/rpcConfig/constants/batcherSupportedChainSlug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ export const batcherSupportedChainSlugs = [
// ChainSlug.MONAD_TESTNET,
ChainSlug.SCROLL,
ChainSlug.SONEIUM,
ChainSlug.SWELLCHAIN,
];
1 change: 1 addition & 0 deletions scripts/rpcConfig/constants/explorers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ export const explorers = {
[ChainSlug.MONAD_TESTNET]: "https://monad-testnet.socialscan.io/",
[ChainSlug.SCROLL]: "https://scrollscan.com/",
[ChainSlug.SONEIUM]: "https://soneium.blockscout.com/",
[ChainSlug.SWELLCHAIN]: "https://explorer.swellnetwork.io/",
};
1 change: 1 addition & 0 deletions scripts/rpcConfig/constants/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ export const icons = {
[ChainSlug.MONAD_TESTNET]: "",
[ChainSlug.SCROLL]: "",
[ChainSlug.SONEIUM]: "",
[ChainSlug.SWELLCHAIN]: "",
};
1 change: 1 addition & 0 deletions scripts/rpcConfig/constants/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ export const rpcs = {
[ChainSlug.MONAD_TESTNET]: checkEnvValue("MONAD_TESTNET_RPC"),
[ChainSlug.SCROLL]: checkEnvValue("SCROLL_RPC"),
[ChainSlug.SONEIUM]: checkEnvValue("SONEIUM_RPC"),
[ChainSlug.SWELLCHAIN]: checkEnvValue("SWELLCHAIN_RPC"),
};
2 changes: 1 addition & 1 deletion scripts/rpcConfig/constants/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src";

export const version = {
[DeploymentMode.DEV]: "1.0.5",
[DeploymentMode.PROD]: "1.0.85",
[DeploymentMode.PROD]: "1.0.87",
};
1 change: 1 addition & 0 deletions src/enums/chainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ export enum ChainId {
MONAD_TESTNET = 10143,
SCROLL = 534352,
SONEIUM = 1868,
SWELLCHAIN = 1923,
}
1 change: 1 addition & 0 deletions src/enums/chainSlug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ export enum ChainSlug {
MONAD_TESTNET = ChainId.MONAD_TESTNET,
SCROLL = ChainId.SCROLL,
SONEIUM = ChainId.SONEIUM,
SWELLCHAIN = ChainId.SWELLCHAIN,
}
1 change: 1 addition & 0 deletions src/enums/chainSlugToHardhatChainName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ export const chainSlugToHardhatChainName = {
[ChainSlug.MONAD_TESTNET]: HardhatChainName.MONAD_TESTNET,
[ChainSlug.SCROLL]: HardhatChainName.SCROLL,
[ChainSlug.SONEIUM]: HardhatChainName.SONEIUM,
[ChainSlug.SWELLCHAIN]: HardhatChainName.SWELLCHAIN,
};
1 change: 1 addition & 0 deletions src/enums/chainSlugToId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ export const ChainSlugToId = {
[ChainSlug.MONAD_TESTNET]: ChainId.MONAD_TESTNET,
[ChainSlug.SCROLL]: ChainId.SCROLL,
[ChainSlug.SONEIUM]: ChainId.SONEIUM,
[ChainSlug.SWELLCHAIN]: ChainId.SWELLCHAIN,
};
1 change: 1 addition & 0 deletions src/enums/chainSlugToKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ export const ChainSlugToKey = {
[ChainSlug.MONAD_TESTNET]: HardhatChainName.MONAD_TESTNET,
[ChainSlug.SCROLL]: HardhatChainName.SCROLL,
[ChainSlug.SONEIUM]: HardhatChainName.SONEIUM,
[ChainSlug.SWELLCHAIN]: HardhatChainName.SWELLCHAIN,
};
1 change: 1 addition & 0 deletions src/enums/hardhatChainName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ export enum HardhatChainName {
MONAD_TESTNET = "monad_testnet",
SCROLL = "scroll",
SONEIUM = "soneium",
SWELLCHAIN = "swellchain",
}
1 change: 1 addition & 0 deletions src/enums/hardhatChainNameToSlug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ export const hardhatChainNameToSlug = {
[HardhatChainName.MONAD_TESTNET]: ChainSlug.MONAD_TESTNET,
[HardhatChainName.SCROLL]: ChainSlug.SCROLL,
[HardhatChainName.SONEIUM]: ChainSlug.SONEIUM,
[HardhatChainName.SWELLCHAIN]: ChainSlug.SWELLCHAIN,
};
1 change: 1 addition & 0 deletions src/enums/mainnetIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ export const MainnetIds: ChainSlug[] = [
ChainSlug.UNICHAIN,
ChainSlug.SCROLL,
ChainSlug.SONEIUM,
ChainSlug.SWELLCHAIN,
];
1 change: 1 addition & 0 deletions src/enums/opStackChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export const opStackL2Chain = [
ChainSlug.B3,
ChainSlug.UNICHAIN,
ChainSlug.SONEIUM,
ChainSlug.SWELLCHAIN,
];
Loading