@inco/lightning-preview 0.8.0-devnet-2 → 0.8.0-devnet-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,24 @@
1
1
  # Inco Lightning Preview
2
2
 
3
- Reproducing the Inco Lightning file structure, here are the not yet public features fro Inco Lightning.
3
+ This package contains preview features for Inco Lightning that are not yet publicly released. It mirrors the core Lightning file structure to maintain consistency.
4
+
5
+ > **Note:** Features in this package are experimental and may change before public release.
6
+
7
+ ## Structure
8
+
9
+ The `src/` directory mirrors the core `lightning/` structure:
10
+
11
+ - `IncoLightningPreview.sol` - Preview contract extensions
12
+ - `Preview.Lib.sol` - Preview library functions
13
+ - `lightning-parts/` - Preview components
14
+ - `test/` - Tests for preview features
15
+
16
+ ## Makefile Commands
17
+
18
+ | Command | Description |
19
+ | --------------- | ------------------------ |
20
+ | `make build` | Build contracts |
21
+ | `make test_all` | Run all tests |
22
+ | `make lint` | Run linter |
23
+ | `make lint_fix` | Auto-fix linting issues |
24
+ | `make publish` | Build and publish to npm |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inco/lightning-preview",
3
- "version": "0.8.0-devnet-2",
3
+ "version": "0.8.0-devnet-4",
4
4
  "repository": "https://github.com/Inco-fhevm/inco-monorepo",
5
5
  "files": [
6
6
  "src/",
@@ -39,7 +39,10 @@ abstract contract EList is
39
39
  event EListShuffle(elist indexed list, uint256 indexed counter, elist indexed result, uint256 eventId);
40
40
  event EListReverse(elist indexed list, elist indexed result, uint256 eventId);
41
41
 
42
- function newEListFromInputs(bytes[] memory inputs, ETypes listType, address user) internal returns (elist newList) {
42
+ function newEListFromInputs(bytes[] calldata inputs, ETypes listType, address user)
43
+ internal
44
+ returns (elist newList)
45
+ {
43
46
  require(isTypeSupported(listType), UnsupportedType(listType));
44
47
 
45
48
  // TODO: Add a new event to create new elist from inputs, can be done as an upgrade to optimize for gas and castore.
@@ -70,7 +73,7 @@ abstract contract EList is
70
73
  return newEListFromHandles(handles, listType);
71
74
  }
72
75
 
73
- function newEList(bytes[] memory inputs, ETypes listType, address user)
76
+ function newEList(bytes[] calldata inputs, ETypes listType, address user)
74
77
  external
75
78
  payable
76
79
  payingMultiple(inputs.length)
@@ -8,7 +8,7 @@ interface IEList is IEListHandleMetadata {
8
8
 
9
9
  function newEList(bytes32[] memory handles, ETypes listType) external returns (elist newList);
10
10
 
11
- function newEList(bytes[] memory inputs, ETypes listType, address user) external payable returns (elist newList);
11
+ function newEList(bytes[] calldata inputs, ETypes listType, address user) external payable returns (elist newList);
12
12
 
13
13
  function listAppend(elist list, bytes32 value) external returns (elist result);
14
14