ODCdataIndexomnichain

OmnichainSupportStorage

Storage of data used to manage omnichain support in the Data Index implementation

STORAGE_SLOT

bytes32 STORAGE_SLOT

Storage slot for Omnichain Support layout STORAGE_SLOT: 0x25d124fbd27265fd423a52aaace9f0597f72a771fb918a73ee5ad8daa7bd4200

CallbackOperation

Callback operation types

enum CallbackOperation {
  DEFAULT_NONE_OPERATION,
  IS_DATAPOINT_ADMIN_RESPONSE
}

OmnichainCallbackHandlerData

Callback handler data

Parameters

NameTypeDescription
struct OmnichainCallbackHandlerData {
  enum OmnichainSupportStorage.CallbackOperation operation;
  bytes opData;
}

Layout

Storage layout with Omnichain data

Parameters

NameTypeDescription
struct Layout {
  address proxyAddress;
  mapping(bytes32 => struct OmnichainSupportStorage.OmnichainCallbackHandlerData) callbackData;
  mapping(address => struct EnumerableSet.Bytes32Set) approvedChains;
}

proxy

function proxy(struct OmnichainSupportStorage.Layout l) internal view returns (contract IOmnichainProxy)

setCallbackHandlerData

function setCallbackHandlerData(struct OmnichainSupportStorage.Layout l, bytes32 rid, enum OmnichainSupportStorage.CallbackOperation op, bytes opData) internal

useCallbackHandlerData

function useCallbackHandlerData(struct OmnichainSupportStorage.Layout l, bytes32 rid) internal returns (enum OmnichainSupportStorage.CallbackOperation, bytes)

approvedChain

function approvedChain(struct OmnichainSupportStorage.Layout l, uint32 chainId, address dataObject) internal view returns (bool)

approveChains

function approveChains(struct OmnichainSupportStorage.Layout l, address dataObject, uint32[] chainIds, bool approved) internal

layout

function layout() internal pure returns (struct OmnichainSupportStorage.Layout l)

On this page