File tree 5 files changed +7
-16
lines changed
app/scripts/controllers/bridge-status
5 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
DEFAULT_BRIDGE_STATUS_STATE ,
15
15
REFRESH_INTERVAL_MS ,
16
16
} from './constants' ;
17
- import { BridgeStatusControllerMessenger } from './types' ;
17
+ import type { BridgeStatusControllerMessenger } from './types' ;
18
18
import { fetchBridgeTxStatus , getStatusRequestWithSrcTxHash } from './utils' ;
19
19
20
20
const metadata : StateMetadata < BridgeStatusControllerState > = {
Original file line number Diff line number Diff line change
1
+ import { BRIDGE_API_BASE_URL } from '../../../../shared/constants/bridge' ;
1
2
import { BridgeStatusState } from '../../../../shared/types/bridge-status' ;
2
3
3
4
export const REFRESH_INTERVAL_MS = 10 * 1000 ;
@@ -11,3 +12,5 @@ export const DEFAULT_BRIDGE_STATUS_STATE: BridgeStatusState = {
11
12
export const DEFAULT_BRIDGE_STATUS_CONTROLLER_STATE = {
12
13
bridgeStatusState : { ...DEFAULT_BRIDGE_STATUS_STATE } ,
13
14
} ;
15
+
16
+ export const BRIDGE_STATUS_BASE_URL = `${ BRIDGE_API_BASE_URL } /getTxStatus` ;
Original file line number Diff line number Diff line change 1
- import {
2
- BRIDGE_API_BASE_URL ,
3
- BRIDGE_CLIENT_ID ,
4
- } from '../../../../shared/constants/bridge' ;
1
+ import { BRIDGE_CLIENT_ID } from '../../../../shared/constants/bridge' ;
5
2
import fetchWithCache from '../../../../shared/lib/fetch-with-cache' ;
6
3
import {
7
4
StatusResponse ,
@@ -10,11 +7,10 @@ import {
10
7
} from '../../../../shared/types/bridge-status' ;
11
8
import type { Quote } from '../../../../shared/types/bridge' ;
12
9
import { validateResponse , validators } from './validators' ;
10
+ import { BRIDGE_STATUS_BASE_URL } from './constants' ;
13
11
14
12
const CLIENT_ID_HEADER = { 'X-Client-Id' : BRIDGE_CLIENT_ID } ;
15
13
16
- export const BRIDGE_STATUS_BASE_URL = `${ BRIDGE_API_BASE_URL } /getTxStatus` ;
17
-
18
14
export const getStatusRequestDto = (
19
15
statusRequest : StatusRequestWithSrcTxHash ,
20
16
) : StatusRequestDto => {
Original file line number Diff line number Diff line change 7
7
Asset ,
8
8
StatusTypes ,
9
9
} from '../../../../shared/types/bridge-status' ;
10
- import { BRIDGE_STATUS_BASE_URL } from './utils ' ;
10
+ import { BRIDGE_STATUS_BASE_URL } from './constants ' ;
11
11
12
12
type Validator < ExpectedResponse , DataToValidate > = {
13
13
property : keyof ExpectedResponse | string ;
Original file line number Diff line number Diff line change 7
7
// - For more information contact the Extension Platform team.
8
8
9
9
[
10
- [
11
- " app/scripts/controllers/bridge-status/bridge-status-controller.ts" ,
12
- " app/scripts/controllers/bridge-status/types.ts"
13
- ],
14
- [
15
- " app/scripts/controllers/bridge-status/utils.ts" ,
16
- " app/scripts/controllers/bridge-status/validators.ts"
17
- ],
18
10
[
19
11
" ui/components/app/alert-system/confirm-alert-modal/confirm-alert-modal.tsx" ,
20
12
" ui/components/app/alert-system/confirm-alert-modal/index.tsx" ,
You can’t perform that action at this time.
0 commit comments