pub use switchboard::*;
#[allow(
clippy::enum_variant_names,
clippy::too_many_arguments,
clippy::upper_case_acronyms,
clippy::type_complexity,
dead_code,
non_camel_case_types
)]
pub mod switchboard {
#[rustfmt::skip]
const __ABI: &str = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_initializationContractAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"_calldata\",\"type\":\"bytes\",\"components\":[]}],\"type\":\"error\",\"name\":\"InitializationFunctionReverted\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"AggregatorAlreadyExists\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"AggregatorDoesNotExist\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"EarlyOracleResponse\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InsufficientBalance\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InsufficientSamples\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"IntervalHistoryNotRecorded\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InvalidArgument\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InvalidAuthority\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InvalidEntry\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"AggregatorAccountInit\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"funder\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"AggregatorFundEvent\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"intervalId\",\"type\":\"uint256\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"balanceLeftForInterval\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"AggregatorIntervalRefreshed\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"intervalId\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"AggregatorOpenInterval\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"reader\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"AggregatorRead\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"AggregatorSaveResult\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"minUpdateDelaySeconds\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"minOracleResults\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"varianceThreshold\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"minJobResults\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"forceReportPeriod\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"AggregatorSettingsUpdated\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"AggregatorUpdate\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"funder\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"AggregatorWithdrawEvent\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OraclePayoutEvent\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"aggregatorEscrowFund\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"aggregatorEscrowWithdraw\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"aggregatorHistory\",\"outputs\":[{\"internalType\":\"struct AggregatorLib.AggregatorHistoryResult\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"medianTimestamp\",\"type\":\"uint256\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"aggregators\",\"outputs\":[{\"internalType\":\"struct AggregatorLib.Aggregator\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"struct AggregatorLib.Result\",\"name\":\"latestResult\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]}]},{\"internalType\":\"struct AggregatorLib.AggregatorConfig\",\"name\":\"config\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minUpdateDelaySeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minOracleResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"varianceThreshold\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minJobResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"forceReportPeriod\",\"type\":\"uint256\",\"components\":[]}]},{\"internalType\":\"string\",\"name\":\"jobsHash\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balanceLeftForInterval\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextIntervalRefreshTime\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint80\",\"name\":\"intervalId\",\"type\":\"uint80\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"historyEnabled\",\"type\":\"bool\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minUpdateDelaySeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minOracleResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"jobsHash\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"varianceThreshold\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minJobResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"forceReportPeriod\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"enableHistory\",\"type\":\"bool\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"createAggregator\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getAggregatorsByAuthority\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"struct AggregatorLib.Aggregator[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"struct AggregatorLib.Result\",\"name\":\"latestResult\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]}]},{\"internalType\":\"struct AggregatorLib.AggregatorConfig\",\"name\":\"config\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minUpdateDelaySeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minOracleResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"varianceThreshold\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minJobResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"forceReportPeriod\",\"type\":\"uint256\",\"components\":[]}]},{\"internalType\":\"string\",\"name\":\"jobsHash\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balanceLeftForInterval\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextIntervalRefreshTime\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint80\",\"name\":\"intervalId\",\"type\":\"uint80\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"historyEnabled\",\"type\":\"bool\",\"components\":[]}]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getAllAggregators\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"struct AggregatorLib.Aggregator[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"struct AggregatorLib.Result\",\"name\":\"latestResult\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]}]},{\"internalType\":\"struct AggregatorLib.AggregatorConfig\",\"name\":\"config\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minUpdateDelaySeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minOracleResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"varianceThreshold\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minJobResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"forceReportPeriod\",\"type\":\"uint256\",\"components\":[]}]},{\"internalType\":\"string\",\"name\":\"jobsHash\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balanceLeftForInterval\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextIntervalRefreshTime\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint80\",\"name\":\"intervalId\",\"type\":\"uint80\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"historyEnabled\",\"type\":\"bool\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getCurrentIntervalId\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint80\",\"name\":\"intervalId\",\"type\":\"uint80\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"getIntervalResult\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"medianTimestamp\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"latestResult\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"openInterval\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"ids\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"int256[]\",\"name\":\"results\",\"type\":\"int256[]\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"oracleIdx\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"saveResults\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minUpdateDelaySeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minOracleResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"jobsHash\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"varianceThreshold\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"minJobResults\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"forceReportPeriod\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"enableHistory\",\"type\":\"bool\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setAggregatorConfig\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"viewAggregatorResults\",\"outputs\":[{\"internalType\":\"struct AggregatorLib.Result[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregatorId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"viewLatestResult\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"type\":\"error\",\"name\":\"AttestationQueueAlreadyExists\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"MrEnclaveNotAllowed\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"AddMrEnclave\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"AttestationQueueAccountInit\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"granter\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"permission\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"AttestationQueuePermissionUpdated\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"AttestationQueueSetConfig\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"RemoveMrEnclave\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"addMrEnclaveToAttestationQueue\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"attestationQueueHasMrEnclave\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"attestationQueues\",\"outputs\":[{\"internalType\":\"struct AttestationQueueLib.AttestationQueue\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address[]\",\"name\":\"data\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"lastHeartbeat\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bytes32[]\",\"name\":\"mrEnclaves\",\"type\":\"bytes32[]\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxEnclaveVerificationAge\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"allowAuthorityOverrideAfter\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxConsecutiveFunctionFailures\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireAuthorityHeartbeatPermission\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireUsagePermissions\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"enclaveTimeout\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"gcIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"currIdx\",\"type\":\"uint256\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"enclaveTimeout\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxEnclaveVerificationAge\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"allowAuthorityOverrideAfter\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireAuthorityHeartbeatPermission\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireUsagePermissions\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxConsecutiveFunctionFailures\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"createAttestationQueue\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getAttestationQueueMrEnclaves\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getEnclaveIdx\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getEnclaves\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"removeMrEnclaveFromAttestationQueue\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"enclaveTimeout\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxEnclaveVerificationAge\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"allowAuthorityOverrideAfter\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireAuthorityHeartbeatPermission\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireUsagePermissions\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxConsecutiveFunctionFailures\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setAttestationQueueConfig\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"permission\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"on\",\"type\":\"bool\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setAttestationQueuePermission\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"struct IDiamondCut.FacetCut[]\",\"name\":\"_diamondCut\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"address\",\"name\":\"facetAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"enum IDiamondCut.FacetCutAction\",\"name\":\"action\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"bytes4[]\",\"name\":\"functionSelectors\",\"type\":\"bytes4[]\",\"components\":[]}],\"indexed\":false},{\"internalType\":\"address\",\"name\":\"_init\",\"type\":\"address\",\"components\":[],\"indexed\":false},{\"internalType\":\"bytes\",\"name\":\"_calldata\",\"type\":\"bytes\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"DiamondCut\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"struct IDiamondCut.FacetCut[]\",\"name\":\"_diamondCut\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"address\",\"name\":\"facetAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"enum IDiamondCut.FacetCutAction\",\"name\":\"action\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"bytes4[]\",\"name\":\"functionSelectors\",\"type\":\"bytes4[]\",\"components\":[]}]},{\"internalType\":\"address\",\"name\":\"_init\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"_calldata\",\"type\":\"bytes\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"diamondCut\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"_functionSelector\",\"type\":\"bytes4\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"facetAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"facetAddress_\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"facetAddresses\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"facetAddresses_\",\"type\":\"address[]\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_facet\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"facetFunctionSelectors\",\"outputs\":[{\"internalType\":\"bytes4[]\",\"name\":\"facetFunctionSelectors_\",\"type\":\"bytes4[]\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"facets\",\"outputs\":[{\"internalType\":\"struct IDiamondLoupe.Facet[]\",\"name\":\"facets_\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"address\",\"name\":\"facetAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes4[]\",\"name\":\"functionSelectors\",\"type\":\"bytes4[]\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"_interfaceId\",\"type\":\"bytes4\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"transferOwnership\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"init\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"EnclaveAlreadyExists\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"EnclaveDoesNotExist\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"EnclaveExpired\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"EnclaveNotOnQueue\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"EnclaveUnverified\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"IncorrectReportedTime\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InvalidEnclave\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"PermissionDenied\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"QueuesDoNotMatch\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"EnclaveAccountInit\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"queue\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"EnclaveGC\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"EnclaveHeartbeat\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"EnclavePayoutEvent\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"oldAuthority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"newAuthority\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"EnclaveRotateAuthority\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"verifiee\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"EnclaveVerifyRequest\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"createEnclave\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"createEnclaveWithId\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"enclaveAuthorityToEnclaveAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"enclaveIdx\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"enclaveGarbageCollect\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"enclaveHeartbeat\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"enclaves\",\"outputs\":[{\"internalType\":\"struct EnclaveLib.Enclave\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"cid\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"enum EnclaveLib.VerificationStatus\",\"name\":\"verificationStatus\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"verificationTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"validUntil\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"isOnQueue\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"lastHeartbeat\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"verifierId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"enclaveIdx\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"failEnclave\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"forceOverrideVerify\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isEnclaveValid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"newAuthority\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"rotateAuthority\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"cid\",\"type\":\"bytes\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"updateEnclave\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"attestationQueueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32[]\",\"name\":\"validMeasurements\",\"type\":\"bytes32[]\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"validate\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"verifierId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"enclaveIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"verifyEnclave\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"AlreadyExecuted\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"AttestationQueueDoesNotExist\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"FunctionAlreadyExists\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"FunctionCallerNotPermitted\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"FunctionDoesNotExist\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"FunctionMrEnclaveMismatch\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"GasLimitExceeded\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InsufficientNodes\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"InvalidSignature\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"OracleAlreadyExists\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"OracleQueueDoesNotExist\",\"outputs\":[]},{\"inputs\":[],\"type\":\"error\",\"name\":\"TransactionExpired\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OracleAccountInit\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OracleGC\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OracleHeartbeat\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[],\"indexed\":false},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OracleSetConfig\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"createOracle\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"createOracleWithId\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"oracleIdx\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"oracleGarbageCollect\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"oracleHeartbeat\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"oracles\",\"outputs\":[{\"internalType\":\"struct OracleLib.Oracle\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint8\",\"name\":\"numRows\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"lastHeartbeat\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setOracleConfig\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OracleQueueAccountInit\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"attestationQueueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"OracleQueueAddMrEnclave\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"attestationQueueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"OracleQueueRemoveMrEnclave\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"attestationQueueId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OracleQueueSetAttestationConfig\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OracleQueueSetConfig\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"granter\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"permission\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"OracleQueueSetPermission\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"addMrEnclaveToOracleQueue\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"unpermissionedFeedsEnabled\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"oracleTimeout\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"createOracleQueue\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getOracleIdx\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getOracleQueueAllowedMrEnclaves\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getOracles\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"oracleQueues\",\"outputs\":[{\"internalType\":\"struct OracleQueueLib.OracleQueue\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address[]\",\"name\":\"oracles\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"unpermissionedFeedsEnabled\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"oracleTimeout\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"gcIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"currIdx\",\"type\":\"uint256\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"queueAttestationConfigs\",\"outputs\":[{\"internalType\":\"struct OracleQueueLib.AttestationConfig\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"attestationQueueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32[]\",\"name\":\"mrEnclaves\",\"type\":\"bytes32[]\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireValidEnclave\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireHeartbeatPermission\",\"type\":\"bool\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"removeMrEnclaveFromOracleQueue\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"attestationQueueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes32[]\",\"name\":\"mrEnclaves\",\"type\":\"bytes32[]\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireValidEnclave\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"requireHeartbeatPermission\",\"type\":\"bool\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setOracleQueueAttestationConfig\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"unpermissionedFeedsEnabled\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"maxSize\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"oracleTimeout\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setOracleQueueConfig\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"permission\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"on\",\"type\":\"bool\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setOracleQueuePermission\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"granter\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getPermission\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"granter\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"permission\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"hasPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"FunctionAccountInit\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"callId\",\"type\":\"uint256\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"FunctionCall\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"funder\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"FunctionFund\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"withdrawer\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"FunctionWithdraw\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"callFunction\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"containerRegistry\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"container\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"schedule\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address[]\",\"name\":\"permittedCallers\",\"type\":\"address[]\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"createFunction\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"struct TransactionLib.Transaction[]\",\"name\":\"transactions\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"expirationTimeSeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\",\"components\":[]}]},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"forward\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"funcs\",\"outputs\":[{\"internalType\":\"struct FunctionLib.SbFunction\",\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"enum FunctionLib.FunctionStatus\",\"name\":\"status\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"struct FunctionLib.FunctionConfig\",\"name\":\"config\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"schedule\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address[]\",\"name\":\"permittedCallers\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"containerRegistry\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"container\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\",\"components\":[]}]},{\"internalType\":\"struct FunctionLib.FunctionState\",\"name\":\"state\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"consecutiveFailures\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"lastExecutionTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextAllowedTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"callId\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"queueIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"triggered\",\"type\":\"bool\",\"components\":[]}]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accountId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"functionEscrowFund\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"functionEscrowWithdraw\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"functionExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getActiveFunctionsByQueue\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"struct FunctionLib.SbFunction[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"enum FunctionLib.FunctionStatus\",\"name\":\"status\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"struct FunctionLib.FunctionConfig\",\"name\":\"config\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"schedule\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address[]\",\"name\":\"permittedCallers\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"containerRegistry\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"container\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\",\"components\":[]}]},{\"internalType\":\"struct FunctionLib.FunctionState\",\"name\":\"state\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"consecutiveFailures\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"lastExecutionTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextAllowedTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"callId\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"queueIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"triggered\",\"type\":\"bool\",\"components\":[]}]}]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getAllFunctions\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"struct FunctionLib.SbFunction[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"enum FunctionLib.FunctionStatus\",\"name\":\"status\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"struct FunctionLib.FunctionConfig\",\"name\":\"config\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"schedule\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address[]\",\"name\":\"permittedCallers\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"containerRegistry\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"container\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\",\"components\":[]}]},{\"internalType\":\"struct FunctionLib.FunctionState\",\"name\":\"state\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"consecutiveFailures\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"lastExecutionTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextAllowedTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"callId\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"queueIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"triggered\",\"type\":\"bool\",\"components\":[]}]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getAllUnexecutedFunctionCalls\",\"outputs\":[{\"internalType\":\"struct FunctionLib.FunctionCall[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"executed\",\"type\":\"bool\",\"components\":[]}]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getFunctionsByAuthority\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"struct FunctionLib.SbFunction[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"enclaveId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"queueId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"enum FunctionLib.FunctionStatus\",\"name\":\"status\",\"type\":\"uint8\",\"components\":[]},{\"internalType\":\"struct FunctionLib.FunctionConfig\",\"name\":\"config\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"string\",\"name\":\"schedule\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"address[]\",\"name\":\"permittedCallers\",\"type\":\"address[]\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"containerRegistry\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"string\",\"name\":\"container\",\"type\":\"string\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\",\"components\":[]}]},{\"internalType\":\"struct FunctionLib.FunctionState\",\"name\":\"state\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"consecutiveFailures\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"lastExecutionTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextAllowedTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"callId\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"queueIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"triggered\",\"type\":\"bool\",\"components\":[]}]}]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expirationTimeSeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"pure\",\"type\":\"function\",\"name\":\"isTrustedForwarder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"enclaveIdx\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"functionId\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"delegatedSignerAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"observedTime\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"nextAllowedTimestamp\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bool\",\"name\":\"isFailure\",\"type\":\"bool\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"mrEnclave\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"struct TransactionLib.Transaction[]\",\"name\":\"transactions\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"expirationTimeSeconds\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\",\"components\":[]}]},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"verifyFunction\",\"outputs\":[]}]";
pub static SWITCHBOARD_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> =
::ethers::contract::Lazy::new(|| {
::ethers::core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid")
});
pub struct Switchboard<M>(::ethers::contract::Contract<M>);
impl<M> ::core::clone::Clone for Switchboard<M> {
fn clone(&self) -> Self {
Self(::core::clone::Clone::clone(&self.0))
}
}
impl<M> ::core::ops::Deref for Switchboard<M> {
type Target = ::ethers::contract::Contract<M>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<M> ::core::ops::DerefMut for Switchboard<M> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl<M> ::core::fmt::Debug for Switchboard<M> {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple(stringify!(Switchboard))
.field(&self.address())
.finish()
}
}
impl<M: ::ethers::providers::Middleware> Switchboard<M> {
pub fn new<T: Into<::ethers::core::types::Address>>(
address: T,
client: ::std::sync::Arc<M>,
) -> Self {
Self(::ethers::contract::Contract::new(
address.into(),
SWITCHBOARD_ABI.clone(),
client,
))
}
pub fn add_mr_enclave_to_attestation_queue(
&self,
queue_id: ::ethers::core::types::Address,
mr_enclave: [u8; 32],
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([173, 67, 91, 157], (queue_id, mr_enclave))
.expect("method not found (this should never happen)")
}
pub fn add_mr_enclave_to_oracle_queue(
&self,
queue_id: ::ethers::core::types::Address,
mr_enclave: [u8; 32],
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([81, 164, 38, 216], (queue_id, mr_enclave))
.expect("method not found (this should never happen)")
}
pub fn aggregator_escrow_fund(
&self,
account_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([213, 93, 204, 91], account_id)
.expect("method not found (this should never happen)")
}
pub fn aggregator_escrow_withdraw(
&self,
recipient: ::ethers::core::types::Address,
aggregator_id: ::ethers::core::types::Address,
amount: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([32, 45, 212, 153], (recipient, aggregator_id, amount))
.expect("method not found (this should never happen)")
}
pub fn aggregator_history(
&self,
aggregator_id: ::ethers::core::types::Address,
round_id: u128,
) -> ::ethers::contract::builders::ContractCall<M, AggregatorHistoryResult> {
self.0
.method_hash([134, 37, 189, 8], (aggregator_id, round_id))
.expect("method not found (this should never happen)")
}
pub fn aggregators(
&self,
aggregator_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, Aggregator> {
self.0
.method_hash([17, 44, 218, 185], aggregator_id)
.expect("method not found (this should never happen)")
}
pub fn attestation_queue_has_mr_enclave(
&self,
queue_id: ::ethers::core::types::Address,
mr_enclave: [u8; 32],
) -> ::ethers::contract::builders::ContractCall<M, bool> {
self.0
.method_hash([99, 252, 215, 113], (queue_id, mr_enclave))
.expect("method not found (this should never happen)")
}
pub fn attestation_queues(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, AttestationQueue> {
self.0
.method_hash([139, 179, 4, 140], queue_id)
.expect("method not found (this should never happen)")
}
pub fn call_function(
&self,
function_id: ::ethers::core::types::Address,
params: ::ethers::core::types::Bytes,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([156, 35, 218, 80], (function_id, params))
.expect("method not found (this should never happen)")
}
pub fn create_aggregator(
&self,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
batch_size: ::ethers::core::types::U256,
min_update_delay_seconds: ::ethers::core::types::U256,
min_oracle_results: ::ethers::core::types::U256,
jobs_hash: ::std::string::String,
queue_id: ::ethers::core::types::Address,
variance_threshold: ::ethers::core::types::U256,
min_job_results: ::ethers::core::types::U256,
force_report_period: ::ethers::core::types::U256,
enable_history: bool,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[132, 237, 129, 119],
(
name,
authority,
batch_size,
min_update_delay_seconds,
min_oracle_results,
jobs_hash,
queue_id,
variance_threshold,
min_job_results,
force_report_period,
enable_history,
),
)
.expect("method not found (this should never happen)")
}
pub fn create_attestation_queue(
&self,
authority: ::ethers::core::types::Address,
max_size: ::ethers::core::types::U256,
reward: ::ethers::core::types::U256,
enclave_timeout: ::ethers::core::types::U256,
max_enclave_verification_age: ::ethers::core::types::U256,
allow_authority_override_after: ::ethers::core::types::U256,
require_authority_heartbeat_permission: bool,
require_usage_permissions: bool,
max_consecutive_function_failures: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[222, 119, 104, 81],
(
authority,
max_size,
reward,
enclave_timeout,
max_enclave_verification_age,
allow_authority_override_after,
require_authority_heartbeat_permission,
require_usage_permissions,
max_consecutive_function_failures,
),
)
.expect("method not found (this should never happen)")
}
pub fn create_enclave(
&self,
authority: ::ethers::core::types::Address,
queue_id: ::ethers::core::types::Address,
owner: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([207, 57, 46, 47], (authority, queue_id, owner))
.expect("method not found (this should never happen)")
}
pub fn create_enclave_with_id(
&self,
enclave_id: ::ethers::core::types::Address,
authority: ::ethers::core::types::Address,
queue_id: ::ethers::core::types::Address,
owner: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([199, 193, 20, 62], (enclave_id, authority, queue_id, owner))
.expect("method not found (this should never happen)")
}
pub fn create_function(
&self,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
queue_id: ::ethers::core::types::Address,
container_registry: ::std::string::String,
container: ::std::string::String,
version: [u8; 32],
schedule: ::std::string::String,
permitted_callers: ::std::vec::Vec<::ethers::core::types::Address>,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[147, 232, 121, 186],
(
name,
authority,
queue_id,
container_registry,
container,
version,
schedule,
permitted_callers,
),
)
.expect("method not found (this should never happen)")
}
pub fn create_oracle(
&self,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([111, 183, 101, 26], (name, authority, queue_id))
.expect("method not found (this should never happen)")
}
pub fn create_oracle_queue(
&self,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
unpermissioned_feeds_enabled: bool,
max_size: ::ethers::core::types::U256,
reward: ::ethers::core::types::U256,
oracle_timeout: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[231, 103, 86, 81],
(
name,
authority,
unpermissioned_feeds_enabled,
max_size,
reward,
oracle_timeout,
),
)
.expect("method not found (this should never happen)")
}
pub fn create_oracle_with_id(
&self,
oracle_id: ::ethers::core::types::Address,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([237, 77, 78, 71], (oracle_id, name, authority, queue_id))
.expect("method not found (this should never happen)")
}
pub fn diamond_cut(
&self,
diamond_cut: ::std::vec::Vec<FacetCut>,
init: ::ethers::core::types::Address,
calldata: ::ethers::core::types::Bytes,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([31, 147, 28, 28], (diamond_cut, init, calldata))
.expect("method not found (this should never happen)")
}
pub fn enclave_authority_to_enclave_address(
&self,
authority: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::ethers::core::types::Address> {
self.0
.method_hash([90, 111, 227, 120], authority)
.expect("method not found (this should never happen)")
}
pub fn enclave_garbage_collect(
&self,
enclave_id: ::ethers::core::types::Address,
enclave_idx: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([192, 110, 78, 218], (enclave_id, enclave_idx))
.expect("method not found (this should never happen)")
}
pub fn enclave_heartbeat(
&self,
enclave_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([206, 131, 68, 55], enclave_id)
.expect("method not found (this should never happen)")
}
pub fn enclaves(
&self,
enclave_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, Enclave> {
self.0
.method_hash([250, 238, 219, 7], enclave_id)
.expect("method not found (this should never happen)")
}
pub fn facet_address(
&self,
function_selector: [u8; 4],
) -> ::ethers::contract::builders::ContractCall<M, ::ethers::core::types::Address> {
self.0
.method_hash([205, 255, 172, 198], function_selector)
.expect("method not found (this should never happen)")
}
pub fn facet_addresses(
&self,
) -> ::ethers::contract::builders::ContractCall<
M,
::std::vec::Vec<::ethers::core::types::Address>,
> {
self.0
.method_hash([82, 239, 107, 44], ())
.expect("method not found (this should never happen)")
}
pub fn facet_function_selectors(
&self,
facet: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::std::vec::Vec<[u8; 4]>> {
self.0
.method_hash([173, 252, 161, 94], facet)
.expect("method not found (this should never happen)")
}
pub fn facets(
&self,
) -> ::ethers::contract::builders::ContractCall<M, ::std::vec::Vec<Facet>> {
self.0
.method_hash([122, 14, 214, 39], ())
.expect("method not found (this should never happen)")
}
pub fn fail_enclave(
&self,
verifier_id: ::ethers::core::types::Address,
enclave_id: ::ethers::core::types::Address,
enclave_idx: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([57, 217, 32, 230], (verifier_id, enclave_id, enclave_idx))
.expect("method not found (this should never happen)")
}
pub fn force_override_verify(
&self,
enclave_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([226, 49, 177, 47], enclave_id)
.expect("method not found (this should never happen)")
}
pub fn forward(
&self,
transactions: ::std::vec::Vec<Transaction>,
signatures: ::std::vec::Vec<::ethers::core::types::Bytes>,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([112, 150, 5, 44], (transactions, signatures))
.expect("method not found (this should never happen)")
}
pub fn funcs(
&self,
function_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, SbFunction> {
self.0
.method_hash([142, 249, 32, 3], function_id)
.expect("method not found (this should never happen)")
}
pub fn function_escrow_fund(
&self,
account_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([186, 147, 22, 108], account_id)
.expect("method not found (this should never happen)")
}
pub fn function_escrow_withdraw(
&self,
recipient: ::ethers::core::types::Address,
function_id: ::ethers::core::types::Address,
amount: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([162, 155, 175, 30], (recipient, function_id, amount))
.expect("method not found (this should never happen)")
}
pub fn function_exists(
&self,
function_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, bool> {
self.0
.method_hash([161, 48, 1, 201], function_id)
.expect("method not found (this should never happen)")
}
pub fn get_active_functions_by_queue(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<
M,
(
::std::vec::Vec<::ethers::core::types::Address>,
::std::vec::Vec<SbFunction>,
),
> {
self.0
.method_hash([31, 199, 71, 183], queue_id)
.expect("method not found (this should never happen)")
}
pub fn get_aggregators_by_authority(
&self,
user: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<
M,
(
::std::vec::Vec<::ethers::core::types::Address>,
::std::vec::Vec<Aggregator>,
),
> {
self.0
.method_hash([145, 28, 48, 243], user)
.expect("method not found (this should never happen)")
}
pub fn get_all_aggregators(
&self,
) -> ::ethers::contract::builders::ContractCall<
M,
(
::std::vec::Vec<::ethers::core::types::Address>,
::std::vec::Vec<Aggregator>,
),
> {
self.0
.method_hash([70, 92, 101, 221], ())
.expect("method not found (this should never happen)")
}
pub fn get_all_functions(
&self,
) -> ::ethers::contract::builders::ContractCall<
M,
(
::std::vec::Vec<::ethers::core::types::Address>,
::std::vec::Vec<SbFunction>,
),
> {
self.0
.method_hash([171, 100, 24, 180], ())
.expect("method not found (this should never happen)")
}
pub fn get_all_unexecuted_function_calls(
&self,
function_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::std::vec::Vec<FunctionCall>> {
self.0
.method_hash([203, 179, 198, 84], function_id)
.expect("method not found (this should never happen)")
}
pub fn get_attestation_queue_mr_enclaves(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::std::vec::Vec<[u8; 32]>> {
self.0
.method_hash([15, 59, 196, 24], queue_id)
.expect("method not found (this should never happen)")
}
pub fn get_current_interval_id(
&self,
aggregator_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, u128> {
self.0
.method_hash([29, 193, 218, 134], aggregator_id)
.expect("method not found (this should never happen)")
}
pub fn get_enclave_idx(
&self,
enclave_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::ethers::core::types::I256> {
self.0
.method_hash([33, 251, 59, 188], enclave_id)
.expect("method not found (this should never happen)")
}
pub fn get_enclaves(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<
M,
::std::vec::Vec<::ethers::core::types::Address>,
> {
self.0
.method_hash([52, 13, 216, 139], queue_id)
.expect("method not found (this should never happen)")
}
pub fn get_functions_by_authority(
&self,
user: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<
M,
(
::std::vec::Vec<::ethers::core::types::Address>,
::std::vec::Vec<SbFunction>,
),
> {
self.0
.method_hash([53, 127, 99, 63], user)
.expect("method not found (this should never happen)")
}
pub fn get_interval_result(
&self,
aggregator_id: ::ethers::core::types::Address,
interval_id: u128,
) -> ::ethers::contract::builders::ContractCall<
M,
(
::ethers::core::types::I256,
::ethers::core::types::U256,
::ethers::core::types::U256,
),
> {
self.0
.method_hash([61, 36, 239, 110], (aggregator_id, interval_id))
.expect("method not found (this should never happen)")
}
pub fn get_oracle_idx(
&self,
oracle_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::ethers::core::types::I256> {
self.0
.method_hash([216, 125, 208, 172], oracle_id)
.expect("method not found (this should never happen)")
}
pub fn get_oracle_queue_allowed_mr_enclaves(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::std::vec::Vec<[u8; 32]>> {
self.0
.method_hash([240, 75, 15, 89], queue_id)
.expect("method not found (this should never happen)")
}
pub fn get_oracles(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<
M,
::std::vec::Vec<::ethers::core::types::Address>,
> {
self.0
.method_hash([142, 116, 146, 129], queue_id)
.expect("method not found (this should never happen)")
}
pub fn get_permission(
&self,
granter: ::ethers::core::types::Address,
grantee: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::ethers::core::types::U256> {
self.0
.method_hash([145, 1, 133, 221], (granter, grantee))
.expect("method not found (this should never happen)")
}
pub fn get_transaction_hash(
&self,
expiration_time_seconds: ::ethers::core::types::U256,
gas_limit: ::ethers::core::types::U256,
value: ::ethers::core::types::U256,
to: ::ethers::core::types::Address,
from: ::ethers::core::types::Address,
data: ::ethers::core::types::Bytes,
) -> ::ethers::contract::builders::ContractCall<M, [u8; 32]> {
self.0
.method_hash(
[217, 63, 25, 112],
(expiration_time_seconds, gas_limit, value, to, from, data),
)
.expect("method not found (this should never happen)")
}
pub fn has_permission(
&self,
granter: ::ethers::core::types::Address,
grantee: ::ethers::core::types::Address,
permission: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, bool> {
self.0
.method_hash([139, 1, 129, 61], (granter, grantee, permission))
.expect("method not found (this should never happen)")
}
pub fn init(&self) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([225, 199, 57, 42], ())
.expect("method not found (this should never happen)")
}
pub fn is_enclave_valid(
&self,
enclave_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, bool> {
self.0
.method_hash([251, 74, 205, 254], enclave_id)
.expect("method not found (this should never happen)")
}
pub fn is_trusted_forwarder(
&self,
p0: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, bool> {
self.0
.method_hash([87, 43, 108, 5], p0)
.expect("method not found (this should never happen)")
}
pub fn latest_result(
&self,
aggregator_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<
M,
(::ethers::core::types::I256, ::ethers::core::types::U256),
> {
self.0
.method_hash([250, 176, 5, 162], aggregator_id)
.expect("method not found (this should never happen)")
}
pub fn open_interval(
&self,
aggregator_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([15, 37, 68, 190], aggregator_id)
.expect("method not found (this should never happen)")
}
pub fn oracle_garbage_collect(
&self,
oracle_id: ::ethers::core::types::Address,
oracle_idx: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([113, 218, 104, 255], (oracle_id, oracle_idx))
.expect("method not found (this should never happen)")
}
pub fn oracle_heartbeat(
&self,
oracle_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([245, 59, 99, 140], oracle_id)
.expect("method not found (this should never happen)")
}
pub fn oracle_queues(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, OracleQueue> {
self.0
.method_hash([242, 55, 142, 136], queue_id)
.expect("method not found (this should never happen)")
}
pub fn oracles(
&self,
oracle_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, Oracle> {
self.0
.method_hash([173, 221, 80, 153], oracle_id)
.expect("method not found (this should never happen)")
}
pub fn owner(
&self,
) -> ::ethers::contract::builders::ContractCall<M, ::ethers::core::types::Address> {
self.0
.method_hash([141, 165, 203, 91], ())
.expect("method not found (this should never happen)")
}
pub fn queue_attestation_configs(
&self,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, AttestationConfig> {
self.0
.method_hash([109, 220, 145, 34], queue_id)
.expect("method not found (this should never happen)")
}
pub fn remove_mr_enclave_from_attestation_queue(
&self,
queue_id: ::ethers::core::types::Address,
mr_enclave: [u8; 32],
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([8, 63, 48, 207], (queue_id, mr_enclave))
.expect("method not found (this should never happen)")
}
pub fn remove_mr_enclave_from_oracle_queue(
&self,
queue_id: ::ethers::core::types::Address,
mr_enclave: [u8; 32],
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([38, 41, 85, 216], (queue_id, mr_enclave))
.expect("method not found (this should never happen)")
}
pub fn rotate_authority(
&self,
enclave_id: ::ethers::core::types::Address,
new_authority: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([202, 110, 160, 187], (enclave_id, new_authority))
.expect("method not found (this should never happen)")
}
pub fn save_results(
&self,
ids: ::std::vec::Vec<::ethers::core::types::Address>,
results: ::std::vec::Vec<::ethers::core::types::I256>,
queue_id: ::ethers::core::types::Address,
oracle_idx: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([115, 94, 53, 85], (ids, results, queue_id, oracle_idx))
.expect("method not found (this should never happen)")
}
pub fn set_aggregator_config(
&self,
aggregator_id: ::ethers::core::types::Address,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
batch_size: ::ethers::core::types::U256,
min_update_delay_seconds: ::ethers::core::types::U256,
min_oracle_results: ::ethers::core::types::U256,
jobs_hash: ::std::string::String,
queue_id: ::ethers::core::types::Address,
variance_threshold: ::ethers::core::types::U256,
min_job_results: ::ethers::core::types::U256,
force_report_period: ::ethers::core::types::U256,
enable_history: bool,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[221, 10, 215, 58],
(
aggregator_id,
name,
authority,
batch_size,
min_update_delay_seconds,
min_oracle_results,
jobs_hash,
queue_id,
variance_threshold,
min_job_results,
force_report_period,
enable_history,
),
)
.expect("method not found (this should never happen)")
}
pub fn set_attestation_queue_config(
&self,
queue_id: ::ethers::core::types::Address,
authority: ::ethers::core::types::Address,
max_size: ::ethers::core::types::U256,
reward: ::ethers::core::types::U256,
enclave_timeout: ::ethers::core::types::U256,
max_enclave_verification_age: ::ethers::core::types::U256,
allow_authority_override_after: ::ethers::core::types::U256,
require_authority_heartbeat_permission: bool,
require_usage_permissions: bool,
max_consecutive_function_failures: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[247, 212, 131, 7],
(
queue_id,
authority,
max_size,
reward,
enclave_timeout,
max_enclave_verification_age,
allow_authority_override_after,
require_authority_heartbeat_permission,
require_usage_permissions,
max_consecutive_function_failures,
),
)
.expect("method not found (this should never happen)")
}
pub fn set_attestation_queue_permission(
&self,
queue_id: ::ethers::core::types::Address,
grantee: ::ethers::core::types::Address,
permission: ::ethers::core::types::U256,
on: bool,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([167, 122, 7, 211], (queue_id, grantee, permission, on))
.expect("method not found (this should never happen)")
}
pub fn set_oracle_config(
&self,
oracle_id: ::ethers::core::types::Address,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
queue_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([62, 97, 19, 95], (oracle_id, name, authority, queue_id))
.expect("method not found (this should never happen)")
}
pub fn set_oracle_queue_attestation_config(
&self,
queue_id: ::ethers::core::types::Address,
attestation_queue_id: ::ethers::core::types::Address,
mr_enclaves: ::std::vec::Vec<[u8; 32]>,
require_valid_enclave: bool,
require_heartbeat_permission: bool,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[136, 3, 58, 245],
(
queue_id,
attestation_queue_id,
mr_enclaves,
require_valid_enclave,
require_heartbeat_permission,
),
)
.expect("method not found (this should never happen)")
}
pub fn set_oracle_queue_config(
&self,
queue_id: ::ethers::core::types::Address,
name: ::std::string::String,
authority: ::ethers::core::types::Address,
unpermissioned_feeds_enabled: bool,
max_size: ::ethers::core::types::U256,
reward: ::ethers::core::types::U256,
oracle_timeout: ::ethers::core::types::U256,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[182, 89, 4, 17],
(
queue_id,
name,
authority,
unpermissioned_feeds_enabled,
max_size,
reward,
oracle_timeout,
),
)
.expect("method not found (this should never happen)")
}
pub fn set_oracle_queue_permission(
&self,
queue_id: ::ethers::core::types::Address,
grantee: ::ethers::core::types::Address,
permission: ::ethers::core::types::U256,
on: bool,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([1, 252, 27, 162], (queue_id, grantee, permission, on))
.expect("method not found (this should never happen)")
}
pub fn supports_interface(
&self,
interface_id: [u8; 4],
) -> ::ethers::contract::builders::ContractCall<M, bool> {
self.0
.method_hash([1, 255, 201, 167], interface_id)
.expect("method not found (this should never happen)")
}
pub fn transfer_ownership(
&self,
new_owner: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([242, 253, 227, 139], new_owner)
.expect("method not found (this should never happen)")
}
pub fn update_enclave(
&self,
enclave_id: ::ethers::core::types::Address,
cid: ::ethers::core::types::Bytes,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash([92, 214, 172, 12], (enclave_id, cid))
.expect("method not found (this should never happen)")
}
pub fn validate(
&self,
authority: ::ethers::core::types::Address,
attestation_queue_id: ::ethers::core::types::Address,
valid_measurements: ::std::vec::Vec<[u8; 32]>,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[23, 85, 167, 248],
(authority, attestation_queue_id, valid_measurements),
)
.expect("method not found (this should never happen)")
}
pub fn verify_enclave(
&self,
verifier_id: ::ethers::core::types::Address,
enclave_id: ::ethers::core::types::Address,
enclave_idx: ::ethers::core::types::U256,
timestamp: ::ethers::core::types::U256,
mr_enclave: [u8; 32],
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[239, 14, 189, 113],
(verifier_id, enclave_id, enclave_idx, timestamp, mr_enclave),
)
.expect("method not found (this should never happen)")
}
pub fn verify_function(
&self,
enclave_idx: ::ethers::core::types::U256,
function_id: ::ethers::core::types::Address,
delegated_signer_address: ::ethers::core::types::Address,
observed_time: ::ethers::core::types::U256,
next_allowed_timestamp: ::ethers::core::types::U256,
is_failure: bool,
mr_enclave: [u8; 32],
transactions: ::std::vec::Vec<Transaction>,
signatures: ::std::vec::Vec<::ethers::core::types::Bytes>,
) -> ::ethers::contract::builders::ContractCall<M, ()> {
self.0
.method_hash(
[140, 197, 176, 44],
(
enclave_idx,
function_id,
delegated_signer_address,
observed_time,
next_allowed_timestamp,
is_failure,
mr_enclave,
transactions,
signatures,
),
)
.expect("method not found (this should never happen)")
}
pub fn view_aggregator_results(
&self,
aggregator_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<M, ::std::vec::Vec<Result>> {
self.0
.method_hash([222, 134, 100, 132], aggregator_id)
.expect("method not found (this should never happen)")
}
pub fn view_latest_result(
&self,
aggregator_id: ::ethers::core::types::Address,
) -> ::ethers::contract::builders::ContractCall<
M,
(::ethers::core::types::I256, ::ethers::core::types::U256),
> {
self.0
.method_hash([189, 245, 237, 239], aggregator_id)
.expect("method not found (this should never happen)")
}
pub fn add_mr_enclave_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, AddMrEnclaveFilter>
{
self.0.event()
}
pub fn aggregator_account_init_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, AggregatorAccountInitFilter>
{
self.0.event()
}
pub fn aggregator_fund_event_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, AggregatorFundEventFilter>
{
self.0.event()
}
pub fn aggregator_interval_refreshed_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
AggregatorIntervalRefreshedFilter,
> {
self.0.event()
}
pub fn aggregator_open_interval_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, AggregatorOpenIntervalFilter>
{
self.0.event()
}
pub fn aggregator_read_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, AggregatorReadFilter>
{
self.0.event()
}
pub fn aggregator_save_result_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, AggregatorSaveResultFilter>
{
self.0.event()
}
pub fn aggregator_settings_updated_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
AggregatorSettingsUpdatedFilter,
> {
self.0.event()
}
pub fn aggregator_update_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, AggregatorUpdateFilter>
{
self.0.event()
}
pub fn aggregator_withdraw_event_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
AggregatorWithdrawEventFilter,
> {
self.0.event()
}
pub fn attestation_queue_account_init_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
AttestationQueueAccountInitFilter,
> {
self.0.event()
}
pub fn attestation_queue_permission_updated_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
AttestationQueuePermissionUpdatedFilter,
> {
self.0.event()
}
pub fn attestation_queue_set_config_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
AttestationQueueSetConfigFilter,
> {
self.0.event()
}
pub fn diamond_cut_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, DiamondCutFilter> {
self.0.event()
}
pub fn enclave_account_init_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, EnclaveAccountInitFilter>
{
self.0.event()
}
pub fn enclave_gc_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, EnclaveGCFilter> {
self.0.event()
}
pub fn enclave_heartbeat_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, EnclaveHeartbeatFilter>
{
self.0.event()
}
pub fn enclave_payout_event_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, EnclavePayoutEventFilter>
{
self.0.event()
}
pub fn enclave_rotate_authority_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, EnclaveRotateAuthorityFilter>
{
self.0.event()
}
pub fn enclave_verify_request_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, EnclaveVerifyRequestFilter>
{
self.0.event()
}
pub fn function_account_init_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, FunctionAccountInitFilter>
{
self.0.event()
}
pub fn function_call_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, FunctionCallFilter>
{
self.0.event()
}
pub fn function_fund_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, FunctionFundFilter>
{
self.0.event()
}
pub fn function_withdraw_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, FunctionWithdrawFilter>
{
self.0.event()
}
pub fn oracle_account_init_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OracleAccountInitFilter>
{
self.0.event()
}
pub fn oracle_gc_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OracleGCFilter> {
self.0.event()
}
pub fn oracle_heartbeat_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OracleHeartbeatFilter>
{
self.0.event()
}
pub fn oracle_payout_event_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OraclePayoutEventFilter>
{
self.0.event()
}
pub fn oracle_queue_account_init_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OracleQueueAccountInitFilter>
{
self.0.event()
}
pub fn oracle_queue_add_mr_enclave_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
OracleQueueAddMrEnclaveFilter,
> {
self.0.event()
}
pub fn oracle_queue_remove_mr_enclave_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
OracleQueueRemoveMrEnclaveFilter,
> {
self.0.event()
}
pub fn oracle_queue_set_attestation_config_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
OracleQueueSetAttestationConfigFilter,
> {
self.0.event()
}
pub fn oracle_queue_set_config_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OracleQueueSetConfigFilter>
{
self.0.event()
}
pub fn oracle_queue_set_permission_filter(
&self,
) -> ::ethers::contract::builders::Event<
::std::sync::Arc<M>,
M,
OracleQueueSetPermissionFilter,
> {
self.0.event()
}
pub fn oracle_set_config_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OracleSetConfigFilter>
{
self.0.event()
}
pub fn ownership_transferred_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, OwnershipTransferredFilter>
{
self.0.event()
}
pub fn remove_mr_enclave_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, RemoveMrEnclaveFilter>
{
self.0.event()
}
pub fn events(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, SwitchboardEvents>
{
self.0
.event_with_filter(::core::default::Default::default())
}
}
impl<M: ::ethers::providers::Middleware> From<::ethers::contract::Contract<M>> for Switchboard<M> {
fn from(contract: ::ethers::contract::Contract<M>) -> Self {
Self::new(contract.address(), contract.client())
}
}
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "AggregatorAlreadyExists", abi = "AggregatorAlreadyExists()")]
pub struct AggregatorAlreadyExists;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "AggregatorDoesNotExist", abi = "AggregatorDoesNotExist()")]
pub struct AggregatorDoesNotExist;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "AlreadyExecuted", abi = "AlreadyExecuted()")]
pub struct AlreadyExecuted;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "AttestationQueueAlreadyExists",
abi = "AttestationQueueAlreadyExists()"
)]
pub struct AttestationQueueAlreadyExists;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "AttestationQueueDoesNotExist",
abi = "AttestationQueueDoesNotExist()"
)]
pub struct AttestationQueueDoesNotExist;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "EarlyOracleResponse", abi = "EarlyOracleResponse()")]
pub struct EarlyOracleResponse;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "EnclaveAlreadyExists", abi = "EnclaveAlreadyExists()")]
pub struct EnclaveAlreadyExists;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "EnclaveDoesNotExist", abi = "EnclaveDoesNotExist()")]
pub struct EnclaveDoesNotExist;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "EnclaveExpired", abi = "EnclaveExpired()")]
pub struct EnclaveExpired;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "EnclaveNotOnQueue", abi = "EnclaveNotOnQueue()")]
pub struct EnclaveNotOnQueue;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "EnclaveUnverified", abi = "EnclaveUnverified()")]
pub struct EnclaveUnverified;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "FunctionAlreadyExists", abi = "FunctionAlreadyExists()")]
pub struct FunctionAlreadyExists;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "FunctionCallerNotPermitted",
abi = "FunctionCallerNotPermitted()"
)]
pub struct FunctionCallerNotPermitted;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "FunctionDoesNotExist", abi = "FunctionDoesNotExist()")]
pub struct FunctionDoesNotExist;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "FunctionMrEnclaveMismatch",
abi = "FunctionMrEnclaveMismatch()"
)]
pub struct FunctionMrEnclaveMismatch;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "GasLimitExceeded", abi = "GasLimitExceeded()")]
pub struct GasLimitExceeded;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "IncorrectReportedTime", abi = "IncorrectReportedTime()")]
pub struct IncorrectReportedTime;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "InitializationFunctionReverted",
abi = "InitializationFunctionReverted(address,bytes)"
)]
pub struct InitializationFunctionReverted {
pub initialization_contract_address: ::ethers::core::types::Address,
pub calldata: ::ethers::core::types::Bytes,
}
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InsufficientBalance", abi = "InsufficientBalance()")]
pub struct InsufficientBalance;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InsufficientNodes", abi = "InsufficientNodes()")]
pub struct InsufficientNodes;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InsufficientSamples", abi = "InsufficientSamples()")]
pub struct InsufficientSamples;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "IntervalHistoryNotRecorded",
abi = "IntervalHistoryNotRecorded()"
)]
pub struct IntervalHistoryNotRecorded;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InvalidArgument", abi = "InvalidArgument()")]
pub struct InvalidArgument;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InvalidAuthority", abi = "InvalidAuthority()")]
pub struct InvalidAuthority;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InvalidEnclave", abi = "InvalidEnclave()")]
pub struct InvalidEnclave;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InvalidEntry", abi = "InvalidEntry()")]
pub struct InvalidEntry;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "InvalidSignature", abi = "InvalidSignature()")]
pub struct InvalidSignature;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "MrEnclaveNotAllowed", abi = "MrEnclaveNotAllowed()")]
pub struct MrEnclaveNotAllowed;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "OracleAlreadyExists", abi = "OracleAlreadyExists()")]
pub struct OracleAlreadyExists;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "OracleQueueDoesNotExist", abi = "OracleQueueDoesNotExist()")]
pub struct OracleQueueDoesNotExist;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "PermissionDenied", abi = "PermissionDenied()")]
pub struct PermissionDenied;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "QueuesDoNotMatch", abi = "QueuesDoNotMatch()")]
pub struct QueuesDoNotMatch;
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(name = "TransactionExpired", abi = "TransactionExpired()")]
pub struct TransactionExpired;
#[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
pub enum SwitchboardErrors {
AggregatorAlreadyExists(AggregatorAlreadyExists),
AggregatorDoesNotExist(AggregatorDoesNotExist),
AlreadyExecuted(AlreadyExecuted),
AttestationQueueAlreadyExists(AttestationQueueAlreadyExists),
AttestationQueueDoesNotExist(AttestationQueueDoesNotExist),
EarlyOracleResponse(EarlyOracleResponse),
EnclaveAlreadyExists(EnclaveAlreadyExists),
EnclaveDoesNotExist(EnclaveDoesNotExist),
EnclaveExpired(EnclaveExpired),
EnclaveNotOnQueue(EnclaveNotOnQueue),
EnclaveUnverified(EnclaveUnverified),
FunctionAlreadyExists(FunctionAlreadyExists),
FunctionCallerNotPermitted(FunctionCallerNotPermitted),
FunctionDoesNotExist(FunctionDoesNotExist),
FunctionMrEnclaveMismatch(FunctionMrEnclaveMismatch),
GasLimitExceeded(GasLimitExceeded),
IncorrectReportedTime(IncorrectReportedTime),
InitializationFunctionReverted(InitializationFunctionReverted),
InsufficientBalance(InsufficientBalance),
InsufficientNodes(InsufficientNodes),
InsufficientSamples(InsufficientSamples),
IntervalHistoryNotRecorded(IntervalHistoryNotRecorded),
InvalidArgument(InvalidArgument),
InvalidAuthority(InvalidAuthority),
InvalidEnclave(InvalidEnclave),
InvalidEntry(InvalidEntry),
InvalidSignature(InvalidSignature),
MrEnclaveNotAllowed(MrEnclaveNotAllowed),
OracleAlreadyExists(OracleAlreadyExists),
OracleQueueDoesNotExist(OracleQueueDoesNotExist),
PermissionDenied(PermissionDenied),
QueuesDoNotMatch(QueuesDoNotMatch),
TransactionExpired(TransactionExpired),
RevertString(::std::string::String),
}
impl ::ethers::core::abi::AbiDecode for SwitchboardErrors {
fn decode(
data: impl AsRef<[u8]>,
) -> ::core::result::Result<Self, ::ethers::core::abi::AbiError> {
let data = data.as_ref();
if let Ok(decoded) =
<::std::string::String as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::RevertString(decoded));
}
if let Ok(decoded) =
<AggregatorAlreadyExists as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AggregatorAlreadyExists(decoded));
}
if let Ok(decoded) =
<AggregatorDoesNotExist as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AggregatorDoesNotExist(decoded));
}
if let Ok(decoded) = <AlreadyExecuted as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::AlreadyExecuted(decoded));
}
if let Ok(decoded) =
<AttestationQueueAlreadyExists as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AttestationQueueAlreadyExists(decoded));
}
if let Ok(decoded) =
<AttestationQueueDoesNotExist as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AttestationQueueDoesNotExist(decoded));
}
if let Ok(decoded) =
<EarlyOracleResponse as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::EarlyOracleResponse(decoded));
}
if let Ok(decoded) =
<EnclaveAlreadyExists as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::EnclaveAlreadyExists(decoded));
}
if let Ok(decoded) =
<EnclaveDoesNotExist as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::EnclaveDoesNotExist(decoded));
}
if let Ok(decoded) = <EnclaveExpired as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::EnclaveExpired(decoded));
}
if let Ok(decoded) = <EnclaveNotOnQueue as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::EnclaveNotOnQueue(decoded));
}
if let Ok(decoded) = <EnclaveUnverified as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::EnclaveUnverified(decoded));
}
if let Ok(decoded) =
<FunctionAlreadyExists as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FunctionAlreadyExists(decoded));
}
if let Ok(decoded) =
<FunctionCallerNotPermitted as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FunctionCallerNotPermitted(decoded));
}
if let Ok(decoded) =
<FunctionDoesNotExist as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FunctionDoesNotExist(decoded));
}
if let Ok(decoded) =
<FunctionMrEnclaveMismatch as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FunctionMrEnclaveMismatch(decoded));
}
if let Ok(decoded) = <GasLimitExceeded as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GasLimitExceeded(decoded));
}
if let Ok(decoded) =
<IncorrectReportedTime as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::IncorrectReportedTime(decoded));
}
if let Ok(decoded) =
<InitializationFunctionReverted as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::InitializationFunctionReverted(decoded));
}
if let Ok(decoded) =
<InsufficientBalance as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::InsufficientBalance(decoded));
}
if let Ok(decoded) = <InsufficientNodes as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::InsufficientNodes(decoded));
}
if let Ok(decoded) =
<InsufficientSamples as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::InsufficientSamples(decoded));
}
if let Ok(decoded) =
<IntervalHistoryNotRecorded as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::IntervalHistoryNotRecorded(decoded));
}
if let Ok(decoded) = <InvalidArgument as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::InvalidArgument(decoded));
}
if let Ok(decoded) = <InvalidAuthority as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::InvalidAuthority(decoded));
}
if let Ok(decoded) = <InvalidEnclave as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::InvalidEnclave(decoded));
}
if let Ok(decoded) = <InvalidEntry as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::InvalidEntry(decoded));
}
if let Ok(decoded) = <InvalidSignature as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::InvalidSignature(decoded));
}
if let Ok(decoded) =
<MrEnclaveNotAllowed as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::MrEnclaveNotAllowed(decoded));
}
if let Ok(decoded) =
<OracleAlreadyExists as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::OracleAlreadyExists(decoded));
}
if let Ok(decoded) =
<OracleQueueDoesNotExist as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::OracleQueueDoesNotExist(decoded));
}
if let Ok(decoded) = <PermissionDenied as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::PermissionDenied(decoded));
}
if let Ok(decoded) = <QueuesDoNotMatch as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::QueuesDoNotMatch(decoded));
}
if let Ok(decoded) =
<TransactionExpired as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::TransactionExpired(decoded));
}
Err(::ethers::core::abi::Error::InvalidData.into())
}
}
impl ::ethers::core::abi::AbiEncode for SwitchboardErrors {
fn encode(self) -> ::std::vec::Vec<u8> {
match self {
Self::AggregatorAlreadyExists(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AggregatorDoesNotExist(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AlreadyExecuted(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::AttestationQueueAlreadyExists(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AttestationQueueDoesNotExist(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::EarlyOracleResponse(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::EnclaveAlreadyExists(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::EnclaveDoesNotExist(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::EnclaveExpired(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::EnclaveNotOnQueue(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::EnclaveUnverified(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::FunctionAlreadyExists(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::FunctionCallerNotPermitted(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::FunctionDoesNotExist(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::FunctionMrEnclaveMismatch(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GasLimitExceeded(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::IncorrectReportedTime(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::InitializationFunctionReverted(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::InsufficientBalance(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::InsufficientNodes(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::InsufficientSamples(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::IntervalHistoryNotRecorded(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::InvalidArgument(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::InvalidAuthority(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::InvalidEnclave(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::InvalidEntry(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::InvalidSignature(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::MrEnclaveNotAllowed(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::OracleAlreadyExists(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::OracleQueueDoesNotExist(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::PermissionDenied(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::QueuesDoNotMatch(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::TransactionExpired(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s),
}
}
}
impl ::ethers::contract::ContractRevert for SwitchboardErrors {
fn valid_selector(selector: [u8; 4]) -> bool {
match selector {
[0x08, 0xc3, 0x79, 0xa0] => true,
_ if selector
== <AggregatorAlreadyExists as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <AggregatorDoesNotExist as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <AlreadyExecuted as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <AttestationQueueAlreadyExists as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <AttestationQueueDoesNotExist as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <EarlyOracleResponse as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <EnclaveAlreadyExists as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <EnclaveDoesNotExist as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <EnclaveExpired as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <EnclaveNotOnQueue as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <EnclaveUnverified as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <FunctionAlreadyExists as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <FunctionCallerNotPermitted as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <FunctionDoesNotExist as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <FunctionMrEnclaveMismatch as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <GasLimitExceeded as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <IncorrectReportedTime as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InitializationFunctionReverted as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InsufficientBalance as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InsufficientNodes as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InsufficientSamples as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <IntervalHistoryNotRecorded as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InvalidArgument as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InvalidAuthority as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InvalidEnclave as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <InvalidEntry as ::ethers::contract::EthError>::selector() => true,
_ if selector
== <InvalidSignature as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <MrEnclaveNotAllowed as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <OracleAlreadyExists as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <OracleQueueDoesNotExist as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <PermissionDenied as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <QueuesDoNotMatch as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <TransactionExpired as ::ethers::contract::EthError>::selector() => {
true
}
_ => false,
}
}
}
impl ::core::fmt::Display for SwitchboardErrors {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
match self {
Self::AggregatorAlreadyExists(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorDoesNotExist(element) => ::core::fmt::Display::fmt(element, f),
Self::AlreadyExecuted(element) => ::core::fmt::Display::fmt(element, f),
Self::AttestationQueueAlreadyExists(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AttestationQueueDoesNotExist(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::EarlyOracleResponse(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveAlreadyExists(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveDoesNotExist(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveExpired(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveNotOnQueue(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveUnverified(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionAlreadyExists(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionCallerNotPermitted(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionDoesNotExist(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionMrEnclaveMismatch(element) => ::core::fmt::Display::fmt(element, f),
Self::GasLimitExceeded(element) => ::core::fmt::Display::fmt(element, f),
Self::IncorrectReportedTime(element) => ::core::fmt::Display::fmt(element, f),
Self::InitializationFunctionReverted(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::InsufficientBalance(element) => ::core::fmt::Display::fmt(element, f),
Self::InsufficientNodes(element) => ::core::fmt::Display::fmt(element, f),
Self::InsufficientSamples(element) => ::core::fmt::Display::fmt(element, f),
Self::IntervalHistoryNotRecorded(element) => ::core::fmt::Display::fmt(element, f),
Self::InvalidArgument(element) => ::core::fmt::Display::fmt(element, f),
Self::InvalidAuthority(element) => ::core::fmt::Display::fmt(element, f),
Self::InvalidEnclave(element) => ::core::fmt::Display::fmt(element, f),
Self::InvalidEntry(element) => ::core::fmt::Display::fmt(element, f),
Self::InvalidSignature(element) => ::core::fmt::Display::fmt(element, f),
Self::MrEnclaveNotAllowed(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleAlreadyExists(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleQueueDoesNotExist(element) => ::core::fmt::Display::fmt(element, f),
Self::PermissionDenied(element) => ::core::fmt::Display::fmt(element, f),
Self::QueuesDoNotMatch(element) => ::core::fmt::Display::fmt(element, f),
Self::TransactionExpired(element) => ::core::fmt::Display::fmt(element, f),
Self::RevertString(s) => ::core::fmt::Display::fmt(s, f),
}
}
}
impl ::core::convert::From<::std::string::String> for SwitchboardErrors {
fn from(value: String) -> Self {
Self::RevertString(value)
}
}
impl ::core::convert::From<AggregatorAlreadyExists> for SwitchboardErrors {
fn from(value: AggregatorAlreadyExists) -> Self {
Self::AggregatorAlreadyExists(value)
}
}
impl ::core::convert::From<AggregatorDoesNotExist> for SwitchboardErrors {
fn from(value: AggregatorDoesNotExist) -> Self {
Self::AggregatorDoesNotExist(value)
}
}
impl ::core::convert::From<AlreadyExecuted> for SwitchboardErrors {
fn from(value: AlreadyExecuted) -> Self {
Self::AlreadyExecuted(value)
}
}
impl ::core::convert::From<AttestationQueueAlreadyExists> for SwitchboardErrors {
fn from(value: AttestationQueueAlreadyExists) -> Self {
Self::AttestationQueueAlreadyExists(value)
}
}
impl ::core::convert::From<AttestationQueueDoesNotExist> for SwitchboardErrors {
fn from(value: AttestationQueueDoesNotExist) -> Self {
Self::AttestationQueueDoesNotExist(value)
}
}
impl ::core::convert::From<EarlyOracleResponse> for SwitchboardErrors {
fn from(value: EarlyOracleResponse) -> Self {
Self::EarlyOracleResponse(value)
}
}
impl ::core::convert::From<EnclaveAlreadyExists> for SwitchboardErrors {
fn from(value: EnclaveAlreadyExists) -> Self {
Self::EnclaveAlreadyExists(value)
}
}
impl ::core::convert::From<EnclaveDoesNotExist> for SwitchboardErrors {
fn from(value: EnclaveDoesNotExist) -> Self {
Self::EnclaveDoesNotExist(value)
}
}
impl ::core::convert::From<EnclaveExpired> for SwitchboardErrors {
fn from(value: EnclaveExpired) -> Self {
Self::EnclaveExpired(value)
}
}
impl ::core::convert::From<EnclaveNotOnQueue> for SwitchboardErrors {
fn from(value: EnclaveNotOnQueue) -> Self {
Self::EnclaveNotOnQueue(value)
}
}
impl ::core::convert::From<EnclaveUnverified> for SwitchboardErrors {
fn from(value: EnclaveUnverified) -> Self {
Self::EnclaveUnverified(value)
}
}
impl ::core::convert::From<FunctionAlreadyExists> for SwitchboardErrors {
fn from(value: FunctionAlreadyExists) -> Self {
Self::FunctionAlreadyExists(value)
}
}
impl ::core::convert::From<FunctionCallerNotPermitted> for SwitchboardErrors {
fn from(value: FunctionCallerNotPermitted) -> Self {
Self::FunctionCallerNotPermitted(value)
}
}
impl ::core::convert::From<FunctionDoesNotExist> for SwitchboardErrors {
fn from(value: FunctionDoesNotExist) -> Self {
Self::FunctionDoesNotExist(value)
}
}
impl ::core::convert::From<FunctionMrEnclaveMismatch> for SwitchboardErrors {
fn from(value: FunctionMrEnclaveMismatch) -> Self {
Self::FunctionMrEnclaveMismatch(value)
}
}
impl ::core::convert::From<GasLimitExceeded> for SwitchboardErrors {
fn from(value: GasLimitExceeded) -> Self {
Self::GasLimitExceeded(value)
}
}
impl ::core::convert::From<IncorrectReportedTime> for SwitchboardErrors {
fn from(value: IncorrectReportedTime) -> Self {
Self::IncorrectReportedTime(value)
}
}
impl ::core::convert::From<InitializationFunctionReverted> for SwitchboardErrors {
fn from(value: InitializationFunctionReverted) -> Self {
Self::InitializationFunctionReverted(value)
}
}
impl ::core::convert::From<InsufficientBalance> for SwitchboardErrors {
fn from(value: InsufficientBalance) -> Self {
Self::InsufficientBalance(value)
}
}
impl ::core::convert::From<InsufficientNodes> for SwitchboardErrors {
fn from(value: InsufficientNodes) -> Self {
Self::InsufficientNodes(value)
}
}
impl ::core::convert::From<InsufficientSamples> for SwitchboardErrors {
fn from(value: InsufficientSamples) -> Self {
Self::InsufficientSamples(value)
}
}
impl ::core::convert::From<IntervalHistoryNotRecorded> for SwitchboardErrors {
fn from(value: IntervalHistoryNotRecorded) -> Self {
Self::IntervalHistoryNotRecorded(value)
}
}
impl ::core::convert::From<InvalidArgument> for SwitchboardErrors {
fn from(value: InvalidArgument) -> Self {
Self::InvalidArgument(value)
}
}
impl ::core::convert::From<InvalidAuthority> for SwitchboardErrors {
fn from(value: InvalidAuthority) -> Self {
Self::InvalidAuthority(value)
}
}
impl ::core::convert::From<InvalidEnclave> for SwitchboardErrors {
fn from(value: InvalidEnclave) -> Self {
Self::InvalidEnclave(value)
}
}
impl ::core::convert::From<InvalidEntry> for SwitchboardErrors {
fn from(value: InvalidEntry) -> Self {
Self::InvalidEntry(value)
}
}
impl ::core::convert::From<InvalidSignature> for SwitchboardErrors {
fn from(value: InvalidSignature) -> Self {
Self::InvalidSignature(value)
}
}
impl ::core::convert::From<MrEnclaveNotAllowed> for SwitchboardErrors {
fn from(value: MrEnclaveNotAllowed) -> Self {
Self::MrEnclaveNotAllowed(value)
}
}
impl ::core::convert::From<OracleAlreadyExists> for SwitchboardErrors {
fn from(value: OracleAlreadyExists) -> Self {
Self::OracleAlreadyExists(value)
}
}
impl ::core::convert::From<OracleQueueDoesNotExist> for SwitchboardErrors {
fn from(value: OracleQueueDoesNotExist) -> Self {
Self::OracleQueueDoesNotExist(value)
}
}
impl ::core::convert::From<PermissionDenied> for SwitchboardErrors {
fn from(value: PermissionDenied) -> Self {
Self::PermissionDenied(value)
}
}
impl ::core::convert::From<QueuesDoNotMatch> for SwitchboardErrors {
fn from(value: QueuesDoNotMatch) -> Self {
Self::QueuesDoNotMatch(value)
}
}
impl ::core::convert::From<TransactionExpired> for SwitchboardErrors {
fn from(value: TransactionExpired) -> Self {
Self::TransactionExpired(value)
}
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "AddMrEnclave", abi = "AddMrEnclave(address,bytes32)")]
pub struct AddMrEnclaveFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorAccountInit",
abi = "AggregatorAccountInit(address,address,uint256)"
)]
pub struct AggregatorAccountInitFilter {
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub account_id: ::ethers::core::types::Address,
pub timestamp: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorFundEvent",
abi = "AggregatorFundEvent(address,address,uint256)"
)]
pub struct AggregatorFundEventFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub funder: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorIntervalRefreshed",
abi = "AggregatorIntervalRefreshed(address,uint256,uint256)"
)]
pub struct AggregatorIntervalRefreshedFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub interval_id: ::ethers::core::types::U256,
#[ethevent(indexed)]
pub balance_left_for_interval: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorOpenInterval",
abi = "AggregatorOpenInterval(address,uint256)"
)]
pub struct AggregatorOpenIntervalFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub interval_id: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorRead",
abi = "AggregatorRead(address,address,int256)"
)]
pub struct AggregatorReadFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub reader: ::ethers::core::types::Address,
pub value: ::ethers::core::types::I256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorSaveResult",
abi = "AggregatorSaveResult(address,address,int256)"
)]
pub struct AggregatorSaveResultFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub oracle: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub value: ::ethers::core::types::I256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorSettingsUpdated",
abi = "AggregatorSettingsUpdated(address,uint256,uint256,uint256,uint256,uint256)"
)]
pub struct AggregatorSettingsUpdatedFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
pub min_update_delay_seconds: ::ethers::core::types::U256,
pub min_oracle_results: ::ethers::core::types::U256,
pub variance_threshold: ::ethers::core::types::U256,
pub min_job_results: ::ethers::core::types::U256,
pub force_report_period: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorUpdate",
abi = "AggregatorUpdate(address,int256,uint256)"
)]
pub struct AggregatorUpdateFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub value: ::ethers::core::types::I256,
pub timestamp: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AggregatorWithdrawEvent",
abi = "AggregatorWithdrawEvent(address,address,uint256)"
)]
pub struct AggregatorWithdrawEventFilter {
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub funder: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AttestationQueueAccountInit",
abi = "AttestationQueueAccountInit(address,address)"
)]
pub struct AttestationQueueAccountInitFilter {
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub account_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AttestationQueuePermissionUpdated",
abi = "AttestationQueuePermissionUpdated(address,address,address,uint256)"
)]
pub struct AttestationQueuePermissionUpdatedFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub granter: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub grantee: ::ethers::core::types::Address,
pub permission: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "AttestationQueueSetConfig",
abi = "AttestationQueueSetConfig(address,address)"
)]
pub struct AttestationQueueSetConfigFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "DiamondCut",
abi = "DiamondCut((address,uint8,bytes4[])[],address,bytes)"
)]
pub struct DiamondCutFilter {
pub diamond_cut: ::std::vec::Vec<FacetCut>,
pub init: ::ethers::core::types::Address,
pub calldata: ::ethers::core::types::Bytes,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "EnclaveAccountInit",
abi = "EnclaveAccountInit(address,address)"
)]
pub struct EnclaveAccountInitFilter {
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub account_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "EnclaveGC", abi = "EnclaveGC(address,address)")]
pub struct EnclaveGCFilter {
#[ethevent(indexed)]
pub enclave_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub queue: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "EnclaveHeartbeat", abi = "EnclaveHeartbeat(address,address)")]
pub struct EnclaveHeartbeatFilter {
#[ethevent(indexed)]
pub enclave_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "EnclavePayoutEvent",
abi = "EnclavePayoutEvent(address,address,uint256)"
)]
pub struct EnclavePayoutEventFilter {
#[ethevent(indexed)]
pub node_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub enclave_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "EnclaveRotateAuthority",
abi = "EnclaveRotateAuthority(address,address,address)"
)]
pub struct EnclaveRotateAuthorityFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub old_authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub new_authority: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "EnclaveVerifyRequest",
abi = "EnclaveVerifyRequest(address,address,address)"
)]
pub struct EnclaveVerifyRequestFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub verifier: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub verifiee: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "FunctionAccountInit",
abi = "FunctionAccountInit(address,address)"
)]
pub struct FunctionAccountInitFilter {
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub account_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "FunctionCall",
abi = "FunctionCall(address,address,uint256,bytes)"
)]
pub struct FunctionCallFilter {
#[ethevent(indexed)]
pub function_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub sender: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub call_id: ::ethers::core::types::U256,
pub params: ::ethers::core::types::Bytes,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "FunctionFund", abi = "FunctionFund(address,address,uint256)")]
pub struct FunctionFundFilter {
#[ethevent(indexed)]
pub function_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub funder: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "FunctionWithdraw",
abi = "FunctionWithdraw(address,address,uint256)"
)]
pub struct FunctionWithdrawFilter {
#[ethevent(indexed)]
pub function_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub withdrawer: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "OracleAccountInit", abi = "OracleAccountInit(address,address)")]
pub struct OracleAccountInitFilter {
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub account_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "OracleGC", abi = "OracleGC(address,address)")]
pub struct OracleGCFilter {
#[ethevent(indexed)]
pub oracle_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "OracleHeartbeat", abi = "OracleHeartbeat(address)")]
pub struct OracleHeartbeatFilter {
#[ethevent(indexed)]
pub oracle_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OraclePayoutEvent",
abi = "OraclePayoutEvent(address,address,uint256)"
)]
pub struct OraclePayoutEventFilter {
#[ethevent(indexed)]
pub oracle_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub aggregator_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OracleQueueAccountInit",
abi = "OracleQueueAccountInit(address,address)"
)]
pub struct OracleQueueAccountInitFilter {
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub account_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OracleQueueAddMrEnclave",
abi = "OracleQueueAddMrEnclave(address,address,bytes32)"
)]
pub struct OracleQueueAddMrEnclaveFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub attestation_queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OracleQueueRemoveMrEnclave",
abi = "OracleQueueRemoveMrEnclave(address,address,bytes32)"
)]
pub struct OracleQueueRemoveMrEnclaveFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub attestation_queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OracleQueueSetAttestationConfig",
abi = "OracleQueueSetAttestationConfig(address,address)"
)]
pub struct OracleQueueSetAttestationConfigFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub attestation_queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OracleQueueSetConfig",
abi = "OracleQueueSetConfig(address,address)"
)]
pub struct OracleQueueSetConfigFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OracleQueueSetPermission",
abi = "OracleQueueSetPermission(address,address,address,uint256)"
)]
pub struct OracleQueueSetPermissionFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub granter: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub grantee: ::ethers::core::types::Address,
pub permission: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OracleSetConfig",
abi = "OracleSetConfig(address,string,address,address)"
)]
pub struct OracleSetConfigFilter {
#[ethevent(indexed)]
pub oracle_id: ::ethers::core::types::Address,
pub name: ::std::string::String,
#[ethevent(indexed)]
pub authority: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(
name = "OwnershipTransferred",
abi = "OwnershipTransferred(address,address)"
)]
pub struct OwnershipTransferredFilter {
#[ethevent(indexed)]
pub previous_owner: ::ethers::core::types::Address,
#[ethevent(indexed)]
pub new_owner: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthEvent,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethevent(name = "RemoveMrEnclave", abi = "RemoveMrEnclave(address,bytes32)")]
pub struct RemoveMrEnclaveFilter {
#[ethevent(indexed)]
pub queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
pub enum SwitchboardEvents {
AddMrEnclaveFilter(AddMrEnclaveFilter),
AggregatorAccountInitFilter(AggregatorAccountInitFilter),
AggregatorFundEventFilter(AggregatorFundEventFilter),
AggregatorIntervalRefreshedFilter(AggregatorIntervalRefreshedFilter),
AggregatorOpenIntervalFilter(AggregatorOpenIntervalFilter),
AggregatorReadFilter(AggregatorReadFilter),
AggregatorSaveResultFilter(AggregatorSaveResultFilter),
AggregatorSettingsUpdatedFilter(AggregatorSettingsUpdatedFilter),
AggregatorUpdateFilter(AggregatorUpdateFilter),
AggregatorWithdrawEventFilter(AggregatorWithdrawEventFilter),
AttestationQueueAccountInitFilter(AttestationQueueAccountInitFilter),
AttestationQueuePermissionUpdatedFilter(AttestationQueuePermissionUpdatedFilter),
AttestationQueueSetConfigFilter(AttestationQueueSetConfigFilter),
DiamondCutFilter(DiamondCutFilter),
EnclaveAccountInitFilter(EnclaveAccountInitFilter),
EnclaveGCFilter(EnclaveGCFilter),
EnclaveHeartbeatFilter(EnclaveHeartbeatFilter),
EnclavePayoutEventFilter(EnclavePayoutEventFilter),
EnclaveRotateAuthorityFilter(EnclaveRotateAuthorityFilter),
EnclaveVerifyRequestFilter(EnclaveVerifyRequestFilter),
FunctionAccountInitFilter(FunctionAccountInitFilter),
FunctionCallFilter(FunctionCallFilter),
FunctionFundFilter(FunctionFundFilter),
FunctionWithdrawFilter(FunctionWithdrawFilter),
OracleAccountInitFilter(OracleAccountInitFilter),
OracleGCFilter(OracleGCFilter),
OracleHeartbeatFilter(OracleHeartbeatFilter),
OraclePayoutEventFilter(OraclePayoutEventFilter),
OracleQueueAccountInitFilter(OracleQueueAccountInitFilter),
OracleQueueAddMrEnclaveFilter(OracleQueueAddMrEnclaveFilter),
OracleQueueRemoveMrEnclaveFilter(OracleQueueRemoveMrEnclaveFilter),
OracleQueueSetAttestationConfigFilter(OracleQueueSetAttestationConfigFilter),
OracleQueueSetConfigFilter(OracleQueueSetConfigFilter),
OracleQueueSetPermissionFilter(OracleQueueSetPermissionFilter),
OracleSetConfigFilter(OracleSetConfigFilter),
OwnershipTransferredFilter(OwnershipTransferredFilter),
RemoveMrEnclaveFilter(RemoveMrEnclaveFilter),
}
impl ::ethers::contract::EthLogDecode for SwitchboardEvents {
fn decode_log(
log: &::ethers::core::abi::RawLog,
) -> ::core::result::Result<Self, ::ethers::core::abi::Error> {
if let Ok(decoded) = AddMrEnclaveFilter::decode_log(log) {
return Ok(SwitchboardEvents::AddMrEnclaveFilter(decoded));
}
if let Ok(decoded) = AggregatorAccountInitFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorAccountInitFilter(decoded));
}
if let Ok(decoded) = AggregatorFundEventFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorFundEventFilter(decoded));
}
if let Ok(decoded) = AggregatorIntervalRefreshedFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorIntervalRefreshedFilter(
decoded,
));
}
if let Ok(decoded) = AggregatorOpenIntervalFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorOpenIntervalFilter(decoded));
}
if let Ok(decoded) = AggregatorReadFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorReadFilter(decoded));
}
if let Ok(decoded) = AggregatorSaveResultFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorSaveResultFilter(decoded));
}
if let Ok(decoded) = AggregatorSettingsUpdatedFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorSettingsUpdatedFilter(decoded));
}
if let Ok(decoded) = AggregatorUpdateFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorUpdateFilter(decoded));
}
if let Ok(decoded) = AggregatorWithdrawEventFilter::decode_log(log) {
return Ok(SwitchboardEvents::AggregatorWithdrawEventFilter(decoded));
}
if let Ok(decoded) = AttestationQueueAccountInitFilter::decode_log(log) {
return Ok(SwitchboardEvents::AttestationQueueAccountInitFilter(
decoded,
));
}
if let Ok(decoded) = AttestationQueuePermissionUpdatedFilter::decode_log(log) {
return Ok(SwitchboardEvents::AttestationQueuePermissionUpdatedFilter(
decoded,
));
}
if let Ok(decoded) = AttestationQueueSetConfigFilter::decode_log(log) {
return Ok(SwitchboardEvents::AttestationQueueSetConfigFilter(decoded));
}
if let Ok(decoded) = DiamondCutFilter::decode_log(log) {
return Ok(SwitchboardEvents::DiamondCutFilter(decoded));
}
if let Ok(decoded) = EnclaveAccountInitFilter::decode_log(log) {
return Ok(SwitchboardEvents::EnclaveAccountInitFilter(decoded));
}
if let Ok(decoded) = EnclaveGCFilter::decode_log(log) {
return Ok(SwitchboardEvents::EnclaveGCFilter(decoded));
}
if let Ok(decoded) = EnclaveHeartbeatFilter::decode_log(log) {
return Ok(SwitchboardEvents::EnclaveHeartbeatFilter(decoded));
}
if let Ok(decoded) = EnclavePayoutEventFilter::decode_log(log) {
return Ok(SwitchboardEvents::EnclavePayoutEventFilter(decoded));
}
if let Ok(decoded) = EnclaveRotateAuthorityFilter::decode_log(log) {
return Ok(SwitchboardEvents::EnclaveRotateAuthorityFilter(decoded));
}
if let Ok(decoded) = EnclaveVerifyRequestFilter::decode_log(log) {
return Ok(SwitchboardEvents::EnclaveVerifyRequestFilter(decoded));
}
if let Ok(decoded) = FunctionAccountInitFilter::decode_log(log) {
return Ok(SwitchboardEvents::FunctionAccountInitFilter(decoded));
}
if let Ok(decoded) = FunctionCallFilter::decode_log(log) {
return Ok(SwitchboardEvents::FunctionCallFilter(decoded));
}
if let Ok(decoded) = FunctionFundFilter::decode_log(log) {
return Ok(SwitchboardEvents::FunctionFundFilter(decoded));
}
if let Ok(decoded) = FunctionWithdrawFilter::decode_log(log) {
return Ok(SwitchboardEvents::FunctionWithdrawFilter(decoded));
}
if let Ok(decoded) = OracleAccountInitFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleAccountInitFilter(decoded));
}
if let Ok(decoded) = OracleGCFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleGCFilter(decoded));
}
if let Ok(decoded) = OracleHeartbeatFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleHeartbeatFilter(decoded));
}
if let Ok(decoded) = OraclePayoutEventFilter::decode_log(log) {
return Ok(SwitchboardEvents::OraclePayoutEventFilter(decoded));
}
if let Ok(decoded) = OracleQueueAccountInitFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleQueueAccountInitFilter(decoded));
}
if let Ok(decoded) = OracleQueueAddMrEnclaveFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleQueueAddMrEnclaveFilter(decoded));
}
if let Ok(decoded) = OracleQueueRemoveMrEnclaveFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleQueueRemoveMrEnclaveFilter(decoded));
}
if let Ok(decoded) = OracleQueueSetAttestationConfigFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleQueueSetAttestationConfigFilter(
decoded,
));
}
if let Ok(decoded) = OracleQueueSetConfigFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleQueueSetConfigFilter(decoded));
}
if let Ok(decoded) = OracleQueueSetPermissionFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleQueueSetPermissionFilter(decoded));
}
if let Ok(decoded) = OracleSetConfigFilter::decode_log(log) {
return Ok(SwitchboardEvents::OracleSetConfigFilter(decoded));
}
if let Ok(decoded) = OwnershipTransferredFilter::decode_log(log) {
return Ok(SwitchboardEvents::OwnershipTransferredFilter(decoded));
}
if let Ok(decoded) = RemoveMrEnclaveFilter::decode_log(log) {
return Ok(SwitchboardEvents::RemoveMrEnclaveFilter(decoded));
}
Err(::ethers::core::abi::Error::InvalidData)
}
}
impl ::core::fmt::Display for SwitchboardEvents {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
match self {
Self::AddMrEnclaveFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorAccountInitFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorFundEventFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorIntervalRefreshedFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AggregatorOpenIntervalFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AggregatorReadFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorSaveResultFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorSettingsUpdatedFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AggregatorUpdateFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorWithdrawEventFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AttestationQueueAccountInitFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AttestationQueuePermissionUpdatedFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AttestationQueueSetConfigFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::DiamondCutFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveAccountInitFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveGCFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveHeartbeatFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclavePayoutEventFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveRotateAuthorityFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::EnclaveVerifyRequestFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionAccountInitFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionCallFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionFundFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionWithdrawFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleAccountInitFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleGCFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleHeartbeatFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::OraclePayoutEventFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleQueueAccountInitFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::OracleQueueAddMrEnclaveFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::OracleQueueRemoveMrEnclaveFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::OracleQueueSetAttestationConfigFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::OracleQueueSetConfigFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleQueueSetPermissionFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::OracleSetConfigFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::OwnershipTransferredFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::RemoveMrEnclaveFilter(element) => ::core::fmt::Display::fmt(element, f),
}
}
}
impl ::core::convert::From<AddMrEnclaveFilter> for SwitchboardEvents {
fn from(value: AddMrEnclaveFilter) -> Self {
Self::AddMrEnclaveFilter(value)
}
}
impl ::core::convert::From<AggregatorAccountInitFilter> for SwitchboardEvents {
fn from(value: AggregatorAccountInitFilter) -> Self {
Self::AggregatorAccountInitFilter(value)
}
}
impl ::core::convert::From<AggregatorFundEventFilter> for SwitchboardEvents {
fn from(value: AggregatorFundEventFilter) -> Self {
Self::AggregatorFundEventFilter(value)
}
}
impl ::core::convert::From<AggregatorIntervalRefreshedFilter> for SwitchboardEvents {
fn from(value: AggregatorIntervalRefreshedFilter) -> Self {
Self::AggregatorIntervalRefreshedFilter(value)
}
}
impl ::core::convert::From<AggregatorOpenIntervalFilter> for SwitchboardEvents {
fn from(value: AggregatorOpenIntervalFilter) -> Self {
Self::AggregatorOpenIntervalFilter(value)
}
}
impl ::core::convert::From<AggregatorReadFilter> for SwitchboardEvents {
fn from(value: AggregatorReadFilter) -> Self {
Self::AggregatorReadFilter(value)
}
}
impl ::core::convert::From<AggregatorSaveResultFilter> for SwitchboardEvents {
fn from(value: AggregatorSaveResultFilter) -> Self {
Self::AggregatorSaveResultFilter(value)
}
}
impl ::core::convert::From<AggregatorSettingsUpdatedFilter> for SwitchboardEvents {
fn from(value: AggregatorSettingsUpdatedFilter) -> Self {
Self::AggregatorSettingsUpdatedFilter(value)
}
}
impl ::core::convert::From<AggregatorUpdateFilter> for SwitchboardEvents {
fn from(value: AggregatorUpdateFilter) -> Self {
Self::AggregatorUpdateFilter(value)
}
}
impl ::core::convert::From<AggregatorWithdrawEventFilter> for SwitchboardEvents {
fn from(value: AggregatorWithdrawEventFilter) -> Self {
Self::AggregatorWithdrawEventFilter(value)
}
}
impl ::core::convert::From<AttestationQueueAccountInitFilter> for SwitchboardEvents {
fn from(value: AttestationQueueAccountInitFilter) -> Self {
Self::AttestationQueueAccountInitFilter(value)
}
}
impl ::core::convert::From<AttestationQueuePermissionUpdatedFilter> for SwitchboardEvents {
fn from(value: AttestationQueuePermissionUpdatedFilter) -> Self {
Self::AttestationQueuePermissionUpdatedFilter(value)
}
}
impl ::core::convert::From<AttestationQueueSetConfigFilter> for SwitchboardEvents {
fn from(value: AttestationQueueSetConfigFilter) -> Self {
Self::AttestationQueueSetConfigFilter(value)
}
}
impl ::core::convert::From<DiamondCutFilter> for SwitchboardEvents {
fn from(value: DiamondCutFilter) -> Self {
Self::DiamondCutFilter(value)
}
}
impl ::core::convert::From<EnclaveAccountInitFilter> for SwitchboardEvents {
fn from(value: EnclaveAccountInitFilter) -> Self {
Self::EnclaveAccountInitFilter(value)
}
}
impl ::core::convert::From<EnclaveGCFilter> for SwitchboardEvents {
fn from(value: EnclaveGCFilter) -> Self {
Self::EnclaveGCFilter(value)
}
}
impl ::core::convert::From<EnclaveHeartbeatFilter> for SwitchboardEvents {
fn from(value: EnclaveHeartbeatFilter) -> Self {
Self::EnclaveHeartbeatFilter(value)
}
}
impl ::core::convert::From<EnclavePayoutEventFilter> for SwitchboardEvents {
fn from(value: EnclavePayoutEventFilter) -> Self {
Self::EnclavePayoutEventFilter(value)
}
}
impl ::core::convert::From<EnclaveRotateAuthorityFilter> for SwitchboardEvents {
fn from(value: EnclaveRotateAuthorityFilter) -> Self {
Self::EnclaveRotateAuthorityFilter(value)
}
}
impl ::core::convert::From<EnclaveVerifyRequestFilter> for SwitchboardEvents {
fn from(value: EnclaveVerifyRequestFilter) -> Self {
Self::EnclaveVerifyRequestFilter(value)
}
}
impl ::core::convert::From<FunctionAccountInitFilter> for SwitchboardEvents {
fn from(value: FunctionAccountInitFilter) -> Self {
Self::FunctionAccountInitFilter(value)
}
}
impl ::core::convert::From<FunctionCallFilter> for SwitchboardEvents {
fn from(value: FunctionCallFilter) -> Self {
Self::FunctionCallFilter(value)
}
}
impl ::core::convert::From<FunctionFundFilter> for SwitchboardEvents {
fn from(value: FunctionFundFilter) -> Self {
Self::FunctionFundFilter(value)
}
}
impl ::core::convert::From<FunctionWithdrawFilter> for SwitchboardEvents {
fn from(value: FunctionWithdrawFilter) -> Self {
Self::FunctionWithdrawFilter(value)
}
}
impl ::core::convert::From<OracleAccountInitFilter> for SwitchboardEvents {
fn from(value: OracleAccountInitFilter) -> Self {
Self::OracleAccountInitFilter(value)
}
}
impl ::core::convert::From<OracleGCFilter> for SwitchboardEvents {
fn from(value: OracleGCFilter) -> Self {
Self::OracleGCFilter(value)
}
}
impl ::core::convert::From<OracleHeartbeatFilter> for SwitchboardEvents {
fn from(value: OracleHeartbeatFilter) -> Self {
Self::OracleHeartbeatFilter(value)
}
}
impl ::core::convert::From<OraclePayoutEventFilter> for SwitchboardEvents {
fn from(value: OraclePayoutEventFilter) -> Self {
Self::OraclePayoutEventFilter(value)
}
}
impl ::core::convert::From<OracleQueueAccountInitFilter> for SwitchboardEvents {
fn from(value: OracleQueueAccountInitFilter) -> Self {
Self::OracleQueueAccountInitFilter(value)
}
}
impl ::core::convert::From<OracleQueueAddMrEnclaveFilter> for SwitchboardEvents {
fn from(value: OracleQueueAddMrEnclaveFilter) -> Self {
Self::OracleQueueAddMrEnclaveFilter(value)
}
}
impl ::core::convert::From<OracleQueueRemoveMrEnclaveFilter> for SwitchboardEvents {
fn from(value: OracleQueueRemoveMrEnclaveFilter) -> Self {
Self::OracleQueueRemoveMrEnclaveFilter(value)
}
}
impl ::core::convert::From<OracleQueueSetAttestationConfigFilter> for SwitchboardEvents {
fn from(value: OracleQueueSetAttestationConfigFilter) -> Self {
Self::OracleQueueSetAttestationConfigFilter(value)
}
}
impl ::core::convert::From<OracleQueueSetConfigFilter> for SwitchboardEvents {
fn from(value: OracleQueueSetConfigFilter) -> Self {
Self::OracleQueueSetConfigFilter(value)
}
}
impl ::core::convert::From<OracleQueueSetPermissionFilter> for SwitchboardEvents {
fn from(value: OracleQueueSetPermissionFilter) -> Self {
Self::OracleQueueSetPermissionFilter(value)
}
}
impl ::core::convert::From<OracleSetConfigFilter> for SwitchboardEvents {
fn from(value: OracleSetConfigFilter) -> Self {
Self::OracleSetConfigFilter(value)
}
}
impl ::core::convert::From<OwnershipTransferredFilter> for SwitchboardEvents {
fn from(value: OwnershipTransferredFilter) -> Self {
Self::OwnershipTransferredFilter(value)
}
}
impl ::core::convert::From<RemoveMrEnclaveFilter> for SwitchboardEvents {
fn from(value: RemoveMrEnclaveFilter) -> Self {
Self::RemoveMrEnclaveFilter(value)
}
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "addMrEnclaveToAttestationQueue",
abi = "addMrEnclaveToAttestationQueue(address,bytes32)"
)]
pub struct AddMrEnclaveToAttestationQueueCall {
pub queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "addMrEnclaveToOracleQueue",
abi = "addMrEnclaveToOracleQueue(address,bytes32)"
)]
pub struct AddMrEnclaveToOracleQueueCall {
pub queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "aggregatorEscrowFund", abi = "aggregatorEscrowFund(address)")]
pub struct AggregatorEscrowFundCall {
pub account_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "aggregatorEscrowWithdraw",
abi = "aggregatorEscrowWithdraw(address,address,uint256)"
)]
pub struct AggregatorEscrowWithdrawCall {
pub recipient: ::ethers::core::types::Address,
pub aggregator_id: ::ethers::core::types::Address,
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "aggregatorHistory", abi = "aggregatorHistory(address,uint80)")]
pub struct AggregatorHistoryCall {
pub aggregator_id: ::ethers::core::types::Address,
pub round_id: u128,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "aggregators", abi = "aggregators(address)")]
pub struct AggregatorsCall {
pub aggregator_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "attestationQueueHasMrEnclave",
abi = "attestationQueueHasMrEnclave(address,bytes32)"
)]
pub struct AttestationQueueHasMrEnclaveCall {
pub queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "attestationQueues", abi = "attestationQueues(address)")]
pub struct AttestationQueuesCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "callFunction", abi = "callFunction(address,bytes)")]
pub struct CallFunctionCall {
pub function_id: ::ethers::core::types::Address,
pub params: ::ethers::core::types::Bytes,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "createAggregator",
abi = "createAggregator(string,address,uint256,uint256,uint256,string,address,uint256,uint256,uint256,bool)"
)]
pub struct CreateAggregatorCall {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub batch_size: ::ethers::core::types::U256,
pub min_update_delay_seconds: ::ethers::core::types::U256,
pub min_oracle_results: ::ethers::core::types::U256,
pub jobs_hash: ::std::string::String,
pub queue_id: ::ethers::core::types::Address,
pub variance_threshold: ::ethers::core::types::U256,
pub min_job_results: ::ethers::core::types::U256,
pub force_report_period: ::ethers::core::types::U256,
pub enable_history: bool,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "createAttestationQueue",
abi = "createAttestationQueue(address,uint256,uint256,uint256,uint256,uint256,bool,bool,uint256)"
)]
pub struct CreateAttestationQueueCall {
pub authority: ::ethers::core::types::Address,
pub max_size: ::ethers::core::types::U256,
pub reward: ::ethers::core::types::U256,
pub enclave_timeout: ::ethers::core::types::U256,
pub max_enclave_verification_age: ::ethers::core::types::U256,
pub allow_authority_override_after: ::ethers::core::types::U256,
pub require_authority_heartbeat_permission: bool,
pub require_usage_permissions: bool,
pub max_consecutive_function_failures: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "createEnclave", abi = "createEnclave(address,address,address)")]
pub struct CreateEnclaveCall {
pub authority: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
pub owner: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "createEnclaveWithId",
abi = "createEnclaveWithId(address,address,address,address)"
)]
pub struct CreateEnclaveWithIdCall {
pub enclave_id: ::ethers::core::types::Address,
pub authority: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
pub owner: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "createFunction",
abi = "createFunction(string,address,address,string,string,bytes32,string,address[])"
)]
pub struct CreateFunctionCall {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
pub container_registry: ::std::string::String,
pub container: ::std::string::String,
pub version: [u8; 32],
pub schedule: ::std::string::String,
pub permitted_callers: ::std::vec::Vec<::ethers::core::types::Address>,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "createOracle", abi = "createOracle(string,address,address)")]
pub struct CreateOracleCall {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "createOracleQueue",
abi = "createOracleQueue(string,address,bool,uint256,uint256,uint256)"
)]
pub struct CreateOracleQueueCall {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub unpermissioned_feeds_enabled: bool,
pub max_size: ::ethers::core::types::U256,
pub reward: ::ethers::core::types::U256,
pub oracle_timeout: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "createOracleWithId",
abi = "createOracleWithId(address,string,address,address)"
)]
pub struct CreateOracleWithIdCall {
pub oracle_id: ::ethers::core::types::Address,
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "diamondCut",
abi = "diamondCut((address,uint8,bytes4[])[],address,bytes)"
)]
pub struct DiamondCutCall {
pub diamond_cut: ::std::vec::Vec<FacetCut>,
pub init: ::ethers::core::types::Address,
pub calldata: ::ethers::core::types::Bytes,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "enclaveAuthorityToEnclaveAddress",
abi = "enclaveAuthorityToEnclaveAddress(address)"
)]
pub struct EnclaveAuthorityToEnclaveAddressCall {
pub authority: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "enclaveGarbageCollect",
abi = "enclaveGarbageCollect(address,uint256)"
)]
pub struct EnclaveGarbageCollectCall {
pub enclave_id: ::ethers::core::types::Address,
pub enclave_idx: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "enclaveHeartbeat", abi = "enclaveHeartbeat(address)")]
pub struct EnclaveHeartbeatCall {
pub enclave_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "enclaves", abi = "enclaves(address)")]
pub struct EnclavesCall {
pub enclave_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "facetAddress", abi = "facetAddress(bytes4)")]
pub struct FacetAddressCall {
pub function_selector: [u8; 4],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "facetAddresses", abi = "facetAddresses()")]
pub struct FacetAddressesCall;
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "facetFunctionSelectors",
abi = "facetFunctionSelectors(address)"
)]
pub struct FacetFunctionSelectorsCall {
pub facet: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "facets", abi = "facets()")]
pub struct FacetsCall;
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "failEnclave", abi = "failEnclave(address,address,uint256)")]
pub struct FailEnclaveCall {
pub verifier_id: ::ethers::core::types::Address,
pub enclave_id: ::ethers::core::types::Address,
pub enclave_idx: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "forceOverrideVerify", abi = "forceOverrideVerify(address)")]
pub struct ForceOverrideVerifyCall {
pub enclave_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "forward",
abi = "forward((uint256,uint256,uint256,address,address,bytes)[],bytes[])"
)]
pub struct ForwardCall {
pub transactions: ::std::vec::Vec<Transaction>,
pub signatures: ::std::vec::Vec<::ethers::core::types::Bytes>,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "funcs", abi = "funcs(address)")]
pub struct FuncsCall {
pub function_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "functionEscrowFund", abi = "functionEscrowFund(address)")]
pub struct FunctionEscrowFundCall {
pub account_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "functionEscrowWithdraw",
abi = "functionEscrowWithdraw(address,address,uint256)"
)]
pub struct FunctionEscrowWithdrawCall {
pub recipient: ::ethers::core::types::Address,
pub function_id: ::ethers::core::types::Address,
pub amount: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "functionExists", abi = "functionExists(address)")]
pub struct FunctionExistsCall {
pub function_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "getActiveFunctionsByQueue",
abi = "getActiveFunctionsByQueue(address)"
)]
pub struct GetActiveFunctionsByQueueCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "getAggregatorsByAuthority",
abi = "getAggregatorsByAuthority(address)"
)]
pub struct GetAggregatorsByAuthorityCall {
pub user: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getAllAggregators", abi = "getAllAggregators()")]
pub struct GetAllAggregatorsCall;
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getAllFunctions", abi = "getAllFunctions()")]
pub struct GetAllFunctionsCall;
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "getAllUnexecutedFunctionCalls",
abi = "getAllUnexecutedFunctionCalls(address)"
)]
pub struct GetAllUnexecutedFunctionCallsCall {
pub function_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "getAttestationQueueMrEnclaves",
abi = "getAttestationQueueMrEnclaves(address)"
)]
pub struct GetAttestationQueueMrEnclavesCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getCurrentIntervalId", abi = "getCurrentIntervalId(address)")]
pub struct GetCurrentIntervalIdCall {
pub aggregator_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getEnclaveIdx", abi = "getEnclaveIdx(address)")]
pub struct GetEnclaveIdxCall {
pub enclave_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getEnclaves", abi = "getEnclaves(address)")]
pub struct GetEnclavesCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "getFunctionsByAuthority",
abi = "getFunctionsByAuthority(address)"
)]
pub struct GetFunctionsByAuthorityCall {
pub user: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getIntervalResult", abi = "getIntervalResult(address,uint80)")]
pub struct GetIntervalResultCall {
pub aggregator_id: ::ethers::core::types::Address,
pub interval_id: u128,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getOracleIdx", abi = "getOracleIdx(address)")]
pub struct GetOracleIdxCall {
pub oracle_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "getOracleQueueAllowedMrEnclaves",
abi = "getOracleQueueAllowedMrEnclaves(address)"
)]
pub struct GetOracleQueueAllowedMrEnclavesCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getOracles", abi = "getOracles(address)")]
pub struct GetOraclesCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "getPermission", abi = "getPermission(address,address)")]
pub struct GetPermissionCall {
pub granter: ::ethers::core::types::Address,
pub grantee: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "getTransactionHash",
abi = "getTransactionHash(uint256,uint256,uint256,address,address,bytes)"
)]
pub struct GetTransactionHashCall {
pub expiration_time_seconds: ::ethers::core::types::U256,
pub gas_limit: ::ethers::core::types::U256,
pub value: ::ethers::core::types::U256,
pub to: ::ethers::core::types::Address,
pub from: ::ethers::core::types::Address,
pub data: ::ethers::core::types::Bytes,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "hasPermission", abi = "hasPermission(address,address,uint256)")]
pub struct HasPermissionCall {
pub granter: ::ethers::core::types::Address,
pub grantee: ::ethers::core::types::Address,
pub permission: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "init", abi = "init()")]
pub struct InitCall;
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "isEnclaveValid", abi = "isEnclaveValid(address)")]
pub struct IsEnclaveValidCall {
pub enclave_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "isTrustedForwarder", abi = "isTrustedForwarder(address)")]
pub struct IsTrustedForwarderCall(pub ::ethers::core::types::Address);
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "latestResult", abi = "latestResult(address)")]
pub struct LatestResultCall {
pub aggregator_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "openInterval", abi = "openInterval(address)")]
pub struct OpenIntervalCall {
pub aggregator_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "oracleGarbageCollect",
abi = "oracleGarbageCollect(address,uint256)"
)]
pub struct OracleGarbageCollectCall {
pub oracle_id: ::ethers::core::types::Address,
pub oracle_idx: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "oracleHeartbeat", abi = "oracleHeartbeat(address)")]
pub struct OracleHeartbeatCall {
pub oracle_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "oracleQueues", abi = "oracleQueues(address)")]
pub struct OracleQueuesCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "oracles", abi = "oracles(address)")]
pub struct OraclesCall {
pub oracle_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "owner", abi = "owner()")]
pub struct OwnerCall;
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "queueAttestationConfigs",
abi = "queueAttestationConfigs(address)"
)]
pub struct QueueAttestationConfigsCall {
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "removeMrEnclaveFromAttestationQueue",
abi = "removeMrEnclaveFromAttestationQueue(address,bytes32)"
)]
pub struct RemoveMrEnclaveFromAttestationQueueCall {
pub queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "removeMrEnclaveFromOracleQueue",
abi = "removeMrEnclaveFromOracleQueue(address,bytes32)"
)]
pub struct RemoveMrEnclaveFromOracleQueueCall {
pub queue_id: ::ethers::core::types::Address,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "rotateAuthority", abi = "rotateAuthority(address,address)")]
pub struct RotateAuthorityCall {
pub enclave_id: ::ethers::core::types::Address,
pub new_authority: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "saveResults",
abi = "saveResults(address[],int256[],address,uint256)"
)]
pub struct SaveResultsCall {
pub ids: ::std::vec::Vec<::ethers::core::types::Address>,
pub results: ::std::vec::Vec<::ethers::core::types::I256>,
pub queue_id: ::ethers::core::types::Address,
pub oracle_idx: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "setAggregatorConfig",
abi = "setAggregatorConfig(address,string,address,uint256,uint256,uint256,string,address,uint256,uint256,uint256,bool)"
)]
pub struct SetAggregatorConfigCall {
pub aggregator_id: ::ethers::core::types::Address,
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub batch_size: ::ethers::core::types::U256,
pub min_update_delay_seconds: ::ethers::core::types::U256,
pub min_oracle_results: ::ethers::core::types::U256,
pub jobs_hash: ::std::string::String,
pub queue_id: ::ethers::core::types::Address,
pub variance_threshold: ::ethers::core::types::U256,
pub min_job_results: ::ethers::core::types::U256,
pub force_report_period: ::ethers::core::types::U256,
pub enable_history: bool,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "setAttestationQueueConfig",
abi = "setAttestationQueueConfig(address,address,uint256,uint256,uint256,uint256,uint256,bool,bool,uint256)"
)]
pub struct SetAttestationQueueConfigCall {
pub queue_id: ::ethers::core::types::Address,
pub authority: ::ethers::core::types::Address,
pub max_size: ::ethers::core::types::U256,
pub reward: ::ethers::core::types::U256,
pub enclave_timeout: ::ethers::core::types::U256,
pub max_enclave_verification_age: ::ethers::core::types::U256,
pub allow_authority_override_after: ::ethers::core::types::U256,
pub require_authority_heartbeat_permission: bool,
pub require_usage_permissions: bool,
pub max_consecutive_function_failures: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "setAttestationQueuePermission",
abi = "setAttestationQueuePermission(address,address,uint256,bool)"
)]
pub struct SetAttestationQueuePermissionCall {
pub queue_id: ::ethers::core::types::Address,
pub grantee: ::ethers::core::types::Address,
pub permission: ::ethers::core::types::U256,
pub on: bool,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "setOracleConfig",
abi = "setOracleConfig(address,string,address,address)"
)]
pub struct SetOracleConfigCall {
pub oracle_id: ::ethers::core::types::Address,
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "setOracleQueueAttestationConfig",
abi = "setOracleQueueAttestationConfig(address,address,bytes32[],bool,bool)"
)]
pub struct SetOracleQueueAttestationConfigCall {
pub queue_id: ::ethers::core::types::Address,
pub attestation_queue_id: ::ethers::core::types::Address,
pub mr_enclaves: ::std::vec::Vec<[u8; 32]>,
pub require_valid_enclave: bool,
pub require_heartbeat_permission: bool,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "setOracleQueueConfig",
abi = "setOracleQueueConfig(address,string,address,bool,uint256,uint256,uint256)"
)]
pub struct SetOracleQueueConfigCall {
pub queue_id: ::ethers::core::types::Address,
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub unpermissioned_feeds_enabled: bool,
pub max_size: ::ethers::core::types::U256,
pub reward: ::ethers::core::types::U256,
pub oracle_timeout: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "setOracleQueuePermission",
abi = "setOracleQueuePermission(address,address,uint256,bool)"
)]
pub struct SetOracleQueuePermissionCall {
pub queue_id: ::ethers::core::types::Address,
pub grantee: ::ethers::core::types::Address,
pub permission: ::ethers::core::types::U256,
pub on: bool,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "supportsInterface", abi = "supportsInterface(bytes4)")]
pub struct SupportsInterfaceCall {
pub interface_id: [u8; 4],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "transferOwnership", abi = "transferOwnership(address)")]
pub struct TransferOwnershipCall {
pub new_owner: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "updateEnclave", abi = "updateEnclave(address,bytes)")]
pub struct UpdateEnclaveCall {
pub enclave_id: ::ethers::core::types::Address,
pub cid: ::ethers::core::types::Bytes,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "validate", abi = "validate(address,address,bytes32[])")]
pub struct ValidateCall {
pub authority: ::ethers::core::types::Address,
pub attestation_queue_id: ::ethers::core::types::Address,
pub valid_measurements: ::std::vec::Vec<[u8; 32]>,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "verifyEnclave",
abi = "verifyEnclave(address,address,uint256,uint256,bytes32)"
)]
pub struct VerifyEnclaveCall {
pub verifier_id: ::ethers::core::types::Address,
pub enclave_id: ::ethers::core::types::Address,
pub enclave_idx: ::ethers::core::types::U256,
pub timestamp: ::ethers::core::types::U256,
pub mr_enclave: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(
name = "verifyFunction",
abi = "verifyFunction(uint256,address,address,uint256,uint256,bool,bytes32,(uint256,uint256,uint256,address,address,bytes)[],bytes[])"
)]
pub struct VerifyFunctionCall {
pub enclave_idx: ::ethers::core::types::U256,
pub function_id: ::ethers::core::types::Address,
pub delegated_signer_address: ::ethers::core::types::Address,
pub observed_time: ::ethers::core::types::U256,
pub next_allowed_timestamp: ::ethers::core::types::U256,
pub is_failure: bool,
pub mr_enclave: [u8; 32],
pub transactions: ::std::vec::Vec<Transaction>,
pub signatures: ::std::vec::Vec<::ethers::core::types::Bytes>,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "viewAggregatorResults", abi = "viewAggregatorResults(address)")]
pub struct ViewAggregatorResultsCall {
pub aggregator_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthCall,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[ethcall(name = "viewLatestResult", abi = "viewLatestResult(address)")]
pub struct ViewLatestResultCall {
pub aggregator_id: ::ethers::core::types::Address,
}
#[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
pub enum SwitchboardCalls {
AddMrEnclaveToAttestationQueue(AddMrEnclaveToAttestationQueueCall),
AddMrEnclaveToOracleQueue(AddMrEnclaveToOracleQueueCall),
AggregatorEscrowFund(AggregatorEscrowFundCall),
AggregatorEscrowWithdraw(AggregatorEscrowWithdrawCall),
AggregatorHistory(AggregatorHistoryCall),
Aggregators(AggregatorsCall),
AttestationQueueHasMrEnclave(AttestationQueueHasMrEnclaveCall),
AttestationQueues(AttestationQueuesCall),
CallFunction(CallFunctionCall),
CreateAggregator(CreateAggregatorCall),
CreateAttestationQueue(CreateAttestationQueueCall),
CreateEnclave(CreateEnclaveCall),
CreateEnclaveWithId(CreateEnclaveWithIdCall),
CreateFunction(CreateFunctionCall),
CreateOracle(CreateOracleCall),
CreateOracleQueue(CreateOracleQueueCall),
CreateOracleWithId(CreateOracleWithIdCall),
DiamondCut(DiamondCutCall),
EnclaveAuthorityToEnclaveAddress(EnclaveAuthorityToEnclaveAddressCall),
EnclaveGarbageCollect(EnclaveGarbageCollectCall),
EnclaveHeartbeat(EnclaveHeartbeatCall),
Enclaves(EnclavesCall),
FacetAddress(FacetAddressCall),
FacetAddresses(FacetAddressesCall),
FacetFunctionSelectors(FacetFunctionSelectorsCall),
Facets(FacetsCall),
FailEnclave(FailEnclaveCall),
ForceOverrideVerify(ForceOverrideVerifyCall),
Forward(ForwardCall),
Funcs(FuncsCall),
FunctionEscrowFund(FunctionEscrowFundCall),
FunctionEscrowWithdraw(FunctionEscrowWithdrawCall),
FunctionExists(FunctionExistsCall),
GetActiveFunctionsByQueue(GetActiveFunctionsByQueueCall),
GetAggregatorsByAuthority(GetAggregatorsByAuthorityCall),
GetAllAggregators(GetAllAggregatorsCall),
GetAllFunctions(GetAllFunctionsCall),
GetAllUnexecutedFunctionCalls(GetAllUnexecutedFunctionCallsCall),
GetAttestationQueueMrEnclaves(GetAttestationQueueMrEnclavesCall),
GetCurrentIntervalId(GetCurrentIntervalIdCall),
GetEnclaveIdx(GetEnclaveIdxCall),
GetEnclaves(GetEnclavesCall),
GetFunctionsByAuthority(GetFunctionsByAuthorityCall),
GetIntervalResult(GetIntervalResultCall),
GetOracleIdx(GetOracleIdxCall),
GetOracleQueueAllowedMrEnclaves(GetOracleQueueAllowedMrEnclavesCall),
GetOracles(GetOraclesCall),
GetPermission(GetPermissionCall),
GetTransactionHash(GetTransactionHashCall),
HasPermission(HasPermissionCall),
Init(InitCall),
IsEnclaveValid(IsEnclaveValidCall),
IsTrustedForwarder(IsTrustedForwarderCall),
LatestResult(LatestResultCall),
OpenInterval(OpenIntervalCall),
OracleGarbageCollect(OracleGarbageCollectCall),
OracleHeartbeat(OracleHeartbeatCall),
OracleQueues(OracleQueuesCall),
Oracles(OraclesCall),
Owner(OwnerCall),
QueueAttestationConfigs(QueueAttestationConfigsCall),
RemoveMrEnclaveFromAttestationQueue(RemoveMrEnclaveFromAttestationQueueCall),
RemoveMrEnclaveFromOracleQueue(RemoveMrEnclaveFromOracleQueueCall),
RotateAuthority(RotateAuthorityCall),
SaveResults(SaveResultsCall),
SetAggregatorConfig(SetAggregatorConfigCall),
SetAttestationQueueConfig(SetAttestationQueueConfigCall),
SetAttestationQueuePermission(SetAttestationQueuePermissionCall),
SetOracleConfig(SetOracleConfigCall),
SetOracleQueueAttestationConfig(SetOracleQueueAttestationConfigCall),
SetOracleQueueConfig(SetOracleQueueConfigCall),
SetOracleQueuePermission(SetOracleQueuePermissionCall),
SupportsInterface(SupportsInterfaceCall),
TransferOwnership(TransferOwnershipCall),
UpdateEnclave(UpdateEnclaveCall),
Validate(ValidateCall),
VerifyEnclave(VerifyEnclaveCall),
VerifyFunction(VerifyFunctionCall),
ViewAggregatorResults(ViewAggregatorResultsCall),
ViewLatestResult(ViewLatestResultCall),
}
impl ::ethers::core::abi::AbiDecode for SwitchboardCalls {
fn decode(
data: impl AsRef<[u8]>,
) -> ::core::result::Result<Self, ::ethers::core::abi::AbiError> {
let data = data.as_ref();
if let Ok(decoded) =
<AddMrEnclaveToAttestationQueueCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AddMrEnclaveToAttestationQueue(decoded));
}
if let Ok(decoded) =
<AddMrEnclaveToOracleQueueCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AddMrEnclaveToOracleQueue(decoded));
}
if let Ok(decoded) =
<AggregatorEscrowFundCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AggregatorEscrowFund(decoded));
}
if let Ok(decoded) =
<AggregatorEscrowWithdrawCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AggregatorEscrowWithdraw(decoded));
}
if let Ok(decoded) =
<AggregatorHistoryCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AggregatorHistory(decoded));
}
if let Ok(decoded) = <AggregatorsCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Aggregators(decoded));
}
if let Ok(decoded) =
<AttestationQueueHasMrEnclaveCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AttestationQueueHasMrEnclave(decoded));
}
if let Ok(decoded) =
<AttestationQueuesCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AttestationQueues(decoded));
}
if let Ok(decoded) = <CallFunctionCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CallFunction(decoded));
}
if let Ok(decoded) =
<CreateAggregatorCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateAggregator(decoded));
}
if let Ok(decoded) =
<CreateAttestationQueueCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateAttestationQueue(decoded));
}
if let Ok(decoded) = <CreateEnclaveCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateEnclave(decoded));
}
if let Ok(decoded) =
<CreateEnclaveWithIdCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateEnclaveWithId(decoded));
}
if let Ok(decoded) =
<CreateFunctionCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateFunction(decoded));
}
if let Ok(decoded) = <CreateOracleCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateOracle(decoded));
}
if let Ok(decoded) =
<CreateOracleQueueCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateOracleQueue(decoded));
}
if let Ok(decoded) =
<CreateOracleWithIdCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CreateOracleWithId(decoded));
}
if let Ok(decoded) = <DiamondCutCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::DiamondCut(decoded));
}
if let Ok(decoded) =
<EnclaveAuthorityToEnclaveAddressCall as ::ethers::core::abi::AbiDecode>::decode(
data,
)
{
return Ok(Self::EnclaveAuthorityToEnclaveAddress(decoded));
}
if let Ok(decoded) =
<EnclaveGarbageCollectCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::EnclaveGarbageCollect(decoded));
}
if let Ok(decoded) =
<EnclaveHeartbeatCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::EnclaveHeartbeat(decoded));
}
if let Ok(decoded) = <EnclavesCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Enclaves(decoded));
}
if let Ok(decoded) = <FacetAddressCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FacetAddress(decoded));
}
if let Ok(decoded) =
<FacetAddressesCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FacetAddresses(decoded));
}
if let Ok(decoded) =
<FacetFunctionSelectorsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FacetFunctionSelectors(decoded));
}
if let Ok(decoded) = <FacetsCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Facets(decoded));
}
if let Ok(decoded) = <FailEnclaveCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::FailEnclave(decoded));
}
if let Ok(decoded) =
<ForceOverrideVerifyCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ForceOverrideVerify(decoded));
}
if let Ok(decoded) = <ForwardCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Forward(decoded));
}
if let Ok(decoded) = <FuncsCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Funcs(decoded));
}
if let Ok(decoded) =
<FunctionEscrowFundCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FunctionEscrowFund(decoded));
}
if let Ok(decoded) =
<FunctionEscrowWithdrawCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FunctionEscrowWithdraw(decoded));
}
if let Ok(decoded) =
<FunctionExistsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::FunctionExists(decoded));
}
if let Ok(decoded) =
<GetActiveFunctionsByQueueCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetActiveFunctionsByQueue(decoded));
}
if let Ok(decoded) =
<GetAggregatorsByAuthorityCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetAggregatorsByAuthority(decoded));
}
if let Ok(decoded) =
<GetAllAggregatorsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetAllAggregators(decoded));
}
if let Ok(decoded) =
<GetAllFunctionsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetAllFunctions(decoded));
}
if let Ok(decoded) =
<GetAllUnexecutedFunctionCallsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetAllUnexecutedFunctionCalls(decoded));
}
if let Ok(decoded) =
<GetAttestationQueueMrEnclavesCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetAttestationQueueMrEnclaves(decoded));
}
if let Ok(decoded) =
<GetCurrentIntervalIdCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetCurrentIntervalId(decoded));
}
if let Ok(decoded) = <GetEnclaveIdxCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetEnclaveIdx(decoded));
}
if let Ok(decoded) = <GetEnclavesCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::GetEnclaves(decoded));
}
if let Ok(decoded) =
<GetFunctionsByAuthorityCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetFunctionsByAuthority(decoded));
}
if let Ok(decoded) =
<GetIntervalResultCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetIntervalResult(decoded));
}
if let Ok(decoded) = <GetOracleIdxCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetOracleIdx(decoded));
}
if let Ok(decoded) =
<GetOracleQueueAllowedMrEnclavesCall as ::ethers::core::abi::AbiDecode>::decode(
data,
)
{
return Ok(Self::GetOracleQueueAllowedMrEnclaves(decoded));
}
if let Ok(decoded) = <GetOraclesCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::GetOracles(decoded));
}
if let Ok(decoded) = <GetPermissionCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetPermission(decoded));
}
if let Ok(decoded) =
<GetTransactionHashCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::GetTransactionHash(decoded));
}
if let Ok(decoded) = <HasPermissionCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::HasPermission(decoded));
}
if let Ok(decoded) = <InitCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Init(decoded));
}
if let Ok(decoded) =
<IsEnclaveValidCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::IsEnclaveValid(decoded));
}
if let Ok(decoded) =
<IsTrustedForwarderCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::IsTrustedForwarder(decoded));
}
if let Ok(decoded) = <LatestResultCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::LatestResult(decoded));
}
if let Ok(decoded) = <OpenIntervalCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::OpenInterval(decoded));
}
if let Ok(decoded) =
<OracleGarbageCollectCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::OracleGarbageCollect(decoded));
}
if let Ok(decoded) =
<OracleHeartbeatCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::OracleHeartbeat(decoded));
}
if let Ok(decoded) = <OracleQueuesCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::OracleQueues(decoded));
}
if let Ok(decoded) = <OraclesCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Oracles(decoded));
}
if let Ok(decoded) = <OwnerCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Owner(decoded));
}
if let Ok(decoded) =
<QueueAttestationConfigsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::QueueAttestationConfigs(decoded));
}
if let Ok(decoded) =
<RemoveMrEnclaveFromAttestationQueueCall as ::ethers::core::abi::AbiDecode>::decode(
data,
)
{
return Ok(Self::RemoveMrEnclaveFromAttestationQueue(decoded));
}
if let Ok(decoded) =
<RemoveMrEnclaveFromOracleQueueCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::RemoveMrEnclaveFromOracleQueue(decoded));
}
if let Ok(decoded) =
<RotateAuthorityCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::RotateAuthority(decoded));
}
if let Ok(decoded) = <SaveResultsCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::SaveResults(decoded));
}
if let Ok(decoded) =
<SetAggregatorConfigCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetAggregatorConfig(decoded));
}
if let Ok(decoded) =
<SetAttestationQueueConfigCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetAttestationQueueConfig(decoded));
}
if let Ok(decoded) =
<SetAttestationQueuePermissionCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetAttestationQueuePermission(decoded));
}
if let Ok(decoded) =
<SetOracleConfigCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetOracleConfig(decoded));
}
if let Ok(decoded) =
<SetOracleQueueAttestationConfigCall as ::ethers::core::abi::AbiDecode>::decode(
data,
)
{
return Ok(Self::SetOracleQueueAttestationConfig(decoded));
}
if let Ok(decoded) =
<SetOracleQueueConfigCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetOracleQueueConfig(decoded));
}
if let Ok(decoded) =
<SetOracleQueuePermissionCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetOracleQueuePermission(decoded));
}
if let Ok(decoded) =
<SupportsInterfaceCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SupportsInterface(decoded));
}
if let Ok(decoded) =
<TransferOwnershipCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::TransferOwnership(decoded));
}
if let Ok(decoded) = <UpdateEnclaveCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::UpdateEnclave(decoded));
}
if let Ok(decoded) = <ValidateCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Validate(decoded));
}
if let Ok(decoded) = <VerifyEnclaveCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::VerifyEnclave(decoded));
}
if let Ok(decoded) =
<VerifyFunctionCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::VerifyFunction(decoded));
}
if let Ok(decoded) =
<ViewAggregatorResultsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ViewAggregatorResults(decoded));
}
if let Ok(decoded) =
<ViewLatestResultCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ViewLatestResult(decoded));
}
Err(::ethers::core::abi::Error::InvalidData.into())
}
}
impl ::ethers::core::abi::AbiEncode for SwitchboardCalls {
fn encode(self) -> Vec<u8> {
match self {
Self::AddMrEnclaveToAttestationQueue(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AddMrEnclaveToOracleQueue(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AggregatorEscrowFund(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AggregatorEscrowWithdraw(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AggregatorHistory(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::Aggregators(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::AttestationQueueHasMrEnclave(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::AttestationQueues(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::CallFunction(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::CreateAggregator(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::CreateAttestationQueue(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::CreateEnclave(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::CreateEnclaveWithId(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::CreateFunction(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::CreateOracle(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::CreateOracleQueue(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::CreateOracleWithId(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::DiamondCut(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::EnclaveAuthorityToEnclaveAddress(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::EnclaveGarbageCollect(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::EnclaveHeartbeat(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::Enclaves(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::FacetAddress(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::FacetAddresses(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::FacetFunctionSelectors(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::Facets(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::FailEnclave(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::ForceOverrideVerify(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::Forward(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::Funcs(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::FunctionEscrowFund(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::FunctionEscrowWithdraw(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::FunctionExists(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetActiveFunctionsByQueue(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GetAggregatorsByAuthority(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GetAllAggregators(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetAllFunctions(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetAllUnexecutedFunctionCalls(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GetAttestationQueueMrEnclaves(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GetCurrentIntervalId(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GetEnclaveIdx(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetEnclaves(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetFunctionsByAuthority(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GetIntervalResult(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetOracleIdx(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetOracleQueueAllowedMrEnclaves(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::GetOracles(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetPermission(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::GetTransactionHash(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::HasPermission(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::Init(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::IsEnclaveValid(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::IsTrustedForwarder(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::LatestResult(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::OpenInterval(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::OracleGarbageCollect(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::OracleHeartbeat(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::OracleQueues(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::Oracles(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::Owner(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::QueueAttestationConfigs(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::RemoveMrEnclaveFromAttestationQueue(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::RemoveMrEnclaveFromOracleQueue(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::RotateAuthority(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::SaveResults(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::SetAggregatorConfig(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::SetAttestationQueueConfig(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::SetAttestationQueuePermission(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::SetOracleConfig(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::SetOracleQueueAttestationConfig(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::SetOracleQueueConfig(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::SetOracleQueuePermission(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::SupportsInterface(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::TransferOwnership(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::UpdateEnclave(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::Validate(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::VerifyEnclave(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::VerifyFunction(element) => ::ethers::core::abi::AbiEncode::encode(element),
Self::ViewAggregatorResults(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::ViewLatestResult(element) => ::ethers::core::abi::AbiEncode::encode(element),
}
}
}
impl ::core::fmt::Display for SwitchboardCalls {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
match self {
Self::AddMrEnclaveToAttestationQueue(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AddMrEnclaveToOracleQueue(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorEscrowFund(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorEscrowWithdraw(element) => ::core::fmt::Display::fmt(element, f),
Self::AggregatorHistory(element) => ::core::fmt::Display::fmt(element, f),
Self::Aggregators(element) => ::core::fmt::Display::fmt(element, f),
Self::AttestationQueueHasMrEnclave(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::AttestationQueues(element) => ::core::fmt::Display::fmt(element, f),
Self::CallFunction(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateAggregator(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateAttestationQueue(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateEnclave(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateEnclaveWithId(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateFunction(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateOracle(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateOracleQueue(element) => ::core::fmt::Display::fmt(element, f),
Self::CreateOracleWithId(element) => ::core::fmt::Display::fmt(element, f),
Self::DiamondCut(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveAuthorityToEnclaveAddress(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::EnclaveGarbageCollect(element) => ::core::fmt::Display::fmt(element, f),
Self::EnclaveHeartbeat(element) => ::core::fmt::Display::fmt(element, f),
Self::Enclaves(element) => ::core::fmt::Display::fmt(element, f),
Self::FacetAddress(element) => ::core::fmt::Display::fmt(element, f),
Self::FacetAddresses(element) => ::core::fmt::Display::fmt(element, f),
Self::FacetFunctionSelectors(element) => ::core::fmt::Display::fmt(element, f),
Self::Facets(element) => ::core::fmt::Display::fmt(element, f),
Self::FailEnclave(element) => ::core::fmt::Display::fmt(element, f),
Self::ForceOverrideVerify(element) => ::core::fmt::Display::fmt(element, f),
Self::Forward(element) => ::core::fmt::Display::fmt(element, f),
Self::Funcs(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionEscrowFund(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionEscrowWithdraw(element) => ::core::fmt::Display::fmt(element, f),
Self::FunctionExists(element) => ::core::fmt::Display::fmt(element, f),
Self::GetActiveFunctionsByQueue(element) => ::core::fmt::Display::fmt(element, f),
Self::GetAggregatorsByAuthority(element) => ::core::fmt::Display::fmt(element, f),
Self::GetAllAggregators(element) => ::core::fmt::Display::fmt(element, f),
Self::GetAllFunctions(element) => ::core::fmt::Display::fmt(element, f),
Self::GetAllUnexecutedFunctionCalls(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::GetAttestationQueueMrEnclaves(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::GetCurrentIntervalId(element) => ::core::fmt::Display::fmt(element, f),
Self::GetEnclaveIdx(element) => ::core::fmt::Display::fmt(element, f),
Self::GetEnclaves(element) => ::core::fmt::Display::fmt(element, f),
Self::GetFunctionsByAuthority(element) => ::core::fmt::Display::fmt(element, f),
Self::GetIntervalResult(element) => ::core::fmt::Display::fmt(element, f),
Self::GetOracleIdx(element) => ::core::fmt::Display::fmt(element, f),
Self::GetOracleQueueAllowedMrEnclaves(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::GetOracles(element) => ::core::fmt::Display::fmt(element, f),
Self::GetPermission(element) => ::core::fmt::Display::fmt(element, f),
Self::GetTransactionHash(element) => ::core::fmt::Display::fmt(element, f),
Self::HasPermission(element) => ::core::fmt::Display::fmt(element, f),
Self::Init(element) => ::core::fmt::Display::fmt(element, f),
Self::IsEnclaveValid(element) => ::core::fmt::Display::fmt(element, f),
Self::IsTrustedForwarder(element) => ::core::fmt::Display::fmt(element, f),
Self::LatestResult(element) => ::core::fmt::Display::fmt(element, f),
Self::OpenInterval(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleGarbageCollect(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleHeartbeat(element) => ::core::fmt::Display::fmt(element, f),
Self::OracleQueues(element) => ::core::fmt::Display::fmt(element, f),
Self::Oracles(element) => ::core::fmt::Display::fmt(element, f),
Self::Owner(element) => ::core::fmt::Display::fmt(element, f),
Self::QueueAttestationConfigs(element) => ::core::fmt::Display::fmt(element, f),
Self::RemoveMrEnclaveFromAttestationQueue(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::RemoveMrEnclaveFromOracleQueue(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::RotateAuthority(element) => ::core::fmt::Display::fmt(element, f),
Self::SaveResults(element) => ::core::fmt::Display::fmt(element, f),
Self::SetAggregatorConfig(element) => ::core::fmt::Display::fmt(element, f),
Self::SetAttestationQueueConfig(element) => ::core::fmt::Display::fmt(element, f),
Self::SetAttestationQueuePermission(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::SetOracleConfig(element) => ::core::fmt::Display::fmt(element, f),
Self::SetOracleQueueAttestationConfig(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::SetOracleQueueConfig(element) => ::core::fmt::Display::fmt(element, f),
Self::SetOracleQueuePermission(element) => ::core::fmt::Display::fmt(element, f),
Self::SupportsInterface(element) => ::core::fmt::Display::fmt(element, f),
Self::TransferOwnership(element) => ::core::fmt::Display::fmt(element, f),
Self::UpdateEnclave(element) => ::core::fmt::Display::fmt(element, f),
Self::Validate(element) => ::core::fmt::Display::fmt(element, f),
Self::VerifyEnclave(element) => ::core::fmt::Display::fmt(element, f),
Self::VerifyFunction(element) => ::core::fmt::Display::fmt(element, f),
Self::ViewAggregatorResults(element) => ::core::fmt::Display::fmt(element, f),
Self::ViewLatestResult(element) => ::core::fmt::Display::fmt(element, f),
}
}
}
impl ::core::convert::From<AddMrEnclaveToAttestationQueueCall> for SwitchboardCalls {
fn from(value: AddMrEnclaveToAttestationQueueCall) -> Self {
Self::AddMrEnclaveToAttestationQueue(value)
}
}
impl ::core::convert::From<AddMrEnclaveToOracleQueueCall> for SwitchboardCalls {
fn from(value: AddMrEnclaveToOracleQueueCall) -> Self {
Self::AddMrEnclaveToOracleQueue(value)
}
}
impl ::core::convert::From<AggregatorEscrowFundCall> for SwitchboardCalls {
fn from(value: AggregatorEscrowFundCall) -> Self {
Self::AggregatorEscrowFund(value)
}
}
impl ::core::convert::From<AggregatorEscrowWithdrawCall> for SwitchboardCalls {
fn from(value: AggregatorEscrowWithdrawCall) -> Self {
Self::AggregatorEscrowWithdraw(value)
}
}
impl ::core::convert::From<AggregatorHistoryCall> for SwitchboardCalls {
fn from(value: AggregatorHistoryCall) -> Self {
Self::AggregatorHistory(value)
}
}
impl ::core::convert::From<AggregatorsCall> for SwitchboardCalls {
fn from(value: AggregatorsCall) -> Self {
Self::Aggregators(value)
}
}
impl ::core::convert::From<AttestationQueueHasMrEnclaveCall> for SwitchboardCalls {
fn from(value: AttestationQueueHasMrEnclaveCall) -> Self {
Self::AttestationQueueHasMrEnclave(value)
}
}
impl ::core::convert::From<AttestationQueuesCall> for SwitchboardCalls {
fn from(value: AttestationQueuesCall) -> Self {
Self::AttestationQueues(value)
}
}
impl ::core::convert::From<CallFunctionCall> for SwitchboardCalls {
fn from(value: CallFunctionCall) -> Self {
Self::CallFunction(value)
}
}
impl ::core::convert::From<CreateAggregatorCall> for SwitchboardCalls {
fn from(value: CreateAggregatorCall) -> Self {
Self::CreateAggregator(value)
}
}
impl ::core::convert::From<CreateAttestationQueueCall> for SwitchboardCalls {
fn from(value: CreateAttestationQueueCall) -> Self {
Self::CreateAttestationQueue(value)
}
}
impl ::core::convert::From<CreateEnclaveCall> for SwitchboardCalls {
fn from(value: CreateEnclaveCall) -> Self {
Self::CreateEnclave(value)
}
}
impl ::core::convert::From<CreateEnclaveWithIdCall> for SwitchboardCalls {
fn from(value: CreateEnclaveWithIdCall) -> Self {
Self::CreateEnclaveWithId(value)
}
}
impl ::core::convert::From<CreateFunctionCall> for SwitchboardCalls {
fn from(value: CreateFunctionCall) -> Self {
Self::CreateFunction(value)
}
}
impl ::core::convert::From<CreateOracleCall> for SwitchboardCalls {
fn from(value: CreateOracleCall) -> Self {
Self::CreateOracle(value)
}
}
impl ::core::convert::From<CreateOracleQueueCall> for SwitchboardCalls {
fn from(value: CreateOracleQueueCall) -> Self {
Self::CreateOracleQueue(value)
}
}
impl ::core::convert::From<CreateOracleWithIdCall> for SwitchboardCalls {
fn from(value: CreateOracleWithIdCall) -> Self {
Self::CreateOracleWithId(value)
}
}
impl ::core::convert::From<DiamondCutCall> for SwitchboardCalls {
fn from(value: DiamondCutCall) -> Self {
Self::DiamondCut(value)
}
}
impl ::core::convert::From<EnclaveAuthorityToEnclaveAddressCall> for SwitchboardCalls {
fn from(value: EnclaveAuthorityToEnclaveAddressCall) -> Self {
Self::EnclaveAuthorityToEnclaveAddress(value)
}
}
impl ::core::convert::From<EnclaveGarbageCollectCall> for SwitchboardCalls {
fn from(value: EnclaveGarbageCollectCall) -> Self {
Self::EnclaveGarbageCollect(value)
}
}
impl ::core::convert::From<EnclaveHeartbeatCall> for SwitchboardCalls {
fn from(value: EnclaveHeartbeatCall) -> Self {
Self::EnclaveHeartbeat(value)
}
}
impl ::core::convert::From<EnclavesCall> for SwitchboardCalls {
fn from(value: EnclavesCall) -> Self {
Self::Enclaves(value)
}
}
impl ::core::convert::From<FacetAddressCall> for SwitchboardCalls {
fn from(value: FacetAddressCall) -> Self {
Self::FacetAddress(value)
}
}
impl ::core::convert::From<FacetAddressesCall> for SwitchboardCalls {
fn from(value: FacetAddressesCall) -> Self {
Self::FacetAddresses(value)
}
}
impl ::core::convert::From<FacetFunctionSelectorsCall> for SwitchboardCalls {
fn from(value: FacetFunctionSelectorsCall) -> Self {
Self::FacetFunctionSelectors(value)
}
}
impl ::core::convert::From<FacetsCall> for SwitchboardCalls {
fn from(value: FacetsCall) -> Self {
Self::Facets(value)
}
}
impl ::core::convert::From<FailEnclaveCall> for SwitchboardCalls {
fn from(value: FailEnclaveCall) -> Self {
Self::FailEnclave(value)
}
}
impl ::core::convert::From<ForceOverrideVerifyCall> for SwitchboardCalls {
fn from(value: ForceOverrideVerifyCall) -> Self {
Self::ForceOverrideVerify(value)
}
}
impl ::core::convert::From<ForwardCall> for SwitchboardCalls {
fn from(value: ForwardCall) -> Self {
Self::Forward(value)
}
}
impl ::core::convert::From<FuncsCall> for SwitchboardCalls {
fn from(value: FuncsCall) -> Self {
Self::Funcs(value)
}
}
impl ::core::convert::From<FunctionEscrowFundCall> for SwitchboardCalls {
fn from(value: FunctionEscrowFundCall) -> Self {
Self::FunctionEscrowFund(value)
}
}
impl ::core::convert::From<FunctionEscrowWithdrawCall> for SwitchboardCalls {
fn from(value: FunctionEscrowWithdrawCall) -> Self {
Self::FunctionEscrowWithdraw(value)
}
}
impl ::core::convert::From<FunctionExistsCall> for SwitchboardCalls {
fn from(value: FunctionExistsCall) -> Self {
Self::FunctionExists(value)
}
}
impl ::core::convert::From<GetActiveFunctionsByQueueCall> for SwitchboardCalls {
fn from(value: GetActiveFunctionsByQueueCall) -> Self {
Self::GetActiveFunctionsByQueue(value)
}
}
impl ::core::convert::From<GetAggregatorsByAuthorityCall> for SwitchboardCalls {
fn from(value: GetAggregatorsByAuthorityCall) -> Self {
Self::GetAggregatorsByAuthority(value)
}
}
impl ::core::convert::From<GetAllAggregatorsCall> for SwitchboardCalls {
fn from(value: GetAllAggregatorsCall) -> Self {
Self::GetAllAggregators(value)
}
}
impl ::core::convert::From<GetAllFunctionsCall> for SwitchboardCalls {
fn from(value: GetAllFunctionsCall) -> Self {
Self::GetAllFunctions(value)
}
}
impl ::core::convert::From<GetAllUnexecutedFunctionCallsCall> for SwitchboardCalls {
fn from(value: GetAllUnexecutedFunctionCallsCall) -> Self {
Self::GetAllUnexecutedFunctionCalls(value)
}
}
impl ::core::convert::From<GetAttestationQueueMrEnclavesCall> for SwitchboardCalls {
fn from(value: GetAttestationQueueMrEnclavesCall) -> Self {
Self::GetAttestationQueueMrEnclaves(value)
}
}
impl ::core::convert::From<GetCurrentIntervalIdCall> for SwitchboardCalls {
fn from(value: GetCurrentIntervalIdCall) -> Self {
Self::GetCurrentIntervalId(value)
}
}
impl ::core::convert::From<GetEnclaveIdxCall> for SwitchboardCalls {
fn from(value: GetEnclaveIdxCall) -> Self {
Self::GetEnclaveIdx(value)
}
}
impl ::core::convert::From<GetEnclavesCall> for SwitchboardCalls {
fn from(value: GetEnclavesCall) -> Self {
Self::GetEnclaves(value)
}
}
impl ::core::convert::From<GetFunctionsByAuthorityCall> for SwitchboardCalls {
fn from(value: GetFunctionsByAuthorityCall) -> Self {
Self::GetFunctionsByAuthority(value)
}
}
impl ::core::convert::From<GetIntervalResultCall> for SwitchboardCalls {
fn from(value: GetIntervalResultCall) -> Self {
Self::GetIntervalResult(value)
}
}
impl ::core::convert::From<GetOracleIdxCall> for SwitchboardCalls {
fn from(value: GetOracleIdxCall) -> Self {
Self::GetOracleIdx(value)
}
}
impl ::core::convert::From<GetOracleQueueAllowedMrEnclavesCall> for SwitchboardCalls {
fn from(value: GetOracleQueueAllowedMrEnclavesCall) -> Self {
Self::GetOracleQueueAllowedMrEnclaves(value)
}
}
impl ::core::convert::From<GetOraclesCall> for SwitchboardCalls {
fn from(value: GetOraclesCall) -> Self {
Self::GetOracles(value)
}
}
impl ::core::convert::From<GetPermissionCall> for SwitchboardCalls {
fn from(value: GetPermissionCall) -> Self {
Self::GetPermission(value)
}
}
impl ::core::convert::From<GetTransactionHashCall> for SwitchboardCalls {
fn from(value: GetTransactionHashCall) -> Self {
Self::GetTransactionHash(value)
}
}
impl ::core::convert::From<HasPermissionCall> for SwitchboardCalls {
fn from(value: HasPermissionCall) -> Self {
Self::HasPermission(value)
}
}
impl ::core::convert::From<InitCall> for SwitchboardCalls {
fn from(value: InitCall) -> Self {
Self::Init(value)
}
}
impl ::core::convert::From<IsEnclaveValidCall> for SwitchboardCalls {
fn from(value: IsEnclaveValidCall) -> Self {
Self::IsEnclaveValid(value)
}
}
impl ::core::convert::From<IsTrustedForwarderCall> for SwitchboardCalls {
fn from(value: IsTrustedForwarderCall) -> Self {
Self::IsTrustedForwarder(value)
}
}
impl ::core::convert::From<LatestResultCall> for SwitchboardCalls {
fn from(value: LatestResultCall) -> Self {
Self::LatestResult(value)
}
}
impl ::core::convert::From<OpenIntervalCall> for SwitchboardCalls {
fn from(value: OpenIntervalCall) -> Self {
Self::OpenInterval(value)
}
}
impl ::core::convert::From<OracleGarbageCollectCall> for SwitchboardCalls {
fn from(value: OracleGarbageCollectCall) -> Self {
Self::OracleGarbageCollect(value)
}
}
impl ::core::convert::From<OracleHeartbeatCall> for SwitchboardCalls {
fn from(value: OracleHeartbeatCall) -> Self {
Self::OracleHeartbeat(value)
}
}
impl ::core::convert::From<OracleQueuesCall> for SwitchboardCalls {
fn from(value: OracleQueuesCall) -> Self {
Self::OracleQueues(value)
}
}
impl ::core::convert::From<OraclesCall> for SwitchboardCalls {
fn from(value: OraclesCall) -> Self {
Self::Oracles(value)
}
}
impl ::core::convert::From<OwnerCall> for SwitchboardCalls {
fn from(value: OwnerCall) -> Self {
Self::Owner(value)
}
}
impl ::core::convert::From<QueueAttestationConfigsCall> for SwitchboardCalls {
fn from(value: QueueAttestationConfigsCall) -> Self {
Self::QueueAttestationConfigs(value)
}
}
impl ::core::convert::From<RemoveMrEnclaveFromAttestationQueueCall> for SwitchboardCalls {
fn from(value: RemoveMrEnclaveFromAttestationQueueCall) -> Self {
Self::RemoveMrEnclaveFromAttestationQueue(value)
}
}
impl ::core::convert::From<RemoveMrEnclaveFromOracleQueueCall> for SwitchboardCalls {
fn from(value: RemoveMrEnclaveFromOracleQueueCall) -> Self {
Self::RemoveMrEnclaveFromOracleQueue(value)
}
}
impl ::core::convert::From<RotateAuthorityCall> for SwitchboardCalls {
fn from(value: RotateAuthorityCall) -> Self {
Self::RotateAuthority(value)
}
}
impl ::core::convert::From<SaveResultsCall> for SwitchboardCalls {
fn from(value: SaveResultsCall) -> Self {
Self::SaveResults(value)
}
}
impl ::core::convert::From<SetAggregatorConfigCall> for SwitchboardCalls {
fn from(value: SetAggregatorConfigCall) -> Self {
Self::SetAggregatorConfig(value)
}
}
impl ::core::convert::From<SetAttestationQueueConfigCall> for SwitchboardCalls {
fn from(value: SetAttestationQueueConfigCall) -> Self {
Self::SetAttestationQueueConfig(value)
}
}
impl ::core::convert::From<SetAttestationQueuePermissionCall> for SwitchboardCalls {
fn from(value: SetAttestationQueuePermissionCall) -> Self {
Self::SetAttestationQueuePermission(value)
}
}
impl ::core::convert::From<SetOracleConfigCall> for SwitchboardCalls {
fn from(value: SetOracleConfigCall) -> Self {
Self::SetOracleConfig(value)
}
}
impl ::core::convert::From<SetOracleQueueAttestationConfigCall> for SwitchboardCalls {
fn from(value: SetOracleQueueAttestationConfigCall) -> Self {
Self::SetOracleQueueAttestationConfig(value)
}
}
impl ::core::convert::From<SetOracleQueueConfigCall> for SwitchboardCalls {
fn from(value: SetOracleQueueConfigCall) -> Self {
Self::SetOracleQueueConfig(value)
}
}
impl ::core::convert::From<SetOracleQueuePermissionCall> for SwitchboardCalls {
fn from(value: SetOracleQueuePermissionCall) -> Self {
Self::SetOracleQueuePermission(value)
}
}
impl ::core::convert::From<SupportsInterfaceCall> for SwitchboardCalls {
fn from(value: SupportsInterfaceCall) -> Self {
Self::SupportsInterface(value)
}
}
impl ::core::convert::From<TransferOwnershipCall> for SwitchboardCalls {
fn from(value: TransferOwnershipCall) -> Self {
Self::TransferOwnership(value)
}
}
impl ::core::convert::From<UpdateEnclaveCall> for SwitchboardCalls {
fn from(value: UpdateEnclaveCall) -> Self {
Self::UpdateEnclave(value)
}
}
impl ::core::convert::From<ValidateCall> for SwitchboardCalls {
fn from(value: ValidateCall) -> Self {
Self::Validate(value)
}
}
impl ::core::convert::From<VerifyEnclaveCall> for SwitchboardCalls {
fn from(value: VerifyEnclaveCall) -> Self {
Self::VerifyEnclave(value)
}
}
impl ::core::convert::From<VerifyFunctionCall> for SwitchboardCalls {
fn from(value: VerifyFunctionCall) -> Self {
Self::VerifyFunction(value)
}
}
impl ::core::convert::From<ViewAggregatorResultsCall> for SwitchboardCalls {
fn from(value: ViewAggregatorResultsCall) -> Self {
Self::ViewAggregatorResults(value)
}
}
impl ::core::convert::From<ViewLatestResultCall> for SwitchboardCalls {
fn from(value: ViewLatestResultCall) -> Self {
Self::ViewLatestResult(value)
}
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AggregatorHistoryReturn(pub AggregatorHistoryResult);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AggregatorsReturn(pub Aggregator);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AttestationQueueHasMrEnclaveReturn(pub bool);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AttestationQueuesReturn(pub AttestationQueue);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct EnclaveAuthorityToEnclaveAddressReturn(pub ::ethers::core::types::Address);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct EnclavesReturn(pub Enclave);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FacetAddressReturn {
pub facet_address: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FacetAddressesReturn {
pub facet_addresses: ::std::vec::Vec<::ethers::core::types::Address>,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FacetFunctionSelectorsReturn {
pub facet_function_selectors: ::std::vec::Vec<[u8; 4]>,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FacetsReturn {
pub facets: ::std::vec::Vec<Facet>,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FuncsReturn(pub SbFunction);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FunctionExistsReturn(pub bool);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetActiveFunctionsByQueueReturn(
pub ::std::vec::Vec<::ethers::core::types::Address>,
pub ::std::vec::Vec<SbFunction>,
);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetAggregatorsByAuthorityReturn(
pub ::std::vec::Vec<::ethers::core::types::Address>,
pub ::std::vec::Vec<Aggregator>,
);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetAllAggregatorsReturn(
pub ::std::vec::Vec<::ethers::core::types::Address>,
pub ::std::vec::Vec<Aggregator>,
);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetAllFunctionsReturn(
pub ::std::vec::Vec<::ethers::core::types::Address>,
pub ::std::vec::Vec<SbFunction>,
);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetAllUnexecutedFunctionCallsReturn(pub ::std::vec::Vec<FunctionCall>);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetAttestationQueueMrEnclavesReturn(pub ::std::vec::Vec<[u8; 32]>);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetCurrentIntervalIdReturn {
pub round_id: u128,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetEnclaveIdxReturn(pub ::ethers::core::types::I256);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetEnclavesReturn(pub ::std::vec::Vec<::ethers::core::types::Address>);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetFunctionsByAuthorityReturn(
pub ::std::vec::Vec<::ethers::core::types::Address>,
pub ::std::vec::Vec<SbFunction>,
);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetIntervalResultReturn {
pub value: ::ethers::core::types::I256,
pub timestamp: ::ethers::core::types::U256,
pub median_timestamp: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetOracleIdxReturn(pub ::ethers::core::types::I256);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetOracleQueueAllowedMrEnclavesReturn(pub ::std::vec::Vec<[u8; 32]>);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetOraclesReturn(pub ::std::vec::Vec<::ethers::core::types::Address>);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetPermissionReturn(pub ::ethers::core::types::U256);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct GetTransactionHashReturn(pub [u8; 32]);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct HasPermissionReturn(pub bool);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct IsEnclaveValidReturn(pub bool);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct IsTrustedForwarderReturn(pub bool);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct LatestResultReturn {
pub value: ::ethers::core::types::I256,
pub timestamp: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct OracleQueuesReturn(pub OracleQueue);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct OraclesReturn(pub Oracle);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct OwnerReturn {
pub owner: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct QueueAttestationConfigsReturn(pub AttestationConfig);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct SupportsInterfaceReturn(pub bool);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct ViewAggregatorResultsReturn(pub ::std::vec::Vec<Result>);
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct ViewLatestResultReturn {
pub value: ::ethers::core::types::I256,
pub timestamp: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct Aggregator {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub latest_result: Result,
pub config: AggregatorConfig,
pub jobs_hash: ::std::string::String,
pub queue_id: ::ethers::core::types::Address,
pub balance_left_for_interval: ::ethers::core::types::U256,
pub next_interval_refresh_time: ::ethers::core::types::U256,
pub interval_id: u128,
pub balance: ::ethers::core::types::U256,
pub history_enabled: bool,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AggregatorConfig {
pub batch_size: ::ethers::core::types::U256,
pub min_update_delay_seconds: ::ethers::core::types::U256,
pub min_oracle_results: ::ethers::core::types::U256,
pub variance_threshold: ::ethers::core::types::U256,
pub min_job_results: ::ethers::core::types::U256,
pub force_report_period: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AggregatorHistoryResult {
pub value: ::ethers::core::types::I256,
pub timestamp: ::ethers::core::types::U256,
pub median_timestamp: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct Result {
pub value: ::ethers::core::types::I256,
pub timestamp: ::ethers::core::types::U256,
pub oracle_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AttestationQueue {
pub authority: ::ethers::core::types::Address,
pub data: ::std::vec::Vec<::ethers::core::types::Address>,
pub max_size: ::ethers::core::types::U256,
pub reward: ::ethers::core::types::U256,
pub last_heartbeat: ::ethers::core::types::U256,
pub mr_enclaves: ::std::vec::Vec<[u8; 32]>,
pub max_enclave_verification_age: ::ethers::core::types::U256,
pub allow_authority_override_after: ::ethers::core::types::U256,
pub max_consecutive_function_failures: ::ethers::core::types::U256,
pub require_authority_heartbeat_permission: bool,
pub require_usage_permissions: bool,
pub enclave_timeout: ::ethers::core::types::U256,
pub gc_idx: ::ethers::core::types::U256,
pub curr_idx: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct Enclave {
pub authority: ::ethers::core::types::Address,
pub owner: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
pub cid: ::ethers::core::types::Bytes,
pub verification_status: u8,
pub verification_timestamp: ::ethers::core::types::U256,
pub valid_until: ::ethers::core::types::U256,
pub mr_enclave: [u8; 32],
pub is_on_queue: bool,
pub last_heartbeat: ::ethers::core::types::U256,
pub balance: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FunctionCall {
pub caller: ::ethers::core::types::Address,
pub timestamp: ::ethers::core::types::U256,
pub call_data: ::ethers::core::types::Bytes,
pub executed: bool,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FunctionConfig {
pub schedule: ::std::string::String,
pub permitted_callers: ::std::vec::Vec<::ethers::core::types::Address>,
pub container_registry: ::std::string::String,
pub container: ::std::string::String,
pub version: [u8; 32],
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FunctionState {
pub consecutive_failures: ::ethers::core::types::U256,
pub last_execution_timestamp: ::ethers::core::types::U256,
pub next_allowed_timestamp: ::ethers::core::types::U256,
pub call_id: ::ethers::core::types::U256,
pub queue_idx: ::ethers::core::types::U256,
pub triggered: bool,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct SbFunction {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub enclave_id: ::ethers::core::types::Address,
pub queue_id: ::ethers::core::types::Address,
pub balance: ::ethers::core::types::U256,
pub status: u8,
pub config: FunctionConfig,
pub state: FunctionState,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct FacetCut {
pub facet_address: ::ethers::core::types::Address,
pub action: u8,
pub function_selectors: ::std::vec::Vec<[u8; 4]>,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct Facet {
pub facet_address: ::ethers::core::types::Address,
pub function_selectors: ::std::vec::Vec<[u8; 4]>,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct Oracle {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub num_rows: u8,
pub last_heartbeat: ::ethers::core::types::U256,
pub queue_id: ::ethers::core::types::Address,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct AttestationConfig {
pub attestation_queue_id: ::ethers::core::types::Address,
pub mr_enclaves: ::std::vec::Vec<[u8; 32]>,
pub require_valid_enclave: bool,
pub require_heartbeat_permission: bool,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct OracleQueue {
pub name: ::std::string::String,
pub authority: ::ethers::core::types::Address,
pub oracles: ::std::vec::Vec<::ethers::core::types::Address>,
pub unpermissioned_feeds_enabled: bool,
pub max_size: ::ethers::core::types::U256,
pub reward: ::ethers::core::types::U256,
pub oracle_timeout: ::ethers::core::types::U256,
pub gc_idx: ::ethers::core::types::U256,
pub curr_idx: ::ethers::core::types::U256,
}
#[derive(
Clone,
::ethers::contract::EthAbiType,
::ethers::contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
pub struct Transaction {
pub expiration_time_seconds: ::ethers::core::types::U256,
pub gas_limit: ::ethers::core::types::U256,
pub value: ::ethers::core::types::U256,
pub to: ::ethers::core::types::Address,
pub from: ::ethers::core::types::Address,
pub data: ::ethers::core::types::Bytes,
}
}