Installation
XApp
is a contract maintained in Omni's monorepo, alongside the rest of Omni's smart contracts. To use it, install Omni's smart contracts in your project.
Note
Note that Omni's contracts are under active development, and are subject to change.
Installing the XApp contract
- npm
- forge
npm install @omni-network/contracts
forge install omni-network/omni
Importing the XApp contract
- npm
- forge
import { XApp } from "@omni-network/contracts/src/pkg/XApp.sol"
import { XApp } from "omni/contracts/src/pkg/XApp.sol"