@fhevm/sdk 1.0.0-alpha.3 → 1.0.0-alpha.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.
Files changed (57) hide show
  1. package/_cjs/core/_version.js +1 -1
  2. package/_cjs/core/actions/encrypt/generateZkProof.js.map +1 -1
  3. package/_cjs/core/base/index.js +0 -5
  4. package/_cjs/core/base/index.js.map +1 -1
  5. package/_cjs/core/base/typedValue.js +20 -6
  6. package/_cjs/core/base/typedValue.js.map +1 -1
  7. package/_cjs/core/base/uint.js +23 -0
  8. package/_cjs/core/base/uint.js.map +1 -1
  9. package/_cjs/core/host-contracts/checkDelegation.js +13 -0
  10. package/_cjs/core/host-contracts/checkDelegation.js.map +1 -1
  11. package/_cjs/core/host-contracts/constants.js +5 -0
  12. package/_cjs/core/host-contracts/constants.js.map +1 -0
  13. package/_esm/core/_version.js +1 -1
  14. package/_esm/core/actions/encrypt/generateZkProof.js.map +1 -1
  15. package/_esm/core/base/index.js +1 -1
  16. package/_esm/core/base/index.js.map +1 -1
  17. package/_esm/core/base/typedValue.js +24 -7
  18. package/_esm/core/base/typedValue.js.map +1 -1
  19. package/_esm/core/base/uint.js +21 -0
  20. package/_esm/core/base/uint.js.map +1 -1
  21. package/_esm/core/host-contracts/checkDelegation.js +19 -5
  22. package/_esm/core/host-contracts/checkDelegation.js.map +1 -1
  23. package/_esm/core/host-contracts/constants.js +2 -0
  24. package/_esm/core/host-contracts/constants.js.map +1 -0
  25. package/_types/core/actions/encrypt/encryptValue.d.ts +5 -2
  26. package/_types/core/actions/encrypt/encryptValue.d.ts.map +1 -1
  27. package/_types/core/actions/encrypt/encryptValues.d.ts +5 -2
  28. package/_types/core/actions/encrypt/encryptValues.d.ts.map +1 -1
  29. package/_types/core/actions/encrypt/generateZkProof.d.ts +4 -2
  30. package/_types/core/actions/encrypt/generateZkProof.d.ts.map +1 -1
  31. package/_types/core/base/errors/InvalidTypeError.d.ts +1 -1
  32. package/_types/core/base/errors/InvalidTypeError.d.ts.map +1 -1
  33. package/_types/core/base/index.d.ts +1 -1
  34. package/_types/core/base/index.d.ts.map +1 -1
  35. package/_types/core/base/typedValue.d.ts +3 -13
  36. package/_types/core/base/typedValue.d.ts.map +1 -1
  37. package/_types/core/base/uint.d.ts +4 -0
  38. package/_types/core/base/uint.d.ts.map +1 -1
  39. package/_types/core/host-contracts/checkDelegation.d.ts.map +1 -1
  40. package/_types/core/host-contracts/constants.d.ts +3 -0
  41. package/_types/core/host-contracts/constants.d.ts.map +1 -0
  42. package/_types/core/types/primitives.d.ts +4 -0
  43. package/_types/core/types/primitives.d.ts.map +1 -1
  44. package/core/_version.ts +1 -1
  45. package/core/actions/encrypt/encryptValue.ts +2 -2
  46. package/core/actions/encrypt/encryptValues.ts +2 -2
  47. package/core/actions/encrypt/generateZkProof.ts +1 -2
  48. package/core/base/errors/InvalidTypeError.ts +1 -1
  49. package/core/base/index.ts +0 -1
  50. package/core/base/typedValue.ts +32 -25
  51. package/core/base/uint.ts +30 -0
  52. package/core/host-contracts/checkDelegation.ts +20 -5
  53. package/core/host-contracts/constants.ts +3 -0
  54. package/core/types/primitives.ts +4 -0
  55. package/package.json +1 -1
  56. package/tsconfig.json +1 -1
  57. package/vitest.config.ts +17 -0
@@ -0,0 +1,17 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ include: ['src/**/*.test.ts'],
6
+ exclude: ['src/index.hello.test.ts'],
7
+ reporters: ['verbose'],
8
+ passWithNoTests: false,
9
+ typecheck: { enabled: true },
10
+ coverage: {
11
+ provider: 'v8',
12
+ reporter: ['text'],
13
+ //include: ['src/**/*.ts'],
14
+ //exclude: ['src/**/*.test.ts', 'src/**/*.test-d.ts', 'src/vitest.config.ts'],
15
+ },
16
+ },
17
+ });