{"version":3,"file":"accounts.mjs","sources":["../../../../src/plugins/rfqModule/accounts.ts"],"sourcesContent":["import {\n  CollateralInfo as SolitaCollateralInfo,\n  ProtocolState as SolitaProtocolState,\n  Response,\n  Rfq,\n} from '@convergence-rfq/rfq';\n\nimport {\n  Account,\n  getAccountParsingAndAssertingFunction,\n  getAccountParsingFunction,\n} from '../../types';\n\n/** @group Accounts */\nexport type CollateralInfoAccount = Account<SolitaCollateralInfo>;\n\n/** @group Account Helpers */\nexport const parseCollateralInfoAccount =\n  getAccountParsingFunction(SolitaCollateralInfo);\n\n/** @group Account Helpers */\nexport const toCollateralInfoAccount =\n  getAccountParsingAndAssertingFunction(SolitaCollateralInfo);\n\n/** @group Accounts */\nexport type ProtocolStateAccount = Account<SolitaProtocolState>;\n\n/** @group Account Helpers */\nexport const parseProtocolStateAccount =\n  getAccountParsingFunction(SolitaProtocolState);\n\n/** @group Account Helpers */\nexport const toProtocolStateAccount =\n  getAccountParsingAndAssertingFunction(SolitaProtocolState);\n\n/** @group Accounts */\nexport type ResponseAccount = Account<Response>;\n\n/** @group Account Helpers */\nexport const parseResponseAccount = getAccountParsingFunction(Response);\n\n/** @group Account Helpers */\nexport const toResponseAccount =\n  getAccountParsingAndAssertingFunction(Response);\n\n/** @group Accounts */\nexport type RfqAccount = Account<Rfq>;\n\n/** @group Account Helpers */\nexport const parseRfqAccount = getAccountParsingFunction(Rfq);\n\n/** @group Account Helpers */\nexport const toRfqAccount = getAccountParsingAndAssertingFunction(Rfq);\n"],"names":["parseCollateralInfoAccount","getAccountParsingFunction","SolitaCollateralInfo","toCollateralInfoAccount","getAccountParsingAndAssertingFunction","parseProtocolStateAccount","SolitaProtocolState","toProtocolStateAccount","parseResponseAccount","Response","toResponseAccount","parseRfqAccount","Rfq","toRfqAccount"],"mappings":";;;AAaA;;AAGA;IACaA,0BAA0B,GACrCC,yBAAyB,CAACC,cAAoB,EAAC;;AAEjD;IACaC,uBAAuB,GAClCC,qCAAqC,CAACF,cAAoB,EAAC;;AAE7D;;AAGA;IACaG,yBAAyB,GACpCJ,yBAAyB,CAACK,aAAmB,EAAC;;AAEhD;IACaC,sBAAsB,GACjCH,qCAAqC,CAACE,aAAmB,EAAC;;AAE5D;;AAGA;IACaE,oBAAoB,GAAGP,yBAAyB,CAACQ,QAAQ,EAAC;;AAEvE;IACaC,iBAAiB,GAC5BN,qCAAqC,CAACK,QAAQ,EAAC;;AAEjD;;AAGA;IACaE,eAAe,GAAGV,yBAAyB,CAACW,GAAG,EAAC;;AAE7D;IACaC,YAAY,GAAGT,qCAAqC,CAACQ,GAAG;;;;"}