@@ -15,20 +15,47 @@ export type CustodianMetadata = {
15
15
allowedOnboardingDomains ?: string [ ] ;
16
16
} ;
17
17
18
- export const custodianMetadata : CustodianMetadata [ ] = [
18
+ // Enforce custodianPublishesTransaction to be true or false for ECA3 but true for everything else
19
+
20
+ type ECA3CustodianMetadata = CustodianMetadata & {
21
+ apiVersion : CustodianType . ECA3 ;
22
+ custodianPublishesTransaction : true | false ;
23
+ } ;
24
+
25
+ type ECA1CustodianMetadata = CustodianMetadata & {
26
+ apiVersion : CustodianType . ECA1 ;
27
+ custodianPublishesTransaction : true ;
28
+ } ;
29
+
30
+ type BitGoCustodianMetadata = CustodianMetadata & {
31
+ apiVersion : CustodianType . BitGo ;
32
+ custodianPublishesTransaction : true ;
33
+ } ;
34
+
35
+ type CactusCustodianMetadata = CustodianMetadata & {
36
+ apiVersion : CustodianType . Cactus ;
37
+ custodianPublishesTransaction : true ;
38
+ } ;
39
+
40
+ export const custodianMetadata : (
41
+ | ECA3CustodianMetadata
42
+ | ECA1CustodianMetadata
43
+ | BitGoCustodianMetadata
44
+ | CactusCustodianMetadata
45
+ ) [ ] = [
19
46
{
20
47
refreshTokenUrl : null ,
21
48
name : 'bitgo-test' ,
22
49
displayName : 'BitGo Test' ,
23
50
enabled : false ,
24
51
apiBaseUrl : 'https://app.bitgo-test.com/defi/v2' ,
25
52
apiVersion : CustodianType . BitGo ,
26
- custodianPublishesTransaction : false ,
53
+ custodianPublishesTransaction : true ,
27
54
iconUrl :
28
55
'https://dashboard.metamask-institutional.io/custodian-icons/bitgo-icon.svg' ,
29
56
isManualTokenInputSupported : false ,
30
57
onboardingUrl : 'https://app.bitgo-test.com' ,
31
- allowedOnboardingDomains : [ 'app.bitgo-test.com' ] , // @audit - remove dev/test domains
58
+ allowedOnboardingDomains : [ 'app.bitgo-test.com' ] ,
32
59
} ,
33
60
{
34
61
refreshTokenUrl : null ,
@@ -183,15 +210,15 @@ export const custodianMetadata: CustodianMetadata[] = [
183
210
iconUrl : 'https://zodia.io/wp-content/uploads/2023/01/cropped-ico.png' ,
184
211
isManualTokenInputSupported : false ,
185
212
onboardingUrl : 'https://zodia.io' ,
186
- allowedOnboardingDomains : [ 'zodia.io' ] ,
213
+ allowedOnboardingDomains : [ 'ui-preprod-v2.uat. zodia.io' ] ,
187
214
} ,
188
215
{
189
216
refreshTokenUrl : 'https://mmi.fireblocks.io/v1/auth/access' ,
190
217
name : 'fireblocks-prod' ,
191
218
displayName : 'Fireblocks' ,
192
219
enabled : true ,
193
220
apiBaseUrl : 'https://mmi.fireblocks.io' ,
194
- apiVersion : CustodianType . ECA3 ,
221
+ apiVersion : CustodianType . ECA1 ,
195
222
custodianPublishesTransaction : true ,
196
223
iconUrl :
197
224
'https://metamask-institutional.io/custodian-icons/fireblocks-icon.svg' ,
@@ -210,7 +237,7 @@ export const custodianMetadata: CustodianMetadata[] = [
210
237
iconUrl : 'https://zodia.io/wp-content/uploads/2023/01/cropped-ico.png' ,
211
238
isManualTokenInputSupported : false ,
212
239
onboardingUrl : 'https://zodia.io' ,
213
- allowedOnboardingDomains : [ 'zodia.io' ] ,
240
+ allowedOnboardingDomains : [ 'zodia.io' , 'v2.custody.zodia.io' ] ,
214
241
} ,
215
242
{
216
243
refreshTokenUrl : 'https://api.sit.zodia.io/oauth/token' ,
@@ -223,24 +250,7 @@ export const custodianMetadata: CustodianMetadata[] = [
223
250
iconUrl : 'https://zodia.io/wp-content/uploads/2023/01/cropped-ico.png' ,
224
251
isManualTokenInputSupported : false ,
225
252
onboardingUrl : 'https://zodia.io' ,
226
- allowedOnboardingDomains : [ 'sit.zodia.io' ] , // @audit dev host
227
- } ,
228
- {
229
- refreshTokenUrl :
230
- 'https://saturn-custody.dev.metamask-institutional.io/oauth/token' ,
231
- name : 'saturn-dev' ,
232
- displayName : 'Saturn Custody' ,
233
- enabled : false ,
234
- apiBaseUrl : 'https://saturn-custody.dev.metamask-institutional.io/eth' ,
235
- apiVersion : CustodianType . ECA1 ,
236
- custodianPublishesTransaction : false ,
237
- iconUrl :
238
- 'https://saturn-custody-ui.dev.metamask-institutional.io/saturn.svg' ,
239
- isManualTokenInputSupported : false ,
240
- onboardingUrl : 'https://saturn-custody-ui.dev.metamask-institutional.io' ,
241
- allowedOnboardingDomains : [
242
- 'saturn-custody-ui.dev.metamask-institutional.io' ,
243
- ] ,
253
+ allowedOnboardingDomains : [ 'sit.zodia.io' , 'ui-v2.sit.zodia.io' ] ,
244
254
} ,
245
255
{
246
256
refreshTokenUrl : 'https://api-qa.qa.zodia.io/oauth/token' ,
@@ -253,7 +263,7 @@ export const custodianMetadata: CustodianMetadata[] = [
253
263
iconUrl : 'https://zodia.io/wp-content/uploads/2023/01/cropped-ico.png' ,
254
264
isManualTokenInputSupported : false ,
255
265
onboardingUrl : 'https://zodia.io' ,
256
- allowedOnboardingDomains : [ 'qa.zodia.io' ] ,
266
+ allowedOnboardingDomains : [ 'qa.zodia.io' , 'ui-v2.qa.zodia.io' ] ,
257
267
} ,
258
268
{
259
269
refreshTokenUrl : 'http://localhost:8090/oauth/token' ,
@@ -308,20 +318,6 @@ export const custodianMetadata: CustodianMetadata[] = [
308
318
isManualTokenInputSupported : true ,
309
319
allowedOnboardingDomains : [ ] , // Cubist does not support onboarding via a web page
310
320
} ,
311
- {
312
- refreshTokenUrl : 'http://localhost:3009/oauth/token' ,
313
- name : 'neptune-custody-local' ,
314
- displayName : 'Neptune Custody Local' ,
315
- enabled : true ,
316
- apiBaseUrl : 'http://localhost:3009/eth' ,
317
- apiVersion : CustodianType . ECA3 ,
318
- custodianPublishesTransaction : false ,
319
- iconUrl :
320
- 'https://dev.metamask-institutional.io/custodian-icons/neptune-icon.svg' ,
321
- isManualTokenInputSupported : false ,
322
- onboardingUrl : 'http://localhost:3005' ,
323
- allowedOnboardingDomains : [ 'localhost:3005' ] ,
324
- } ,
325
321
{
326
322
refreshTokenUrl : 'http://localhost:3330/oauth/token' ,
327
323
apiBaseUrl : 'http://localhost:3330' ,
@@ -335,16 +331,4 @@ export const custodianMetadata: CustodianMetadata[] = [
335
331
isManualTokenInputSupported : true ,
336
332
allowedOnboardingDomains : [ 'localhost:8000' , 'http://localhost:8000' ] ,
337
333
} ,
338
- {
339
- refreshTokenUrl : 'http://localhost:3330/oauth/token' ,
340
- apiBaseUrl : 'http://localhost:3330' ,
341
- apiVersion : CustodianType . ECA3 ,
342
- custodianPublishesTransaction : false ,
343
- name : 'local-dev' ,
344
- displayName : 'Local Dev' ,
345
- enabled : false ,
346
- iconUrl :
347
- 'https://dev.metamask-institutional.io/custodian-icons/neptune-icon.svg' ,
348
- isManualTokenInputSupported : true ,
349
- } ,
350
334
] ;
0 commit comments