-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update governance contract & add local deployment script (#70)
- Loading branch information
1 parent
03fb1bb
commit d6ac960
Showing
10 changed files
with
247 additions
and
98 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
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
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,23 @@ | ||
import { network } from 'hardhat'; | ||
import { HardhatRuntimeEnvironment } from 'hardhat/types'; | ||
|
||
import { Network } from '../../utils'; | ||
|
||
const deploy = async ({ getNamedAccounts, deployments }: HardhatRuntimeEnvironment) => { | ||
if (![Network.Local.toString()].includes(network.name!)) { | ||
return; | ||
} | ||
|
||
const { deploy } = deployments; | ||
const { deployer } = await getNamedAccounts(); | ||
|
||
await deploy('MainchainGatewayV2Logic', { | ||
contract: 'MainchainGatewayV2', | ||
from: deployer, | ||
log: true, | ||
}); | ||
}; | ||
|
||
deploy.tags = ['MainchainGatewayV2Logic']; | ||
|
||
export default deploy; |
Oops, something went wrong.