Redeemer

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RdeemerTagNames = 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 RedeemerTag

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

Jump to

Keyboard shortcuts

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