Skip to content

Commit

Permalink
feat: ink deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
arthcp committed Dec 14, 2024
1 parent 8642d3f commit 1f525d8
Show file tree
Hide file tree
Showing 18 changed files with 449 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ ZERO_RPC=' '
ZKSYNC_RPC=' '

ARENA_Z_RPC=' '

INK_RPC=' '
307 changes: 307 additions & 0 deletions deployments/prod_addresses.json

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions deployments/prod_verification.json
Original file line number Diff line number Diff line change
Expand Up @@ -4492,6 +4492,131 @@
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"]
]
],
"57073": [
[
"0xd9E3a8Ba9Be55919C5C0De6694e3103F5a35820E",
"SwitchboardSimulator",
"contracts/mocks/fee-updater/SwitchboardSimulator.sol",
[
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
57073,
1000,
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead"
]
],
[
"0x3043Ad9C9e01664bc3A68477f0870Df35dC4bFf8",
"SimulatorUtils",
"contracts/mocks/fee-updater/SimulatorUtils.sol",
[
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead",
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
57073
]
],
[
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
"SocketSimulator",
"contracts/mocks/fee-updater/SocketSimulator.sol",
[
57073,
57073,
"0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3",
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead",
"IMLI"
]
],
[
"0x657e72B305Dc1c41e98d9efC2350EC10e3c83E21",
"Counter",
"contracts/examples/Counter.sol",
["0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE"]
],
[
"0xb3314456567986e657d4C65Ec9e8cB736B92d11D",
"SocketBatcher",
"contracts/socket/SocketBatcher.sol",
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"]
],
[
"0x0CC93650bF4D98237628DACf87f94E443956D8dF",
"OptimisticSwitchboard",
"contracts/switchboard/default-switchboards/OptimisticSwitchboard.sol",
[
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
"0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE",
57073,
7200,
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead"
]
],
[
"0xb4Ef469c9d8317851270346070dA0ecE24616E6b",
"FastSwitchboard",
"contracts/switchboard/default-switchboards/FastSwitchboard.sol",
[
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
"0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE",
57073,
7200,
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead"
]
],
[
"0x9B8c323468AEC7A7Cb041CeD48F92559bFF33705",
"TransmitManager",
"contracts/TransmitManager.sol",
[
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
57073,
"0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE",
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead"
]
],
[
"0x1CAdCd88fC148D3966eDe75D029937C886f66009",
"ExecutionManagerDF",
"contracts/ExecutionManagerDF.sol",
[
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
57073,
"0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE",
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead"
]
],
[
"0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE",
"Socket",
"contracts/socket/Socket.sol",
[
57073,
"0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3",
"0x6C593aD4C0Fa4E293a0f1240F9ca3CF0e8a28619",
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
"IMLI"
]
],
[
"0x6C593aD4C0Fa4E293a0f1240F9ca3CF0e8a28619",
"CapacitorFactory",
"contracts/CapacitorFactory.sol",
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", 10]
],
[
"0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3",
"Hasher",
"contracts/utils/Hasher.sol",
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"]
],
[
"0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead",
"SignatureVerifier",
"contracts/utils/SignatureVerifier.sol",
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"]
]
],
"59144": [
[
"0x58f1693e84B80799B85106c13fb759DB7C5EF35D",
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.35.0",
"version": "2.36.0",
"description": "Smart contracts for socket data layer.",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
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 @@ -49,4 +49,5 @@ export const batcherSupportedChainSlugs = [
ChainSlug.ZERO,
ChainSlug.ZKSYNC,
ChainSlug.ARENA_Z,
ChainSlug.INK,
];
1 change: 1 addition & 0 deletions scripts/rpcConfig/constants/explorers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export const explorers = {
[ChainSlug.ZERO]: "https://zerion-explorer.vercel.app/",
[ChainSlug.ZKSYNC]: "https://explorer.zksync.io/",
[ChainSlug.ARENA_Z]: "https://explorer.arena-z.gg/",
[ChainSlug.INK]: "https://explorer.inkonchain.com/",
};
1 change: 1 addition & 0 deletions scripts/rpcConfig/constants/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export const icons = {
[ChainSlug.ZERO]: "",
[ChainSlug.ZKSYNC]: "",
[ChainSlug.ARENA_Z]: "",
[ChainSlug.INK]: "",
};
1 change: 1 addition & 0 deletions scripts/rpcConfig/constants/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ export const rpcs = {
[ChainSlug.ZERO]: checkEnvValue("ZERO_RPC"),
[ChainSlug.ZKSYNC]: checkEnvValue("ZKSYNC_RPC"),
[ChainSlug.ARENA_Z]: checkEnvValue("ARENA_Z_RPC"),
[ChainSlug.INK]: checkEnvValue("INK_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.72",
[DeploymentMode.PROD]: "1.0.73",
};
1 change: 1 addition & 0 deletions src/enums/chainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ export enum ChainId {
ZERO = 543210,
ZKSYNC = 324,
ARENA_Z = 7897,
INK = 57073,
}
1 change: 1 addition & 0 deletions src/enums/chainSlug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ export enum ChainSlug {
ZERO = ChainId.ZERO,
ZKSYNC = ChainId.ZKSYNC,
ARENA_Z = ChainId.ARENA_Z,
INK = ChainId.INK,
}
1 change: 1 addition & 0 deletions src/enums/chainSlugToHardhatChainName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ export const chainSlugToHardhatChainName = {
[ChainSlug.ZERO]: HardhatChainName.ZERO,
[ChainSlug.ZKSYNC]: HardhatChainName.ZKSYNC,
[ChainSlug.ARENA_Z]: HardhatChainName.ARENA_Z,
[ChainSlug.INK]: HardhatChainName.INK,
};
1 change: 1 addition & 0 deletions src/enums/chainSlugToId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ export const ChainSlugToId = {
[ChainSlug.ZERO]: ChainId.ZERO,
[ChainSlug.ZKSYNC]: ChainId.ZKSYNC,
[ChainSlug.ARENA_Z]: ChainId.ARENA_Z,
[ChainSlug.INK]: ChainId.INK,
};
1 change: 1 addition & 0 deletions src/enums/chainSlugToKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ export const ChainSlugToKey = {
[ChainSlug.ZERO]: HardhatChainName.ZERO,
[ChainSlug.ZKSYNC]: HardhatChainName.ZKSYNC,
[ChainSlug.ARENA_Z]: HardhatChainName.ARENA_Z,
[ChainSlug.INK]: HardhatChainName.INK,
};
1 change: 1 addition & 0 deletions src/enums/hardhatChainName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ export enum HardhatChainName {
ZERO = "zero",
ZKSYNC = "zksync",
ARENA_Z = "arena_z",
INK = "ink",
}
1 change: 1 addition & 0 deletions src/enums/hardhatChainNameToSlug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ export const hardhatChainNameToSlug = {
[HardhatChainName.ZERO]: ChainSlug.ZERO,
[HardhatChainName.ZKSYNC]: ChainSlug.ZKSYNC,
[HardhatChainName.ARENA_Z]: ChainSlug.ARENA_Z,
[HardhatChainName.INK]: ChainSlug.INK,
};
1 change: 1 addition & 0 deletions src/enums/mainnetIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ export const MainnetIds: ChainSlug[] = [
ChainSlug.ZERO,
ChainSlug.ZKSYNC,
ChainSlug.ARENA_Z,
ChainSlug.INK,
];
1 change: 1 addition & 0 deletions src/enums/opStackChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ export const opStackL2Chain = [
ChainSlug.POLTER_TESTNET,
ChainSlug.OPBNB,
ChainSlug.ARENA_Z,
ChainSlug.INK,
];

0 comments on commit 1f525d8

Please sign in to comment.