{"version":3,"file":"accounts.mjs","sources":["../../../../src/plugins/collateralModule/accounts.ts"],"sourcesContent":["import { CollateralInfo as SolitaCollateralInfo } from '@convergence-rfq/rfq';\n\nimport {\n  Account,\n  getAccountParsingAndAssertingFunction,\n  getAccountParsingFunction,\n} from '../../types';\n\n/** @group Accounts */\nexport type CollateralAccount = Account<SolitaCollateralInfo>;\n\n// TODO: Categorize bugs and what caused them, how to mitigate in future? Paywrite\n\n/** @group Account Helpers */\nexport const parseCollateralAccount =\n  getAccountParsingFunction(SolitaCollateralInfo);\n\n/** @group Account Helpers */\nexport const toCollateralAccount =\n  getAccountParsingAndAssertingFunction(SolitaCollateralInfo);\n"],"names":["parseCollateralAccount","getAccountParsingFunction","SolitaCollateralInfo","toCollateralAccount","getAccountParsingAndAssertingFunction"],"mappings":";;;AAQA;;AAGA;;AAEA;IACaA,sBAAsB,GACjCC,yBAAyB,CAACC,cAAoB,EAAC;;AAEjD;IACaC,mBAAmB,GAC9BC,qCAAqC,CAACF,cAAoB;;;;"}