@aztec/wallet-sdk 5.0.0-private.20260319 → 5.0.0-rc.2
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 +125 -0
- package/dest/base-wallet/base_wallet.d.ts +65 -40
- package/dest/base-wallet/base_wallet.d.ts.map +1 -1
- package/dest/base-wallet/base_wallet.js +196 -80
- package/dest/base-wallet/get_gas_limits.d.ts +36 -0
- package/dest/base-wallet/get_gas_limits.d.ts.map +1 -0
- package/dest/base-wallet/get_gas_limits.js +55 -0
- package/dest/base-wallet/index.d.ts +3 -2
- package/dest/base-wallet/index.d.ts.map +1 -1
- package/dest/base-wallet/index.js +1 -0
- package/dest/base-wallet/utils.d.ts +7 -4
- package/dest/base-wallet/utils.d.ts.map +1 -1
- package/dest/base-wallet/utils.js +11 -5
- package/dest/crypto.d.ts +39 -1
- package/dest/crypto.d.ts.map +1 -1
- package/dest/crypto.js +88 -0
- package/dest/extension/handlers/background_connection_handler.d.ts +12 -2
- package/dest/extension/handlers/background_connection_handler.d.ts.map +1 -1
- package/dest/extension/handlers/background_connection_handler.js +44 -8
- package/dest/extension/handlers/content_script_connection_handler.d.ts +2 -1
- package/dest/extension/handlers/content_script_connection_handler.d.ts.map +1 -1
- package/dest/extension/handlers/content_script_connection_handler.js +19 -0
- package/dest/extension/handlers/internal_message_types.d.ts +3 -1
- package/dest/extension/handlers/internal_message_types.d.ts.map +1 -1
- package/dest/extension/handlers/internal_message_types.js +3 -1
- package/dest/extension/provider/extension_wallet.d.ts +26 -6
- package/dest/extension/provider/extension_wallet.d.ts.map +1 -1
- package/dest/extension/provider/extension_wallet.js +80 -9
- package/dest/extension/provider/index.d.ts +2 -2
- package/dest/extension/provider/index.d.ts.map +1 -1
- package/dest/iframe/handlers/iframe_connection_handler.d.ts +122 -0
- package/dest/iframe/handlers/iframe_connection_handler.d.ts.map +1 -0
- package/dest/iframe/handlers/iframe_connection_handler.js +239 -0
- package/dest/iframe/handlers/index.d.ts +2 -0
- package/dest/iframe/handlers/index.d.ts.map +1 -0
- package/dest/iframe/handlers/index.js +1 -0
- package/dest/iframe/provider/iframe_discovery.d.ts +25 -0
- package/dest/iframe/provider/iframe_discovery.d.ts.map +1 -0
- package/dest/iframe/provider/iframe_discovery.js +167 -0
- package/dest/iframe/provider/iframe_provider.d.ts +65 -0
- package/dest/iframe/provider/iframe_provider.d.ts.map +1 -0
- package/dest/iframe/provider/iframe_provider.js +257 -0
- package/dest/iframe/provider/iframe_wallet.d.ts +85 -0
- package/dest/iframe/provider/iframe_wallet.d.ts.map +1 -0
- package/dest/iframe/provider/iframe_wallet.js +269 -0
- package/dest/iframe/provider/index.d.ts +4 -0
- package/dest/iframe/provider/index.d.ts.map +1 -0
- package/dest/iframe/provider/index.js +3 -0
- package/dest/manager/types.d.ts +3 -2
- package/dest/manager/types.d.ts.map +1 -1
- package/dest/manager/wallet_manager.d.ts +1 -1
- package/dest/manager/wallet_manager.d.ts.map +1 -1
- package/dest/manager/wallet_manager.js +46 -16
- package/dest/types.d.ts +64 -2
- package/dest/types.d.ts.map +1 -1
- package/dest/types.js +29 -0
- package/package.json +12 -8
- package/src/base-wallet/base_wallet.ts +257 -125
- package/src/base-wallet/get_gas_limits.ts +88 -0
- package/src/base-wallet/index.ts +7 -1
- package/src/base-wallet/utils.ts +15 -5
- package/src/crypto.ts +104 -0
- package/src/extension/handlers/background_connection_handler.ts +42 -9
- package/src/extension/handlers/content_script_connection_handler.ts +18 -0
- package/src/extension/handlers/internal_message_types.ts +2 -0
- package/src/extension/provider/extension_wallet.ts +94 -13
- package/src/extension/provider/index.ts +1 -1
- package/src/iframe/handlers/iframe_connection_handler.ts +341 -0
- package/src/iframe/handlers/index.ts +7 -0
- package/src/iframe/provider/iframe_discovery.ts +185 -0
- package/src/iframe/provider/iframe_provider.ts +331 -0
- package/src/iframe/provider/iframe_wallet.ts +323 -0
- package/src/iframe/provider/index.ts +3 -0
- package/src/manager/types.ts +2 -1
- package/src/manager/wallet_manager.ts +48 -14
- package/src/types.ts +72 -0
package/README.md
CHANGED
|
@@ -319,3 +319,128 @@ function useWalletDiscovery(chainInfo: ChainInfo, appId: string) {
|
|
|
319
319
|
return { providers, isDiscovering, cancel: () => discoveryRef.current?.cancel() };
|
|
320
320
|
}
|
|
321
321
|
```
|
|
322
|
+
|
|
323
|
+
## Storage backends
|
|
324
|
+
|
|
325
|
+
Your wallet and the PXE it embeds persist state through a pluggable key-value store (`@aztec/kv-store`). In the browser there are two backends:
|
|
326
|
+
|
|
327
|
+
- **IndexedDB** (`@aztec/kv-store/indexeddb`): the default in browser environments up to Aztec Alpha v4. Please keep in mind we plan to deprecate support of this backend, so we strongly recommend you use the SQLite backend.
|
|
328
|
+
- **SQLite-OPFS** (`@aztec/kv-store/sqlite-opfs`): the default KV store backend from Aztec Alpha v5 on. It's backed by the durable Origin Private File System web standard, and it offers a number of advantages over IndexedDB: a sane transaction model (IDB transactions auto-close the moment the event loop yields, which constrains the store layer), support for encryption at rest, and better performance in the access patterns we exercise the most from both wallet and PXE.
|
|
329
|
+
|
|
330
|
+
The backend is chosen by *which store you construct and hand to the wallet* there is no runtime flag or environment variable.
|
|
331
|
+
|
|
332
|
+
> **Data migration is not supported between backends, by design.** The v4→v5 protocol upgrade discards all local state regardless, so switching to SQLite-OPFS simply means starting from a fresh store.
|
|
333
|
+
|
|
334
|
+
### Quick start: embedded wallet with an encrypted SQLite store
|
|
335
|
+
|
|
336
|
+
If you build on `@aztec/wallets`' `EmbeddedWallet`, open its two stores (PXE state + the wallet DB) with `openEncryptedEmbeddedStores`, then pass them in:
|
|
337
|
+
|
|
338
|
+
```typescript
|
|
339
|
+
import { EmbeddedWallet } from '@aztec/wallets/embedded';
|
|
340
|
+
import { openEncryptedEmbeddedStores } from '@aztec/wallets/embedded/store-encryption';
|
|
341
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
342
|
+
|
|
343
|
+
const log = createLogger('wallet:storage');
|
|
344
|
+
|
|
345
|
+
// Your wallet derives a 32-byte key (see "Key management" below).
|
|
346
|
+
// IMPORTANT: return a *fresh* Uint8Array each call. Opening a store consumes (empties)
|
|
347
|
+
// the key, so a reused array would be empty on the second open (see "important" below).
|
|
348
|
+
const getEncryptionKey = async () => new Uint8Array(myDerivedKey);
|
|
349
|
+
|
|
350
|
+
const { pxeStore, walletStore } = await openEncryptedEmbeddedStores(
|
|
351
|
+
{
|
|
352
|
+
pxe: { name: `pxe-${rollupAddress}`, poolDirectory: '/pxe' },
|
|
353
|
+
wallet: { name: `wallet-${rollupAddress}`, poolDirectory: '/wallet' },
|
|
354
|
+
},
|
|
355
|
+
getEncryptionKey,
|
|
356
|
+
log,
|
|
357
|
+
);
|
|
358
|
+
|
|
359
|
+
const wallet = await EmbeddedWallet.create(nodeUrl, {
|
|
360
|
+
pxe: { store: pxeStore },
|
|
361
|
+
walletDb: { store: walletStore },
|
|
362
|
+
});
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
If the supplied key cannot decrypt an existing store, `openEncryptedEmbeddedStores` throws `EmbeddedWalletEncryptionError` with `storeName: 'pxe' | 'wallet'`, which you can then surface as a "wrong password" error in your UI:
|
|
366
|
+
|
|
367
|
+
```typescript
|
|
368
|
+
import { EmbeddedWalletEncryptionError } from '@aztec/wallets/embedded/store-encryption';
|
|
369
|
+
|
|
370
|
+
try {
|
|
371
|
+
await openEncryptedEmbeddedStores(/* ... */);
|
|
372
|
+
} catch (err) {
|
|
373
|
+
if (err instanceof EmbeddedWalletEncryptionError) {
|
|
374
|
+
showWrongPasswordError(); // err.storeName tells you which store failed
|
|
375
|
+
} else {
|
|
376
|
+
throw err;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Important
|
|
382
|
+
|
|
383
|
+
1. **Opening a store consumes the key, it does not copy it.** So that raw key material does not linger in page memory, the SDK moves your key into the storage worker and detaches the buffer on your side. The `Uint8Array` you passed comes back empty, so the same array cannot be reused to open a second store. To open more than one store with the same key, hand each open a fresh copy (`new Uint8Array(key)`). `openEncryptedEmbeddedStores` does this for you by invoking your `getEncryptionKey` callback once per store.
|
|
384
|
+
2. **Each coexisting store needs its own `poolDirectory`.** The OPFS SAH Pool holds an *exclusive* lock on its directory, so two stores sharing the default pool fail with "Access Handles cannot be created if there is another open Access Handle…". Give every store a distinct, stable `poolDirectory` (stable so the same files re-open next session).
|
|
385
|
+
|
|
386
|
+
### No multi-tab access: assume one tab at a time
|
|
387
|
+
|
|
388
|
+
A store can be opened by **one browser tab at a time per origin**. If the user opens your wallet in a second tab of the same origin pointing at the same store, the second open contends for that lock.
|
|
389
|
+
|
|
390
|
+
Thanks to the lock, the data is never corrupted, but the second open fails or hangs rather than succeeding, and there is no graceful "already open elsewhere" signal yet.
|
|
391
|
+
|
|
392
|
+
Until it does, design for a single active tab: detect a second instance (e.g. with the [Web Locks API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API) or a `BroadcastChannel`) and steer the user back to the existing tab, or open the store read-only there.
|
|
393
|
+
|
|
394
|
+
If you need genuine concurrent multi-tab access, route all storage access through a single `SharedWorker` that you own and that holds the one connection.
|
|
395
|
+
|
|
396
|
+
### Opting out of encryption
|
|
397
|
+
|
|
398
|
+
If you do not need at-rest encryption (you rely on full-disk encryption, or the device is trusted), an *unencrypted* SQLite-OPFS store is still a better default than IndexedDB.
|
|
399
|
+
|
|
400
|
+
The `createStore` convenience helper always uses the default OPFS pool directory and does not currently let you change it, so it only works for a single store per tab. The embedded wallet runs two stores (PXE + walletDB), so open them directly from `AztecSQLiteOPFSStore` with a distinct `poolDirectory` each:
|
|
401
|
+
|
|
402
|
+
```typescript
|
|
403
|
+
import { EmbeddedWallet } from '@aztec/wallets/embedded';
|
|
404
|
+
import { AztecSQLiteOPFSStore } from '@aztec/kv-store/sqlite-opfs';
|
|
405
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
406
|
+
|
|
407
|
+
const log = createLogger('wallet:storage');
|
|
408
|
+
|
|
409
|
+
// No key; just name, ephemeral=false, and a distinct poolDirectory per store.
|
|
410
|
+
const pxeStore = await AztecSQLiteOPFSStore.open(log, `pxe-${rollupAddress}`, false, '/pxe');
|
|
411
|
+
const walletStore = await AztecSQLiteOPFSStore.open(log, `wallet-${rollupAddress}`, false, '/wallet');
|
|
412
|
+
|
|
413
|
+
const wallet = await EmbeddedWallet.create(nodeUrl, {
|
|
414
|
+
pxe: { store: pxeStore },
|
|
415
|
+
walletDb: { store: walletStore },
|
|
416
|
+
});
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
### Building your own wallet (lower-level API)
|
|
420
|
+
|
|
421
|
+
If you are not using `EmbeddedWallet`, construct stores directly from `@aztec/kv-store/sqlite-opfs` and pass them wherever a store is accepted (e.g. `PXECreationOptions.store`):
|
|
422
|
+
|
|
423
|
+
```typescript
|
|
424
|
+
import { openEncryptedStore, createStore, SqliteEncryptionError } from '@aztec/kv-store/sqlite-opfs';
|
|
425
|
+
|
|
426
|
+
// Encrypted, persistent:
|
|
427
|
+
const store = await openEncryptedStore(new Uint8Array(myDerivedKey), 'my-store', '/my-pool');
|
|
428
|
+
|
|
429
|
+
// Or unencrypted:
|
|
430
|
+
const plain = await createStore('my-store', { dataStoreMapSizeKb: 2e10 });
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
Note: `dataStoreMapSizeKb` is an LMDB-specific ceiling (the maximum memory-map size). SQLite-OPFS grows its file dynamically and ignores the value, but it is a required field of the shared `DataStoreConfig` type, so you must still pass something (any number is fine). We will fix this implementation leak in coming versions.
|
|
434
|
+
|
|
435
|
+
Note: `openEncryptedStore` throws `SqliteEncryptionError` (with a typed `code`, e.g. `'decrypt_failed'`) on a bad key.
|
|
436
|
+
|
|
437
|
+
### Using SQLite-OPFS in a browser extension (MV3)
|
|
438
|
+
|
|
439
|
+
SQLite-OPFS needs OPFS, a Web Worker, and cross-origin isolation (SharedArrayBuffer). In a Chrome MV3 extension:
|
|
440
|
+
|
|
441
|
+
- **Run it in an offscreen document, not the background service worker.** The service worker is ephemeral and does not reliably provide OPFS/SharedArrayBuffer; an offscreen document does, and it is where your PXE and stores should live.
|
|
442
|
+
- **No COOP/COEP header setup is needed inside the extension.** Extension pages are cross-origin-isolated by default. (A plain web page hosting the wallet *does* need those headers.)
|
|
443
|
+
|
|
444
|
+
### Key management is your responsibility
|
|
445
|
+
|
|
446
|
+
The store encrypts data at rest given a 32-byte key, but deriving and safeguarding that key is the wallet's job. A common pattern is to derive the key from a user password with a memory-hard KDF (e.g. Argon2id) and hold it only in memory while the wallet is unlocked. Adapt this to your own security model.
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import type { Account } from '@aztec/aztec.js/account';
|
|
1
|
+
import type { Account, NoFrom } from '@aztec/aztec.js/account';
|
|
2
2
|
import type { CallIntent, IntentInnerHash } from '@aztec/aztec.js/authorization';
|
|
3
3
|
import { type InteractionWaitOptions, type SendReturn } from '@aztec/aztec.js/contracts';
|
|
4
4
|
import type { FeePaymentMethod } from '@aztec/aztec.js/fee';
|
|
5
|
-
import type
|
|
5
|
+
import { type Aliased, type AppCapabilities, type BatchResults, type BatchedMethod, ContractInitializationStatus, type ExecuteUtilityOptions, type PrivateEvent, type PrivateEventFilter, type ProfileOptions, type SendOptions, type SimulateOptions, TxSimulationResultWithAppOffset, type Wallet, type WalletCapabilities } from '@aztec/aztec.js/wallet';
|
|
6
6
|
import { AccountFeePaymentMethodOptions } from '@aztec/entrypoints/account';
|
|
7
7
|
import type { ChainInfo } from '@aztec/entrypoints/interfaces';
|
|
8
8
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
9
9
|
import type { FieldsOf } from '@aztec/foundation/types';
|
|
10
|
-
import { type AccessScopes } from '@aztec/pxe/client/lazy';
|
|
11
10
|
import type { PXE } from '@aztec/pxe/server';
|
|
12
11
|
import { type ContractArtifact, type EventMetadataDefinition, type FunctionCall } from '@aztec/stdlib/abi';
|
|
13
12
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
14
13
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
15
14
|
import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
|
|
16
|
-
import { GasSettings } from '@aztec/stdlib/gas';
|
|
15
|
+
import { Gas, GasFees, GasSettings, ManaUsageEstimate } from '@aztec/stdlib/gas';
|
|
17
16
|
import type { AztecNode } from '@aztec/stdlib/interfaces/client';
|
|
18
|
-
import { type TxExecutionRequest, type TxProfileResult,
|
|
19
|
-
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
17
|
+
import { ExecutionPayload, type TxExecutionRequest, type TxProfileResult, type UtilityExecutionResult } from '@aztec/stdlib/tx';
|
|
20
18
|
/**
|
|
21
19
|
* Options to configure fee payment for a transaction
|
|
22
20
|
*/
|
|
@@ -27,16 +25,30 @@ export type FeeOptions = {
|
|
|
27
25
|
*/
|
|
28
26
|
walletFeePaymentMethod?: FeePaymentMethod;
|
|
29
27
|
/** Configuration options for the account to properly handle the selected fee payment method */
|
|
30
|
-
accountFeePaymentMethodOptions
|
|
28
|
+
accountFeePaymentMethodOptions?: AccountFeePaymentMethodOptions;
|
|
31
29
|
/** The gas settings to use for the transaction */
|
|
32
30
|
gasSettings: GasSettings;
|
|
33
31
|
};
|
|
34
32
|
/** Options for `simulateViaEntrypoint`. */
|
|
35
|
-
export type SimulateViaEntrypointOptions = Pick<SimulateOptions, 'from' | 'additionalScopes' | 'skipTxValidation' | 'skipFeeEnforcement'> & {
|
|
33
|
+
export type SimulateViaEntrypointOptions = Pick<SimulateOptions, 'from' | 'additionalScopes' | 'skipTxValidation' | 'skipFeeEnforcement' | 'sendMessagesAs' | 'overrides'> & {
|
|
36
34
|
/** Fee options for the entrypoint */
|
|
37
35
|
feeOptions: FeeOptions;
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
};
|
|
37
|
+
/** Options for `completeFeeOptions`. */
|
|
38
|
+
export type CompleteFeeOptionsConfig = {
|
|
39
|
+
/** The address where the transaction is being sent from. */
|
|
40
|
+
from: AztecAddress | NoFrom;
|
|
41
|
+
/** The address paying for fees (if any fee payment method is embedded in the execution payload). */
|
|
42
|
+
feePayer?: AztecAddress;
|
|
43
|
+
/** User-provided partial gas settings. */
|
|
44
|
+
gasSettings?: Partial<FieldsOf<GasSettings>>;
|
|
45
|
+
/** If true, returns gas settings with high gas limits for estimation. If false, uses fallback limits. */
|
|
46
|
+
forEstimation?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Assumed network congestion level for fee prediction. Controls how aggressively the wallet
|
|
49
|
+
* estimates future fees. Defaults to Limit (worst case) when not specified.
|
|
50
|
+
*/
|
|
51
|
+
congestionEstimate?: ManaUsageEstimate;
|
|
40
52
|
};
|
|
41
53
|
/**
|
|
42
54
|
* A base class for Wallet implementations
|
|
@@ -47,8 +59,17 @@ export declare abstract class BaseWallet implements Wallet {
|
|
|
47
59
|
protected log: import("@aztec/foundation/log").Logger;
|
|
48
60
|
protected minFeePadding: number;
|
|
49
61
|
protected cancellableTransactions: boolean;
|
|
62
|
+
private nodeInfoPromise;
|
|
50
63
|
protected constructor(pxe: PXE, aztecNode: AztecNode, log?: import("@aztec/foundation/log").Logger);
|
|
51
|
-
protected scopesFrom(from: AztecAddress, additionalScopes?: AztecAddress[]): AztecAddress[];
|
|
64
|
+
protected scopesFrom(from: AztecAddress | NoFrom, additionalScopes?: AztecAddress[]): AztecAddress[];
|
|
65
|
+
/**
|
|
66
|
+
* Picks the sender address PXE should tag private messages with. Returns `undefined` when there is no signing
|
|
67
|
+
* account (`from === NO_FROM`) and no explicit override; in that case any private log emitted by the tx using
|
|
68
|
+
* the wallet-supplied default sender will fail the "Sender for tags is not set" assertion.
|
|
69
|
+
* @param from - Tx sender, or `NO_FROM`.
|
|
70
|
+
* @param sendMessagesAs - Explicit override.
|
|
71
|
+
*/
|
|
72
|
+
protected senderForTagsFrom(from: AztecAddress | NoFrom, sendMessagesAs?: AztecAddress): AztecAddress | undefined;
|
|
52
73
|
protected abstract getAccountFromAddress(address: AztecAddress): Promise<Account>;
|
|
53
74
|
abstract getAccounts(): Promise<Aliased<AztecAddress>[]>;
|
|
54
75
|
/**
|
|
@@ -59,8 +80,22 @@ export declare abstract class BaseWallet implements Wallet {
|
|
|
59
80
|
* @returns The aliased collection of AztecAddresses that form this wallet's address book
|
|
60
81
|
*/
|
|
61
82
|
getAddressBook(): Promise<Aliased<AztecAddress>[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Fetches and caches the node info for the wallet's lifetime, since a wallet talks to a single network and
|
|
85
|
+
* node info never changes. A rejected fetch clears the cache so the next call retries instead of replaying
|
|
86
|
+
* the cached rejection forever — important because the gas-limit fill-in and validation (run on every send)
|
|
87
|
+
* depend on it.
|
|
88
|
+
*/
|
|
89
|
+
private getNodeInfo;
|
|
62
90
|
getChainInfo(): Promise<ChainInfo>;
|
|
63
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Returns the maximum gas limits a single transaction may declare on this wallet's network (the
|
|
93
|
+
* node-advertised `txsLimits.gas`). Internal helper used to fill in default gas limits when sending a
|
|
94
|
+
* transaction without explicit limits, and to validate caller-provided limits before sending. Backed by
|
|
95
|
+
* the cached node info, since a wallet talks to a single network.
|
|
96
|
+
*/
|
|
97
|
+
protected getMaxTxGasLimits(): Promise<Gas>;
|
|
98
|
+
protected createTxExecutionRequestFromPayloadAndFee(executionPayload: ExecutionPayload, from: AztecAddress | NoFrom, feeOptions: FeeOptions): Promise<TxExecutionRequest>;
|
|
64
99
|
createAuthWit(from: AztecAddress, messageHashOrIntent: IntentInnerHash | CallIntent): Promise<AuthWitness>;
|
|
65
100
|
/**
|
|
66
101
|
* Request capabilities from the wallet.
|
|
@@ -79,38 +114,31 @@ export declare abstract class BaseWallet implements Wallet {
|
|
|
79
114
|
batch<const T extends readonly BatchedMethod[]>(methods: T): Promise<BatchResults<T>>;
|
|
80
115
|
/**
|
|
81
116
|
* Completes partial user-provided fee options with wallet defaults.
|
|
82
|
-
* @param
|
|
83
|
-
* @param feePayer - The address paying for fees (if any fee payment method is embedded in the execution payload)
|
|
84
|
-
* @param gasSettings - User-provided partial gas settings
|
|
85
|
-
* @returns - Complete fee options that can be used to create a transaction execution request
|
|
117
|
+
* @param config - Fee completion config.
|
|
86
118
|
*/
|
|
87
|
-
protected completeFeeOptions(
|
|
119
|
+
protected completeFeeOptions(config: CompleteFeeOptionsConfig): Promise<FeeOptions>;
|
|
88
120
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* to
|
|
92
|
-
* @param from - The address where the transaction is being sent from
|
|
93
|
-
* @param feePayer - The address paying for fees (if any fee payment method is embedded in the execution payload)
|
|
94
|
-
* @param gasSettings - User-provided partial gas settings
|
|
121
|
+
* Returns the worst-case min fee across predicted future slots.
|
|
122
|
+
* Falls back to getCurrentMinFees if the node doesn't support getPredictedMinFees.
|
|
123
|
+
* @param estimate - The mana usage estimate to use for fee prediction. Defaults to Limit for conservative estimation.
|
|
95
124
|
*/
|
|
96
|
-
protected
|
|
97
|
-
/**
|
|
98
|
-
* A wallet-provided fallback fee payment method that is used only if the transaction that is being constructed
|
|
99
|
-
* doesn't already include one
|
|
100
|
-
*/
|
|
101
|
-
walletFeePaymentMethod?: FeePaymentMethod | undefined;
|
|
102
|
-
/** Configuration options for the account to properly handle the selected fee payment method */
|
|
103
|
-
accountFeePaymentMethodOptions: AccountFeePaymentMethodOptions;
|
|
104
|
-
gasSettings: GasSettings;
|
|
105
|
-
}>;
|
|
125
|
+
protected getMinFees(estimate?: ManaUsageEstimate): Promise<GasFees>;
|
|
106
126
|
registerSender(address: AztecAddress, _alias?: string): Promise<AztecAddress>;
|
|
107
127
|
registerContract(instance: ContractInstanceWithAddress, artifact?: ContractArtifact, secretKey?: Fr): Promise<ContractInstanceWithAddress>;
|
|
128
|
+
registerContractClass(artifact: ContractArtifact): Promise<void>;
|
|
108
129
|
/**
|
|
109
130
|
* Simulates calls through the standard PXE path (account entrypoint).
|
|
110
131
|
* @param executionPayload - The execution payload to simulate.
|
|
111
132
|
* @param opts - Simulation options.
|
|
112
133
|
*/
|
|
113
|
-
protected simulateViaEntrypoint(executionPayload: ExecutionPayload, opts: SimulateViaEntrypointOptions): Promise<
|
|
134
|
+
protected simulateViaEntrypoint(executionPayload: ExecutionPayload, opts: SimulateViaEntrypointOptions): Promise<TxSimulationResultWithAppOffset>;
|
|
135
|
+
/**
|
|
136
|
+
* Computes the index where the app's calls begin in the flattened array of calls (0 = entrypoint/root, 1..N = fee
|
|
137
|
+
* calls, N+1 = app).
|
|
138
|
+
* @param from - The sender address, or NO_FROM for the default entrypoint.
|
|
139
|
+
* @param feeOptions - Fee options containing the wallet fee payment method.
|
|
140
|
+
*/
|
|
141
|
+
protected computeAppCallOffset(from: AztecAddress | NoFrom, feeOptions: FeeOptions): Promise<number>;
|
|
114
142
|
/**
|
|
115
143
|
* Simulates a transaction, optimizing leading public static calls by running them directly
|
|
116
144
|
* on the node while sending the remaining calls through the standard PXE path.
|
|
@@ -119,7 +147,7 @@ export declare abstract class BaseWallet implements Wallet {
|
|
|
119
147
|
* @param opts - Simulation options (from address, fee settings, etc.).
|
|
120
148
|
* @returns The merged simulation result.
|
|
121
149
|
*/
|
|
122
|
-
simulateTx(executionPayload: ExecutionPayload, opts: SimulateOptions): Promise<
|
|
150
|
+
simulateTx(executionPayload: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResultWithAppOffset>;
|
|
123
151
|
profileTx(executionPayload: ExecutionPayload, opts: ProfileOptions): Promise<TxProfileResult>;
|
|
124
152
|
sendTx<W extends InteractionWaitOptions = undefined>(executionPayload: ExecutionPayload, opts: SendOptions<W>): Promise<SendReturn<W>>;
|
|
125
153
|
/**
|
|
@@ -132,14 +160,11 @@ export declare abstract class BaseWallet implements Wallet {
|
|
|
132
160
|
getPrivateEvents<T>(eventDef: EventMetadataDefinition, eventFilter: PrivateEventFilter): Promise<PrivateEvent<T>[]>;
|
|
133
161
|
/**
|
|
134
162
|
* Returns metadata about a contract, including whether it has been initialized, published, and updated.
|
|
135
|
-
*
|
|
136
|
-
* `isContractInitialized` requires the contract instance to be registered in the PXE (for `init_hash`). When the
|
|
137
|
-
* instance is not available, `isContractInitialized` is `undefined` since it cannot be determined.
|
|
138
163
|
* @param address - The contract address to query.
|
|
139
164
|
*/
|
|
140
165
|
getContractMetadata(address: AztecAddress): Promise<{
|
|
141
166
|
instance: ContractInstanceWithAddress | undefined;
|
|
142
|
-
|
|
167
|
+
initializationStatus: ContractInitializationStatus;
|
|
143
168
|
isContractPublished: boolean;
|
|
144
169
|
isContractUpdated: boolean;
|
|
145
170
|
updatedContractClassId: Fr | undefined;
|
|
@@ -149,4 +174,4 @@ export declare abstract class BaseWallet implements Wallet {
|
|
|
149
174
|
isContractClassPubliclyRegistered: boolean;
|
|
150
175
|
}>;
|
|
151
176
|
}
|
|
152
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
177
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZV93YWxsZXQuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iYXNlLXdhbGxldC9iYXNlX3dhbGxldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFL0QsT0FBTyxLQUFLLEVBQUUsVUFBVSxFQUFFLGVBQWUsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ2pGLE9BQU8sRUFDTCxLQUFLLHNCQUFzQixFQUUzQixLQUFLLFVBQVUsRUFFaEIsTUFBTSwyQkFBMkIsQ0FBQztBQUNuQyxPQUFPLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRTVELE9BQU8sRUFDTCxLQUFLLE9BQU8sRUFDWixLQUFLLGVBQWUsRUFDcEIsS0FBSyxZQUFZLEVBQ2pCLEt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UMsTUFBTSxHQUFHLFNBQVMsQ0FBQyxDQU9sRjtJQUVELFNBQVMsQ0FBQyxrQkFBa0IsQ0FBQyxHQUFHLEVBQUUsS0FBSyxFQUFFLEdBQUcsT0FBTyxFQUFFLE1BQU0sRUFBRSxHQUFHLEtBQUssQ0FZcEU7SUFFRCxjQUFjLENBQUMsSUFBSSxFQUFFLFlBQVksRUFBRSxJQUFJLEVBQUUscUJBQXFCLEdBQUcsT0FBTyxDQUFDLHNCQUFzQixDQUFDLENBRS9GO0lBRUssZ0JBQWdCLENBQUMsQ0FBQyxFQUN0QixRQUFRLEVBQUUsdUJBQXVCLEVBQ2pDLFdBQVcsRUFBRSxrQkFBa0IsR0FDOUIsT0FBTyxDQUFDLFlBQVksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBZTVCO0lBRUQ7OztPQUdHO0lBQ0csbUJBQW1CLENBQUMsT0FBTyxFQUFFLFlBQVk7Ozs7OztPQWlDOUM7SUFFSyx3QkFBd0IsQ0FBQyxFQUFFLEVBQUUsRUFBRTs7O09BTXBDO0NBQ0YifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_wallet.d.ts","sourceRoot":"","sources":["../../src/base-wallet/base_wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"base_wallet.d.ts","sourceRoot":"","sources":["../../src/base-wallet/base_wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EACL,KAAK,sBAAsB,EAE3B,KAAK,UAAU,EAEhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EACL,KA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