Browse Source

CLI: additional working group types

iorveth 4 years ago
parent
commit
e9dcdbee81
2 changed files with 6 additions and 0 deletions
  1. 2 0
      cli/src/Api.ts
  2. 4 0
      cli/src/Types.ts

+ 2 - 0
cli/src/Api.ts

@@ -60,6 +60,8 @@ const DEFAULT_DECIMALS = new BN(12)
 export const apiModuleByGroup: { [key in WorkingGroups]: string } = {
   [WorkingGroups.StorageProviders]: 'storageWorkingGroup',
   [WorkingGroups.Curators]: 'contentDirectoryWorkingGroup',
+  [WorkingGroups.Builder]: 'builderWorkingGroup',
+  [WorkingGroups.Gateway]: 'gatewayWorkingGroup',
 }
 
 // Api wrapper for handling most common api calls and allowing easy API implementation switch in the future

+ 4 - 0
cli/src/Types.ts

@@ -71,12 +71,16 @@ export type NameValueObj = { name: string; value: string }
 export enum WorkingGroups {
   StorageProviders = 'storageProviders',
   Curators = 'curators',
+  Builder = 'builder',
+  Gateway = 'gateway',
 }
 
 // In contrast to Pioneer, currently only StorageProviders group is available in CLI
 export const AvailableGroups: readonly WorkingGroups[] = [
   WorkingGroups.StorageProviders,
   WorkingGroups.Curators,
+  WorkingGroups.Builder,
+  WorkingGroups.Gateway,
 ] as const
 
 export type Reward = {