Skip to content

Commit

Permalink
Mempool links (#1384)
Browse files Browse the repository at this point in the history
* mempool links for onchain information

* Tests fixes
  • Loading branch information
ShahanaFarooqui authored May 8, 2024
1 parent 7c47a2d commit c3bb090
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/app/shared/test-helpers/mock-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class mockLoggerService {
export class mockHttpClient {

post(url: string) {
return of(new HttpResponse(mockResponseData.setSelectedNodeSuccess));
return of(new HttpResponse({ status: 200, body: mockResponseData.setSelectedNodeSuccess }));
}

}
Expand Down
81 changes: 52 additions & 29 deletions src/app/shared/test-helpers/test-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,31 @@ export const mockResponseData = {
}
],
setSelectedNodeSuccess: {
status: 200,
body: {
status: 'Selected Node Updated To: LN Node Name!'
index: 1,
lnNode: 'Node 1',
lnImplementation: 'LND',
authentication: {
configPath: '/user/.lnd/lnd.conf',
swapMacaroonPath: '/user/.loop',
boltzMacaroonPath: '/user/.boltz'
},
settings: {
blockExplorerUrl: 'https://mempool.space/',
lnServerUrl: 'https://localhost:8080',
userPersona: 'MERCHANT',
themeMode: 'NIGHT',
themeColor: 'TEAL',
unannouncedChannels: true,
logLevel: 'DEBUG',
fiatConversion: true,
currencyUnit: 'CAD',
swapServerUrl: 'https://localhost:8081',
boltzServerUrl: 'https://localhost:9003',
enableOffers: false,
enablePeerswap: false,
bitcoindConfigPath: '',
channelBackupPath: '/user/RTL/channels-backup/node-1',
logFile: '/user/RTL/logs/RTL-Node-1.log'
}
},
error401: {
Expand Down Expand Up @@ -761,8 +783,8 @@ export const mockActionsData = {
channelBackupPath: '',
currencyUnit: '',
enableOffers: false,
enablePeerswap: false,
blockExplorerUrl: 'https://mempool.space'
blockExplorerUrl: 'https://mempool.space',
enablePeerswap: false
},
authentication: {
swapMacaroonPath: '',
Expand All @@ -774,36 +796,37 @@ export const mockActionsData = {
lnImplementation: 'LND'
},
setSelectedNode: {
index: 1,
lnNode: 'Node 1',
lnImplementation: 'LND',
authentication: {
configPath: '/user/.lnd/lnd.conf',
swapMacaroonPath: '/user/.loop',
boltzMacaroonPath: '/user/.boltz'
},
settings: {
blockExplorerUrl: 'https://mempool.space/',
lnServerUrl: 'https://localhost:8080',
userPersona: 'MERCHANT',
themeMode: 'NIGHT',
themeColor: 'TEAL',
unannouncedChannels: false,
unannouncedChannels: true,
logLevel: 'DEBUG',
fiatConversion: true,
currencyUnits: [
'BTC',
'SATS',
'USD'
],
bitcoindConfigPath: '',
enableLogging: true,
lnServerUrl: '',
swapServerUrl: '',
boltzServerUrl: '',
channelBackupPath: '',
currencyUnit: '',
currencyUnit: 'CAD',
swapServerUrl: 'https://localhost:8081',
boltzServerUrl: 'https://localhost:9003',
enableOffers: false,
enablePeerswap: false,
blockExplorerUrl: 'https://mempool.space'
},
authentication: {
swapMacaroonPath: '',
boltzMacaroonPath: '',
configPath: ''
},
index: 1,
lnNode: 'LN Node Name',
lnImplementation: 'LND'
bitcoindConfigPath: '',
channelBackupPath: '/user/RTL/channels-backup/node-1',
logFile: '/user/RTL/logs/RTL-Node-1.log',
currencyUnits: [
'Sats',
'BTC',
'CAD'
]
}
},
errorSendPaymentStatus: {
action: 'SendPayment',
Expand Down Expand Up @@ -958,7 +981,7 @@ export const mockRTLStoreState = {
lnServerUrl: 'http://127.0.0.1:9090',
swapServerUrl: '',
boltzServerUrl: '',
channelBackupPath: '..\\\\RTL\\\\backup\\\\node-3',
channelBackupPath: '..\\\\RTL\\\\backup\\\\node-1',
currencyUnit: 'USD',
currencyUnits: [
'Sats',
Expand Down

0 comments on commit c3bb090

Please sign in to comment.