contracts

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CasmClass

type CasmClass struct {
	Prime            string                     `json:"prime"`
	Version          string                     `json:"compiler_version"`
	ByteCode         []*felt.Felt               `json:"bytecode"`
	EntryPointByType CasmClassEntryPointsByType `json:"entry_points_by_type"`
}

func UnmarshalCasmClass

func UnmarshalCasmClass(filePath string) (*CasmClass, error)

UnmarshalCasmClass is a function that unmarshals a CasmClass object from a file. CASM = Cairo instructions

It takes a file path as a parameter and returns a pointer to the unmarshaled CasmClass object and an error.

type CasmClassEntryPoint

type CasmClassEntryPoint struct {
	Selector *felt.Felt `json:"selector"`
	Offset   int        `json:"offset"`
	Builtins []string   `json:"builtins"`
}

type CasmClassEntryPointsByType

type CasmClassEntryPointsByType struct {
	Constructor []CasmClassEntryPoint `json:"CONSTRUCTOR"`
	External    []CasmClassEntryPoint `json:"EXTERNAL"`
	L1Handler   []CasmClassEntryPoint `json:"L1_HANDLER"`
}

Jump to

Keyboard shortcuts

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