@aztec/aztec.js 3.0.0-nightly.20251023 → 3.0.0-nightly.20251025
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/dest/account/account.d.ts +2 -2
- package/dest/account/account_contract.d.ts +1 -1
- package/dest/account/account_contract.d.ts.map +1 -1
- package/dest/api/abi.d.ts +1 -0
- package/dest/api/abi.d.ts.map +1 -1
- package/dest/api/addresses.d.ts +1 -0
- package/dest/api/addresses.d.ts.map +1 -1
- package/dest/api/addresses.js +1 -0
- package/dest/api/block.d.ts +3 -0
- package/dest/api/block.d.ts.map +1 -0
- package/dest/api/block.js +2 -0
- package/dest/api/contract.d.ts +0 -1
- package/dest/api/contract.d.ts.map +1 -1
- package/dest/api/contract.js +0 -1
- package/dest/api/crypto.d.ts +2 -0
- package/dest/api/crypto.d.ts.map +1 -0
- package/dest/api/crypto.js +1 -0
- package/dest/api/keys.d.ts +4 -0
- package/dest/api/keys.d.ts.map +1 -0
- package/dest/api/keys.js +3 -0
- package/dest/api/log.d.ts +1 -0
- package/dest/api/log.d.ts.map +1 -1
- package/dest/api/log.js +1 -0
- package/dest/api/messaging.d.ts +3 -0
- package/dest/api/messaging.d.ts.map +1 -0
- package/dest/api/messaging.js +2 -0
- package/dest/api/node.d.ts +21 -0
- package/dest/api/node.d.ts.map +1 -0
- package/dest/api/node.js +18 -0
- package/dest/api/note.d.ts +2 -0
- package/dest/api/note.d.ts.map +1 -0
- package/dest/api/note.js +1 -0
- package/dest/api/protocol.d.ts +3 -0
- package/dest/api/protocol.d.ts.map +1 -0
- package/dest/api/protocol.js +2 -0
- package/dest/api/trees.d.ts +3 -0
- package/dest/api/trees.d.ts.map +1 -0
- package/dest/api/trees.js +2 -0
- package/dest/api/tx.d.ts +2 -0
- package/dest/api/tx.d.ts.map +1 -0
- package/dest/api/tx.js +1 -0
- package/dest/api/utils.d.ts +10 -4
- package/dest/api/utils.d.ts.map +1 -1
- package/dest/api/utils.js +10 -3
- package/dest/contract/batch_call.d.ts +3 -8
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +29 -27
- package/dest/contract/contract_base.d.ts +1 -1
- package/dest/contract/contract_base.d.ts.map +1 -1
- package/dest/contract/wait_for_proven.d.ts +1 -1
- package/dest/contract/wait_for_proven.d.ts.map +1 -1
- package/dest/wallet/account_manager.d.ts +1 -1
- package/dest/wallet/account_manager.d.ts.map +1 -1
- package/dest/wallet/wallet.d.ts +10 -1
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +13 -0
- package/package.json +21 -17
- package/src/api/abi.ts +11 -0
- package/src/api/addresses.ts +1 -0
- package/src/api/block.ts +2 -0
- package/src/api/contract.ts +0 -1
- package/src/api/crypto.ts +1 -0
- package/src/api/keys.ts +8 -0
- package/src/api/log.ts +1 -0
- package/src/api/messaging.ts +2 -0
- package/src/api/node.ts +20 -0
- package/src/api/note.ts +1 -0
- package/src/api/protocol.ts +2 -0
- package/src/api/trees.ts +2 -0
- package/src/api/tx.ts +11 -0
- package/src/api/utils.ts +12 -12
- package/src/contract/batch_call.ts +37 -33
- package/src/contract/wait_for_proven.ts +1 -1
- package/src/wallet/wallet.ts +6 -1
- package/dest/api/interfaces.d.ts +0 -2
- package/dest/api/interfaces.d.ts.map +0 -1
- package/dest/api/interfaces.js +0 -1
- package/dest/api/log_id.d.ts +0 -2
- package/dest/api/log_id.d.ts.map +0 -1
- package/dest/api/log_id.js +0 -1
- package/dest/api/tx_hash.d.ts +0 -2
- package/dest/api/tx_hash.d.ts.map +0 -1
- package/dest/api/tx_hash.js +0 -1
- package/dest/index.d.ts +0 -58
- package/dest/index.d.ts.map +0 -1
- package/dest/index.js +0 -61
- package/src/api/interfaces.ts +0 -1
- package/src/api/log_id.ts +0 -1
- package/src/api/tx_hash.ts +0 -1
- package/src/index.ts +0 -84
package/package.json
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec.js",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/aztec.js",
|
|
4
|
-
"version": "3.0.0-nightly.
|
|
4
|
+
"version": "3.0.0-nightly.20251025",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
".": "./dest/index.js",
|
|
8
|
-
"./interfaces": "./dest/api/interfaces.js",
|
|
9
7
|
"./abi": "./dest/api/abi.js",
|
|
10
8
|
"./account": "./dest/api/account.js",
|
|
11
9
|
"./addresses": "./dest/api/addresses.js",
|
|
12
|
-
"./
|
|
10
|
+
"./authorization": "./dest/api/authorization.js",
|
|
11
|
+
"./block": "./dest/api/block.js",
|
|
13
12
|
"./contracts": "./dest/api/contract.js",
|
|
13
|
+
"./crypto": "./dest/api/crypto.js",
|
|
14
14
|
"./deployment": "./dest/api/deployment.js",
|
|
15
|
-
"./entrypoint": "./dest/api/entrypoint.js",
|
|
16
|
-
"./eth_address": "./dest/api/eth_address.js",
|
|
17
15
|
"./ethereum": "./dest/api/ethereum.js",
|
|
16
|
+
"./events": "./dest/api/events.js",
|
|
18
17
|
"./fee": "./dest/api/fee.js",
|
|
18
|
+
"./fee/testing": "./dest/api/fee_testing.js",
|
|
19
19
|
"./fields": "./dest/api/fields.js",
|
|
20
|
+
"./keys": "./dest/api/keys.js",
|
|
20
21
|
"./log": "./dest/api/log.js",
|
|
21
|
-
"./
|
|
22
|
-
"./
|
|
23
|
-
"./
|
|
22
|
+
"./messaging": "./dest/api/messaging.js",
|
|
23
|
+
"./node": "./dest/api/node.js",
|
|
24
|
+
"./note": "./dest/api/note.js",
|
|
25
|
+
"./protocol": "./dest/api/protocol.js",
|
|
26
|
+
"./trees": "./dest/api/trees.js",
|
|
27
|
+
"./tx": "./dest/api/tx.js",
|
|
24
28
|
"./utils": "./dest/api/utils.js",
|
|
25
|
-
"./
|
|
29
|
+
"./wallet": "./dest/api/wallet.js"
|
|
26
30
|
},
|
|
27
31
|
"typedocOptions": {
|
|
28
32
|
"entryPoints": [
|
|
@@ -80,13 +84,13 @@
|
|
|
80
84
|
]
|
|
81
85
|
},
|
|
82
86
|
"dependencies": {
|
|
83
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
84
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
85
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
86
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
87
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
88
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
89
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
87
|
+
"@aztec/constants": "3.0.0-nightly.20251025",
|
|
88
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251025",
|
|
89
|
+
"@aztec/ethereum": "3.0.0-nightly.20251025",
|
|
90
|
+
"@aztec/foundation": "3.0.0-nightly.20251025",
|
|
91
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251025",
|
|
92
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251025",
|
|
93
|
+
"@aztec/stdlib": "3.0.0-nightly.20251025",
|
|
90
94
|
"axios": "^1.12.0",
|
|
91
95
|
"tslib": "^2.4.0",
|
|
92
96
|
"viem": "npm:@spalladino/viem@2.38.2-eip7594.0",
|
package/src/api/abi.ts
CHANGED
|
@@ -23,3 +23,14 @@ export {
|
|
|
23
23
|
contractArtifactFromBuffer,
|
|
24
24
|
} from '@aztec/stdlib/abi';
|
|
25
25
|
export { type NoirCompiledContract } from '@aztec/stdlib/noir';
|
|
26
|
+
|
|
27
|
+
// Type converters for flexible parameter types in contract calls
|
|
28
|
+
export {
|
|
29
|
+
type AztecAddressLike,
|
|
30
|
+
type EthAddressLike,
|
|
31
|
+
type EventSelectorLike,
|
|
32
|
+
type FieldLike,
|
|
33
|
+
type FunctionSelectorLike,
|
|
34
|
+
type U128Like,
|
|
35
|
+
type WrappedFieldLike,
|
|
36
|
+
} from '../utils/abi_types.js';
|
package/src/api/addresses.ts
CHANGED
package/src/api/block.ts
ADDED
package/src/api/contract.ts
CHANGED
|
@@ -49,7 +49,6 @@ export {
|
|
|
49
49
|
toSimulateOptions,
|
|
50
50
|
} from '../contract/interaction_options.js';
|
|
51
51
|
|
|
52
|
-
export { TxProfileResult } from '@aztec/stdlib/tx';
|
|
53
52
|
export { DefaultWaitOpts, SentTx, type WaitOpts } from '../contract/sent_tx.js';
|
|
54
53
|
export { ContractBase, type ContractMethod, type ContractStorageLayout } from '../contract/contract_base.js';
|
|
55
54
|
export { BatchCall } from '../contract/batch_call.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { computeSecretHash } from '@aztec/stdlib/hash';
|
package/src/api/keys.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { type PublicKey, PublicKeys } from '@aztec/stdlib/keys';
|
|
2
|
+
export {
|
|
3
|
+
computeAppNullifierSecretKey,
|
|
4
|
+
deriveKeys,
|
|
5
|
+
deriveMasterIncomingViewingSecretKey,
|
|
6
|
+
deriveMasterNullifierSecretKey,
|
|
7
|
+
} from '@aztec/stdlib/keys';
|
|
8
|
+
export { generatePublicKey } from '../utils/pub_key.js';
|
package/src/api/log.ts
CHANGED
package/src/api/node.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node` module provides utilities for connecting to and interacting with an Aztec node.
|
|
3
|
+
*
|
|
4
|
+
* The primary function is {@link createAztecNodeClient}, which creates a JSON-RPC client
|
|
5
|
+
* that connects to a running Aztec node instance. Use {@link waitForNode} to wait for
|
|
6
|
+
* the node to be ready before proceeding.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { createAztecNodeClient, waitForNode } from '@aztec/aztec.js/node';
|
|
11
|
+
*
|
|
12
|
+
* const node = createAztecNodeClient('http://localhost:8080');
|
|
13
|
+
* await waitForNode(node);
|
|
14
|
+
* const blockNumber = await node.getBlockNumber();
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
export { createAztecNodeClient, waitForNode, type AztecNode } from '../utils/node.js';
|
|
20
|
+
export { type NodeInfo } from '@aztec/stdlib/contract';
|
package/src/api/note.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UniqueNote, Comparator, Note } from '@aztec/stdlib/note';
|
package/src/api/trees.ts
ADDED
package/src/api/tx.ts
ADDED
package/src/api/utils.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for aztec.js.
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This module contains low-usage utilities and may be deprecated in the future.
|
|
5
|
+
* Prefer using more specific modules:
|
|
6
|
+
* - Node connection utilities → `@aztec/aztec.js/node`
|
|
7
|
+
* - Type converters → `@aztec/aztec.js/abi`
|
|
8
|
+
* - Key generation → `@aztec/aztec.js/keys`
|
|
9
|
+
* - Messaging utilities → `@aztec/aztec.js/messaging`
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// Low-usage utilities - consider these internal/experimental
|
|
12
13
|
export { getFeeJuiceBalance } from '../utils/fee_juice.js';
|
|
13
14
|
export { readFieldCompressedString } from '../utils/field_compressed_string.js';
|
|
14
|
-
export { isL1ToL2MessageReady, waitForL1ToL2MessageReady } from '../utils/cross_chain.js';
|
|
@@ -13,26 +13,18 @@ import {
|
|
|
13
13
|
export class BatchCall extends BaseContractInteraction {
|
|
14
14
|
constructor(
|
|
15
15
|
wallet: Wallet,
|
|
16
|
-
protected interactions: BaseContractInteraction[],
|
|
16
|
+
protected interactions: (BaseContractInteraction | ExecutionPayload)[],
|
|
17
17
|
) {
|
|
18
18
|
super(wallet);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Creates a new instance with no actual calls. Useful for triggering a no-op.
|
|
23
|
-
* @param wallet - The wallet to use for sending the batch call.
|
|
24
|
-
*/
|
|
25
|
-
public static empty(wallet: Wallet) {
|
|
26
|
-
return new BatchCall(wallet, []);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
21
|
/**
|
|
30
22
|
* Returns an execution request that represents this operation.
|
|
31
23
|
* @param options - An optional object containing additional configuration for the request generation.
|
|
32
24
|
* @returns An execution payload wrapped in promise.
|
|
33
25
|
*/
|
|
34
26
|
public async request(options: RequestInteractionOptions = {}): Promise<ExecutionPayload> {
|
|
35
|
-
const requests = await this.
|
|
27
|
+
const requests = await this.getExecutionPayloads();
|
|
36
28
|
const feeExecutionPayload = options.fee?.paymentMethod
|
|
37
29
|
? await options.fee.paymentMethod.getExecutionPayload()
|
|
38
30
|
: undefined;
|
|
@@ -52,7 +44,7 @@ export class BatchCall extends BaseContractInteraction {
|
|
|
52
44
|
* @returns The result of the transaction as returned by the contract function.
|
|
53
45
|
*/
|
|
54
46
|
public async simulate(options: SimulateInteractionOptions): Promise<any> {
|
|
55
|
-
const { indexedExecutionPayloads, utility } = (await this.
|
|
47
|
+
const { indexedExecutionPayloads, utility } = (await this.getExecutionPayloads()).reduce<{
|
|
56
48
|
/** Keep track of the number of private calls to retrieve the return values */
|
|
57
49
|
privateIndex: 0;
|
|
58
50
|
/** Keep track of the number of public calls to retrieve the return values */
|
|
@@ -87,37 +79,49 @@ export class BatchCall extends BaseContractInteraction {
|
|
|
87
79
|
combinedPayload.extraHashedArgs,
|
|
88
80
|
);
|
|
89
81
|
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
const utilityBatchPromise =
|
|
83
|
+
utility.length > 0
|
|
84
|
+
? this.wallet.batch(
|
|
85
|
+
utility.map(([call]) => ({
|
|
86
|
+
name: 'simulateUtility' as const,
|
|
87
|
+
args: [call.name, call.args, call.to, options?.authWitnesses] as const,
|
|
88
|
+
})),
|
|
89
|
+
)
|
|
90
|
+
: Promise.resolve([]);
|
|
94
91
|
|
|
95
|
-
const [
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
const [utilityBatchResults, simulatedTx] = await Promise.all([
|
|
93
|
+
utilityBatchPromise,
|
|
94
|
+
indexedExecutionPayloads.length > 0
|
|
95
|
+
? this.wallet.simulateTx(executionPayload, await toSimulateOptions(options))
|
|
96
|
+
: Promise.resolve(),
|
|
98
97
|
]);
|
|
99
98
|
|
|
100
99
|
const results: any[] = [];
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
utilityBatchResults.forEach((wrappedResult, utilityIndex) => {
|
|
102
|
+
const [, originalIndex] = utility[utilityIndex];
|
|
103
|
+
results[originalIndex] = wrappedResult.result.result;
|
|
104
104
|
});
|
|
105
|
-
indexedExecutionPayloads.forEach(([request, callIndex, resultIndex]) => {
|
|
106
|
-
const call = request.calls[0];
|
|
107
|
-
// As account entrypoints are private, for private functions we retrieve the return values from the first nested call
|
|
108
|
-
// since we're interested in the first set of values AFTER the account entrypoint
|
|
109
|
-
// For public functions we retrieve the first values directly from the public output.
|
|
110
|
-
const rawReturnValues =
|
|
111
|
-
call.type == FunctionType.PRIVATE
|
|
112
|
-
? simulatedTx.getPrivateReturnValues()?.nested?.[resultIndex].values
|
|
113
|
-
: simulatedTx.getPublicReturnValues()?.[resultIndex].values;
|
|
114
105
|
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
if (simulatedTx) {
|
|
107
|
+
indexedExecutionPayloads.forEach(([request, callIndex, resultIndex]) => {
|
|
108
|
+
const call = request.calls[0];
|
|
109
|
+
// As account entrypoints are private, for private functions we retrieve the return values from the first nested call
|
|
110
|
+
// since we're interested in the first set of values AFTER the account entrypoint
|
|
111
|
+
// For public functions we retrieve the first values directly from the public output.
|
|
112
|
+
const rawReturnValues =
|
|
113
|
+
call.type == FunctionType.PRIVATE
|
|
114
|
+
? simulatedTx.getPrivateReturnValues()?.nested?.[resultIndex].values
|
|
115
|
+
: simulatedTx.getPublicReturnValues()?.[resultIndex].values;
|
|
116
|
+
|
|
117
|
+
results[callIndex] = rawReturnValues ? decodeFromAbi(call.returnTypes, rawReturnValues) : [];
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
117
121
|
return results;
|
|
118
122
|
}
|
|
119
123
|
|
|
120
|
-
protected async
|
|
121
|
-
return await Promise.all(this.interactions.map(i => i.request()));
|
|
124
|
+
protected async getExecutionPayloads(): Promise<ExecutionPayload[]> {
|
|
125
|
+
return await Promise.all(this.interactions.map(i => (i instanceof ExecutionPayload ? i : i.request())));
|
|
122
126
|
}
|
|
123
127
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { retryUntil } from '@aztec/foundation/retry';
|
|
2
2
|
import type { AztecNode } from '@aztec/stdlib/interfaces/client';
|
|
3
|
+
import type { TxReceipt } from '@aztec/stdlib/tx';
|
|
3
4
|
|
|
4
|
-
import type { TxReceipt } from '../index.js';
|
|
5
5
|
import { DefaultWaitOpts } from './sent_tx.js';
|
|
6
6
|
|
|
7
7
|
/**
|
package/src/wallet/wallet.ts
CHANGED
|
@@ -107,7 +107,7 @@ export type SendOptions = Omit<SendInteractionOptions, 'fee'> & {
|
|
|
107
107
|
/**
|
|
108
108
|
* Helper type that represents all methods that can be batched.
|
|
109
109
|
*/
|
|
110
|
-
export type BatchableMethods = Pick<Wallet, 'registerContract' | 'sendTx' | 'registerSender'>;
|
|
110
|
+
export type BatchableMethods = Pick<Wallet, 'registerContract' | 'sendTx' | 'registerSender' | 'simulateUtility'>;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* From the batchable methods, we create a type that represents a method call with its name and arguments.
|
|
@@ -288,6 +288,10 @@ export const BatchedMethodSchema = z.union([
|
|
|
288
288
|
name: z.literal('sendTx'),
|
|
289
289
|
args: z.tuple([ExecutionPayloadSchema, SendOptionsSchema]),
|
|
290
290
|
}),
|
|
291
|
+
z.object({
|
|
292
|
+
name: z.literal('simulateUtility'),
|
|
293
|
+
args: z.tuple([z.string(), z.array(z.any()), schemas.AztecAddress, optional(z.array(AuthWitness.schema))]),
|
|
294
|
+
}),
|
|
291
295
|
]);
|
|
292
296
|
|
|
293
297
|
export const ContractMetadataSchema = z.object({
|
|
@@ -351,6 +355,7 @@ export const WalletSchema: ApiSchemaFor<Wallet> = {
|
|
|
351
355
|
z.object({ name: z.literal('registerSender'), result: schemas.AztecAddress }),
|
|
352
356
|
z.object({ name: z.literal('registerContract'), result: ContractInstanceWithAddressSchema }),
|
|
353
357
|
z.object({ name: z.literal('sendTx'), result: TxHash.schema }),
|
|
358
|
+
z.object({ name: z.literal('simulateUtility'), result: UtilitySimulationResult.schema }),
|
|
354
359
|
]),
|
|
355
360
|
),
|
|
356
361
|
),
|
package/dest/api/interfaces.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/api/interfaces.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dest/api/interfaces.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dest/api/log_id.d.ts
DELETED
package/dest/api/log_id.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log_id.d.ts","sourceRoot":"","sources":["../../src/api/log_id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dest/api/log_id.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LogId } from '@aztec/stdlib/logs';
|
package/dest/api/tx_hash.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tx_hash.d.ts","sourceRoot":"","sources":["../../src/api/tx_hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dest/api/tx_hash.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TxHash } from '@aztec/stdlib/tx';
|
package/dest/index.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is our public api.
|
|
3
|
-
* Do NOT "export * from ..." here.
|
|
4
|
-
* Everything here should be explicit, to ensure we can clearly see everything we're exposing to the world.
|
|
5
|
-
* If it's exposed, people will use it, and then we can't remove/change the api without breaking client code.
|
|
6
|
-
* At the time of writing we overexpose things that should only be internal.
|
|
7
|
-
*
|
|
8
|
-
* TODO: Review and narrow scope of public api.
|
|
9
|
-
* We should also consider exposing subsections of the api via package.json exports, like we do with foundation.
|
|
10
|
-
* This can allow consumers to import much smaller parts of the library to incur less overhead.
|
|
11
|
-
* It will also allow web bundlers do perform intelligent chunking of bundles etc.
|
|
12
|
-
* Some work as been done on this within the api folder, providing the alternative import style of e.g.:
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import { TxHash } from '@aztec.js/tx_hash'
|
|
15
|
-
* import { type ContractArtifact, type FunctionArtifact, FunctionSelector } from '@aztec/aztec.js/abi';
|
|
16
|
-
* import { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
17
|
-
* import { EthAddress } from '@aztec/aztec.js/eth_address';
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* TODO: Ultimately reimplement this mega exporter by mega exporting a granular api (then deprecate it).
|
|
21
|
-
*/
|
|
22
|
-
export { Fq, Fr, Point, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
23
|
-
export { SiblingPath } from '@aztec/foundation/trees';
|
|
24
|
-
export { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
|
|
25
|
-
export { MerkleTreeId, merkleTreeIds } from '@aztec/stdlib/trees';
|
|
26
|
-
export { type PublicKey, PublicKeys } from '@aztec/stdlib/keys';
|
|
27
|
-
export { computeSecretHash } from '@aztec/stdlib/hash';
|
|
28
|
-
export { computeAppNullifierSecretKey, deriveKeys, deriveMasterIncomingViewingSecretKey, deriveMasterNullifierSecretKey, } from '@aztec/stdlib/keys';
|
|
29
|
-
export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
|
|
30
|
-
export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables, } from '@aztec/stdlib/tx';
|
|
31
|
-
export { Body, L2Block } from '@aztec/stdlib/block';
|
|
32
|
-
export { LogId, type LogFilter } from '@aztec/stdlib/logs';
|
|
33
|
-
export { L1ToL2Message, L2Actor, L1Actor } from '@aztec/stdlib/messaging';
|
|
34
|
-
export { UniqueNote, ExtendedNote, Comparator, Note } from '@aztec/stdlib/note';
|
|
35
|
-
export { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
36
|
-
export { toBigIntBE } from '@aztec/foundation/bigint-buffer';
|
|
37
|
-
export { sha256, Grumpkin, Schnorr } from '@aztec/foundation/crypto';
|
|
38
|
-
export { makeFetch } from '@aztec/foundation/json-rpc/client';
|
|
39
|
-
export { retry, retryUntil } from '@aztec/foundation/retry';
|
|
40
|
-
export { to2Fields, toBigInt } from '@aztec/foundation/serialize';
|
|
41
|
-
export { sleep } from '@aztec/foundation/sleep';
|
|
42
|
-
export { elapsed } from '@aztec/foundation/timer';
|
|
43
|
-
export { type FieldsOf } from '@aztec/foundation/types';
|
|
44
|
-
export { fileURLToPath } from '@aztec/foundation/url';
|
|
45
|
-
export * from './api/abi.js';
|
|
46
|
-
export * from './api/authorization.js';
|
|
47
|
-
export * from './api/account.js';
|
|
48
|
-
export * from './api/addresses.js';
|
|
49
|
-
export * from './api/deployment.js';
|
|
50
|
-
export * from './api/ethereum.js';
|
|
51
|
-
export * from './api/events.js';
|
|
52
|
-
export * from './api/eth_address.js';
|
|
53
|
-
export * from './api/fee.js';
|
|
54
|
-
export * from './api/log.js';
|
|
55
|
-
export * from './api/contract.js';
|
|
56
|
-
export * from './api/utils.js';
|
|
57
|
-
export * from './api/wallet.js';
|
|
58
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dest/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EACL,4BAA4B,EAC5B,UAAU,EACV,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAKtD,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
package/dest/index.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is our public api.
|
|
3
|
-
* Do NOT "export * from ..." here.
|
|
4
|
-
* Everything here should be explicit, to ensure we can clearly see everything we're exposing to the world.
|
|
5
|
-
* If it's exposed, people will use it, and then we can't remove/change the api without breaking client code.
|
|
6
|
-
* At the time of writing we overexpose things that should only be internal.
|
|
7
|
-
*
|
|
8
|
-
* TODO: Review and narrow scope of public api.
|
|
9
|
-
* We should also consider exposing subsections of the api via package.json exports, like we do with foundation.
|
|
10
|
-
* This can allow consumers to import much smaller parts of the library to incur less overhead.
|
|
11
|
-
* It will also allow web bundlers do perform intelligent chunking of bundles etc.
|
|
12
|
-
* Some work as been done on this within the api folder, providing the alternative import style of e.g.:
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import { TxHash } from '@aztec.js/tx_hash'
|
|
15
|
-
* import { type ContractArtifact, type FunctionArtifact, FunctionSelector } from '@aztec/aztec.js/abi';
|
|
16
|
-
* import { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
17
|
-
* import { EthAddress } from '@aztec/aztec.js/eth_address';
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* TODO: Ultimately reimplement this mega exporter by mega exporting a granular api (then deprecate it).
|
|
21
|
-
*/ export { Fq, Fr, Point, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
22
|
-
export { SiblingPath } from '@aztec/foundation/trees';
|
|
23
|
-
export { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
|
|
24
|
-
export { MerkleTreeId, merkleTreeIds } from '@aztec/stdlib/trees';
|
|
25
|
-
export { PublicKeys } from '@aztec/stdlib/keys';
|
|
26
|
-
export { computeSecretHash } from '@aztec/stdlib/hash';
|
|
27
|
-
export { computeAppNullifierSecretKey, deriveKeys, deriveMasterIncomingViewingSecretKey, deriveMasterNullifierSecretKey } from '@aztec/stdlib/keys';
|
|
28
|
-
export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
|
|
29
|
-
export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables } from '@aztec/stdlib/tx';
|
|
30
|
-
export { Body, L2Block } from '@aztec/stdlib/block';
|
|
31
|
-
export { LogId } from '@aztec/stdlib/logs';
|
|
32
|
-
export { L1ToL2Message, L2Actor, L1Actor } from '@aztec/stdlib/messaging';
|
|
33
|
-
export { UniqueNote, ExtendedNote, Comparator, Note } from '@aztec/stdlib/note';
|
|
34
|
-
export { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
35
|
-
// TODO: These kinds of things have no place on our public api.
|
|
36
|
-
// External devs will almost certainly have their own methods of doing these things.
|
|
37
|
-
// If we want to use them in our own "aztec.js consuming code", import them from foundation as needed.
|
|
38
|
-
export { toBigIntBE } from '@aztec/foundation/bigint-buffer';
|
|
39
|
-
export { sha256, Grumpkin, Schnorr } from '@aztec/foundation/crypto';
|
|
40
|
-
export { makeFetch } from '@aztec/foundation/json-rpc/client';
|
|
41
|
-
export { retry, retryUntil } from '@aztec/foundation/retry';
|
|
42
|
-
export { to2Fields, toBigInt } from '@aztec/foundation/serialize';
|
|
43
|
-
export { sleep } from '@aztec/foundation/sleep';
|
|
44
|
-
export { elapsed } from '@aztec/foundation/timer';
|
|
45
|
-
export { fileURLToPath } from '@aztec/foundation/url';
|
|
46
|
-
// Start of section that exports public api via granular api.
|
|
47
|
-
// Here you *can* do `export *` as the granular api defacto exports things explicitly.
|
|
48
|
-
// This entire index file will be deprecated at some point after we're satisfied.
|
|
49
|
-
export * from './api/abi.js';
|
|
50
|
-
export * from './api/authorization.js';
|
|
51
|
-
export * from './api/account.js';
|
|
52
|
-
export * from './api/addresses.js';
|
|
53
|
-
export * from './api/deployment.js';
|
|
54
|
-
export * from './api/ethereum.js';
|
|
55
|
-
export * from './api/events.js';
|
|
56
|
-
export * from './api/eth_address.js';
|
|
57
|
-
export * from './api/fee.js';
|
|
58
|
-
export * from './api/log.js';
|
|
59
|
-
export * from './api/contract.js';
|
|
60
|
-
export * from './api/utils.js';
|
|
61
|
-
export * from './api/wallet.js';
|
package/src/api/interfaces.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { AztecNode } from '@aztec/stdlib/interfaces/client';
|
package/src/api/log_id.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LogId } from '@aztec/stdlib/logs';
|
package/src/api/tx_hash.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TxHash } from '@aztec/stdlib/tx';
|
package/src/index.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is our public api.
|
|
3
|
-
* Do NOT "export * from ..." here.
|
|
4
|
-
* Everything here should be explicit, to ensure we can clearly see everything we're exposing to the world.
|
|
5
|
-
* If it's exposed, people will use it, and then we can't remove/change the api without breaking client code.
|
|
6
|
-
* At the time of writing we overexpose things that should only be internal.
|
|
7
|
-
*
|
|
8
|
-
* TODO: Review and narrow scope of public api.
|
|
9
|
-
* We should also consider exposing subsections of the api via package.json exports, like we do with foundation.
|
|
10
|
-
* This can allow consumers to import much smaller parts of the library to incur less overhead.
|
|
11
|
-
* It will also allow web bundlers do perform intelligent chunking of bundles etc.
|
|
12
|
-
* Some work as been done on this within the api folder, providing the alternative import style of e.g.:
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import { TxHash } from '@aztec.js/tx_hash'
|
|
15
|
-
* import { type ContractArtifact, type FunctionArtifact, FunctionSelector } from '@aztec/aztec.js/abi';
|
|
16
|
-
* import { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
17
|
-
* import { EthAddress } from '@aztec/aztec.js/eth_address';
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* TODO: Ultimately reimplement this mega exporter by mega exporting a granular api (then deprecate it).
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
export { Fq, Fr, Point, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
24
|
-
|
|
25
|
-
export { SiblingPath } from '@aztec/foundation/trees';
|
|
26
|
-
|
|
27
|
-
export { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
|
|
28
|
-
|
|
29
|
-
export { MerkleTreeId, merkleTreeIds } from '@aztec/stdlib/trees';
|
|
30
|
-
export { type PublicKey, PublicKeys } from '@aztec/stdlib/keys';
|
|
31
|
-
export { computeSecretHash } from '@aztec/stdlib/hash';
|
|
32
|
-
export {
|
|
33
|
-
computeAppNullifierSecretKey,
|
|
34
|
-
deriveKeys,
|
|
35
|
-
deriveMasterIncomingViewingSecretKey,
|
|
36
|
-
deriveMasterNullifierSecretKey,
|
|
37
|
-
} from '@aztec/stdlib/keys';
|
|
38
|
-
export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
|
|
39
|
-
export {
|
|
40
|
-
Tx,
|
|
41
|
-
TxExecutionRequest,
|
|
42
|
-
TxHash,
|
|
43
|
-
TxReceipt,
|
|
44
|
-
TxStatus,
|
|
45
|
-
Capsule,
|
|
46
|
-
HashedValues,
|
|
47
|
-
GlobalVariables,
|
|
48
|
-
} from '@aztec/stdlib/tx';
|
|
49
|
-
export { Body, L2Block } from '@aztec/stdlib/block';
|
|
50
|
-
export { LogId, type LogFilter } from '@aztec/stdlib/logs';
|
|
51
|
-
export { L1ToL2Message, L2Actor, L1Actor } from '@aztec/stdlib/messaging';
|
|
52
|
-
export { UniqueNote, ExtendedNote, Comparator, Note } from '@aztec/stdlib/note';
|
|
53
|
-
|
|
54
|
-
export { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
55
|
-
|
|
56
|
-
// TODO: These kinds of things have no place on our public api.
|
|
57
|
-
// External devs will almost certainly have their own methods of doing these things.
|
|
58
|
-
// If we want to use them in our own "aztec.js consuming code", import them from foundation as needed.
|
|
59
|
-
export { toBigIntBE } from '@aztec/foundation/bigint-buffer';
|
|
60
|
-
export { sha256, Grumpkin, Schnorr } from '@aztec/foundation/crypto';
|
|
61
|
-
export { makeFetch } from '@aztec/foundation/json-rpc/client';
|
|
62
|
-
export { retry, retryUntil } from '@aztec/foundation/retry';
|
|
63
|
-
export { to2Fields, toBigInt } from '@aztec/foundation/serialize';
|
|
64
|
-
export { sleep } from '@aztec/foundation/sleep';
|
|
65
|
-
export { elapsed } from '@aztec/foundation/timer';
|
|
66
|
-
export { type FieldsOf } from '@aztec/foundation/types';
|
|
67
|
-
export { fileURLToPath } from '@aztec/foundation/url';
|
|
68
|
-
|
|
69
|
-
// Start of section that exports public api via granular api.
|
|
70
|
-
// Here you *can* do `export *` as the granular api defacto exports things explicitly.
|
|
71
|
-
// This entire index file will be deprecated at some point after we're satisfied.
|
|
72
|
-
export * from './api/abi.js';
|
|
73
|
-
export * from './api/authorization.js';
|
|
74
|
-
export * from './api/account.js';
|
|
75
|
-
export * from './api/addresses.js';
|
|
76
|
-
export * from './api/deployment.js';
|
|
77
|
-
export * from './api/ethereum.js';
|
|
78
|
-
export * from './api/events.js';
|
|
79
|
-
export * from './api/eth_address.js';
|
|
80
|
-
export * from './api/fee.js';
|
|
81
|
-
export * from './api/log.js';
|
|
82
|
-
export * from './api/contract.js';
|
|
83
|
-
export * from './api/utils.js';
|
|
84
|
-
export * from './api/wallet.js';
|