IOmnichainProxy
Interface for the Omnichain Proxy contract.
NotEnoughFunds
Error thrown when the provided funds are not enough for the estimated fee
IncorrectDataIndexImplementationAddress
Error thrown when the provided Data Index implementation address is invalid
CallerIsNotDataIndex
Error thrown when caller is expected to be DataIndex implementation, but is not
MessageSent
Event emitted when a message is sent
OperationWithoutCallbackExecuted
Event emitted when operation is executed and callback is not sent due to operation config
CallbackSent
Event emitted when a callback is sent
CallbackExecuted
Event emitted when a callback is executed
RefundSent
Event emitted when a refund is sent
DataIndexImplementationSet
Event emitted when the Data Index implementation is set
setDataIndexImplementation
Set new Data Index implementation
implementation should support IERC165, IOmnichainData and IOmnichainGovernance interfaces
Parameters
Name | Type | Description |
---|---|---|
dataIndex | address | Address of new Data Index implementation |
queryIsDataPointAdmin
Query DataPoint Registry on the chain where DataPoint was generated and check if requested address is admin
Sender should implement IOmnichainCallbackReceiver
to receive callback with query result
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint to check |
account | address | Address to check |
destinationGasLimit | uint128 | Gas limit for the call on destination chain |
callbackGasLimit | uint128 | Gas limit for result callback (on current chain) |
refundAddress | address payable | Address to send refund to |
Return Values
Name | Type | Description |
---|---|---|
[0] | bytes32 | ID of request (used for callback) |
queryApproveDataManager
estimateApproveDataManager
queryDataObjectRead
Query DataObject.read() on another chain
Sender should implement IOmnichainCallbackReceiver
to receive callback with query result
Parameters
Name | Type | Description |
---|---|---|
chainId | uint32 | Chain to read from |
dobj | address | Address of DataObject |
dp | DataPoint | DataPoint to work with |
operation | bytes4 | Operation to execute |
data | bytes | Data for the operation |
destinationGasLimit | uint128 | Gas limit for the call on destination chain |
callbackGasLimit | uint128 | Gas limit for result callback (on current chain) |
refundAddress | address payable | Address to send refund to |
queryDataObjectWrite
Query DataObject.write() on another chain
Sender should implement IOmnichainCallbackReceiver
to receive callback with query result
Parameters
Name | Type | Description |
---|---|---|
chainId | uint32 | Chain to write |
dobj | address | Address of DataObject |
dp | DataPoint | DataPoint to work with |
operation | bytes4 | Operation to execute |
data | bytes | Data for the operation |
destinationGasLimit | uint128 | Gas limit for the call on destination chain |
callbackGasLimit | uint128 | Gas limit for result callback (on current chain) |
refundAddress | address payable | Address to send refund to |
nextRequestId
pause
Pause the contract
Only the owner can call this function
unpause
Unpause the contract
Only the owner can call this function