32 lines
1.6 KiB
Solidity
32 lines
1.6 KiB
Solidity
// SPDX-License-Identifier: AGPL-3.0-only
|
|
pragma solidity ^0.8.0;
|
|
|
|
/**
|
|
* @title Stores common interface names used throughout the DVM by registration in the Finder.
|
|
*/
|
|
library OracleInterfaces {
|
|
bytes32 public constant Oracle = "Oracle";
|
|
bytes32 public constant IdentifierWhitelist = "IdentifierWhitelist";
|
|
bytes32 public constant Store = "Store";
|
|
bytes32 public constant FinancialContractsAdmin = "FinancialContractsAdmin";
|
|
bytes32 public constant Registry = "Registry";
|
|
bytes32 public constant CollateralWhitelist = "CollateralWhitelist";
|
|
bytes32 public constant OptimisticOracle = "OptimisticOracle";
|
|
bytes32 public constant Bridge = "Bridge";
|
|
bytes32 public constant GenericHandler = "GenericHandler";
|
|
bytes32 public constant SkinnyOptimisticOracle = "SkinnyOptimisticOracle";
|
|
bytes32 public constant ChildMessenger = "ChildMessenger";
|
|
bytes32 public constant OracleHub = "OracleHub";
|
|
bytes32 public constant OracleSpoke = "OracleSpoke";
|
|
}
|
|
|
|
/**
|
|
* @title Commonly re-used values for contracts associated with the OptimisticOracle.
|
|
*/
|
|
library OptimisticOracleConstraints {
|
|
// Any price request submitted to the OptimisticOracle must contain ancillary data no larger than this value.
|
|
// This value must be <= the Voting contract's `ancillaryBytesLimit` constant value otherwise it is possible
|
|
// that a price can be requested to the OptimisticOracle successfully, but cannot be resolved by the DVM which
|
|
// refuses to accept a price request made with ancillary data length over a certain size.
|
|
uint256 public constant ancillaryBytesLimit = 8192;
|
|
} |