Documentation ¶
Index ¶
- Constants
- Variables
- func GetFunctionNameFromInput(input string) string
- func GetOracleFromName(name common.OracleType) (interfaces.Oracle, error)
- func GetOracles(oracleNames []common.OracleType) []interfaces.Oracle
- func NewEventsSnapshot(oracles []dto.OracleEvent) common.EventsSnapshot
- type DelegateOracle
- type ExceptionDisorderOracle
- type GaslessSendOracle
- type NumberDependencyOracle
- type ReentrancyOracle
- type TimestampDependencyOracle
Constants ¶
View Source
const ( CALLFAILED = "HackerRootCallFailed" REENTRANCY = "HackerReentrancy" REPEATED = "HackerRepeatedCall" ETHERTRANSFER = "HackerEtherTransfer" ETHERTRANSFERFAILED = "HackerEtherTransferFailed" CALLETHERETRANSFERFAILED = "HackerCallEtherTransferFailed" GASLESSSEND = "HackerGaslessSend" DELEGATE = "HackerDelegateCallInfo" EXCEPTIONDISORDER = "HackerExceptionDisorder" SENDOP = "HackerSendOpInfo" CALLOP = "HackerCallOpInfo" CALLEXCEPTION = "HackerCallException" UNKNOWCALL = "HackerUnknownCall" STORAGECHANGE = "HackerStorageChanged" TIMESTAMP = "HackerTimestampOp" BLOCKHAHSH = "HackerBlockHashOp" BLOCKNUMBER = "HackerNumberOp" FREEZINGETHER = "HackerFreezingEther" )
Variables ¶
View Source
var ErrOracleDoesntExist = errors.New("oracle doesn't exist")
Functions ¶
func GetOracleFromName ¶
func GetOracleFromName(name common.OracleType) (interfaces.Oracle, error)
func GetOracles ¶
func GetOracles(oracleNames []common.OracleType) []interfaces.Oracle
func NewEventsSnapshot ¶
func NewEventsSnapshot(oracles []dto.OracleEvent) common.EventsSnapshot
Types ¶
type DelegateOracle ¶
type DelegateOracle struct{}
func (DelegateOracle) Detect ¶
func (o DelegateOracle) Detect(snapshot common.EventsSnapshot) bool
func (DelegateOracle) Name ¶
func (o DelegateOracle) Name() common.OracleType
type ExceptionDisorderOracle ¶
type ExceptionDisorderOracle struct{}
func (ExceptionDisorderOracle) Detect ¶
func (o ExceptionDisorderOracle) Detect(snapshot common.EventsSnapshot) bool
func (ExceptionDisorderOracle) Name ¶
func (o ExceptionDisorderOracle) Name() common.OracleType
type GaslessSendOracle ¶
type GaslessSendOracle struct{}
func (GaslessSendOracle) Detect ¶
func (o GaslessSendOracle) Detect(snapshot common.EventsSnapshot) bool
func (GaslessSendOracle) Name ¶
func (o GaslessSendOracle) Name() common.OracleType
type NumberDependencyOracle ¶
type NumberDependencyOracle struct{}
func (NumberDependencyOracle) Detect ¶
func (o NumberDependencyOracle) Detect(snapshot common.EventsSnapshot) bool
func (NumberDependencyOracle) Name ¶
func (o NumberDependencyOracle) Name() common.OracleType
type ReentrancyOracle ¶
type ReentrancyOracle struct{}
func (ReentrancyOracle) Detect ¶
func (o ReentrancyOracle) Detect(snapshot common.EventsSnapshot) bool
func (ReentrancyOracle) Name ¶
func (o ReentrancyOracle) Name() common.OracleType
type TimestampDependencyOracle ¶
type TimestampDependencyOracle struct{}
func (TimestampDependencyOracle) Detect ¶
func (o TimestampDependencyOracle) Detect(snapshot common.EventsSnapshot) bool
func (TimestampDependencyOracle) Name ¶
func (o TimestampDependencyOracle) Name() common.OracleType
Click to show internal directories.
Click to hide internal directories.