File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff 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+
91111class Error (Exception ):
92112 def __init__ (self , message ):
93113 self .message = message
Original file line number Diff line number Diff line change 33import pytest
44
55from clients .contract_deployers .snt import SNTDeployer
6- from clients .services .wakuext import CommunityPermissionsAccess
6+ from clients .services .wakuext import CommunityPermissionsAccess , CommunityTokenPermissionType , CommunityTokenType
77from steps .messenger import MessengerSteps
88from utils .retry_utils import retry_call
99from utils import fake
1212logger = 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
3616class TestCommunityTokenPermissions (MessengerSteps ):
3717 def _communities_list (self , communities_response ):
You can’t perform that action at this time.
0 commit comments