Skip to content

Commit

Permalink
Update token, network before Karura Campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed May 31, 2024
1 parent 2899f0a commit a786d94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2019-2022 @subwallet/extension-koni authors & contributors
// SPDX-License-Identifier: Apache-2.0

import BaseMigrationJob from '@subwallet/extension-base/services/migration-service/Base';

export default class BeforeKaruraCampaign extends BaseMigrationJob {
public override async run (): Promise<void> {
const state = this.state;

state.chainService.disableChain('goldberg_testnet');
await state.chainService.updateAssetSetting('karura-NATIVE-KAR', { visible: true });
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2019-2022 @subwallet/extension-koni authors & contributors
// SPDX-License-Identifier: Apache-2.0

import EnableAvailGoldberg from '@subwallet/extension-base/services/migration-service/scripts/EnableAvailGoldberg';
import BeforeKaruraCampaign from '@subwallet/extension-base/services/migration-service/scripts/BeforeKaruraCampaign';

import BaseMigrationJob from '../Base';

Expand Down Expand Up @@ -32,7 +32,5 @@ export default <Record<string, typeof BaseMigrationJob>>{
// '1.1.44-01': MigrateAssetSetting,
// '1.1.45-01': MigrateTransactionHistoryBySymbol,
// '1.1.46-01': AutoEnableSomeTokens
'1.1.51-01': EnableAvailGoldberg
// [`${EVERYTIME}-1.1.42-02`]: MigrateTransactionHistoryBySymbol
// [`${EVERYTIME}-1`]: AutoEnableChainsTokens
'1.1.51-03': BeforeKaruraCampaign
};

0 comments on commit a786d94

Please sign in to comment.