@fhevm/sdk 1.0.0-alpha.6 → 1.0.0

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 (79) hide show
  1. package/_cjs/core/_version.js +1 -1
  2. package/_cjs/core/_version.js.map +1 -1
  3. package/_cjs/core/actions/base/{canReadPublicValue.js → canDecryptPublicValue.js} +3 -3
  4. package/_cjs/core/actions/base/canDecryptPublicValue.js.map +1 -0
  5. package/_cjs/core/actions/base/{canReadPublicValues.js → canDecryptPublicValues.js} +3 -3
  6. package/_cjs/core/actions/base/canDecryptPublicValues.js.map +1 -0
  7. package/_cjs/core/actions/base/{readPublicValue.js → decryptPublicValue.js} +4 -4
  8. package/_cjs/core/actions/base/decryptPublicValue.js.map +1 -0
  9. package/_cjs/core/actions/base/{readPublicValues.js → decryptPublicValues.js} +4 -4
  10. package/_cjs/core/actions/base/decryptPublicValues.js.map +1 -0
  11. package/_cjs/core/actions/base/{readPublicValuesWithSignatures.js → decryptPublicValuesWithSignatures.js} +4 -4
  12. package/_cjs/core/actions/base/decryptPublicValuesWithSignatures.js.map +1 -0
  13. package/_cjs/core/actions/base/index.js +11 -11
  14. package/_cjs/core/actions/base/index.js.map +1 -1
  15. package/_cjs/core/clients/decorators/base.js +6 -6
  16. package/_cjs/core/clients/decorators/base.js.map +1 -1
  17. package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js +2 -2
  18. package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
  19. package/_esm/core/_version.js +1 -1
  20. package/_esm/core/_version.js.map +1 -1
  21. package/_esm/core/actions/base/{canReadPublicValue.js → canDecryptPublicValue.js} +2 -2
  22. package/_esm/core/actions/base/canDecryptPublicValue.js.map +1 -0
  23. package/_esm/core/actions/base/{canReadPublicValues.js → canDecryptPublicValues.js} +2 -2
  24. package/_esm/core/actions/base/canDecryptPublicValues.js.map +1 -0
  25. package/_esm/core/actions/base/{readPublicValue.js → decryptPublicValue.js} +3 -3
  26. package/_esm/core/actions/base/decryptPublicValue.js.map +1 -0
  27. package/_esm/core/actions/base/{readPublicValues.js → decryptPublicValues.js} +3 -3
  28. package/_esm/core/actions/base/decryptPublicValues.js.map +1 -0
  29. package/_esm/core/actions/base/{readPublicValuesWithSignatures.js → decryptPublicValuesWithSignatures.js} +3 -3
  30. package/_esm/core/actions/base/decryptPublicValuesWithSignatures.js.map +1 -0
  31. package/_esm/core/actions/base/index.js +5 -5
  32. package/_esm/core/actions/base/index.js.map +1 -1
  33. package/_esm/core/clients/decorators/base.js +6 -6
  34. package/_esm/core/clients/decorators/base.js.map +1 -1
  35. package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js +2 -7
  36. package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
  37. package/_types/core/_version.d.ts.map +1 -1
  38. package/_types/core/actions/base/canDecryptPublicValue.d.ts +9 -0
  39. package/_types/core/actions/base/canDecryptPublicValue.d.ts.map +1 -0
  40. package/_types/core/actions/base/canDecryptPublicValues.d.ts +9 -0
  41. package/_types/core/actions/base/canDecryptPublicValues.d.ts.map +1 -0
  42. package/_types/core/actions/base/{readPublicValue.d.ts → decryptPublicValue.d.ts} +4 -4
  43. package/_types/core/actions/base/decryptPublicValue.d.ts.map +1 -0
  44. package/_types/core/actions/base/{readPublicValues.d.ts → decryptPublicValues.d.ts} +4 -4
  45. package/_types/core/actions/base/decryptPublicValues.d.ts.map +1 -0
  46. package/_types/core/actions/base/{readPublicValuesWithSignatures.d.ts → decryptPublicValuesWithSignatures.d.ts} +4 -4
  47. package/_types/core/actions/base/decryptPublicValuesWithSignatures.d.ts.map +1 -0
  48. package/_types/core/actions/base/index.d.ts +5 -5
  49. package/_types/core/actions/base/index.d.ts.map +1 -1
  50. package/_types/core/clients/decorators/base.d.ts +16 -16
  51. package/_types/core/clients/decorators/base.d.ts.map +1 -1
  52. package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts.map +1 -1
  53. package/core/_version.ts +1 -1
  54. package/core/actions/base/{canReadPublicValue.ts → canDecryptPublicValue.ts} +5 -5
  55. package/core/actions/base/{canReadPublicValues.ts → canDecryptPublicValues.ts} +5 -5
  56. package/core/actions/base/{readPublicValue.ts → decryptPublicValue.ts} +6 -6
  57. package/core/actions/base/{readPublicValues.ts → decryptPublicValues.ts} +6 -6
  58. package/core/actions/base/{readPublicValuesWithSignatures.ts → decryptPublicValuesWithSignatures.ts} +6 -6
  59. package/core/actions/base/index.ts +21 -17
  60. package/core/clients/decorators/base.ts +30 -30
  61. package/core/modules/relayer/module/RelayerAsyncRequest.ts +11 -13
  62. package/package.json +1 -1
  63. package/_cjs/core/actions/base/canReadPublicValue.js.map +0 -1
  64. package/_cjs/core/actions/base/canReadPublicValues.js.map +0 -1
  65. package/_cjs/core/actions/base/readPublicValue.js.map +0 -1
  66. package/_cjs/core/actions/base/readPublicValues.js.map +0 -1
  67. package/_cjs/core/actions/base/readPublicValuesWithSignatures.js.map +0 -1
  68. package/_esm/core/actions/base/canReadPublicValue.js.map +0 -1
  69. package/_esm/core/actions/base/canReadPublicValues.js.map +0 -1
  70. package/_esm/core/actions/base/readPublicValue.js.map +0 -1
  71. package/_esm/core/actions/base/readPublicValues.js.map +0 -1
  72. package/_esm/core/actions/base/readPublicValuesWithSignatures.js.map +0 -1
  73. package/_types/core/actions/base/canReadPublicValue.d.ts +0 -9
  74. package/_types/core/actions/base/canReadPublicValue.d.ts.map +0 -1
  75. package/_types/core/actions/base/canReadPublicValues.d.ts +0 -9
  76. package/_types/core/actions/base/canReadPublicValues.d.ts.map +0 -1
  77. package/_types/core/actions/base/readPublicValue.d.ts.map +0 -1
  78. package/_types/core/actions/base/readPublicValues.d.ts.map +0 -1
  79. package/_types/core/actions/base/readPublicValuesWithSignatures.d.ts.map +0 -1
