@azguardwallet/types 0.6.0 → 0.7.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.
@@ -179,16 +179,10 @@ export type AztecGetPrivateEventsOperation = {
179
179
  kind: "aztec_getPrivateEvents";
180
180
  /** Chain to execute request for */
181
181
  chain: CaipChain;
182
- /** The address of the contract to get events from (AztecAddress) */
183
- contractAddress: unknown;
184
182
  /** Metadata of the event. This should be the class generated from the contract. e.g. Contract.events.Event (EventMetadataDefinition) */
185
183
  eventMetadata: unknown;
186
- /** The block number to search from */
187
- from: number;
188
- /** The amount of blocks to search */
189
- numBlocks: number;
190
- /** The addresses that decrypted the logs (AztecAddress[]) */
191
- recipients: unknown[];
184
+ /** Private event filter (PrivateEventFilter) */
185
+ eventFilter: unknown;
192
186
  };
193
187
  /** A result of the "aztec_getPrivateEvents" operation (T[]) */
194
188
  export type AztecGetPrivateEventsResult = unknown;
@@ -240,8 +234,8 @@ export type AztecRegisterContractOperation = {
240
234
  kind: "aztec_registerContract";
241
235
  /** Chain to execute request for */
242
236
  chain: CaipChain;
243
- /** Contract instance (AztecAddress | ContractInstanceWithAddress | ContractInstantiationData | ContractInstanceAndArtifact) */
244
- instanceData: unknown;
237
+ /** Contract instance (ContractInstanceWithAddress) */
238
+ instance: unknown;
245
239
  /** Contract artifact (ContractArtifact) */
246
240
  artifact?: unknown;
247
241
  /** Secret key (Fr) */
@@ -268,12 +262,8 @@ export type AztecSimulateUtilityOperation = {
268
262
  kind: "aztec_simulateUtility";
269
263
  /** Address of the account to simulate utility function from */
270
264
  account: CaipAccount;
271
- /** The name of the utility contract function to be called */
272
- functionName: string;
273
- /** The arguments to be provided to the function */
274
- args: any[];
275
- /** The address of the contract to be called (AztecAddress) */
276
- to: unknown;
265
+ /** Function call (FunctionCall) */
266
+ call: unknown;
277
267
  /** (Optional) The authentication witnesses required for the function call (AuthWitness[]) */
278
268
  authwits?: unknown[];
279
269
  };
@@ -311,7 +301,7 @@ export type AztecCreateAuthWitOperation = {
311
301
  kind: "aztec_createAuthWit";
312
302
  /** Address of the account to create authwit for */
313
303
  account: CaipAccount;
314
- /** Intent or message hash (Fr | Buffer<ArrayBuffer> | IntentInnerHash | CallIntent) */
304
+ /** Intent or message hash (Fr | IntentInnerHash | CallIntent) */
315
305
  messageHashOrIntent: unknown;
316
306
  };
317
307
  /** A result of the "aztec_createAuthWit" operation (AuthWitness) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azguardwallet/types",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Typings for Azguard Wallet inpage RPC client",
5
5
  "author": "Azguard Wallet",
6
6
  "homepage": "https://github.com/AzguardWallet/azguard-wallet-types",