-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.ts
21 lines (15 loc) · 823 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { clearFolders } from './src/utils'
import { CrosschainMap, defaultLists } from './src/crosschainMap'
import { createEcoBridgeCompliantSocketList } from './src/socket'
const init = async () => {
const debug = !!process.env.DEBUG ?? false
await clearFolders()
const crosschainMap = new CrosschainMap()
await crosschainMap.populateWith(defaultLists, debug)
createEcoBridgeCompliantSocketList(crosschainMap, { debug, bidirectional: false, shortList: true })
createEcoBridgeCompliantSocketList(crosschainMap, { debug, bidirectional: false, shortList: false })
createEcoBridgeCompliantSocketList(crosschainMap, { debug, bidirectional: true, shortList: true })
createEcoBridgeCompliantSocketList(crosschainMap, { debug, bidirectional: true, shortList: false })
crosschainMap.toJSON(debug)
}
init()