Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore: update repo paths (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan authored Jun 14, 2023
1 parent 2df896d commit b96168c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@topos-network/topos-playground",
"version": "0.0.1-alpha11",
"version": "0.0.1-alpha12",
"description": "CLI to run local Topos devnets with subnets, a TCE network, and apps",
"author": "Sébastien Dan <[email protected]>",
"license": "MIT",
Expand Down
6 changes: 2 additions & 4 deletions src/commands/clean.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ export class CleanCommand extends CommandRunner {
}

private _shutdownFullMsgProtocolInfra() {
const executionPath = `${this._workingDir}/full-msg-protocol-infra`
const executionPath = `${this._workingDir}/local-erc20-messaging-infra`

return of(
defer(() =>
of(this._log(`Shutting down the full message protocol infra...`))
),
defer(() => of(this._log(`Shutting down the ERC20 messaging infra...`))),
this._spawn.reactify(`cd ${executionPath} && docker compose down -v`),
defer(() => of(this._log(`✅ subnets & TCE are down`), this._log(``)))
).pipe(concatAll())
Expand Down
24 changes: 14 additions & 10 deletions src/commands/start.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,20 @@ export class StartCommand extends CommandRunner {
return of(
defer(() => of(this._log('Cloning repositories...'))),
this._cloneGitRepository(
'toposware',
'full-msg-protocol-infra',
'topos-network',
'local-erc20-messaging-infra',
'0.1.0-alpha'
),
this._cloneGitRepository(
'toposware',
'dapp-frontend-cross-subnet',
'topos-network',
'dapp-frontend-erc20-messaging',
'0.1.0-alpha'
),
this._cloneGitRepository(
'topos-network',
'executor-service',
'0.1.0-alpha'
),
this._cloneGitRepository('toposware', 'executor-service', '0.1.0-alpha'),
defer(() => of(this._log('')))
).pipe(concatAll())
}
Expand Down Expand Up @@ -191,11 +195,11 @@ export class StartCommand extends CommandRunner {
defer(() => of(this._log('Copying .env files across repositories...'))),
this._copyEnvFile(
'.env.dapp-frontend',
`${this._workingDir}/dapp-frontend-cross-subnet/packages/frontend`
`${this._workingDir}/dapp-frontend-erc20-messaging/packages/frontend`
),
this._copyEnvFile(
'.env.dapp-backend',
`${this._workingDir}/dapp-frontend-cross-subnet/packages/backend`
`${this._workingDir}/dapp-frontend-erc20-messaging/packages/backend`
),
this._copyEnvFile(
'.env.executor-service',
Expand Down Expand Up @@ -295,10 +299,10 @@ export class StartCommand extends CommandRunner {

private _runFullMsgProtocolInfra() {
const secretsFilePath = `${this._workingDir}/.env.secrets`
const executionPath = `${this._workingDir}/full-msg-protocol-infra`
const executionPath = `${this._workingDir}/local-erc20-messaging-infra`

return of(
defer(() => of(this._log(`Running the full message protocol infra...`))),
defer(() => of(this._log(`Running the ERC20 messaging infra...`))),
this._spawn.reactify(
`source ${secretsFilePath} && cd ${executionPath} && docker compose up -d`
),
Expand Down Expand Up @@ -360,7 +364,7 @@ export class StartCommand extends CommandRunner {

private _rundDappFrontendService() {
const secretsFilePath = `${this._workingDir}/.env.secrets`
const executionPath = `${this._workingDir}/dapp-frontend-cross-subnet`
const executionPath = `${this._workingDir}/dapp-frontend-erc20-messaging`

return of(
defer(() => of(this._log(`Running the dApp Frontend...`))),
Expand Down

0 comments on commit b96168c

Please sign in to comment.