forked from celo-org/celo-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #16 from celo-org/master
master
- Loading branch information
Showing
88 changed files
with
1,282 additions
and
595 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
Binary file not shown.
Binary file not shown.
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,43 @@ | ||
import { sleep } from '@celo/utils/lib/async' | ||
import yargs from 'yargs' | ||
import { UpgradeArgv } from '../../deploy/upgrade' | ||
import { handler as contractsHandler } from '../initial/contracts' | ||
import { handler as attestationServiceHandler } from './attestation-service' | ||
import { handler as blockscoutHandler } from './blockscout' | ||
import { handler as ethstatsHandler } from './ethstats' | ||
import { handler as testnetHandler } from './testnet' | ||
|
||
export const command = 'all' | ||
|
||
export const describe = 'upgrades a typical deploy' | ||
|
||
type TestnetArgv = UpgradeArgv & { | ||
reset: boolean | ||
} | ||
|
||
export const builder = (argv: yargs.Argv) => { | ||
return argv.option('reset', { | ||
describe: 'indicates a reset', | ||
default: false, | ||
type: 'boolean', | ||
}) | ||
} | ||
|
||
export const handler = async (argv: TestnetArgv) => { | ||
console.info('Deploy the testnet') | ||
await testnetHandler(argv) | ||
console.info('Deploy ethstats') | ||
await ethstatsHandler(argv) | ||
console.info('Deploy blockscout') | ||
await blockscoutHandler(argv) | ||
|
||
if (argv.reset) { | ||
console.info('Sleeping for 5 minutes to let pods come up') | ||
await sleep(300000) | ||
console.info('Deploy contracts') | ||
await contractsHandler(argv) | ||
} | ||
|
||
console.info('Deploy attestation-service') | ||
await attestationServiceHandler(argv) | ||
} |
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
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
Oops, something went wrong.