-
Notifications
You must be signed in to change notification settings - Fork 20
[Do not merge] dApp-friendly contract deployment #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
beded5c
a9a29a0
f9411c0
c5bdf3d
9025679
18c679d
eea1ea8
65f6431
646a5c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| *.sol @pdyraga @nkuba @lukasz-zimnoch | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import { HardhatRuntimeEnvironment } from "hardhat/types" | ||
| import { DeployFunction } from "hardhat-deploy/types" | ||
|
|
||
| const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
| const { getNamedAccounts, deployments } = hre | ||
| const { execute } = deployments | ||
| const { log } = deployments | ||
|
|
||
| const { deployer } = await getNamedAccounts() | ||
|
|
||
| const minStakeAmount = "39999999999999999999999" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we want to set the minimum stake to 39999999999999999999999? With dApp team owning T token contract from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| await execute("TokenStaking", { from: deployer }, "setMinimumStakeAmount") | ||
michalinacienciala marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| log(`Set minimum stake amount to ${minStakeAmount}`) | ||
| } | ||
|
|
||
| export default func | ||
|
|
||
| func.tags = ["setMinStakeAmount"] | ||
| func.dependencies = ["TokenStaking"] | ||
| func.skip = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> { | ||
| return hre.network.name !== "goerli" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's extract
CODEOWNERSchange to a separate PR and merge it tomain.The
CODEOWNERSshould cover all existing contracts fromcontracts/directoryLet's add there all developers who worked on the Solidity code of the Threshold smart contracts: @vzotova @cygnusv @pdyraga
This will not only protect dApp-dev-only changes from being merged but will also protect from any accidental changes to an already audited code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#121