Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STUD-320: Fix Conway era reference scripts minting fees #37

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (!project.hasProperty("isGithubActions")) {
}

group = "io.newm"
version = "2.3.0-SNAPSHOT"
version = "2.3.1-SNAPSHOT"

java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.newm.kogmios.protocols.model

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class MinFeeReferenceScripts(
@SerialName("range")
val range: Int,
@SerialName("base")
val base: Double,
@SerialName("multiplier")
val multiplier: Double,
)
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.newm.kogmios.protocols.model

import java.math.BigInteger
import kotlinx.serialization.Contextual
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.apache.commons.numbers.fraction.BigFraction
import java.math.BigInteger

@Serializable
data class ProposedProtocolParameters(
Expand All @@ -13,6 +13,8 @@ data class ProposedProtocolParameters(
val minFeeCoefficient: BigInteger? = null,
@SerialName("minFeeConstant")
val minFeeConstant: Ada? = null,
@SerialName("minFeeReferenceScripts")
val minFeeReferenceScripts: MinFeeReferenceScripts? = null,
@Contextual
@SerialName("minUtxoDepositCoefficient")
val minUtxoDepositCoefficient: BigInteger? = null,
Expand All @@ -24,6 +26,8 @@ data class ProposedProtocolParameters(
val maxBlockHeaderSize: BytesSize? = null,
@SerialName("maxTransactionSize")
val maxTransactionSize: BytesSize? = null,
@SerialName("maxReferenceScriptsSize")
val maxReferenceScriptsSize: BytesSize? = null,
@SerialName("maxValueSize")
val maxValueSize: BytesSize? = null,
@SerialName("extraEntropy")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import io.newm.kogmios.protocols.model.Ada
import io.newm.kogmios.protocols.model.BytesSize
import io.newm.kogmios.protocols.model.ExecutionPrices
import io.newm.kogmios.protocols.model.ExecutionUnits
import io.newm.kogmios.protocols.model.MinFeeReferenceScripts
import io.newm.kogmios.protocols.model.PlutusCostModels
import java.math.BigInteger
import kotlinx.serialization.Contextual
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.apache.commons.numbers.fraction.BigFraction
import java.math.BigInteger

@Serializable
data class ProtocolParametersResult(
Expand All @@ -18,6 +19,8 @@ data class ProtocolParametersResult(
val minFeeCoefficient: BigInteger,
@SerialName("minFeeConstant")
val minFeeConstant: Ada,
@SerialName("minFeeReferenceScripts")
val minFeeReferenceScripts: MinFeeReferenceScripts? = null,
@Contextual
@SerialName("minUtxoDepositCoefficient")
val minUtxoDepositCoefficient: BigInteger,
Expand All @@ -30,6 +33,8 @@ data class ProtocolParametersResult(
val maxBlockHeaderSize: BytesSize,
@SerialName("maxTransactionSize")
val maxTransactionSize: BytesSize,
@SerialName("maxReferenceScriptsSize")
val maxReferenceScriptsSize: BytesSize? = null,
@SerialName("maxValueSize")
val maxValueSize: BytesSize,
@SerialName("extraEntropy")
Expand Down
Loading