Blueprint

scalus.cardano.blueprint.Blueprint
See theBlueprint companion class
object Blueprint

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Blueprint.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(contractTitle: String, description: String, validatorScript: PlutusScript): Blueprint

Returns a CIP-57 compliant Blueprint based on the provided validator script.

Returns a CIP-57 compliant Blueprint based on the provided validator script.

The returned Blueprint always contains only 1 validator.

To specify the redeemer and datum schemas, use Application instead.

Value parameters

contractTitle

the title of the "blueprintee" contract

description

the description of the "blueprintee" contact

validatorScript

the script of the validator

Attributes

def fromJson(json: String): Blueprint

Parses a CIP-57 compliant Blueprint from a JSON string.

Parses a CIP-57 compliant Blueprint from a JSON string.

Value parameters

json

the JSON string representing a blueprint

Attributes

Returns

the parsed Blueprint

Throws
com.github.plokhotnyuk.jsoniter_scala.core.JsonReaderException

if the JSON is invalid or doesn't conform to the CIP-57 schema

def fromJson(inputStream: InputStream): Blueprint

Parses a CIP-57 compliant Blueprint from a java.io.InputStream.

Parses a CIP-57 compliant Blueprint from a java.io.InputStream.

Value parameters

inputStream

the input stream containing JSON data representing a blueprint

Attributes

Returns

the parsed Blueprint

Throws
com.github.plokhotnyuk.jsoniter_scala.core.JsonReaderException

if the JSON is invalid or doesn't conform to the CIP-57 schema

Givens

Givens

given given_JsonValueCodec_Blueprint: JsonValueCodec[Blueprint]