{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import { getValidatedAddress } from '@nadohq/utils';\nimport { TypedDataDomain } from 'abitype';\n\n/**\n * Gives the EIP712 data domain for order signing\n *\n * @param contractAddress usually the address of the orderbook (for orders) or sequencer (for other operations)\n * @param chainId\n */\nexport function getNadoEIP712Domain(\n  contractAddress: string,\n  chainId: number,\n): TypedDataDomain {\n  return {\n    // TODO: Rename to Nado\n    name: 'Vertex',\n    version: '0.0.1',\n    chainId,\n    verifyingContract: getValidatedAddress(contractAddress),\n  };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAoC;AAS7B,SAAS,oBACd,iBACA,SACiB;AACjB,SAAO;AAAA;AAAA,IAEL,MAAM;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA,uBAAmB,kCAAoB,eAAe;AAAA,EACxD;AACF;","names":[]}