{"version":3,"file":"accounts.mjs","sources":["../../../../src/plugins/protocolModule/accounts.ts"],"sourcesContent":["import { ProtocolState, BaseAssetInfo, MintInfo } from '@convergence-rfq/rfq';\n\nimport {\n  Account,\n  getAccountParsingAndAssertingFunction,\n  getAccountParsingFunction,\n} from '../../types';\n\n/** @group Accounts */\nexport type ProtocolAccount = Account<ProtocolState>;\n\n/** @group Account Helpers */\nexport const parseProtocolAccount = getAccountParsingFunction(ProtocolState);\n\n/** @group Account Helpers */\nexport const toProtocolAccount =\n  getAccountParsingAndAssertingFunction(ProtocolState);\n\n/** @group Accounts */\nexport type BaseAssetAccount = Account<BaseAssetInfo>;\n\n/** @group Account Helpers */\nexport const parseBaseAssetAccount = getAccountParsingFunction(BaseAssetInfo);\n\n/** @group Account Helpers */\nexport const toBaseAssetAccount =\n  getAccountParsingAndAssertingFunction(BaseAssetInfo);\n\n/** @group Accounts */\nexport type RegisteredMintAccount = Account<MintInfo>;\n\n/** @group Account Helpers */\nexport const parseRegisteredMintAccount = getAccountParsingFunction(MintInfo);\n\n/** @group Account Helpers */\nexport const toRegisteredMintAccount =\n  getAccountParsingAndAssertingFunction(MintInfo);\n"],"names":["toProtocolAccount","getAccountParsingAndAssertingFunction","ProtocolState","toBaseAssetAccount","BaseAssetInfo","toRegisteredMintAccount","MintInfo"],"mappings":";;;AAcA;IACaA,iBAAiB,GAC5BC,qCAAqC,CAACC,aAAa,EAAC;;AAQtD;IACaC,kBAAkB,GAC7BF,qCAAqC,CAACG,aAAa,EAAC;;AAQtD;IACaC,uBAAuB,GAClCJ,qCAAqC,CAACK,QAAQ;;;;"}