Help us shape the future of Go! Take the 2026 Go Developer Survey

vm

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cairo0ClassHash

func Cairo0ClassHash(class *core.Cairo0Class) (*felt.Felt, error)

func JunoAppendActualFee added in v0.6.0

func JunoAppendActualFee(readerHandle C.uintptr_t, ptr unsafe.Pointer)

func JunoAppendResponse

func JunoAppendResponse(readerHandle C.uintptr_t, ptr unsafe.Pointer)

func JunoAppendTrace added in v0.6.0

func JunoAppendTrace(readerHandle C.uintptr_t, jsonBytes *C.void, bytesLen C.size_t)

func JunoFree

func JunoFree(ptr unsafe.Pointer)

func JunoReportError

func JunoReportError(readerHandle C.uintptr_t, str *C.char)

func JunoStateGetClassHashAt

func JunoStateGetClassHashAt(readerHandle C.uintptr_t, contractAddress unsafe.Pointer) unsafe.Pointer

func JunoStateGetCompiledClass

func JunoStateGetCompiledClass(readerHandle C.uintptr_t, classHash unsafe.Pointer) unsafe.Pointer

func JunoStateGetNonceAt

func JunoStateGetNonceAt(readerHandle C.uintptr_t, contractAddress unsafe.Pointer) unsafe.Pointer

func JunoStateGetStorageAt

func JunoStateGetStorageAt(readerHandle C.uintptr_t, contractAddress, storageLocation unsafe.Pointer) unsafe.Pointer

Types

type VM added in v0.5.0

type VM interface {
	Call(contractAddr, classHash, selector *felt.Felt, calldata []felt.Felt, blockNumber,
		blockTimestamp uint64, state core.StateReader, network utils.Network,
	) ([]*felt.Felt, error)
	Execute(txns []core.Transaction, declaredClasses []core.Class, blockNumber, blockTimestamp uint64,
		sequencerAddress *felt.Felt, state core.StateReader, network utils.Network, paidFeesOnL1 []*felt.Felt,
		skipChargeFee, skipValidate bool, gasPrice *felt.Felt, legacyTraceJSON bool,
	) ([]*felt.Felt, []json.RawMessage, error)
}

func New added in v0.5.0

func New(log utils.SimpleLogger) VM

Jump to

Keyboard shortcuts

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