{"version":3,"file":"accounts.cjs","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,iCAAyB,CAACC,kBAAoB,EAAC;;AAEjD;IACaC,uBAAuB,GAClCC,6CAAqC,CAACF,kBAAoB,EAAC;;AAE7D;;AAGA;IACaG,yBAAyB,GACpCJ,iCAAyB,CAACK,iBAAmB,EAAC;;AAEhD;IACaC,sBAAsB,GACjCH,6CAAqC,CAACE,iBAAmB,EAAC;;AAE5D;;AAGA;IACaE,oBAAoB,GAAGP,iCAAyB,CAACQ,YAAQ,EAAC;;AAEvE;IACaC,iBAAiB,GAC5BN,6CAAqC,CAACK,YAAQ,EAAC;;AAEjD;;AAGA;IACaE,eAAe,GAAGV,iCAAyB,CAACW,OAAG,EAAC;;AAE7D;IACaC,YAAY,GAAGT,6CAAqC,CAACQ,OAAG;;;;;;;;;;;"}