Skip to content

Commit 49ce18a

Browse files
committed
fix: move enums to services wakuext
1 parent d1a9df7 commit 49ce18a

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

tests-functional/clients/services/wakuext.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,26 @@ class CommunityPermissionsAccess(Enum):
8888
MANUAL_ACCEPT = 3
8989

9090

91+
class CommunityTokenPermissionType:
92+
BECOME_MEMBER = 1
93+
BECOME_ADMIN = 2
94+
BECOME_TOKEN_MASTER = 3
95+
CAN_VIEW_CHANNEL = 4
96+
CAN_VIEW_AND_POST_CHANNEL = 5
97+
98+
99+
class CommunityTokenType:
100+
ERC20 = 1
101+
ERC721 = 2
102+
ENS = 3
103+
104+
105+
class CommunityTokenPrivilegesLevel:
106+
OWNER_LEVEL = 1
107+
MASTER_LEVEL = 2
108+
COMMUNITY_LEVEL = 3
109+
110+
91111
class Error(Exception):
92112
def __init__(self, message):
93113
self.message = message

tests-functional/tests/test_wakuext_community_token_permissions.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from clients.contract_deployers.snt import SNTDeployer
6-
from clients.services.wakuext import CommunityPermissionsAccess
6+
from clients.services.wakuext import CommunityPermissionsAccess, CommunityTokenPermissionType, CommunityTokenType
77
from steps.messenger import MessengerSteps
88
from utils.retry_utils import retry_call
99
from utils import fake
@@ -12,26 +12,6 @@
1212
logger = logging.getLogger(__name__)
1313

1414

15-
class CommunityTokenPermissionType:
16-
BECOME_MEMBER = 1
17-
BECOME_ADMIN = 2
18-
BECOME_TOKEN_MASTER = 3
19-
CAN_VIEW_CHANNEL = 4
20-
CAN_VIEW_AND_POST_CHANNEL = 5
21-
22-
23-
class CommunityTokenType:
24-
ERC20 = 1
25-
ERC721 = 2
26-
ENS = 3
27-
28-
29-
class CommunityTokenPrivilegesLevel:
30-
OWNER_LEVEL = 1
31-
MASTER_LEVEL = 2
32-
COMMUNITY_LEVEL = 3
33-
34-
3515
@pytest.mark.rpc
3616
class TestCommunityTokenPermissions(MessengerSteps):
3717
def _communities_list(self, communities_response):

0 commit comments

Comments
 (0)