Overview
Preview features are experimental functionalities that are still under development. These features allow you to test and provide feedback on upcoming capabilities before they’re officially released.
Important: Preview features are experimental and may have breaking changes. They are not recommended for production use.
Installation
Step 1: Add to package.json
Add the Lightning Preview SDK and override to your package.json:
{
"dependencies": {
"@inco/lightning-preview": "0.7.10",
"@inco/lightning": "0.7.10",
},
"overrides": {
"@inco/lightning": "0.7.10"
}
}
Step 2: Install Dependencies
Run your package manager’s install command to apply the changes:
Usage in Smart Contracts
Import the preview library in your Solidity contracts:
import {ePreview, elist, ETypes} from "@inco/lightning-preview/src/Preview.Lib.sol";
import {euint256, ebool, e, inco} from "@inco/lightning/src/Lib.sol";
Available Preview Features
EList (Encrypted Lists)
EList provides encrypted list operations for building confidential applications that require dynamic array-like data structures.
Learn more about EList →