Redeemer

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: MIT Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedeemerTagNames = map[RedeemerTag]string{
	0: "spend",
	1: "mint",
	2: "certificate",
	3: "withdrawal",
}

See https://ogmios.dev/mini-protocols/local-tx-submission/#evaluatetx

Functions

This section is empty.

Types

type ExecutionUnits

type ExecutionUnits struct {
	Mem   int64
	Steps int64
	// contains filtered or unexported fields
}

func (*ExecutionUnits) Clone

func (ex *ExecutionUnits) Clone() ExecutionUnits

*

Clone creates a deep copy of the ExecutionUnits.

Returns:
	ExecutionUnits: A new ExecutionUnits instance with the same values.

func (*ExecutionUnits) Sum

func (eu *ExecutionUnits) Sum(other ExecutionUnits)

*

Sum adds the memory and step of another ExecutionUnits to
the current instance.

Params:
	other ExecutionUnits: The ExecutionUnits to add.

type Redeemer

type Redeemer struct {
	Tag     RedeemerTag
	Index   int
	Data    PlutusData.PlutusData
	ExUnits ExecutionUnits
	// contains filtered or unexported fields
}

TODO

func (Redeemer) Clone

func (r Redeemer) Clone() Redeemer

*

Clone creates a deep copy of the Redeemer.

Returns:
	Redeemer: A new Redeemer instance with the same values.

type RedeemerKey added in v1.7.0

type RedeemerKey struct {
	Tag   RedeemerTag
	Index int
	// contains filtered or unexported fields
}

type RedeemerTag

type RedeemerTag int
const (
	SPEND RedeemerTag = iota
	MINT
	CERT
	REWARD
)

type RedeemerValue added in v1.7.0

type RedeemerValue struct {
	Data    PlutusData.PlutusData
	ExUnits ExecutionUnits
	// contains filtered or unexported fields
}

type Redeemers added in v1.7.0

type Redeemers struct {
	Redeemers []Redeemer
}

TODO: add UnmarshalCBOR for round-trip support.

func (*Redeemers) MarshalCBOR added in v1.7.0

func (r *Redeemers) MarshalCBOR() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL