Skip to content

Commit

Permalink
Merge pull request #330 from SocketDotTech/permissionless-deployment
Browse files Browse the repository at this point in the history
Easy deployments
  • Loading branch information
ameeshaagrawal authored Nov 7, 2023
2 parents c2f67cb + 88fb9cc commit de8e504
Show file tree
Hide file tree
Showing 42 changed files with 2,020 additions and 1,146 deletions.
48 changes: 48 additions & 0 deletions chainConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
export type ChainConfig = {
chainSlug: number;
chainName: string;
timeout: number;
rpc: string;
transmitterAddress: string;
executorAddress: string;
watcherAddress: string;
feeUpdaterAddress: string;
ownerAddress: string;
msgValueMaxThreshold?: string | number;
overrides?: {
type?: number;
gasLimit?: string | number;
gasPrice?: string | number;
};
};

export const chainConfig: { [chain: string]: ChainConfig } = {
"31337": {
chainSlug: 31337,
chainName: "hardhat",
timeout: 7200,
rpc: "http://127.0.0.1:8545/",
transmitterAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
executorAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
watcherAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
feeUpdaterAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
ownerAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
msgValueMaxThreshold: 10000000000000000,
overrides: {
type: 1,
gasLimit: 20000000,
gasPrice: 1000000000000,
},
},
"647": {
chainSlug: 647,
chainName: "sxn_testnet",
timeout: 7200,
rpc: "https://rpc.toronto.sx.technology/",
transmitterAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
executorAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
watcherAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
feeUpdaterAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
ownerAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B",
},
};
10 changes: 5 additions & 5 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
npx hardhat run scripts/deploy/index.ts &&
npx ts-node scripts/deploy/checkRoles.ts --no-compile &&
npx hardhat run scripts/deploy/configure.ts --no-compile &&
npx hardhat run scripts/deploy/connect.ts --no-compile &&
npx hardhat run scripts/deploy/verify.ts --no-compile
npx hardhat run scripts/deploy/1-deploy.ts &&
npx ts-node scripts/deploy/2-check-roles.ts --no-compile &&
npx hardhat run scripts/deploy/3-configure.ts --no-compile &&
npx hardhat run scripts/deploy/4-connect.ts --no-compile &&
npx hardhat run scripts/deploy/5-verify.ts --no-compile
56 changes: 56 additions & 0 deletions deployments/dev_addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"switchboard": "0xD2F16F574c7B4022192C53af9570b4b3C9B42f73"
}
},
"647": {
"FAST2": {
"capacitor": "0xDaB21eD920cCf2E7277430aFAb19Cb6Dce1AA912",
"decapacitor": "0xF9F8c72E7027B37b8f5a56c0b3331F7497032Aa9",
"switchboard": "0xD2F16F574c7B4022192C53af9570b4b3C9B42f73"
}
},
"901": {
"FAST": {
"capacitor": "0xE23Ed3328c2ab5AE41eCE04EB13472276c88E292",
Expand Down Expand Up @@ -267,6 +274,41 @@
"FastSwitchboard2": "0x7E7735e77574228C4F55d4B2F96Fe586dF10104e",
"SocketBatcher": "0xc07216D0e55044572d6E3C08d8a8a86BD3D909e3"
},
"647": {
"SignatureVerifier": "0xE19cC72ad60d0aE127E2c8d7C016cf67e15c5493",
"Hasher": "0x08f47Af4FB9Ab119e6Dd2C43994B9131E2AA91e2",
"CapacitorFactory": "0xF4E477308ab2f30330cD3233e9b71Dc5d636EEe0",
"Socket": "0x78E9EcA8889A6b6016CE5b56cD872bfB6F1Ba41f",
"ExecutionManager": "0xFAE13FC12a111CD31Ea02Ae554A59Fb18fD45127",
"TransmitManager": "0x255f9F9aB7eE46cb59a2Ed57a852304faD701C8d",
"FastSwitchboard2": "0xd7D1dc1B8aB82E14b896fF980a0fd3B035E0c9E3",
"OptimisticSwitchboard": "0xF6bc9bC110464f7544507B574bEC357403171156",
"SocketBatcher": "0xf47103263296eFebc7B8DD4d5410e15d7B59FceF",
"Counter": "0x2a754670Ed76F892568EE6Ff690fc56ee38a2DC9",
"integrations": {
"5": {
"FAST2": {
"capacitor": "0x08C4805744B45C708a26d762594d5481c9dde885",
"decapacitor": "0x6e873C240896Bd96C2061C9Bed5489FB248608FC",
"switchboard": "0xd7D1dc1B8aB82E14b896fF980a0fd3B035E0c9E3"
}
},
"80001": {
"FAST2": {
"capacitor": "0x024E195D5751Ae3D79e40F3aEdE742BF6E311BC1",
"decapacitor": "0xaE0EB47AFB854124EAe3cDe713592de90Dd56339",
"switchboard": "0xd7D1dc1B8aB82E14b896fF980a0fd3B035E0c9E3"
}
},
"421613": {
"FAST2": {
"capacitor": "0xc416F0D400dFCBE5dA672BFC2f88b7b9AB218C82",
"decapacitor": "0xd5175A72b98eE7C86bBa76F0095Da683dB7C190e",
"switchboard": "0xd7D1dc1B8aB82E14b896fF980a0fd3B035E0c9E3"
}
}
}
},
"901": {
"SignatureVerifier": "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A",
"Hasher": "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224",
Expand Down Expand Up @@ -438,6 +480,13 @@
"switchboard": "0x0dD648cdF51b7f7AdA68F84BB245D52172199F0d"
}
},
"647": {
"FAST2": {
"capacitor": "0xABbcD246a79129A9850ae6bA8E862FD9f550afc5",
"decapacitor": "0x9F9E77c4B94fC244Eb58a005DbFDE07Ff1007E3d",
"switchboard": "0x0dD648cdF51b7f7AdA68F84BB245D52172199F0d"
}
},
"901": {
"FAST": {
"capacitor": "0xe75e3AdAac425b69e6aA8Be1502b1e0FcD9Eb529",
Expand Down Expand Up @@ -567,6 +616,13 @@
"switchboard": "0xFD468fc7d23dA3e7466EE78327D4db5FcA232B2d"
}
},
"647": {
"FAST2": {
"capacitor": "0x6d84ee5B59125cB4b608f50747de4E31CC4Cd7d9",
"decapacitor": "0xE981C76FC7D6252A46f94aee7CA97d7617f82489",
"switchboard": "0xFD468fc7d23dA3e7466EE78327D4db5FcA232B2d"
}
},
"901": {
"FAST": {
"capacitor": "0xc9f5FcEbb5414b4065d8E74C203aCfcF166E1Cda",
Expand Down
Loading

0 comments on commit de8e504

Please sign in to comment.