Skip to content

Commit

Permalink
feat: 🎸 add chain v5.2.0 config values
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantasdeveloper committed Feb 13, 2023
1 parent b80a456 commit 0bc6dee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Command from '@oclif/command';

import { getUserConfig, saveUserConfig, UserConfig } from './common/util';
import { fiveOneZeroConfig } from './consts';
import { defaultConfig } from './consts';

/**
* A base class to encapsulate cross command concerns, such as loading configuration
Expand All @@ -18,8 +18,8 @@ export default abstract class extends Command {
this.log(
'No configuration file was detected. Creating one with default values. Run the `configure` command to inspect and modify'
);
saveUserConfig(this, fiveOneZeroConfig);
this.userConfig = fiveOneZeroConfig;
saveUserConfig(this, defaultConfig);
this.userConfig = defaultConfig;
}
}
}
9 changes: 9 additions & 0 deletions src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ export const latestConfig = {
...defaultRestSigners,
};

export const fiveTwoZeroConfig = {
chainTag: '5.2.0',
restTag: 'v2.5.1',
subqueryTag: 'v9.1.0-alpha.1',
toolingTag: 'v5.0.2',
...defaultRestSigners,
};

export const fiveOneThreeConfig = {
chainTag: '5.1.3',
restTag: 'v2.4.0',
Expand All @@ -44,6 +52,7 @@ export const fiveZeroThreeConfig = {

export const bundledConfig = [
fiveOneThreeConfig,
fiveTwoZeroConfig,
fiveOneZeroConfig,
fiveZeroThreeConfig,
latestConfig,
Expand Down

0 comments on commit 0bc6dee

Please sign in to comment.