Packages

object DLCTest extends DLCTest

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DLCTest
  2. DLCTest
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait ContractParams extends AnyRef
    Definition Classes
    DLCTest
  2. case class DisjointUnionContractParams(singleParams: Vector[SingleContractParams]) extends ContractParams with Product with Serializable
    Definition Classes
    DLCTest
  3. case class EnumContractParams(numOutcomes: Int, oracleThreshold: Int, numOracles: Int) extends SingleContractParams with Product with Serializable
    Definition Classes
    DLCTest
  4. case class NumericContractParams(numDigits: Int, oracleThreshold: Int, numOracles: Int, paramsOpt: Option[OracleParamsV0TLV] = None) extends SingleContractParams with Product with Serializable
    Definition Classes
    DLCTest
  5. sealed trait SingleContractParams extends ContractParams
    Definition Classes
    DLCTest

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val acceptAddress: BitcoinAddress
    Definition Classes
    DLCTest
  5. val acceptAddress2: BitcoinAddress
    Definition Classes
    DLCTest
  6. val acceptChangeSPK: P2WPKHWitnessSPKV0
    Definition Classes
    DLCTest
  7. val acceptChangeSerialId: UInt64
    Definition Classes
    DLCTest
  8. val acceptFundingInputs: Vector[DLCFundingInput]
    Definition Classes
    DLCTest
  9. val acceptFundingPrivKey: ECPrivateKey
    Definition Classes
    DLCTest
  10. val acceptFundingTx: Transaction
    Definition Classes
    DLCTest
  11. val acceptFundingTx2: Transaction
    Definition Classes
    DLCTest
  12. val acceptFundingUtxos: Vector[SpendingInfoWithSerialId]
    Definition Classes
    DLCTest
  13. val acceptInput: CurrencyUnit
    Definition Classes
    DLCTest
  14. val acceptNestedSPK: MultiSignatureScriptPubKey
    Definition Classes
    DLCTest
  15. val acceptPayoutPrivKey: ECPrivateKey
    Definition Classes
    DLCTest
  16. val acceptPayoutSerialId: UInt64
    Definition Classes
    DLCTest
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. def assertCorrectSigDerivation(offerSetup: SetupDLC, dlcOffer: TestDLCClient, acceptSetup: SetupDLC, dlcAccept: TestDLCClient, oracleSigs: Vector[OracleSignatures], outcome: OracleOutcome)(implicit ec: ExecutionContext): Future[Assertion]
    Definition Classes
    DLCTest
  19. val blockTimeToday: BlockTime
    Definition Classes
    DLCTest
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  21. def computeNumericOracleSignatures(digits: Vector[Int], privKey: ECPrivateKey = oraclePrivKey, kVals: Vector[ECPrivateKey] = preCommittedKs): OrderedSchnorrSignatures

    Computes an oracle signatures for the given outcome and oracle

    Computes an oracle signatures for the given outcome and oracle

    Definition Classes
    DLCTest
  22. def computeNumericOutcome(numDigits: Int, desc: NumericContractDescriptor, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long): Vector[Int]

    Deterministically chooses an outcome from the middle third of the interesting possible outcomes.

    Deterministically chooses an outcome from the middle third of the interesting possible outcomes.

    Definition Classes
    DLCTest
  23. def constructAndSetupDLC(contractParams: ContractParams)(implicit ec: ExecutionContext): Future[(TestDLCClient, SetupDLC, TestDLCClient, SetupDLC, Vector[DLCOutcomeType])]
    Definition Classes
    DLCTest
  24. def constructDLCClients(contractParams: ContractParams, offerFundingPrivKey: ECPrivateKey = this.offerFundingPrivKey, offerPayoutPrivKey: ECPrivateKey = this.offerPayoutPrivKey, acceptFundingPrivKey: ECPrivateKey = this.acceptFundingPrivKey, acceptPayoutPrivKey: ECPrivateKey = this.acceptPayoutPrivKey, offerFundingUtxos: Vector[SpendingInfoWithSerialId] = this.offerFundingUtxos, offerFundingInputs: Vector[DLCFundingInput] = this.offerFundingInputs, acceptFundingUtxos: Vector[SpendingInfoWithSerialId] = this.acceptFundingUtxos, acceptFundingInputs: Vector[DLCFundingInput] = this.acceptFundingInputs, feeRate: SatoshisPerVirtualByte = this.feeRate, timeouts: DLCTimeouts = this.timeouts)(implicit ec: ExecutionContext): (TestDLCClient, TestDLCClient, Vector[DLCOutcomeType])
    Definition Classes
    DLCTest
  25. def constructDLCClientsFromInfos(offerInfo: ContractInfo, acceptInfo: ContractInfo, offerFundingPrivKey: ECPrivateKey = this.offerFundingPrivKey, offerPayoutPrivKey: ECPrivateKey = this.offerPayoutPrivKey, acceptFundingPrivKey: ECPrivateKey = this.acceptFundingPrivKey, acceptPayoutPrivKey: ECPrivateKey = this.acceptPayoutPrivKey, offerFundingUtxos: Vector[SpendingInfoWithSerialId] = this.offerFundingUtxos, offerFundingInputs: Vector[DLCFundingInput] = this.offerFundingInputs, acceptFundingUtxos: Vector[SpendingInfoWithSerialId] = this.acceptFundingUtxos, acceptFundingInputs: Vector[DLCFundingInput] = this.acceptFundingInputs, feeRate: SatoshisPerVirtualByte = this.feeRate, timeouts: DLCTimeouts = this.timeouts)(implicit ec: ExecutionContext): (TestDLCClient, TestDLCClient)
    Definition Classes
    DLCTest
  26. def constructDisjointUnionDLCClients(contractParams: DisjointUnionContractParams, offerFundingPrivKey: ECPrivateKey = this.offerFundingPrivKey, offerPayoutPrivKey: ECPrivateKey = this.offerPayoutPrivKey, acceptFundingPrivKey: ECPrivateKey = this.acceptFundingPrivKey, acceptPayoutPrivKey: ECPrivateKey = this.acceptPayoutPrivKey, offerFundingUtxos: Vector[SpendingInfoWithSerialId] = this.offerFundingUtxos, offerFundingInputs: Vector[DLCFundingInput] = this.offerFundingInputs, acceptFundingUtxos: Vector[SpendingInfoWithSerialId] = this.acceptFundingUtxos, acceptFundingInputs: Vector[DLCFundingInput] = this.acceptFundingInputs, feeRate: SatoshisPerVirtualByte = this.feeRate, timeouts: DLCTimeouts = this.timeouts)(implicit ec: ExecutionContext): (TestDLCClient, TestDLCClient, Vector[DLCOutcomeType])
    Definition Classes
    DLCTest
  27. def constructEnumContractInfos(params: EnumContractParams, oracleShift: Int = 0): (SingleContractInfo, SingleContractInfo)
    Definition Classes
    DLCTest
  28. def constructEnumDLCClients(contractParams: EnumContractParams, offerFundingPrivKey: ECPrivateKey = this.offerFundingPrivKey, offerPayoutPrivKey: ECPrivateKey = this.offerPayoutPrivKey, acceptFundingPrivKey: ECPrivateKey = this.acceptFundingPrivKey, acceptPayoutPrivKey: ECPrivateKey = this.acceptPayoutPrivKey, offerFundingUtxos: Vector[SpendingInfoWithSerialId] = this.offerFundingUtxos, offerFundingInputs: Vector[DLCFundingInput] = this.offerFundingInputs, acceptFundingUtxos: Vector[SpendingInfoWithSerialId] = this.acceptFundingUtxos, acceptFundingInputs: Vector[DLCFundingInput] = this.acceptFundingInputs, feeRate: SatoshisPerVirtualByte = this.feeRate, timeouts: DLCTimeouts = this.timeouts)(implicit ec: ExecutionContext): (TestDLCClient, TestDLCClient, Vector[EnumOutcome])
    Definition Classes
    DLCTest
  29. def constructNumericContractInfos(params: NumericContractParams, oracleShift: Int = 0): (SingleContractInfo, SingleContractInfo)
    Definition Classes
    DLCTest
  30. def constructNumericDLCClients(contractParams: NumericContractParams, offerFundingPrivKey: ECPrivateKey = this.offerFundingPrivKey, offerPayoutPrivKey: ECPrivateKey = this.offerPayoutPrivKey, acceptFundingPrivKey: ECPrivateKey = this.acceptFundingPrivKey, acceptPayoutPrivKey: ECPrivateKey = this.acceptPayoutPrivKey, offerFundingUtxos: Vector[SpendingInfoWithSerialId] = this.offerFundingUtxos, offerFundingInputs: Vector[DLCFundingInput] = this.offerFundingInputs, acceptFundingUtxos: Vector[SpendingInfoWithSerialId] = this.acceptFundingUtxos, acceptFundingInputs: Vector[DLCFundingInput] = this.acceptFundingInputs, feeRate: SatoshisPerVirtualByte = this.feeRate, timeouts: DLCTimeouts = this.timeouts)(implicit ec: ExecutionContext): (TestDLCClient, TestDLCClient, Vector[UnsignedNumericOutcome])
    Definition Classes
    DLCTest
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  33. def executeForCase(contractIndex: Int, outcomeIndex: Long, contractParams: ContractParams)(implicit ec: ExecutionContext): Future[Assertion]
    Definition Classes
    DLCTest
  34. def executeForCase(outcomeIndex: Long, contractParams: ContractParams)(implicit ec: ExecutionContext): Future[Assertion]
    Definition Classes
    DLCTest
  35. def executeForCases(outcomeIndices: Vector[Long], contractParams: ContractParams)(implicit ec: ExecutionContext): Future[Assertion]
    Definition Classes
    DLCTest
  36. def executeForCasesInUnion(outcomeIndices: Vector[(Int, Long)], contractParams: ContractParams)(implicit ec: ExecutionContext): Future[Assertion]
    Definition Classes
    DLCTest
  37. def executeForOutcome(outcomeIndex: Long, dlcOffer: TestDLCClient, offerSetup: SetupDLC, dlcAccept: TestDLCClient, acceptSetup: SetupDLC, outcomes: Vector[DLCOutcomeType], contractIndex: Int = 0)(implicit ec: ExecutionContext): Future[Assertion]
    Definition Classes
    DLCTest
  38. def executeRefundCase(contractParams: ContractParams)(implicit ec: ExecutionContext): Future[Assertion]
    Definition Classes
    DLCTest
  39. val feeRate: SatoshisPerVirtualByte
    Definition Classes
    DLCTest
  40. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  41. val fundOutputSerialId: UInt64
    Definition Classes
    DLCTest
  42. def genEnumOracleOutcome(chosenOracles: Vector[Int], contractInfo: SingleContractInfo, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long): EnumOracleOutcome
    Definition Classes
    DLCTest
  43. def genEnumOracleSignature(oracleInfo: EnumSingleOracleInfo, outcome: String, privKey: ECPrivateKey = oraclePrivKey, kVal: ECPrivateKey = preCommittedK): EnumOracleSignature

    Computes an EnumOracleSignature for the given outcome and oracle

    Computes an EnumOracleSignature for the given outcome and oracle

    Definition Classes
    DLCTest
  44. def genEnumOracleSignatures(chosenOracles: Vector[Int], contractInfo: SingleContractInfo, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long): Vector[EnumOracleSignature]
    Definition Classes
    DLCTest
  45. def genEnumOracleSignatures(outcome: EnumOracleOutcome): Vector[EnumOracleSignature]
    Definition Classes
    DLCTest
  46. def genNumericOracleOutcome(numDigits: Int, chosenOracles: Vector[Int], contractInfo: SingleContractInfo, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long, paramsOpt: Option[OracleParamsV0TLV]): NumericOracleOutcome
    Definition Classes
    DLCTest
  47. def genNumericOracleOutcome(chosenOracles: Vector[Int], contractInfo: ContractInfo, digits: Vector[Int], paramsOpt: Option[OracleParamsV0TLV]): NumericOracleOutcome
    Definition Classes
    DLCTest
  48. def genNumericOracleSignatures(numDigits: Int, chosenOracles: Vector[Int], contractInfo: SingleContractInfo, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long, paramsOpt: Option[OracleParamsV0TLV]): Vector[NumericOracleSignatures]
    Definition Classes
    DLCTest
  49. def genNumericOracleSignatures(outcome: NumericOracleOutcome): Vector[NumericOracleSignatures]
    Definition Classes
    DLCTest
  50. def genOracleOutcome(numOutcomesOrDigits: Int, isNumeric: Boolean, contractInfo: SingleContractInfo, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long, paramsOpt: Option[OracleParamsV0TLV]): OracleOutcome
    Definition Classes
    DLCTest
  51. def genOracleOutcomeAndSignatures(numOutcomesOrDigits: Int, isNumeric: Boolean, contractInfo: SingleContractInfo, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long, paramsOpt: Option[OracleParamsV0TLV]): (OracleOutcome, Vector[OracleSignatures])
    Definition Classes
    DLCTest
  52. def genOracleSignatures(numOutcomesOrDigits: Int, isNumeric: Boolean, contractInfo: SingleContractInfo, outcomes: Vector[DLCOutcomeType], outcomeIndex: Long, paramsOpt: Option[OracleParamsV0TLV]): Vector[OracleSignatures]
    Definition Classes
    DLCTest
  53. def genOracleSignatures(outcome: OracleOutcome): Vector[OracleSignatures]
    Definition Classes
    DLCTest
  54. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  55. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  56. val inputPrivKeyAccept: ECPrivateKey
    Definition Classes
    DLCTest
  57. val inputPrivKeyAccept2A: ECPrivateKey
    Definition Classes
    DLCTest
  58. val inputPrivKeyAccept2B: ECPrivateKey
    Definition Classes
    DLCTest
  59. val inputPrivKeyOffer: ECPrivateKey
    Definition Classes
    DLCTest
  60. val inputPrivKeyOffer2A: ECPrivateKey
    Definition Classes
    DLCTest
  61. val inputPrivKeyOffer2B: ECPrivateKey
    Definition Classes
    DLCTest
  62. val inputPubKeyAccept: ECPublicKey
    Definition Classes
    DLCTest
  63. val inputPubKeyAccept2A: ECPublicKey
    Definition Classes
    DLCTest
  64. val inputPubKeyAccept2B: ECPublicKey
    Definition Classes
    DLCTest
  65. val inputPubKeyOffer: ECPublicKey
    Definition Classes
    DLCTest
  66. val inputPubKeyOffer2A: ECPublicKey
    Definition Classes
    DLCTest
  67. val inputPubKeyOffer2B: ECPublicKey
    Definition Classes
    DLCTest
  68. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  69. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  70. def noEmptySPKOutputs(tx: Transaction): Boolean
    Definition Classes
    DLCTest
  71. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  72. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  73. val offerAddress: BitcoinAddress
    Definition Classes
    DLCTest
  74. val offerAddress2: BitcoinAddress
    Definition Classes
    DLCTest
  75. val offerChangeSPK: P2WPKHWitnessSPKV0
    Definition Classes
    DLCTest
  76. val offerChangeSerialId: UInt64
    Definition Classes
    DLCTest
  77. val offerFundingInputs: Vector[DLCFundingInput]
    Definition Classes
    DLCTest
  78. val offerFundingPrivKey: ECPrivateKey
    Definition Classes
    DLCTest
  79. val offerFundingTx: Transaction
    Definition Classes
    DLCTest
  80. val offerFundingTx2: Transaction
    Definition Classes
    DLCTest
  81. val offerFundingUtxos: Vector[SpendingInfoWithSerialId]
    Definition Classes
    DLCTest
  82. val offerInput: CurrencyUnit
    Definition Classes
    DLCTest
  83. val offerNestedSPK: IfConditionalScriptPubKey
    Definition Classes
    DLCTest
  84. val offerPayoutPrivKey: ECPrivateKey
    Definition Classes
    DLCTest
  85. val offerPayoutSerialId: UInt64
    Definition Classes
    DLCTest
  86. val oraclePrivKey: ECPrivateKey
    Definition Classes
    DLCTest
  87. val oraclePrivKeys: Vector[ECPrivateKey]
    Definition Classes
    DLCTest
  88. val oraclePubKey: SchnorrPublicKey
    Definition Classes
    DLCTest
  89. val oraclePubKeys: Vector[SchnorrPublicKey]
    Definition Classes
    DLCTest
  90. val preCommittedK: ECPrivateKey
    Definition Classes
    DLCTest
  91. val preCommittedKs: Vector[ECPrivateKey]
    Definition Classes
    DLCTest
  92. val preCommittedKsPerOracle: Vector[Vector[ECPrivateKey]]
    Definition Classes
    DLCTest
  93. val preCommittedR: SchnorrNonce
    Definition Classes
    DLCTest
  94. val preCommittedRs: OrderedNonces
    Definition Classes
    DLCTest
  95. val preCommittedRsPerOracle: Vector[OrderedNonces]
    Definition Classes
    DLCTest
  96. def runTestsForParam[T](paramsToTest: Vector[T])(test: (T) => Future[Assertion])(implicit ec: ExecutionContext): Future[Assertion]

    Synchronously runs the test function on each paramsToTest in turn.

    Synchronously runs the test function on each paramsToTest in turn.

    Definition Classes
    DLCTest
  97. def setupDLC(dlcOffer: TestDLCClient, dlcAccept: TestDLCClient)(implicit ec: ExecutionContext): Future[(SetupDLC, SetupDLC)]
    Definition Classes
    DLCTest
  98. def setupDLC(dlcOffer: TestDLCClient, dlcAccept: TestDLCClient, fundingTxF: (Future[SetupDLC]) => Future[Transaction], publishTransaction: (Transaction) => Future[_])(implicit ec: ExecutionContext): Future[(SetupDLC, SetupDLC)]
    Definition Classes
    DLCTest
  99. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  100. def tenRandomNums(numDigits: Int): Vector[Long]
    Definition Classes
    DLCTest
  101. val timeouts: DLCTimeouts
    Definition Classes
    DLCTest
  102. def toString(): String
    Definition Classes
    AnyRef → Any
  103. val totalInput: CurrencyUnit
    Definition Classes
    DLCTest
  104. def validateOutcome(outcome: DLCOutcome, dlcOffer: TestDLCClient, dlcAccept: TestDLCClient): Assertion
    Definition Classes
    DLCTest
  105. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  106. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  107. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  108. object SingleContractParams
    Definition Classes
    DLCTest

Inherited from DLCTest

Inherited from AnyRef

Inherited from Any

Ungrouped