-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.ts
170 lines (163 loc) · 2.99 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
import { Extension } from '@colony/colony-js';
import { BigNumber } from 'ethers';
import { toB32 } from '~utils';
export const COLONY_CURRENT_VERSION_KEY = 'colony';
export const NETWORK_INVERSE_FEE_DATABASE_ID = 'networkInverseFee';
export const SUPPORTED_EXTENSION_IDS = [
Extension.OneTxPayment,
Extension.VotingReputation,
Extension.StakedExpenditure,
Extension.StagedExpenditure,
Extension.StreamingPayments,
Extension.MultisigPermissions,
];
export const SIMPLE_DECISIONS_ACTION_CODE = '0x12345678';
export const BLOCK_PAGING_SIZE = process.env.BLOCK_PAGING_SIZE
? parseInt(process.env.BLOCK_PAGING_SIZE, 10)
: 1000;
// These are indexes of data slots in contracts
// For more information: https://github.com/JoinColony/colonyNetwork/blob/develop/contracts/colony/ColonyStorage.sol
export const EXPENDITURES_SLOT = BigNumber.from(25);
export const EXPENDITURESLOTS_SLOT = BigNumber.from(26);
export const EXPENDITURE_OWNER_AND_STATUS = toB32(BigNumber.from(0));
export const EXPENDITURESLOT_RECIPIENT = toB32(BigNumber.from(0));
export const EXPENDITURESLOT_CLAIMDELAY = toB32(BigNumber.from(1));
export const EXPENDITURESLOT_PAYOUTMODIFIER = toB32(BigNumber.from(2));
// Make sure this is kept up to date with the same set in the CDapp
// src/routes/routeConstants.ts
export const RESERVED_ROUTES = new Set([
'404',
'meta',
'account',
'accounts',
'activity',
'activityfeed',
'about',
'admin',
'adminpanel',
'advanced',
'affiliate',
'analytics',
'api',
'app',
'beta',
'billing',
'blog',
'careers',
'cdapp',
'cdn',
'changelog',
'chat',
'clny',
'colony',
'colonystaff',
'colonyteam',
'community',
'company',
'complaints',
'conditions',
'config',
'contract',
'contribute',
'contributes',
'create',
'dao',
'daoclub',
'dapp',
'dashboard',
'data',
'delete',
'dev',
'developer',
'docs',
'documentation',
'edit',
'email',
'embed',
'enterprise',
'faq',
'faqs',
'features',
'feedback',
'file',
'finance',
'finances',
'forum',
'gateway',
'general',
'global',
'help',
'helpcenter',
'home',
'info',
'integrations',
'invalid',
'invest',
'jobs',
'landing',
'law',
'legal',
'legalnotice',
'login',
'logout',
'management',
'marketplace',
'media',
'meta',
'metacolony',
'metrics',
'news',
'notifications',
'onboarding',
'partner',
'payment',
'payments',
'press',
'pricing',
'privacy',
'privacypolicy',
'private',
'process',
'product',
'profile',
'profileuser',
'project',
'projects',
'promo',
'promotion',
'public',
'query',
'register',
'report',
'roadmap',
'root',
'sales',
'search',
'security',
'services',
'settings',
'shop',
'sitemap',
'staff',
'status',
'streaming',
'support',
'team',
'terms',
'test',
'tests',
'tools',
'tracking',
'transaction',
'transactions',
'translate',
'updates',
'upload',
'user',
'userpanel',
'verified',
'webhooks',
'welcome',
'whitepaper',
'work',
]);