Documentation ¶
Index ¶
- func Cairo0ClassHash(class *core.Cairo0Class) (*felt.Felt, error)
- func JunoAppendActualFee(readerHandle C.uintptr_t, ptr unsafe.Pointer)
- func JunoAppendResponse(readerHandle C.uintptr_t, ptr unsafe.Pointer)
- func JunoAppendTrace(readerHandle C.uintptr_t, jsonBytes *C.void, bytesLen C.size_t)
- func JunoFree(ptr unsafe.Pointer)
- func JunoReportError(readerHandle C.uintptr_t, str *C.char)
- func JunoStateGetClassHashAt(readerHandle C.uintptr_t, contractAddress unsafe.Pointer) unsafe.Pointer
- func JunoStateGetCompiledClass(readerHandle C.uintptr_t, classHash unsafe.Pointer) unsafe.Pointer
- func JunoStateGetNonceAt(readerHandle C.uintptr_t, contractAddress unsafe.Pointer) unsafe.Pointer
- func JunoStateGetStorageAt(readerHandle C.uintptr_t, contractAddress, storageLocation unsafe.Pointer) unsafe.Pointer
- type VM
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 JunoAppendTrace ¶ added in v0.6.0
func JunoStateGetClassHashAt ¶
func JunoStateGetNonceAt ¶
Types ¶
type VM ¶ added in v0.5.0
type VM interface { Call(contractAddr, 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 bool, gasPrice *felt.Felt, ) ([]*felt.Felt, []json.RawMessage, error) }
func New ¶ added in v0.5.0
func New(log utils.SimpleLogger) VM
Click to show internal directories.
Click to hide internal directories.