@@ -11,12 +11,12 @@ import { clearValueToTypedValue } from '../../handle/ClearValue.js';
11
11
 
12
12
  ////////////////////////////////////////////////////////////////////////////////
13
13
 
14
- export type ReadPublicValuesWithSignaturesParameters = {
14
+ export type DecryptPublicValuesWithSignaturesParameters = {
15
15
  readonly encryptedValues: readonly EncryptedValueLike[];
16
16
  readonly options?: RelayerPublicDecryptOptions | undefined;
17
17
  };
18
18
 
19
- export type ReadPublicValuesWithSignaturesReturnType = {
19
+ export type DecryptPublicValuesWithSignaturesReturnType = {
20
20
  readonly clearValues: NonEmptyReadonlyArray<TypedValue>;
21
21
  readonly checkSignaturesArgs: {
22
22
  readonly handlesList: NonEmptyReadonlyArray<HandleBytes32Hex>;
@@ -27,13 +27,13 @@ export type ReadPublicValuesWithSignaturesReturnType = {
27
27
 
28
28
  ////////////////////////////////////////////////////////////////////////////////
29
29
 
30
- export async function readPublicValuesWithSignatures(
30
+ export async function decryptPublicValuesWithSignatures(
31
31
  fhevm: Fhevm<FhevmChain>,
32
- parameters: ReadPublicValuesWithSignaturesParameters,
33
- ): Promise<ReadPublicValuesWithSignaturesReturnType> {
32
+ parameters: DecryptPublicValuesWithSignaturesParameters,
33
+ ): Promise<DecryptPublicValuesWithSignaturesReturnType> {
34
34
  const handles = parameters.encryptedValues.map(toFhevmHandle);
35
35
 
36
- const originToken = Symbol('readPublicValues');
36
+ const originToken = Symbol('decryptPublicValues');
37
37
  const res = await publicDecrypt_(fhevm, { ...parameters, handles, originToken });
38
38
 
39
39
  const typedValues = res.orderedClearValues.map((cv) =>
@@ -1,32 +1,36 @@
1
1
  export { type ReadKmsSignersContextReturnType, readKmsSignersContext } from './readKmsSignersContext.js';
2
2
 
3
- export { type ReadPublicValueParameters, type ReadPublicValueReturnType, readPublicValue } from './readPublicValue.js';
3
+ export {
4
+ type DecryptPublicValueParameters,
5
+ type DecryptPublicValueReturnType,
6
+ decryptPublicValue,
7
+ } from './decryptPublicValue.js';
4
8
 
5
9
  export type { RelayerPublicDecryptOptions, RelayerPublicDecryptProgressArgs } from '../../types/relayer.js';
6
10
 
7
11
  export {
8
- type ReadPublicValuesParameters,
9
- type ReadPublicValuesReturnType,
10
- readPublicValues,
11
- } from './readPublicValues.js';
12
+ type DecryptPublicValuesParameters,
13
+ type DecryptPublicValuesReturnType,
14
+ decryptPublicValues,
15
+ } from './decryptPublicValues.js';
12
16
 
13
17
  export {
14
- type ReadPublicValuesWithSignaturesParameters,
15
- type ReadPublicValuesWithSignaturesReturnType,
16
- readPublicValuesWithSignatures,
17
- } from './readPublicValuesWithSignatures.js';
18
+ type DecryptPublicValuesWithSignaturesParameters,
19
+ type DecryptPublicValuesWithSignaturesReturnType,
20
+ decryptPublicValuesWithSignatures,
21
+ } from './decryptPublicValuesWithSignatures.js';
18
22
 
19
23
  export {
20
- type CanReadPublicValueParameters,
21
- type CanReadPublicValueReturnType,
22
- canReadPublicValue,
23
- } from './canReadPublicValue.js';
24
+ type CanDecryptPublicValueParameters,
25
+ type CanDecryptPublicValueReturnType,
26
+ canDecryptPublicValue,
27
+ } from './canDecryptPublicValue.js';
24
28
 
25
29
  export {
26
- type CanReadPublicValuesParameters,
27
- type CanReadPublicValuesReturnType,
28
- canReadPublicValues,
29
- } from './canReadPublicValues.js';
30
+ type CanDecryptPublicValuesParameters,
31
+ type CanDecryptPublicValuesReturnType,
32
+ canDecryptPublicValues,
33
+ } from './canDecryptPublicValues.js';
30
34
 
31
35
  export {
32
36
  type CreateVerifiedInputProofFromRawBytesParameters,
@@ -36,20 +36,20 @@ import {
36
36
  type ParseSignedDecryptionPermitReturnType,
37
37
  } from '../../actions/chain/parseSignedDecryptionPermit.js';
38
38
  import {
39
- readPublicValue,
40
- type ReadPublicValueParameters,
41
- type ReadPublicValueReturnType,
42
- } from '../../actions/base/readPublicValue.js';
39
+ decryptPublicValue,
40
+ type DecryptPublicValueParameters,
41
+ type DecryptPublicValueReturnType,
42
+ } from '../../actions/base/decryptPublicValue.js';
43
43
  import {
44
- readPublicValues,
45
- type ReadPublicValuesParameters,
46
- type ReadPublicValuesReturnType,
47
- } from '../../actions/base/readPublicValues.js';
44
+ decryptPublicValues,
45
+ type DecryptPublicValuesParameters,
46
+ type DecryptPublicValuesReturnType,
47
+ } from '../../actions/base/decryptPublicValues.js';
48
48
  import {
49
- readPublicValuesWithSignatures,
50
- type ReadPublicValuesWithSignaturesParameters,
51
- type ReadPublicValuesWithSignaturesReturnType,
52
- } from '../../actions/base/readPublicValuesWithSignatures.js';
49
+ decryptPublicValuesWithSignatures,
50
+ type DecryptPublicValuesWithSignaturesParameters,
51
+ type DecryptPublicValuesWithSignaturesReturnType,
52
+ } from '../../actions/base/decryptPublicValuesWithSignatures.js';
53
53
 
54
54
  ////////////////////////////////////////////////////////////////////////////////
55
55
 
@@ -59,30 +59,30 @@ export type BaseActions = {
59
59
  *
60
60
  * By default, encrypted values on-chain can only be decrypted by their owner.
61
61
  * When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
62
- * the value becomes publicly readable. Anyone can then call `readPublicValue`
62
+ * the value becomes publicly readable. Anyone can then call `decryptPublicValue`
63
63
  * to get the clear value — no permit or private key needed.
64
64
  *
65
65
  * @example
66
66
  * ```ts
67
- * const result = await client.readPublicValue({
67
+ * const result = await client.decryptPublicValue({
68
68
  * encryptedValue: "0xabcd..."
69
69
  * });
70
70
  * console.log(result.value); // e.g. 42
71
71
  * console.log(result.type); // e.g. 'uint8'
72
72
  * ```
73
73
  */
74
- readonly readPublicValue: (parameters: ReadPublicValueParameters) => Promise<ReadPublicValueReturnType>;
74
+ readonly decryptPublicValue: (parameters: DecryptPublicValueParameters) => Promise<DecryptPublicValueReturnType>;
75
75
  /**
76
76
  * Reads the decrypted (clear) values of encrypted values that were made public.
77
77
  *
78
78
  * By default, encrypted values on-chain can only be decrypted by their owner.
79
79
  * When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
80
- * a value becomes publicly readable. Anyone can then call `readPublicValues`
80
+ * a value becomes publicly readable. Anyone can then call `decryptPublicValues`
81
81
  * to get the clear values — no permit or private key needed.
82
82
  *
83
83
  * @example
84
84
  * ```ts
85
- * const results = await client.readPublicValues({
85
+ * const results = await client.decryptPublicValues({
86
86
  * encryptedValues: ["0xabcd...", "0xef..."]
87
87
  * });
88
88
  * console.log(results[0].value); // e.g. 42
@@ -91,13 +91,13 @@ export type BaseActions = {
91
91
  * console.log(results[1].type); // e.g. 'uint32'
92
92
  * ```
93
93
  */
94
- readonly readPublicValues: (parameters: ReadPublicValuesParameters) => Promise<ReadPublicValuesReturnType>;
94
+ readonly decryptPublicValues: (parameters: DecryptPublicValuesParameters) => Promise<DecryptPublicValuesReturnType>;
95
95
  /**
96
96
  * Reads the decrypted (clear) value of an encrypted value that was made public.
97
97
  *
98
98
  * By default, encrypted values on-chain can only be decrypted by their owner.
99
99
  * When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
100
- * the value becomes publicly readable. Anyone can then call `readPublicValue`
100
+ * the value becomes publicly readable. Anyone can then call `decryptPublicValue`
101
101
  * to get the clear value — no permit or private key needed.
102
102
  *
103
103
  * Returns both the clear values and a decryption proof. The proof can be
@@ -106,13 +106,13 @@ export type BaseActions = {
106
106
  *
107
107
  * @example
108
108
  * ```ts
109
- * const result = await client.readPublicValuesWithSignatures({
109
+ * const result = await client.decryptPublicValuesWithSignatures({
110
110
  * encryptedValues: ["0xabcd...", "0xef..."]
111
111
  * });
112
- * console.log(results.clearValues[0].value); // e.g. 42
113
- * console.log(results.clearValues[0].type); // e.g. 'uint8'
114
- * console.log(results.clearValues[1].value); // e.g. 123456789
115
- * console.log(results.clearValues[1].type); // e.g. 'uint32'
112
+ * console.log(result.clearValues[0].value); // e.g. 42
113
+ * console.log(result.clearValues[0].type); // e.g. 'uint8'
114
+ * console.log(result.clearValues[1].value); // e.g. 123456789
115
+ * console.log(result.clearValues[1].type); // e.g. 'uint32'
116
116
  *
117
117
  * // Forward the proof on-chain for smart contract verification
118
118
  * // Solidity side:
@@ -123,9 +123,9 @@ export type BaseActions = {
123
123
  * await contract.verify(args.handlesList, args.abiEncodedCleartexts, args.decryptionProof);
124
124
  * ```
125
125
  */
126
- readonly readPublicValuesWithSignatures: (
127
- parameters: ReadPublicValuesWithSignaturesParameters,
128
- ) => Promise<ReadPublicValuesWithSignaturesReturnType>;
126
+ readonly decryptPublicValuesWithSignatures: (
127
+ parameters: DecryptPublicValuesWithSignaturesParameters,
128
+ ) => Promise<DecryptPublicValuesWithSignaturesReturnType>;
129
129
  readonly signDecryptionPermit: {
130
130
  /**
131
131
  * Signs a self decryption permit — Alice decrypts her own encrypted values.
@@ -173,9 +173,9 @@ export type BaseActions = {
173
173
 
174
174
  function _baseActions(fhevm: Fhevm<FhevmChain>): BaseActions {
175
175
  return {
176
- readPublicValue: (parameters) => readPublicValue(fhevm, parameters),
177
- readPublicValues: (parameters) => readPublicValues(fhevm, parameters),
178
- readPublicValuesWithSignatures: (parameters) => readPublicValuesWithSignatures(fhevm, parameters),
176
+ decryptPublicValue: (parameters) => decryptPublicValue(fhevm, parameters),
177
+ decryptPublicValues: (parameters) => decryptPublicValues(fhevm, parameters),
178
+ decryptPublicValuesWithSignatures: (parameters) => decryptPublicValuesWithSignatures(fhevm, parameters),
179
179
  // Preserve the original action overloads on the decorated client API.
180
180
  // Runtime behavior is unchanged: this is a direct pass-through wrapper.
181
181
  signDecryptionPermit: ((parameters: SignSelfDecryptionPermitParameters | SignDelegatedDecryptionPermitParameters) =>
@@ -1265,19 +1265,17 @@ export class RelayerAsyncRequest {
1265
1265
 
1266
1266
  this._trace('_fetchGet', `jobId=${this.jobId}`);
1267
1267
 
1268
- // Do not include API key here!
1269
- // API key is only required on POST (by design).
1270
- // This is necessary for future caching on gateway.
1271
- // It will be implemented in future releases on (relayer).
1272
- // See relayer team.
1273
- const init: RequestInit = {
1274
- method: 'GET',
1275
- headers: {
1276
- 'ZAMA-SDK-VERSION': version,
1277
- 'ZAMA-SDK-NAME': sdkName,
1278
- },
1279
- ...(this._internalAbortSignal ? { signal: this._internalAbortSignal } : {}),
1280
- };
1268
+ const init = setAuth(
1269
+ {
1270
+ method: 'GET',
1271
+ headers: {
1272
+ 'ZAMA-SDK-VERSION': version,
1273
+ 'ZAMA-SDK-NAME': sdkName,
1274
+ },
1275
+ ...(this._internalAbortSignal ? { signal: this._internalAbortSignal } : {}),
1276
+ } satisfies RequestInit,
1277
+ this._fhevmAuth,
1278
+ );
1281
1279
 
1282
1280
  this._state.fetching = true;
1283
1281
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fhevm/sdk",
3
3
  "description": "TypeScript Interface for FHEVM",
4
- "version": "1.0.0-alpha.6",
4
+ "version": "1.0.0",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":";;AAiBA,gDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,OAAO,GAAG,MAAM,IAAA,kDAAsB,EAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":";;AAiBA,kDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,OAAO,IAAA,kDAAsB,EAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":";;AAoBA,0CAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,eAAe,CACnC,KAAwB,EACxB,UAAqC;IAErC,MAAM,MAAM,GAAG,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,IAAA,sCAAsB,EAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":";;AAoBA,4CAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,gBAAgB,CACpC,KAAwB,EACxB,UAAsC;IAEtC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":";;AA6BA,wEAuBC;AA7CD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAoB7D,KAAK,UAAU,8BAA8B,CAClD,KAAwB,EACxB,UAAoD;IAEpD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,OAAO,GAAG,MAAM,sBAAsB,CAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,OAAO,sBAAsB,CAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAwB,EACxB,UAAqC;IAErC,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAwB,EACxB,UAAsC;IAEtC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAkBpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,KAAwB,EACxB,UAAoD;IAEpD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
2
- import type { Fhevm } from '../../types/coreFhevmClient.js';
3
- import type { FhevmChain } from '../../types/fhevmChain.js';
4
- export type CanReadPublicValueParameters = {
5
- readonly encryptedValue: EncryptedValueLike;
6
- };
7
- export type CanReadPublicValueReturnType = boolean;
8
- export declare function canReadPublicValue(fhevm: Fhevm<FhevmChain>, parameters: CanReadPublicValueParameters): Promise<CanReadPublicValueReturnType>;
9
- //# sourceMappingURL=canReadPublicValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5D,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC;AAInD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,4BAA4B,GACvC,OAAO,CAAC,4BAA4B,CAAC,CAOvC"}
@@ -1,9 +0,0 @@
1
- import type { Fhevm } from '../../types/coreFhevmClient.js';
2
- import type { FhevmChain } from '../../types/fhevmChain.js';
3
- import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
4
- export type CanReadPublicValuesParameters = {
5
- readonly encryptedValues: readonly EncryptedValueLike[];
6
- };
7
- export type CanReadPublicValuesReturnType = readonly boolean[];
8
- export declare function canReadPublicValues(fhevm: Fhevm<FhevmChain>, parameters: CanReadPublicValuesParameters): Promise<CanReadPublicValuesReturnType>;
9
- //# sourceMappingURL=canReadPublicValues.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMxE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,SAAS,OAAO,EAAE,CAAC;AAI/D,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,6BAA6B,CAAC,CAOxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC;AAInD,wBAAsB,eAAe,CACnC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CAOpC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,UAAU,EAAE,CAAC;AAItD,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,0BAA0B,GACrC,OAAO,CAAC,0BAA0B,CAAC,CAOrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValuesWithSignatures.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAOlE,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACxD,QAAQ,CAAC,mBAAmB,EAAE;QAC5B,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QAC9D,QAAQ,CAAC,oBAAoB,EAAE,QAAQ,CAAC;QACxC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC;KACpC,CAAC;CACH,CAAC;AAIF,wBAAsB,8BAA8B,CAClD,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,wCAAwC,GACnD,OAAO,CAAC,wCAAwC,CAAC,CAoBnD"}