-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…deploy-registrar-custody-amoy [REG-1431] Deployed RegistrarCustody to amoy
- Loading branch information
Showing
5 changed files
with
241 additions
and
5 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
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,3 +1,7 @@ | ||
## v0.9.39 | ||
|
||
- Deployed `[email protected]` on Amoy | ||
|
||
## v0.9.38 | ||
|
||
- Upgraded `[email protected]` on Sepolia and Mainnet | ||
|
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
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,27 @@ | ||
import { network } from 'hardhat'; | ||
import { getNetworkConfig, mergeNetworkConfig } from '../src/config'; | ||
import { Deployer } from '../src/deployer'; | ||
import { unwrap } from '../src/utils'; | ||
|
||
async function main () { | ||
console.log('Network:', network.name); | ||
|
||
const chainId: number = unwrap(network.config, 'chainId'); | ||
const config = getNetworkConfig(chainId); | ||
if (!config) { | ||
throw new Error(`Config not found for network ${chainId}`); | ||
} | ||
|
||
const deployer = await Deployer.create(); | ||
const deployConfig = await deployer.execute(['registrar_custody'], config); | ||
mergeNetworkConfig(deployConfig); | ||
|
||
console.log('Deployed!'); | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |
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