@inco/lightning 0.8.0-devnet-23 → 0.8.0-devnet-25

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.
Files changed (35) hide show
  1. package/package.json +1 -1
  2. package/src/Lib.alphanet.sol +5 -5
  3. package/src/Lib.demonet.sol +5 -5
  4. package/src/Lib.devnet.sol +5 -5
  5. package/src/Lib.sol +5 -5
  6. package/src/Lib.template.sol +5 -5
  7. package/src/Lib.testnet.sol +5 -5
  8. package/src/libs/incoLightning_alphanet_v0_297966649.sol +5 -5
  9. package/src/libs/incoLightning_alphanet_v1_725458969.sol +5 -5
  10. package/src/libs/incoLightning_alphanet_v2_976644394.sol +5 -5
  11. package/src/libs/incoLightning_demonet_v0_863421733.sol +5 -5
  12. package/src/libs/incoLightning_demonet_v2_467437523.sol +5 -5
  13. package/src/libs/incoLightning_devnet_v0_340846814.sol +5 -5
  14. package/src/libs/incoLightning_devnet_v1_904635675.sol +5 -5
  15. package/src/libs/incoLightning_devnet_v2_295237520.sol +5 -5
  16. package/src/libs/incoLightning_devnet_v3_976859633.sol +5 -5
  17. package/src/libs/incoLightning_devnet_v4_409204766.sol +5 -5
  18. package/src/libs/incoLightning_devnet_v5_203964628.sol +5 -5
  19. package/src/libs/incoLightning_devnet_v6_281949651.sol +5 -5
  20. package/src/libs/incoLightning_devnet_v7_24560427.sol +5 -5
  21. package/src/libs/incoLightning_devnet_v8_985328058.sol +5 -5
  22. package/src/libs/incoLightning_devnet_v9_269218568.sol +5 -5
  23. package/src/libs/incoLightning_testnet_v0_183408998.sol +5 -5
  24. package/src/libs/incoLightning_testnet_v2_889158349.sol +5 -5
  25. package/src/lightning-parts/EList.sol +9 -15
  26. package/src/lightning-parts/EncryptedOperations.sol +22 -12
  27. package/src/lightning-parts/TEELifecycle.sol +1 -1
  28. package/src/lightning-parts/interfaces/IEList.sol +1 -1
  29. package/src/lightning-parts/primitives/EListHandleMetadata.sol +9 -2
  30. package/src/lightning-parts/primitives/HandleMetadata.sol +10 -3
  31. package/src/lightning-parts/test/Elist.t.sol +12 -12
  32. package/src/lightning-parts/test/HandleMetadata.t.sol +7 -7
  33. package/src/test/EListTester.sol +3 -2
  34. package/src/test/TEELifecycle/TEELifecycleMockTest.t.sol +3 -0
  35. package/src/test/TestLib.t.sol +49 -44
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inco/lightning",
3
- "version": "0.8.0-devnet-23",
3
+ "version": "0.8.0-devnet-25",
4
4
  "repository": "https://github.com/Inco-fhevm/inco-monorepo",
5
5
  "files": [
6
6
  "src/",
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
package/src/Lib.sol CHANGED
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1189,8 +1189,8 @@ library e {
1189
1189
  /// @param start Start value of the range, inclusive.
1190
1190
  /// @param end End of the range, exclusive. Must be >= start.
1191
1191
  /// @return ret A new elist handle with length "end-start"
1192
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1193
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1192
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1193
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1194
1194
  }
1195
1195
 
1196
1196
  /// @notice Deterministically shuffles elements within a list.
@@ -1206,9 +1206,9 @@ library e {
1206
1206
  /// @param start Start value of the range, inclusive.
1207
1207
  /// @param end End of the range, exclusive. Must be >= start.
1208
1208
  /// @return ret A new elist handle in random order with length "end-start".
1209
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1210
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1211
- elist rangeList = inco.listRange{value: fee}(start, end);
1209
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1210
+ uint256 fee = inco.getEListFee(end - start, listType);
1211
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1212
1212
  return inco.listShuffle{value: fee}(rangeList);
1213
1213
  }
1214
1214
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172
 
@@ -1147,8 +1147,8 @@ library e {
1147
1147
  /// @param start Start value of the range, inclusive.
1148
1148
  /// @param end End of the range, exclusive. Must be >= start.
1149
1149
  /// @return ret A new elist handle with length "end-start"
1150
- function range(uint16 start, uint16 end) internal returns (elist ret) {
1151
- return inco.listRange{value: inco.getEListFee(end - start, ETypes.Uint256)}(start, end);
1150
+ function range(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1151
+ return inco.listRange{value: inco.getEListFee(end - start, listType)}(start, end, listType);
1152
1152
  }
1153
1153
 
1154
1154
  /// @notice Deterministically shuffles elements within a list.
@@ -1164,9 +1164,9 @@ library e {
1164
1164
  /// @param start Start value of the range, inclusive.
1165
1165
  /// @param end End of the range, exclusive. Must be >= start.
1166
1166
  /// @return ret A new elist handle in random order with length "end-start".
1167
- function shuffledRange(uint16 start, uint16 end) internal returns (elist ret) {
1168
- uint256 fee = inco.getEListFee(end - start, ETypes.Uint256);
1169
- elist rangeList = inco.listRange{value: fee}(start, end);
1167
+ function shuffledRange(uint16 start, uint16 end, ETypes listType) internal returns (elist ret) {
1168
+ uint256 fee = inco.getEListFee(end - start, listType);
1169
+ elist rangeList = inco.listRange{value: fee}(start, end, listType);
1170
1170
  return inco.listShuffle{value: fee}(rangeList);
1171
1171
  }
1172
1172