Move DLCDAOs to src (#5652)

This commit is contained in:
Chris Stewart 2024-08-28 06:56:28 -05:00 committed by GitHub
parent b98087a5ee
commit feeb2618d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 34 additions and 33 deletions

View File

@ -0,0 +1,34 @@
package org.bitcoins.dlc.wallet.models
case class DLCDAOs(
announcementDAO: OracleAnnouncementDataDAO,
nonceDAO: OracleNonceDAO,
dlcAnnouncementDAO: DLCAnnouncementDAO,
dlcDAO: DLCDAO,
contractDataDAO: DLCContractDataDAO,
dlcOfferDAO: DLCOfferDAO,
dlcAcceptDAO: DLCAcceptDAO,
dlcInputsDAO: DLCFundingInputDAO,
dlcSigsDAO: DLCCETSignaturesDAO,
dlcRefundSigDAO: DLCRefundSigsDAO,
dlcRemoteTxDAO: DLCRemoteTxDAO,
incomingDLCOfferDAO: IncomingDLCOfferDAO,
contactDAO: DLCContactDAO
) {
val list = Vector(
announcementDAO,
nonceDAO,
dlcDAO,
dlcAnnouncementDAO,
contractDataDAO,
dlcOfferDAO,
dlcAcceptDAO,
dlcInputsDAO,
dlcSigsDAO,
dlcRefundSigDAO,
dlcRemoteTxDAO,
incomingDLCOfferDAO,
contactDAO: DLCContactDAO
)
}

View File

@ -9,39 +9,6 @@ import org.scalatest._
import scala.concurrent.{Await, Future}
case class DLCDAOs(
announcementDAO: OracleAnnouncementDataDAO,
nonceDAO: OracleNonceDAO,
dlcAnnouncementDAO: DLCAnnouncementDAO,
dlcDAO: DLCDAO,
contractDataDAO: DLCContractDataDAO,
dlcOfferDAO: DLCOfferDAO,
dlcAcceptDAO: DLCAcceptDAO,
dlcInputsDAO: DLCFundingInputDAO,
dlcSigsDAO: DLCCETSignaturesDAO,
dlcRefundSigDAO: DLCRefundSigsDAO,
dlcRemoteTxDAO: DLCRemoteTxDAO,
incomingDLCOfferDAO: IncomingDLCOfferDAO,
contactDAO: DLCContactDAO
) {
val list = Vector(
announcementDAO,
nonceDAO,
dlcDAO,
dlcAnnouncementDAO,
contractDataDAO,
dlcOfferDAO,
dlcAcceptDAO,
dlcInputsDAO,
dlcSigsDAO,
dlcRefundSigDAO,
dlcRemoteTxDAO,
incomingDLCOfferDAO,
contactDAO: DLCContactDAO
)
}
trait DLCDAOFixture extends BitcoinSFixture with EmbeddedPg {
private lazy val daos: DLCDAOs = {