import { multiaddr } from '@multiformats/multiaddr' import { launchLander } from './utils/launch-lander.js' import waitFor from './utils/wait-for.js' import connectPeers from './utils/connect-nodes-via-relay.js' const main = async function () { const orbiterAddress = multiaddr('/ip4/127.0.0.1/tcp/54321/p2p/16Uiu2HAmBzKcgCfpJ4j4wJSLkKLbCVvnNBWPnhexrnJWJf1fDu5y') const lander = await launchLander({ orbiterAddress, directory: 'lander' }) const db = await lander.orbitdb.open('my-db') console.log(await lander.pin(db.address)) lander.orbitdb.stop() process.exit(0) } main()