Skip to content

Commit

Permalink
fix: add ledger configs to npm pkg (#1039)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach authored Dec 1, 2023
1 parent 152daf1 commit a6ed691
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions packages/legacy/core/App/defaultConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import { useProofRequestTemplates } from '@hyperledger/aries-bifold-verifier'
import { IOverlayBundleData } from '@hyperledger/aries-oca'
import { BrandingOverlayType, DefaultOCABundleResolver } from '@hyperledger/aries-oca/build/legacy'

import defaultIndyLedgers from '../configs/ledgers/indy'

import * as bundle from './assets/oca-bundles.json'
import EmptyList from './components/misc/EmptyList'
import Record from './components/record/Record'
import HomeFooterView from './components/views/HomeFooterView'
import HomeHeaderView from './components/views/HomeHeaderView'
import defaultIndyLedgers from './configs/ledgers/indy'
import { PINRules } from './constants'
import { ConfigurationContext } from './contexts/configuration'
import { useNotifications } from './hooks/notifications'
Expand Down
3 changes: 1 addition & 2 deletions packages/legacy/core/App/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import type { OnboardingStyleSheet } from './screens/Onboarding'
import { Agent } from '@aries-framework/core'
import AgentProvider from '@aries-framework/react-hooks'

import indyLedgers from '../configs/ledgers/indy'

import * as components from './components'
import Button, { ButtonType } from './components/buttons/Button'
import HeaderButton, { ButtonLocation } from './components/buttons/HeaderButton'
Expand All @@ -27,6 +25,7 @@ import { homeTourSteps } from './components/tour/HomeTourSteps'
import { proofRequestTourSteps } from './components/tour/ProofRequestTourSteps'
import { TourBox } from './components/tour/TourBox'
import HomeFooterView from './components/views/HomeFooterView'
import indyLedgers from './configs/ledgers/indy'
import * as contexts from './contexts'
import { AuthProvider } from './contexts/auth'
import { CommonUtilProvider } from './contexts/commons'
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/core/App/utils/ledger.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import TcpSocket from 'react-native-tcp-socket'

import pools from '../../configs/ledgers/indy'
import pools from '../configs/ledgers/indy'
import { GenesisTransaction } from '../types/genesis'

export const canConnectToLedgerNode = async (node: { host: string; port: number }): Promise<boolean> =>
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/core/__tests__/ledger.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { canConnectToLedgerNode, fetchLedgerNodes } from '../App/utils/ledger'

jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter')
jest.mock('../configs/ledgers/indy')
jest.mock('../App/configs/ledgers/indy')
jest.useFakeTimers({ legacyFakeTimers: true })
jest.spyOn(global, 'setTimeout')

Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@
"typescript"
]
}
}
}

0 comments on commit a6ed691

Please sign in to comment.