Solidity Interface Reference
ConstantsBS
FEED_ID_FUTURE
uint32 FEED_ID_FUTURE
FEED_ID_MODEL_PARAMS
uint32 FEED_ID_MODEL_PARAMS
FEED_ID_SPOT
uint32 FEED_ID_SPOT
FEED_ID_INTEREST_RATE
uint32 FEED_ID_INTEREST_RATE
FEED_ID_SETTLEMENT_PRICE
uint32 FEED_ID_SETTLEMENT_PRICE
FEED_ID_IMPLIED_VOLATILITY
uint32 FEED_ID_IMPLIED_VOLATILITY
FEED_ID_OPTION_MARK_PRICE
uint32 FEED_ID_OPTION_MARK_PRICE
FEED_ID_SPOT_EQUITY
uint32 FEED_ID_SPOT_EQUITY
EXPIRY_TYPE_TIMESTAMP
uint8 EXPIRY_TYPE_TIMESTAMP
EXPIRY_TYPE_TENOR
uint8 EXPIRY_TYPE_TENOR
EXCHANGE_BLOCKSCHOLES
uint8 EXCHANGE_BLOCKSCHOLES
EXCHANGE_DERIBIT
uint8 EXCHANGE_DERIBIT
EXCHANGE_BYBIT
uint8 EXCHANGE_BYBIT
EXCHANGE_OKX
uint8 EXCHANGE_OKX
BASE_ASSET_BTC
uint8 BASE_ASSET_BTC
BASE_ASSET_ETH
uint8 BASE_ASSET_ETH
BASE_ASSET_SPY
uint8 BASE_ASSET_SPY
BASE_ASSET_IBIT
uint8 BASE_ASSET_IBIT
OPTION_TYPE_CALL
uint8 OPTION_TYPE_CALL
OPTION_TYPE_PUT
uint8 OPTION_TYPE_PUT
IV_LEVEL_TYPE_STRIKE
uint8 IV_LEVEL_TYPE_STRIKE
IV_LEVEL_TYPE_MONEYNESS
uint8 IV_LEVEL_TYPE_MONEYNESS
SVI_PARAM_A
uint8 SVI_PARAM_A
SVI_PARAM_B
uint8 SVI_PARAM_B
SVI_PARAM_RHO
uint8 SVI_PARAM_RHO
SVI_PARAM_M
uint8 SVI_PARAM_M
SVI_PARAM_SIGMA
uint8 SVI_PARAM_SIGMA
IFeedProviderBS
common interface for feed providers to implement
Feed
identifier for a single feed
struct Feed {
uint32 id;
struct IFeedProviderBS.FeedParameters parameters;
}
FeedParameters
parameters for a feed
struct FeedParameters {
uint8[] enumerable;
bytes other;
}
FeedData
output data for a feed
struct FeedData {
int64 value;
uint32 timestamp;
}
getLatestFeedData
function getLatestFeedData(struct IFeedProviderBS.Feed feed) external view returns (struct IFeedProviderBS.FeedData)
get the latest feed data
Parameters
feed
struct IFeedProviderBS.Feed
the feed to get data for
Return Values
[0]
struct IFeedProviderBS.FeedData
the latest feed data
IOracleBS
the public interface for the Oracle as a whole
OptionParameters
The feed parameters for the option price and SVI feeds - these should be abi encoded and passed in as the "other" feed parameters.
struct OptionParameters {
int64 expiry;
int64 ivLevelValue;
}
RouteDoesNotExist
error RouteDoesNotExist()
error emitted when a route does not exist for the specified feed ID
FeedProviderDoesNotExist
error FeedProviderDoesNotExist()
error emitted when a feed provider cannot be found for the specified feed ID
this indicates a configuration error with how the route was set up
PermissionDenied
error PermissionDenied()
error emitted when a client does not have permission to access the specified feed.
permissions are based on the feed ID and enumerable feed parameters
Last updated