{"version":3,"sources":["../../../../src/raydium/launchpad/curve/curveBase.ts"],"sourcesContent":["import BN from \"bn.js\";\nimport { LaunchpadPool } from \"../layout\";\nimport Decimal from \"decimal.js\";\nimport { LaunchpadPoolInfo } from \"../type\";\n\nexport interface PoolBaseAmount {\n  virtualA: BN;\n  virtualB: BN;\n  realA: BN;\n  realB: BN;\n}\n\nexport class CurveBase {\n  static getPoolInitPriceByPool({\n    poolInfo,\n    decimalA,\n    decimalB,\n  }: {\n    poolInfo: LaunchpadPoolInfo | PoolBaseAmount;\n    decimalA: number;\n    decimalB: number;\n  }): Decimal {\n    throw Error();\n  }\n  static getPoolInitPriceByInit({\n    a,\n    b,\n    decimalA,\n    decimalB,\n  }: {\n    a: BN;\n    b: BN;\n    decimalA: number;\n    decimalB: number;\n  }): Decimal {\n    throw Error();\n  }\n\n  static getPoolPrice({\n    poolInfo,\n    decimalA,\n    decimalB,\n  }: {\n    poolInfo: LaunchpadPoolInfo | PoolBaseAmount;\n    decimalA: number;\n    decimalB: number;\n  }): Decimal {\n    throw Error();\n  }\n  static getPoolEndPrice({\n    supply,\n    totalSell,\n    totalLockedAmount,\n    totalFundRaising,\n    migrateFee,\n    decimalA,\n    decimalB,\n  }: {\n    supply: BN;\n    totalSell: BN;\n    totalLockedAmount: BN;\n    totalFundRaising: BN;\n    migrateFee: BN;\n    decimalA: number;\n    decimalB: number;\n  }): Decimal {\n    throw Error();\n  }\n\n  static getPoolEndPriceReal({\n    poolInfo,\n    decimalA,\n    decimalB,\n  }: {\n    poolInfo: LaunchpadPoolInfo;\n    decimalA: number;\n    decimalB: number;\n  }): Decimal {\n    throw Error();\n  }\n\n  static getInitParam({\n    supply,\n    totalFundRaising,\n    totalSell,\n    totalLockedAmount,\n    migrateFee,\n  }: {\n    supply: BN;\n    totalSell: BN;\n    totalLockedAmount: BN;\n    totalFundRaising: BN;\n    migrateFee: BN;\n  }): { a: BN; b: BN; c: BN } {\n    throw Error();\n  }\n\n  static buyExactIn({ poolInfo, amount }: { poolInfo: LaunchpadPoolInfo | PoolBaseAmount; amount: BN }): BN {\n    throw Error();\n  }\n\n  static buyExactOut({ poolInfo, amount }: { poolInfo: LaunchpadPoolInfo | PoolBaseAmount; amount: BN }): BN {\n    throw Error();\n  }\n\n  static sellExactIn({ poolInfo, amount }: { poolInfo: LaunchpadPoolInfo | PoolBaseAmount; amount: BN }): BN {\n    throw Error();\n  }\n  static sellExactOut({ poolInfo, amount }: { poolInfo: LaunchpadPoolInfo | PoolBaseAmount; amount: BN }): BN {\n    throw Error();\n  }\n}\n"],"mappings":"AAYO,IAAMA,EAAN,KAAgB,CACrB,OAAO,uBAAuB,CAC5B,SAAAC,EACA,SAAAC,EACA,SAAAC,CACF,EAIY,CACV,MAAM,MAAM,CACd,CACA,OAAO,uBAAuB,CAC5B,EAAAC,EACA,EAAAC,EACA,SAAAH,EACA,SAAAC,CACF,EAKY,CACV,MAAM,MAAM,CACd,CAEA,OAAO,aAAa,CAClB,SAAAF,EACA,SAAAC,EACA,SAAAC,CACF,EAIY,CACV,MAAM,MAAM,CACd,CACA,OAAO,gBAAgB,CACrB,OAAAG,EACA,UAAAC,EACA,kBAAAC,EACA,iBAAAC,EACA,WAAAC,EACA,SAAAR,EACA,SAAAC,CACF,EAQY,CACV,MAAM,MAAM,CACd,CAEA,OAAO,oBAAoB,CACzB,SAAAF,EACA,SAAAC,EACA,SAAAC,CACF,EAIY,CACV,MAAM,MAAM,CACd,CAEA,OAAO,aAAa,CAClB,OAAAG,EACA,iBAAAG,EACA,UAAAF,EACA,kBAAAC,EACA,WAAAE,CACF,EAM4B,CAC1B,MAAM,MAAM,CACd,CAEA,OAAO,WAAW,CAAE,SAAAT,EAAU,OAAAU,CAAO,EAAqE,CACxG,MAAM,MAAM,CACd,CAEA,OAAO,YAAY,CAAE,SAAAV,EAAU,OAAAU,CAAO,EAAqE,CACzG,MAAM,MAAM,CACd,CAEA,OAAO,YAAY,CAAE,SAAAV,EAAU,OAAAU,CAAO,EAAqE,CACzG,MAAM,MAAM,CACd,CACA,OAAO,aAAa,CAAE,SAAAV,EAAU,OAAAU,CAAO,EAAqE,CAC1G,MAAM,MAAM,CACd,CACF","names":["CurveBase","poolInfo","decimalA","decimalB","a","b","supply","totalSell","totalLockedAmount","totalFundRaising","migrateFee","amount"]}