entities

package
v0.0.0-...-ac8a210 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	Id                     string                `gorm:"primaryKey"`
	Status                 common.ContractStatus `gorm:"not null"`
	TaskId                 string
	Address                string `gorm:"index"`
	Source                 string `gorm:"not null"`
	DeploymentBytecode     string `gorm:"not null"`
	RuntimeBytecode        string `gorm:"not null"`
	AbiDefinition          string `gorm:"not null"`
	Name                   string `gorm:"not null"`
	CFG                    string
	DistanceMap            string
	TargetInstructionsFreq string
	Functions              []Function
}

type Function

type Function struct {
	Id           string            `gorm:"primaryKey"`
	Name         string            `gorm:"index;not null"`
	NumberOfArgs int64             `gorm:"not null"`
	Callable     bool              `gorm:"not null"`
	Type         common.MethodType `gorm:"not null"`
	ContractId   string            `gorm:"not null"`
	Transactions []Transaction
}

type Task

type Task struct {
	Id                             string `gorm:"primaryKey"`
	Arguments                      string `gorm:"not null"`
	Duration                       time.Duration
	StartTime                      time.Time `gorm:"not null"`
	DeploymentTime                 time.Time
	Expiration                     time.Time          `gorm:"not null"`
	Detectors                      string             `gorm:"not null"`
	FuzzingType                    common.FuzzingType `gorm:"not null"`
	AggregatedExecutedInstructions string
	Status                         common.TaskStatus `gorm:"not null"`
	Contract                       Contract
	Transactions                   []Transaction
}

type Transaction

type Transaction struct {
	Id                       string    `gorm:"primaryKey"`
	Timestamp                time.Time `gorm:"not null"`
	BlockchainHash           string    `gorm:"index"`
	TaskId                   string    `gorm:"not null"`
	FunctionId               string    `gorm:"not null"`
	Inputs                   string    `gorm:"not null"`
	DetectedWeaknesses       string
	ExecutedInstructions     string
	DeltaCoverage            string
	DeltaMinDistance         string
	Coverage                 string
	CriticalInstructionsHits string
	Status                   common.TransactionStatus `gorm:"not null"`
}

Jump to

Keyboard shortcuts

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