Skip to content

Commit a2f34a9

Browse files
authored
add MARKETING category to OperatorCategory enum (#3907)
1 parent 274e0a4 commit a2f34a9

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎.changeset/grumpy-shoes-film.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@human-protocol/sdk": patch
3+
"@human-protocol/python-sdk": patch
4+
---
5+
6+
Add marketing category to OperatorCategory enum

‎packages/apps/dashboard/client/src/features/leaderboard/ui/CategoryCell.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const getCategoryLabel = (category: string) => {
1313
return 'Machine Learning';
1414
case 'market_making':
1515
return 'Market Making';
16+
case 'marketing':
17+
return 'Marketing';
1618
default:
1719
return category;
1820
}
@@ -24,6 +26,8 @@ const getCategoryColor = (category: string) => {
2426
return 'primary';
2527
case 'market_making':
2628
return 'success';
29+
case 'marketing':
30+
return 'secondary';
2731
default:
2832
return 'default';
2933
}

‎packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class OperatorCategory(Enum):
4747

4848
MACHINE_LEARNING = "machine_learning"
4949
MARKET_MAKING = "market_making"
50+
MARKETING = "marketing"
5051

5152

5253
NETWORKS = {

‎packages/sdk/typescript/human-protocol-sdk/src/enums.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ export enum OrderDirection {
1717
export enum OperatorCategory {
1818
MACHINE_LEARNING = 'machine_learning',
1919
MARKET_MAKING = 'market_making',
20+
MARKETING = 'marketing',
2021
}

0 commit comments

Comments
 (0)