-
Notifications
You must be signed in to change notification settings - Fork 75
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 #2897 from OriginTrail/v6/feature/remove-service-a…
…greements-for-chiado-devnet Added new migration for removal of service agreements for Chiado Devnet
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 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
18 changes: 18 additions & 0 deletions
18
src/migration/remove-service-agreements-for-chiado-devnet-migration.js
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,18 @@ | ||
import BaseMigration from './base-migration.js'; | ||
|
||
const GNOSIS_DEVNET_CHAIN_ID = 'gnosis:10200'; | ||
|
||
class RemoveServiceAgreementsForChiadoDevnetMigration extends BaseMigration { | ||
constructor(migrationName, logger, config, repositoryModuleManager) { | ||
super(migrationName, logger, config); | ||
this.repositoryModuleManager = repositoryModuleManager; | ||
} | ||
|
||
async executeMigration() { | ||
await this.repositoryModuleManager.removeServiceAgreementsForBlockchain( | ||
GNOSIS_DEVNET_CHAIN_ID, | ||
); | ||
} | ||
} | ||
|
||
export default RemoveServiceAgreementsForChiadoDevnetMigration; |
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