Skip to content

Commit

Permalink
Merge pull request #660 from clrfund/fix/deploy-scripts
Browse files Browse the repository at this point in the history
Remove contract deployment script deployRound.ts and update documentation
  • Loading branch information
yuetloo authored May 18, 2023
2 parents 09a93b4 + c5a4109 commit 18e2eeb
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 568 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ In a future version, we plan to address this by routing ETH and token contributi

## Documentation

- [Running clr.fund instance](docs/admin.md)
- [BrightId setup](docs/brightid.md)
- [Deployment](docs/deployment.md)
- [Providing matching funds](docs/funding-source.md)
- [How to tally votes and verify results](docs/tally-verify.md)
- [Running the subgraph](docs/subgraph.md)
- [Sitemap](docs/sitemap.md)
- [Website theme and customization](docs/theme.md)
- [Deployment](docs/deployment.md)
- [BrightId setup](docs/brightid.md)

## Development

Expand Down
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "hardhat compile",
"node": "hardhat node --port 18545 --hostname 0.0.0.0",
"deploy:local": "yarn clean && yarn build && hardhat run --network localhost scripts/deploy.ts",
"deploy:arbitrum": "hardhat run --network arbitrum scripts/deployRound.ts",
"deploy:arbitrum": "hardhat run --network arbitrum scripts/deploy.ts",
"deployTestRound:local": "hardhat run --network localhost scripts/deployTestRound.ts",
"contribute:local": "hardhat run --network localhost scripts/contribute.ts",
"vote:local": "hardhat run --network localhost scripts/vote.ts",
Expand Down
243 changes: 0 additions & 243 deletions contracts/scripts/deployRound.ts

This file was deleted.

9 changes: 9 additions & 0 deletions contracts/tasks/deploySponsor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { task } from 'hardhat/config'

task('deploy-sponsor', 'Deploy the BrightID sponsor contract').setAction(
async (_, { ethers }) => {
const SponsorContract = await ethers.getContractFactory('BrightIdSponsor')
const sponsor = await SponsorContract.deploy()
console.log('Deployed the sponsor contract at', sponsor.address)
}
)
1 change: 1 addition & 0 deletions contracts/tasks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ import './auditTally'
import './fetchRound'
import './mergeAllocations'
import './setDurations'
import './deploySponsor'
Loading

0 comments on commit 18e2eeb

Please sign in to comment.