{"version":3,"file":"getRecordV1Address.cjs","sources":["../../../src/record/getRecordV1Address.ts"],"sourcesContent":["import { getDomainAddress } from \"../domain/getDomainAddress\";\r\nimport { Record, RecordVersion } from \"../types/record\";\r\n\r\ninterface GetRecordV1AddressParams {\r\n  domain: string;\r\n  record: Record;\r\n}\r\n\r\n/**\r\n * Derives the address of a version 1 record.\r\n *\r\n * @param params - An object containing the following properties:\r\n *   - `domain`: The domain under which the record resides.\r\n *   - `record`: The type of record to derive the address for.\r\n * @returns A promise that resolves to the derived record address.\r\n */\r\nexport const getRecordV1Address = async ({\r\n  domain,\r\n  record,\r\n}: GetRecordV1AddressParams) => {\r\n  const { domainAddress } = await getDomainAddress({\r\n    domain: record + \".\" + domain,\r\n    record: RecordVersion.V1,\r\n  });\r\n\r\n  return domainAddress;\r\n};\r\n"],"names":["async","domain","record","domainAddress","getDomainAddress","RecordVersion","V1"],"mappings":"yHAgBkCA,OAChCC,SACAC,OAAAA,MAEA,MAAMC,cAAEA,SAAwBC,mBAAiB,CAC/CH,OAAQC,EAAS,IAAMD,EACvBC,OAAQG,EAAaA,cAACC,KAGxB,OAAOH,CAAa"}