XYOracleNetwork/clients

View on GitHub
packages/automation-witness-server/src/Jobs/CryptoMarket/getDiviner.ts

Summary

Maintainability
A
2 hrs
Test Coverage
import { CryptoMarketAssetDiviner, CryptoMarketAssetDivinerConfigSchema } from '@xyo-network/crypto-asset-plugin'
import type { DivinerInstance } from '@xyo-network/diviner-model'

import { getAccount, WalletPaths } from '../../Account/index.js'

export const getDiviner = async (): Promise<DivinerInstance> => {
  return await CryptoMarketAssetDiviner.create({
    account: await getAccount(WalletPaths.CryptoMarket.Diviner.Asset),
    config: { schema: CryptoMarketAssetDivinerConfigSchema },
  })
}