Documentation ¶
Index ¶
- type Agent
- type BlockchainEnvironment
- type Connection
- type ContractMapper
- type ContractPool
- type ContractRepo
- type ContractService
- type ContractsController
- type CronJob
- type Deployer
- type EventBus
- type FunctionMapper
- type FunctionRepo
- type FunctionService
- type Fuzzer
- type FuzzerLeader
- type GethService
- type HttpClient
- type Listener
- type Manager
- type Oracle
- type PingController
- type PowerSchedule
- type Reporter
- type ReporterService
- type Scheduler
- type Server
- type SolidityCompiler
- type SolidityService
- type TaskMapper
- type TaskRepo
- type TaskService
- type TasksController
- type Topic
- type TransactionMapper
- type TransactionRepo
- type TransactionService
- type TransactionsController
- type TypeHandler
- type VandalClient
- type VandalService
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainEnvironment ¶
type ContractMapper ¶
type ContractMapper interface { MapNewDTOToEntity(d *dto.NewContractDTO) *entities.Contract MapNewWithIdDTOToEntity(d *dto.NewContractWithIdDTO) *entities.Contract MapDTOToEntity(d *dto.ContractDTO) *entities.Contract MapEntityToDTO(c *entities.Contract) *dto.ContractDTO MapDTOToCommon(c *dto.ContractDTO) *common.Contract }
type ContractPool ¶
type ContractRepo ¶
type ContractRepo interface { Create(tx *gorm.DB, contract *entities.Contract) error Update(tx *gorm.DB, contract *entities.Contract) error FindAll(tx *gorm.DB) ([]entities.Contract, error) Find(tx *gorm.DB, id string) (*entities.Contract, error) FindByTaskId(tx *gorm.DB, taskId string) (*entities.Contract, error) }
type ContractService ¶
type ContractService interface { Find(contractId string) (*dto.ContractDTO, error) Get(contractId string) (*dto.ContractDTO, error) FindByTaskId(taskId string) (*dto.ContractDTO, error) Create(ctr *dto.NewContractDTO) (*dto.ContractDTO, error) CreateWithId(ctr *dto.NewContractWithIdDTO) (*dto.ContractDTO, error) Update(ctr *dto.ContractDTO) error }
type ContractsController ¶
type FunctionMapper ¶
type FunctionMapper interface { MapNewDTOToEntity(c *dto.NewFunctionDTO) *entities.Function MapDTOToEntity(c *dto.FunctionDTO) *entities.Function MapEntityToDTO(c *entities.Function) *dto.FunctionDTO }
type FunctionRepo ¶
type FunctionRepo interface { Get(tx *gorm.DB, id string) (*entities.Function, error) Create(tx *gorm.DB, function *entities.Function) error FindByContractId(tx *gorm.DB, contractId string) ([]entities.Function, error) FindConstructorByContractId(tx *gorm.DB, contractId string) (*entities.Function, error) }
type FunctionService ¶
type FunctionService interface { Get(functionId string) (*dto.FunctionDTO, error) Create(task *dto.NewFunctionDTO) (*dto.FunctionDTO, error) FindByContractId(contractId string) ([]*dto.FunctionDTO, error) FindConstructorByContractId(contractId string) (*dto.FunctionDTO, error) }
type FuzzerLeader ¶
type FuzzerLeader interface {
GetFuzzerStrategy(typ common.FuzzingType) (Fuzzer, error)
}
type GethService ¶
type GethService interface { Deploy(ctx context.Context, contract *common.Contract, args ...interface{}) (string, string, error) BatchCall(ctx context.Context, contract *common.Contract, function *dto.FunctionDTO, inputsByTransactionId map[string][]interface{}) (map[string]string, map[string]error) }
type Oracle ¶
type Oracle interface { Name() common.OracleType Detect(snapshot common.EventsSnapshot) bool }
type PingController ¶
type PowerSchedule ¶
type PowerSchedule interface {
RequestSeeds(functionId string, strategy common.PowerScheduleStrategy) ([][]interface{}, error)
}
type Reporter ¶
type Reporter interface {
SendOutput(ctx context.Context, report common.TaskReport) error
}
type ReporterService ¶
type ReporterService interface {
SendReport(ctx context.Context, report common.TaskReport) error
}
type SolidityCompiler ¶
type SolidityService ¶
type SolidityService interface {
GetTypeHandlerWithContext(typ abi.Type) (TypeHandler, error)
}
type TaskMapper ¶
type TaskRepo ¶
type TaskRepo interface { Get(tx *gorm.DB, id string) (*entities.Task, error) Create(tx *gorm.DB, task *entities.Task) error Update(tx *gorm.DB, task *entities.Task) error FindNotFinishedTasksThatDontHaveIncompletedTransactions(tx *gorm.DB) ([]entities.Task, error) FindNotFinishedAndExpired(tx *gorm.DB) ([]entities.Task, error) FindNotFinishedAndHaveDeployedContract(tx *gorm.DB) ([]entities.Task, error) FindNotFinishedThatHaveDeployedContractAndLimitedPendingTransactions(tx *gorm.DB, limit int) ([]entities.Task, error) }
type TaskService ¶
type TaskService interface { Get(taskId string) (*dto.TaskDTO, error) Create(task *dto.NewTaskDTO) (*dto.TaskDTO, error) Update(task *dto.TaskDTO) error FindNotFinishedTasksThatDontHaveIncompletedTransactions() ([]*dto.TaskDTO, error) FindNotFinishedAndExpired() ([]*dto.TaskDTO, error) FindNotFinishedAndHaveDeployedContract() ([]*dto.TaskDTO, error) FindNotFinishedThatHaveDeployedContractAndLimitedPendingTransactions(limit int) ([]*dto.TaskDTO, error) }
type TasksController ¶
type Topic ¶
type Topic[E any] interface { Publish(e E) Subscribe(fn interface{}) Unsubscribe(fn interface{}) }
type TransactionMapper ¶
type TransactionMapper interface { MapNewDTOToEntity(n *dto.NewTransactionDTO) *entities.Transaction MapDTOToEntity(c *dto.TransactionDTO) *entities.Transaction MapEntityToDTO(c *entities.Transaction) *dto.TransactionDTO }
type TransactionRepo ¶
type TransactionRepo interface { Get(tx *gorm.DB, id string) (*entities.Transaction, error) Create(tx *gorm.DB, transaction *entities.Transaction) error Update(tx *gorm.DB, transaction *entities.Transaction) error FindByBlockchainHash(tx *gorm.DB, blockchainHash string) (*entities.Transaction, error) FindByTaskId(tx *gorm.DB, taskId string) ([]entities.Transaction, error) FindDoneByTaskId(tx *gorm.DB, taskId string) ([]entities.Transaction, error) FindDoneTransactionsByFunctionIdAndOrderByTimestamp(tx *gorm.DB, functionId string, limit int64) ([]entities.Transaction, error) FindRunningAndCreatedBeforeThreshold(tx *gorm.DB, dateThreshold time.Time) ([]entities.Transaction, error) }
type TransactionService ¶
type TransactionService interface { Get(transactionId string) (*dto.TransactionDTO, error) Create(transaction *dto.NewTransactionDTO) (*dto.TransactionDTO, error) Update(transaction *dto.TransactionDTO) error BulkCreate(newTransactions []*dto.NewTransactionDTO) ([]*dto.TransactionDTO, error) BulkUpdate(updatedTransactions []*dto.TransactionDTO) error FindByHash(hash string) (*dto.TransactionDTO, error) FindByTaskId(taskId string) ([]*dto.TransactionDTO, error) FindDoneByTaskId(taskId string) ([]*dto.TransactionDTO, error) FindDoneTransactionsByFunctionIdAndOrderByTimestamp(functionId string, limit int64) ([]*dto.TransactionDTO, error) FindRunningAndCreatedBeforeThreshold(dateThreshold time.Time) ([]*dto.TransactionDTO, error) }
type TransactionsController ¶
type TypeHandler ¶
type VandalClient ¶
type VandalService ¶
type Wallet ¶
type Wallet interface { GetPrivateKey() *ecdsa.PrivateKey GetPrivateKeyHex() string GetPublicKey() *ecdsa.PublicKey GetPublicKeyHex() string GetAddress() gethcommon.Address }
Click to show internal directories.
Click to hide internal directories.