Skip to main content

Contracts

A reference for Omni's user facing solidity contracts and libraries.

OmniPortal

  • On-chain gateway into Omni's cross-chain messaging protocol
  • Call contracts on another chain (xcall)
  • Calculate fees for an xcall
  • Read xmsg context when receiving an xcall
IOmniPortal.sol Reference Solidity Interface
Fetching code from GitHub...

XApp

  • Base contract for Omni cross-chain applications
  • Simplifies sending / receiving xcalls
XApp.sol Reference Solidity Interface
Fetching code from GitHub...

XTypes

  • Defines core xchain messaging types for the Omni protocol.
  • XTypes.MsgShort is the only type end users interact with. It provides context
XTypes.sol Reference Solidity Code
Fetching code from GitHub...