-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from SocketDotTech/permissionless-deployment
Easy deployments
- Loading branch information
Showing
42 changed files
with
2,020 additions
and
1,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.