Documentation
¶
Index ¶
- func GetTxFromBytes(txBytes []byte) (*Transaction.Transaction, error)
- func GetUtxosFromTx(ctx context.Context, txBytes []byte, chainContext base.ChainContext) ([]apolloUTxO.UTxO, error)
- func ParseUTxOsFromJSON(jsonData []byte, inputs []TransactionInput.TransactionInput) ([]apolloUTxO.UTxO, error)
- type AssetJSON
- type Budget
- type EvalError
- type EvaluationError
- type Evaluator
- type EvaluatorConfig
- type OutputJSON
- type ScriptRef
- type UTxO
- type UTxOJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTxFromBytes ¶
func GetTxFromBytes(txBytes []byte) (*Transaction.Transaction, error)
func GetUtxosFromTx ¶
func GetUtxosFromTx(ctx context.Context, txBytes []byte, chainContext base.ChainContext) ([]apolloUTxO.UTxO, error)
GetUtxosFromTx extracts UTxOs from transaction bytes using the provided chain context
func ParseUTxOsFromJSON ¶
func ParseUTxOsFromJSON(jsonData []byte, inputs []TransactionInput.TransactionInput) ([]apolloUTxO.UTxO, error)
ParseUTxOsFromJSON parses UTxOs from a JSON file and returns Apollo UTxO objects
Types ¶
type EvaluationError ¶
type EvaluationError struct {
EvalError EvalError
}
func (*EvaluationError) Error ¶
func (e *EvaluationError) Error() string
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
func NewEvaluator ¶
func NewEvaluator(ctx context.Context, config EvaluatorConfig) (*Evaluator, error)
type EvaluatorConfig ¶
type EvaluatorConfig struct {
WasmFile *string // Optional path to custom WASM file
CostModels []byte // Serialized cost models
MaxTxExSteps uint64 // Maximum transaction execution steps
MaxTxExMem uint64 // Maximum transaction execution memory
ZeroTime uint64 // Zero time parameter
ZeroSlot uint64 // Zero slot parameter
SlotLength uint64 // Slot length parameter
}
EvaluatorConfig holds configuration parameters for the Evaluator.
type OutputJSON ¶
type UTxO ¶
type UTxO struct {
Address string `json:"address"`
TxHash string `json:"tx_hash"`
OutputIndex uint64 `json:"output_index"`
DatumHash *string `json:"datum_hash,omitempty"`
Datum *string `json:"datum,omitempty"`
ScriptRef *ScriptRef `json:"script_ref,omitempty"`
Assets map[string]uint64 `json:"assets"`
}
type UTxOJSON ¶
type UTxOJSON struct {
Hash string `json:"hash"`
Outputs []OutputJSON `json:"outputs"`
}
Click to show internal directories.
Click to hide internal directories.