BuiltinCostModel

scalus.uplc.eval.BuiltinCostModel
See theBuiltinCostModel companion object
case class BuiltinCostModel(addInteger: DefaultCostingFun[TwoArguments], subtractInteger: DefaultCostingFun[TwoArguments], multiplyInteger: DefaultCostingFun[TwoArguments], divideInteger: DefaultCostingFun[TwoArguments], quotientInteger: DefaultCostingFun[TwoArguments], remainderInteger: DefaultCostingFun[TwoArguments], modInteger: DefaultCostingFun[TwoArguments], equalsInteger: DefaultCostingFun[TwoArguments], lessThanInteger: DefaultCostingFun[TwoArguments], lessThanEqualsInteger: DefaultCostingFun[TwoArguments], appendByteString: DefaultCostingFun[TwoArguments], consByteString: DefaultCostingFun[TwoArguments], sliceByteString: DefaultCostingFun[ThreeArguments], lengthOfByteString: DefaultCostingFun[OneArgument], indexByteString: DefaultCostingFun[TwoArguments], equalsByteString: DefaultCostingFun[TwoArguments], lessThanByteString: DefaultCostingFun[TwoArguments], lessThanEqualsByteString: DefaultCostingFun[TwoArguments], sha2_256: DefaultCostingFun[OneArgument], sha3_256: DefaultCostingFun[OneArgument], blake2b_256: DefaultCostingFun[OneArgument], verifyEd25519Signature: DefaultCostingFun[ThreeArguments], verifyEcdsaSecp256k1Signature: DefaultCostingFun[ThreeArguments], verifySchnorrSecp256k1Signature: DefaultCostingFun[ThreeArguments], appendString: DefaultCostingFun[TwoArguments], equalsString: DefaultCostingFun[TwoArguments], encodeUtf8: DefaultCostingFun[OneArgument], decodeUtf8: DefaultCostingFun[OneArgument], ifThenElse: DefaultCostingFun[ThreeArguments], chooseUnit: DefaultCostingFun[TwoArguments], trace: DefaultCostingFun[TwoArguments], fstPair: DefaultCostingFun[OneArgument], sndPair: DefaultCostingFun[OneArgument], chooseList: DefaultCostingFun[ThreeArguments], mkCons: DefaultCostingFun[TwoArguments], headList: DefaultCostingFun[OneArgument], tailList: DefaultCostingFun[OneArgument], nullList: DefaultCostingFun[OneArgument], chooseData: DefaultCostingFun[SixArguments], constrData: DefaultCostingFun[TwoArguments], mapData: DefaultCostingFun[OneArgument], listData: DefaultCostingFun[OneArgument], iData: DefaultCostingFun[OneArgument], bData: DefaultCostingFun[OneArgument], unConstrData: DefaultCostingFun[OneArgument], unMapData: DefaultCostingFun[OneArgument], unListData: DefaultCostingFun[OneArgument], unIData: DefaultCostingFun[OneArgument], unBData: DefaultCostingFun[OneArgument], equalsData: DefaultCostingFun[TwoArguments], mkPairData: DefaultCostingFun[TwoArguments], mkNilData: DefaultCostingFun[OneArgument], mkNilPairData: DefaultCostingFun[OneArgument], serialiseData: DefaultCostingFun[OneArgument], blake2b_224: DefaultCostingFun[OneArgument], keccak_256: DefaultCostingFun[OneArgument], bls12_381_G1_add: DefaultCostingFun[TwoArguments], bls12_381_G1_neg: DefaultCostingFun[OneArgument], bls12_381_G1_scalarMul: DefaultCostingFun[TwoArguments], bls12_381_G1_equal: DefaultCostingFun[TwoArguments], bls12_381_G1_compress: DefaultCostingFun[OneArgument], bls12_381_G1_uncompress: DefaultCostingFun[OneArgument], bls12_381_G1_hashToGroup: DefaultCostingFun[TwoArguments], bls12_381_G2_add: DefaultCostingFun[TwoArguments], bls12_381_G2_neg: DefaultCostingFun[OneArgument], bls12_381_G2_scalarMul: DefaultCostingFun[TwoArguments], bls12_381_G2_equal: DefaultCostingFun[TwoArguments], bls12_381_G2_compress: DefaultCostingFun[OneArgument], bls12_381_G2_uncompress: DefaultCostingFun[OneArgument], bls12_381_G2_hashToGroup: DefaultCostingFun[TwoArguments], bls12_381_millerLoop: DefaultCostingFun[TwoArguments], bls12_381_mulMlResult: DefaultCostingFun[TwoArguments], bls12_381_finalVerify: DefaultCostingFun[TwoArguments], integerToByteString: IntegerToByteStringCostingFun, byteStringToInteger: DefaultCostingFun[TwoArguments])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def flattenCostModel: Map[String, Long]

Convert a BuiltinCostModel to a flat map of cost parameters

Convert a BuiltinCostModel to a flat map of cost parameters

Attributes

Returns

a flat map of cost parameters, like Map("addInteger-cpu-arguments-intercept" -> 205665, ...)

def toJsonString: String

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product