OmnichainBaseDataObject
Base contract for Omnichain DataObject implementations
This contract extends the BaseDataObject contract and provides the basic omnichain functionalities for DataObject implementations
ZeroProxyAddress
Error thrown when the proxy address is zero
ZeroRefundAddress
Error thrown when the refund address is zero
SenderIsNotOmnichainProxy
Error thrown when the sender is not the Omnichain proxy
OmnichainProxySet
Event emitted when the OmnichainProxy contract is set
Parameters
Name | Type | Description |
---|---|---|
proxy | address | The OmnichainProxy contract |
DataPointAdminVerificationFailed
Event emitted when dataPoint admin verification failed when setting Data Index implementation
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint identifier |
account | address | Account that was |
OmnichainCallbackHandlerData
Callback handler data
Parameters
Name | Type | Description |
---|
CallbackOperation
Callback operation types
_proxy
The OmnichainProxy contract
_callbackData
Mapping from rid to operation data
setOmnichainProxy
Sets the OmnichainProxy contract
Parameters
Name | Type | Description |
---|---|---|
proxy_ | contract OmnichainProxy | The OmnichainProxy contract |
setOmnichainDataIndexImplementation
Sets the Data Index implementation for a DataPoint on a different chain
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | The DataPoint identifier |
newImpl | address | The new Data Index implementation address |
refundAddress | address payable | Where to send refund |
approveChains
Approves DataObject with same address but on other chains to write to this one
Parameters
Name | Type | Description |
---|---|---|
dataIndex | contract IAccessManagerOmnichain | DataIndex implementation to work with |
chains | uint32[] | List of chains to approve |
approved | bool | if provided chains should be approved (true) or removed from approved list (false) |
omnichainCallback
Callback function for Omnichain
Function SHOULD be implemented to receive data from Omnichain proxy
Parameters
Name | Type | Description |
---|---|---|
rid | bytes32 | Request ID (GUID) |
data | bytes | Data received in the callback |
_setOmnichainDataIndexImplementationCallback
_omnichainCallback
Callback function for omnichain operations NOTE: rid Request ID of the message (GUID) data Data received in the callback