FixedChainContext

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const TEST_ADDR = "addr_test1vr2p8st5t5cxqglyjky7vk98k7jtfhdpvhl4e97cezuhn0cqcexl7"

Variables

This section is empty.

Functions

func CheckTwoWayCbor

func CheckTwoWayCbor[T CborSerializable](serializable T)

Types

type CborSerializable

type CborSerializable interface {
	cbor.Marshaler
	cbor.Unmarshaler
}

type FixedChainContext

type FixedChainContext struct {
	ProtocolParams Base.ProtocolParameters
	GenesisParams  Base.GenesisParameters
}

func InitFixedChainContext

func InitFixedChainContext() FixedChainContext

func (FixedChainContext) Epoch

func (f FixedChainContext) Epoch() int

func (FixedChainContext) EvaluateTx

func (f FixedChainContext) EvaluateTx(tx []uint8) map[string]Redeemer.ExecutionUnits

func (FixedChainContext) GetContractCbor added in v1.0.3

func (f FixedChainContext) GetContractCbor(scriptHash string) string

func (FixedChainContext) GetGenesisParams

func (f FixedChainContext) GetGenesisParams() Base.GenesisParameters

func (FixedChainContext) GetProtocolParams

func (f FixedChainContext) GetProtocolParams() Base.ProtocolParameters

func (FixedChainContext) GetUtxoFromRef added in v1.0.3

func (f FixedChainContext) GetUtxoFromRef(txHash string, txIndex int) *UTxO.UTxO

func (FixedChainContext) LastBlockSlot

func (f FixedChainContext) LastBlockSlot() int

func (FixedChainContext) MaxTxFee

func (f FixedChainContext) MaxTxFee() int

func (FixedChainContext) Network

func (f FixedChainContext) Network() int

func (FixedChainContext) SubmitTx

func (FixedChainContext) Utxos

func (f FixedChainContext) Utxos(address Address.Address) []UTxO.UTxO

Jump to

Keyboard shortcuts

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