@aztec/txe 3.0.0-nightly.20260105 → 3.0.0-nightly.20260106
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/constants.d.ts +3 -0
- package/dest/constants.d.ts.map +1 -0
- package/dest/constants.js +2 -0
- package/dest/oracle/txe_oracle_top_level_context.d.ts +15 -14
- package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_top_level_context.js +61 -53
- package/dest/state_machine/index.d.ts +4 -4
- package/dest/state_machine/index.d.ts.map +1 -1
- package/dest/state_machine/index.js +7 -7
- package/dest/txe_session.d.ts +15 -15
- package/dest/txe_session.d.ts.map +1 -1
- package/dest/txe_session.js +68 -49
- package/dest/util/txe_account_store.d.ts +10 -0
- package/dest/util/txe_account_store.d.ts.map +1 -0
- package/dest/util/{txe_account_data_provider.js → txe_account_store.js} +1 -1
- package/dest/util/txe_contract_store.d.ts +12 -0
- package/dest/util/txe_contract_store.d.ts.map +1 -0
- package/dest/util/{txe_contract_data_provider.js → txe_contract_store.js} +3 -3
- package/dest/util/txe_public_contract_data_source.d.ts +4 -4
- package/dest/util/txe_public_contract_data_source.d.ts.map +1 -1
- package/dest/util/txe_public_contract_data_source.js +10 -10
- package/package.json +15 -15
- package/src/constants.ts +3 -0
- package/src/index.ts +1 -1
- package/src/oracle/txe_oracle_top_level_context.ts +87 -70
- package/src/state_machine/index.ts +5 -5
- package/src/txe_session.ts +135 -86
- package/src/util/{txe_account_data_provider.ts → txe_account_store.ts} +1 -1
- package/src/util/{txe_contract_data_provider.ts → txe_contract_store.ts} +3 -3
- package/src/util/txe_public_contract_data_source.ts +9 -9
- package/dest/util/txe_account_data_provider.d.ts +0 -10
- package/dest/util/txe_account_data_provider.d.ts.map +0 -1
- package/dest/util/txe_contract_data_provider.d.ts +0 -12
- package/dest/util/txe_contract_data_provider.d.ts.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
2
|
+
export declare const DEFAULT_ADDRESS: AztecAddress;
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUUzRCxlQUFPLE1BQU0sZUFBZSxjQUE4QixDQUFDIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,eAAO,MAAM,eAAe,cAA8B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
2
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
import type { KeyStore } from '@aztec/key-store';
|
|
4
|
-
import {
|
|
4
|
+
import { AddressStore, CapsuleStore, NoteStore, PrivateEventStore, RecipientTaggingStore, SenderAddressBookStore, SenderTaggingStore } from '@aztec/pxe/server';
|
|
5
5
|
import { type IMiscOracle } from '@aztec/pxe/simulator';
|
|
6
6
|
import { type ContractArtifact, EventSelector, FunctionSelector } from '@aztec/stdlib/abi';
|
|
7
7
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
@@ -10,21 +10,21 @@ import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
|
|
|
10
10
|
import { TxHash } from '@aztec/stdlib/tx';
|
|
11
11
|
import type { UInt64 } from '@aztec/stdlib/types';
|
|
12
12
|
import type { TXEStateMachine } from '../state_machine/index.js';
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
13
|
+
import type { TXEAccountStore } from '../util/txe_account_store.js';
|
|
14
|
+
import type { TXEContractStore } from '../util/txe_contract_store.js';
|
|
15
15
|
import type { ITxeExecutionOracle } from './interfaces.js';
|
|
16
16
|
export declare class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracle {
|
|
17
17
|
private stateMachine;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
18
|
+
private contractStore;
|
|
19
|
+
private noteStore;
|
|
20
20
|
private keyStore;
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private
|
|
21
|
+
private addressStore;
|
|
22
|
+
private accountStore;
|
|
23
|
+
private senderTaggingStore;
|
|
24
|
+
private recipientTaggingStore;
|
|
25
|
+
private senderAddressBookStore;
|
|
26
|
+
private capsuleStore;
|
|
27
|
+
private privateEventStore;
|
|
28
28
|
private nextBlockTimestamp;
|
|
29
29
|
private version;
|
|
30
30
|
private chainId;
|
|
@@ -32,7 +32,7 @@ export declare class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecut
|
|
|
32
32
|
isMisc: true;
|
|
33
33
|
isTxe: true;
|
|
34
34
|
private logger;
|
|
35
|
-
constructor(stateMachine: TXEStateMachine,
|
|
35
|
+
constructor(stateMachine: TXEStateMachine, contractStore: TXEContractStore, noteStore: NoteStore, keyStore: KeyStore, addressStore: AddressStore, accountStore: TXEAccountStore, senderTaggingStore: SenderTaggingStore, recipientTaggingStore: RecipientTaggingStore, senderAddressBookStore: SenderAddressBookStore, capsuleStore: CapsuleStore, privateEventStore: PrivateEventStore, nextBlockTimestamp: bigint, version: Fr, chainId: Fr, authwits: Map<string, AuthWitness>);
|
|
36
36
|
utilityAssertCompatibleOracleVersion(version: number): void;
|
|
37
37
|
utilityGetRandomField(): Fr;
|
|
38
38
|
utilityDebugLog(level: number, message: string, fields: Fr[]): void;
|
|
@@ -58,7 +58,8 @@ export declare class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecut
|
|
|
58
58
|
txePrivateCallNewFlow(from: AztecAddress, targetContractAddress: AztecAddress | undefined, functionSelector: FunctionSelector | undefined, args: Fr[], argsHash?: Fr, isStaticCall?: boolean): Promise<Fr[]>;
|
|
59
59
|
txePublicCallNewFlow(from: AztecAddress, targetContractAddress: AztecAddress, calldata: Fr[], isStaticCall: boolean): Promise<Fr[]>;
|
|
60
60
|
txeSimulateUtilityFunction(targetContractAddress: AztecAddress, functionSelector: FunctionSelector, args: Fr[]): Promise<Fr[]>;
|
|
61
|
+
private executeUtilityCall;
|
|
61
62
|
close(): [bigint, Map<string, AuthWitness>];
|
|
62
63
|
private getLastBlockNumber;
|
|
63
64
|
}
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHhlX29yYWNsZV90b3BfbGV2ZWxfY29udGV4dC5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29yYWNsZS90eGVfb3JhY2xlX3RvcF9sZXZlbF9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUU5RCxPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFHcEQsT0FBTyxLQUFLLEVBQUUsUUFBUSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDakQsT0FBTyxFQUNMLFlBQVksRUFDWixZQUFZLEVBQ1osU0FBUyxFQUVULGlCQUFpQixFQUNqQixxQkFBcUIsRUFDckIsc0JBQXNCLEVBQ3RCLGtCQUFrQixFQUVuQixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFJTCxLQUFLLFdBQVcsRUFNakIsTUFBTSxzQkFBc0IsQ0FBQztBQWd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LGlCQXlJdEI7SUFFSywwQkFBMEIsQ0FDOUIscUJBQXFCLEVBQUUsWUFBWSxFQUNuQyxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFDbEMsSUFBSSxFQUFFLEVBQUUsRUFBRSxpQkF3Qlg7WUFFYSxrQkFBa0I7SUFtRGhDLEtBQUssSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLENBQUMsTUFBTSxFQUFFLFdBQVcsQ0FBQyxDQUFDLENBRzFDO1lBRWEsa0JBQWtCO0NBSWpDIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"txe_oracle_top_level_context.d.ts","sourceRoot":"","sources":["../../src/oracle/txe_oracle_top_level_context.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAGpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"txe_oracle_top_level_context.d.ts","sourceRoot":"","sources":["../../src/oracle/txe_oracle_top_level_context.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAGpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,SAAS,EAET,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAIL,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAC;AAgB9B,OAAO,EAAE,KAAK,gBAAgB,EAAE,aAAa,EAAgB,gBAAgB,EAAgB,MAAM,mBAAmB,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CA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AI,EAAE,EAAE,EAAE,EACV,QAAQ,GAAE,EAAc,EACxB,YAAY,GAAE,OAAe,iBAuM9B;IAEK,oBAAoB,CACxB,IAAI,EAAE,YAAY,EAClB,qBAAqB,EAAE,YAAY,EACnC,QAAQ,EAAE,EAAE,EAAE,EACd,YAAY,EAAE,OAAO,iBAyItB;IAEK,0BAA0B,CAC9B,qBAAqB,EAAE,YAAY,EACnC,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,EAAE,EAAE,iBAwBX;YAEa,kBAAkB;IAmDhC,KAAK,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAG1C;YAEa,kBAAkB;CAIjC"}
|
|
@@ -8,7 +8,7 @@ import { ORACLE_VERSION, enrichPublicSimulationError } from '@aztec/pxe/server';
|
|
|
8
8
|
import { ExecutionNoteCache, ExecutionTaggingIndexCache, HashedValuesCache, Oracle, PrivateExecutionOracle, UtilityExecutionOracle, executePrivateFunction, generateSimulatedProvingResult } from '@aztec/pxe/simulator';
|
|
9
9
|
import { ExecutionError, WASMSimulator, createSimulationError, extractCallStack, resolveAssertionMessageFromError, toACVMWitness, witnessMapToFields } from '@aztec/simulator/client';
|
|
10
10
|
import { CppPublicTxSimulator, GuardedMerkleTreeOperations, PublicContractsDB, PublicProcessor } from '@aztec/simulator/server';
|
|
11
|
-
import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
11
|
+
import { FunctionCall, FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
12
12
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
13
13
|
import { PublicSimulatorConfig } from '@aztec/stdlib/avm';
|
|
14
14
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
@@ -21,21 +21,21 @@ import { makeGlobalVariables } from '@aztec/stdlib/testing';
|
|
|
21
21
|
import { MerkleTreeId } from '@aztec/stdlib/trees';
|
|
22
22
|
import { CallContext, HashedValues, PrivateExecutionResult, Tx, TxConstantData, TxContext, TxEffect, TxHash, collectNested } from '@aztec/stdlib/tx';
|
|
23
23
|
import { ForkCheckpoint } from '@aztec/world-state';
|
|
24
|
-
import { DEFAULT_ADDRESS } from '../
|
|
24
|
+
import { DEFAULT_ADDRESS } from '../constants.js';
|
|
25
25
|
import { TXEPublicContractDataSource } from '../util/txe_public_contract_data_source.js';
|
|
26
26
|
import { getSingleTxBlockRequestHash, insertTxEffectIntoWorldTrees, makeTXEBlock } from '../utils/block_creation.js';
|
|
27
27
|
export class TXEOracleTopLevelContext {
|
|
28
28
|
stateMachine;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
contractStore;
|
|
30
|
+
noteStore;
|
|
31
31
|
keyStore;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
addressStore;
|
|
33
|
+
accountStore;
|
|
34
|
+
senderTaggingStore;
|
|
35
|
+
recipientTaggingStore;
|
|
36
|
+
senderAddressBookStore;
|
|
37
|
+
capsuleStore;
|
|
38
|
+
privateEventStore;
|
|
39
39
|
nextBlockTimestamp;
|
|
40
40
|
version;
|
|
41
41
|
chainId;
|
|
@@ -43,18 +43,18 @@ export class TXEOracleTopLevelContext {
|
|
|
43
43
|
isMisc;
|
|
44
44
|
isTxe;
|
|
45
45
|
logger;
|
|
46
|
-
constructor(stateMachine,
|
|
46
|
+
constructor(stateMachine, contractStore, noteStore, keyStore, addressStore, accountStore, senderTaggingStore, recipientTaggingStore, senderAddressBookStore, capsuleStore, privateEventStore, nextBlockTimestamp, version, chainId, authwits){
|
|
47
47
|
this.stateMachine = stateMachine;
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
48
|
+
this.contractStore = contractStore;
|
|
49
|
+
this.noteStore = noteStore;
|
|
50
50
|
this.keyStore = keyStore;
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
51
|
+
this.addressStore = addressStore;
|
|
52
|
+
this.accountStore = accountStore;
|
|
53
|
+
this.senderTaggingStore = senderTaggingStore;
|
|
54
|
+
this.recipientTaggingStore = recipientTaggingStore;
|
|
55
|
+
this.senderAddressBookStore = senderAddressBookStore;
|
|
56
|
+
this.capsuleStore = capsuleStore;
|
|
57
|
+
this.privateEventStore = privateEventStore;
|
|
58
58
|
this.nextBlockTimestamp = nextBlockTimestamp;
|
|
59
59
|
this.version = version;
|
|
60
60
|
this.chainId = chainId;
|
|
@@ -110,7 +110,7 @@ export class TXEOracleTopLevelContext {
|
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
async txeGetPrivateEvents(selector, contractAddress, scope) {
|
|
113
|
-
return (await this.
|
|
113
|
+
return (await this.privateEventStore.getPrivateEvents(selector, {
|
|
114
114
|
contractAddress,
|
|
115
115
|
scopes: [
|
|
116
116
|
scope
|
|
@@ -139,32 +139,32 @@ export class TXEOracleTopLevelContext {
|
|
|
139
139
|
if (!secret.equals(Fr.ZERO)) {
|
|
140
140
|
await this.txeAddAccount(artifact, instance, secret);
|
|
141
141
|
} else {
|
|
142
|
-
await this.
|
|
143
|
-
await this.
|
|
142
|
+
await this.contractStore.addContractInstance(instance);
|
|
143
|
+
await this.contractStore.addContractArtifact(instance.currentContractClassId, artifact);
|
|
144
144
|
this.logger.debug(`Deployed ${artifact.name} at ${instance.address}`);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
async txeAddAccount(artifact, instance, secret) {
|
|
148
148
|
const partialAddress = await computePartialAddress(instance);
|
|
149
149
|
this.logger.debug(`Deployed ${artifact.name} at ${instance.address}`);
|
|
150
|
-
await this.
|
|
151
|
-
await this.
|
|
150
|
+
await this.contractStore.addContractInstance(instance);
|
|
151
|
+
await this.contractStore.addContractArtifact(instance.currentContractClassId, artifact);
|
|
152
152
|
const completeAddress = await this.keyStore.addAccount(secret, partialAddress);
|
|
153
|
-
await this.
|
|
154
|
-
await this.
|
|
153
|
+
await this.accountStore.setAccount(completeAddress.address, completeAddress);
|
|
154
|
+
await this.addressStore.addCompleteAddress(completeAddress);
|
|
155
155
|
this.logger.debug(`Created account ${completeAddress.address}`);
|
|
156
156
|
return completeAddress;
|
|
157
157
|
}
|
|
158
158
|
async txeCreateAccount(secret) {
|
|
159
159
|
// This is a foot gun !
|
|
160
160
|
const completeAddress = await this.keyStore.addAccount(secret, secret);
|
|
161
|
-
await this.
|
|
162
|
-
await this.
|
|
161
|
+
await this.accountStore.setAccount(completeAddress.address, completeAddress);
|
|
162
|
+
await this.addressStore.addCompleteAddress(completeAddress);
|
|
163
163
|
this.logger.debug(`Created account ${completeAddress.address}`);
|
|
164
164
|
return completeAddress;
|
|
165
165
|
}
|
|
166
166
|
async txeAddAuthWitness(address, messageHash) {
|
|
167
|
-
const account = await this.
|
|
167
|
+
const account = await this.accountStore.getAccount(address);
|
|
168
168
|
const privateKey = await this.keyStore.getMasterSecretKey(account.publicKeys.masterIncomingViewingPublicKey);
|
|
169
169
|
const schnorr = new Schnorr();
|
|
170
170
|
const signature = await schnorr.constructSignature(messageHash.toBuffer(), privateKey);
|
|
@@ -197,26 +197,31 @@ export class TXEOracleTopLevelContext {
|
|
|
197
197
|
await this.stateMachine.handleL2Block(block);
|
|
198
198
|
}
|
|
199
199
|
async txePrivateCallNewFlow(from, targetContractAddress = AztecAddress.zero(), functionSelector = FunctionSelector.empty(), args, argsHash = Fr.zero(), isStaticCall = false) {
|
|
200
|
-
this.logger.verbose(`Executing external function ${await this.
|
|
201
|
-
const artifact = await this.
|
|
200
|
+
this.logger.verbose(`Executing external function ${await this.contractStore.getDebugFunctionName(targetContractAddress, functionSelector)}@${targetContractAddress} isStaticCall=${isStaticCall}`);
|
|
201
|
+
const artifact = await this.contractStore.getFunctionArtifact(targetContractAddress, functionSelector);
|
|
202
202
|
if (!artifact) {
|
|
203
203
|
const message = functionSelector.equals(await FunctionSelector.fromSignature('verify_private_authwit(Field)')) ? 'Found no account contract artifact for a private authwit check - use `create_contract_account` instead of `create_light_account` for authwit support.' : 'Function Artifact does not exist';
|
|
204
204
|
throw new Error(message);
|
|
205
205
|
}
|
|
206
|
+
// Sync notes before executing private function to discover notes from previous transactions
|
|
207
|
+
const utilityExecutor = async (call)=>{
|
|
208
|
+
await this.executeUtilityCall(call);
|
|
209
|
+
};
|
|
210
|
+
await this.contractStore.syncPrivateState(targetContractAddress, functionSelector, utilityExecutor);
|
|
206
211
|
const blockNumber = await this.txeGetNextBlockNumber();
|
|
207
212
|
const callContext = new CallContext(from, targetContractAddress, functionSelector, isStaticCall);
|
|
208
213
|
const gasLimits = new Gas(DEFAULT_DA_GAS_LIMIT, DEFAULT_L2_GAS_LIMIT);
|
|
209
214
|
const teardownGasLimits = new Gas(DEFAULT_TEARDOWN_DA_GAS_LIMIT, DEFAULT_TEARDOWN_L2_GAS_LIMIT);
|
|
210
215
|
const gasSettings = new GasSettings(gasLimits, teardownGasLimits, GasFees.empty(), GasFees.empty());
|
|
211
216
|
const txContext = new TxContext(this.chainId, this.version, gasSettings);
|
|
212
|
-
const blockHeader = await this.stateMachine.
|
|
217
|
+
const blockHeader = await this.stateMachine.anchorBlockStore.getBlockHeader();
|
|
213
218
|
const protocolNullifier = await computeProtocolNullifier(getSingleTxBlockRequestHash(blockNumber));
|
|
214
219
|
const noteCache = new ExecutionNoteCache(protocolNullifier);
|
|
215
220
|
const taggingIndexCache = new ExecutionTaggingIndexCache();
|
|
216
221
|
const simulator = new WASMSimulator();
|
|
217
|
-
const privateExecutionOracle = new PrivateExecutionOracle(argsHash, txContext, callContext, /** Header of a block whose state is used during private execution (not the block the transaction is included in). */ blockHeader, /** List of transient auth witnesses to be used during this simulation */ Array.from(this.authwits.values()), /** List of transient auth witnesses to be used during this simulation */ [], HashedValuesCache.create([
|
|
222
|
+
const privateExecutionOracle = new PrivateExecutionOracle(argsHash, txContext, callContext, /** Header of a block whose state is used during private execution (not the block the transaction is included in). */ blockHeader, utilityExecutor, /** List of transient auth witnesses to be used during this simulation */ Array.from(this.authwits.values()), /** List of transient auth witnesses to be used during this simulation */ [], HashedValuesCache.create([
|
|
218
223
|
new HashedValues(args, argsHash)
|
|
219
|
-
]), noteCache, taggingIndexCache, this.
|
|
224
|
+
]), noteCache, taggingIndexCache, this.contractStore, this.noteStore, this.keyStore, this.addressStore, this.stateMachine.node, this.stateMachine.anchorBlockStore, this.senderTaggingStore, this.recipientTaggingStore, this.senderAddressBookStore, this.capsuleStore, this.privateEventStore, 0, 1, undefined, undefined, /**
|
|
220
225
|
* In TXE, the typical transaction entrypoint is skipped, so we need to simulate the actions that such a
|
|
221
226
|
* contract would perform, including setting senderForTags.
|
|
222
227
|
*/ from, simulator);
|
|
@@ -245,7 +250,7 @@ export class TXEOracleTopLevelContext {
|
|
|
245
250
|
// can either be the first nullifier in the tx or the hash of the initial tx request
|
|
246
251
|
// if there are none.
|
|
247
252
|
const nonceGenerator = result.firstNullifier.equals(Fr.ZERO) ? protocolNullifier : result.firstNullifier;
|
|
248
|
-
const { publicInputs } = await generateSimulatedProvingResult(result, nonceGenerator, this.
|
|
253
|
+
const { publicInputs } = await generateSimulatedProvingResult(result, nonceGenerator, this.contractStore);
|
|
249
254
|
const globals = makeGlobalVariables();
|
|
250
255
|
globals.blockNumber = blockNumber;
|
|
251
256
|
globals.timestamp = this.nextBlockTimestamp;
|
|
@@ -253,7 +258,7 @@ export class TXEOracleTopLevelContext {
|
|
|
253
258
|
globals.version = this.version;
|
|
254
259
|
globals.gasFees = GasFees.empty();
|
|
255
260
|
const forkedWorldTrees = await this.stateMachine.synchronizer.nativeWorldStateService.fork();
|
|
256
|
-
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.
|
|
261
|
+
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.contractStore));
|
|
257
262
|
const guardedMerkleTrees = new GuardedMerkleTreeOperations(forkedWorldTrees);
|
|
258
263
|
const config = PublicSimulatorConfig.from({
|
|
259
264
|
skipFeeEnforcement: true,
|
|
@@ -283,7 +288,7 @@ export class TXEOracleTopLevelContext {
|
|
|
283
288
|
} else if (!processedTx.revertCode.isOK()) {
|
|
284
289
|
if (processedTx.revertReason) {
|
|
285
290
|
try {
|
|
286
|
-
await enrichPublicSimulationError(processedTx.revertReason, this.
|
|
291
|
+
await enrichPublicSimulationError(processedTx.revertReason, this.contractStore, this.logger);
|
|
287
292
|
// eslint-disable-next-line no-empty
|
|
288
293
|
} catch {}
|
|
289
294
|
throw new Error(`Contract execution has reverted: ${processedTx.revertReason.getMessage()}`);
|
|
@@ -313,13 +318,13 @@ export class TXEOracleTopLevelContext {
|
|
|
313
318
|
return executionResult.returnValues ?? [];
|
|
314
319
|
}
|
|
315
320
|
async txePublicCallNewFlow(from, targetContractAddress, calldata, isStaticCall) {
|
|
316
|
-
this.logger.verbose(`Executing public function ${await this.
|
|
321
|
+
this.logger.verbose(`Executing public function ${await this.contractStore.getDebugFunctionName(targetContractAddress, FunctionSelector.fromField(calldata[0]))}@${targetContractAddress} isStaticCall=${isStaticCall}`);
|
|
317
322
|
const blockNumber = await this.txeGetNextBlockNumber();
|
|
318
323
|
const gasLimits = new Gas(DEFAULT_DA_GAS_LIMIT, DEFAULT_L2_GAS_LIMIT);
|
|
319
324
|
const teardownGasLimits = new Gas(DEFAULT_TEARDOWN_DA_GAS_LIMIT, DEFAULT_TEARDOWN_L2_GAS_LIMIT);
|
|
320
325
|
const gasSettings = new GasSettings(gasLimits, teardownGasLimits, GasFees.empty(), GasFees.empty());
|
|
321
326
|
const txContext = new TxContext(this.chainId, this.version, gasSettings);
|
|
322
|
-
const anchorBlockHeader = await this.stateMachine.
|
|
327
|
+
const anchorBlockHeader = await this.stateMachine.anchorBlockStore.getBlockHeader();
|
|
323
328
|
const calldataHash = await computeCalldataHash(calldata);
|
|
324
329
|
const calldataHashedValues = new HashedValues(calldata, calldataHash);
|
|
325
330
|
const globals = makeGlobalVariables();
|
|
@@ -329,7 +334,7 @@ export class TXEOracleTopLevelContext {
|
|
|
329
334
|
globals.version = this.version;
|
|
330
335
|
globals.gasFees = GasFees.empty();
|
|
331
336
|
const forkedWorldTrees = await this.stateMachine.synchronizer.nativeWorldStateService.fork();
|
|
332
|
-
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.
|
|
337
|
+
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.contractStore));
|
|
333
338
|
const guardedMerkleTrees = new GuardedMerkleTreeOperations(forkedWorldTrees);
|
|
334
339
|
const config = PublicSimulatorConfig.from({
|
|
335
340
|
skipFeeEnforcement: true,
|
|
@@ -375,7 +380,7 @@ export class TXEOracleTopLevelContext {
|
|
|
375
380
|
} else if (!processedTx.revertCode.isOK()) {
|
|
376
381
|
if (processedTx.revertReason) {
|
|
377
382
|
try {
|
|
378
|
-
await enrichPublicSimulationError(processedTx.revertReason, this.
|
|
383
|
+
await enrichPublicSimulationError(processedTx.revertReason, this.contractStore, this.logger);
|
|
379
384
|
// eslint-disable-next-line no-empty
|
|
380
385
|
} catch {}
|
|
381
386
|
throw new Error(`Contract execution has reverted: ${processedTx.revertReason.getMessage()}`);
|
|
@@ -406,16 +411,19 @@ export class TXEOracleTopLevelContext {
|
|
|
406
411
|
return returnValues ?? [];
|
|
407
412
|
}
|
|
408
413
|
async txeSimulateUtilityFunction(targetContractAddress, functionSelector, args) {
|
|
409
|
-
const artifact = await this.
|
|
414
|
+
const artifact = await this.contractStore.getFunctionArtifact(targetContractAddress, functionSelector);
|
|
410
415
|
if (!artifact) {
|
|
411
416
|
throw new Error(`Cannot call ${functionSelector} as there is no artifact found at ${targetContractAddress}.`);
|
|
412
417
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
418
|
+
// Sync notes before executing utility function to discover notes from previous transactions
|
|
419
|
+
await this.contractStore.syncPrivateState(targetContractAddress, functionSelector, async (call)=>{
|
|
420
|
+
await this.executeUtilityCall(call);
|
|
421
|
+
});
|
|
422
|
+
const call = new FunctionCall(artifact.name, targetContractAddress, functionSelector, FunctionType.UTILITY, false, false, args, []);
|
|
423
|
+
return this.executeUtilityCall(call);
|
|
424
|
+
}
|
|
425
|
+
async executeUtilityCall(call) {
|
|
426
|
+
const entryPointArtifact = await this.contractStore.getFunctionArtifactWithDebugMetadata(call.to, call.selector);
|
|
419
427
|
if (entryPointArtifact.functionType !== FunctionType.UTILITY) {
|
|
420
428
|
throw new Error(`Cannot run ${entryPointArtifact.functionType} function as utility`);
|
|
421
429
|
}
|
|
@@ -424,9 +432,9 @@ export class TXEOracleTopLevelContext {
|
|
|
424
432
|
selector: call.selector
|
|
425
433
|
});
|
|
426
434
|
try {
|
|
427
|
-
const anchorBlockHeader = await this.stateMachine.
|
|
428
|
-
const oracle = new UtilityExecutionOracle(call.to, [], [], anchorBlockHeader, this.
|
|
429
|
-
const acirExecutionResult = await new WASMSimulator().executeUserCircuit(toACVMWitness(0, args), entryPointArtifact, new Oracle(oracle).toACIRCallback()).catch((err)=>{
|
|
435
|
+
const anchorBlockHeader = await this.stateMachine.anchorBlockStore.getBlockHeader();
|
|
436
|
+
const oracle = new UtilityExecutionOracle(call.to, [], [], anchorBlockHeader, this.contractStore, this.noteStore, this.keyStore, this.addressStore, this.stateMachine.node, this.stateMachine.anchorBlockStore, this.recipientTaggingStore, this.senderAddressBookStore, this.capsuleStore, this.privateEventStore);
|
|
437
|
+
const acirExecutionResult = await new WASMSimulator().executeUserCircuit(toACVMWitness(0, call.args), entryPointArtifact, new Oracle(oracle).toACIRCallback()).catch((err)=>{
|
|
430
438
|
err.message = resolveAssertionMessageFromError(err, entryPointArtifact);
|
|
431
439
|
throw new ExecutionError(err.message, {
|
|
432
440
|
contractAddress: call.to,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
2
|
-
import {
|
|
2
|
+
import { AnchorBlockStore } from '@aztec/pxe/server';
|
|
3
3
|
import { L2Block } from '@aztec/stdlib/block';
|
|
4
4
|
import type { AztecNode } from '@aztec/stdlib/interfaces/client';
|
|
5
5
|
import { TXEArchiver } from './archiver.js';
|
|
@@ -8,9 +8,9 @@ export declare class TXEStateMachine {
|
|
|
8
8
|
node: AztecNode;
|
|
9
9
|
synchronizer: TXESynchronizer;
|
|
10
10
|
archiver: TXEArchiver;
|
|
11
|
-
|
|
12
|
-
constructor(node: AztecNode, synchronizer: TXESynchronizer, archiver: TXEArchiver,
|
|
11
|
+
anchorBlockStore: AnchorBlockStore;
|
|
12
|
+
constructor(node: AztecNode, synchronizer: TXESynchronizer, archiver: TXEArchiver, anchorBlockStore: AnchorBlockStore);
|
|
13
13
|
static create(db: AztecAsyncKVStore): Promise<TXEStateMachine>;
|
|
14
14
|
handleL2Block(block: L2Block): Promise<void>;
|
|
15
15
|
}
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdGF0ZV9tYWNoaW5lL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE9BQU8sS0FBSyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDekQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDckQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRTlDLE9BQU8sS0FBSyxFQUFFLFNBQVMsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBR2pFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFJNUMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBS3BELHFCQUFhLGVBQWU7SUFFakIsSUFBSSxFQUFFLFNBQVM7SUFDZixZQUFZLEVBQUUsZUFBZTtJQUM3QixRQUFRLEVBQUUsV0FBVztJQUNyQixnQkFBZ0IsRUFBRSxnQkFBZ0I7SUFKM0MsWUFDUyxJQUFJLEVBQUUsU0FBUyxFQUNmLFlBQVksRUFBRSxlQUFlLEVBQzdCLFFBQVEsRUFBRSxXQUFXLEVBQ3JCLGdCQUFnQixFQUFFLGdCQUFnQixFQUN2QztJQUVKLE9BQW9CLE1BQU0sQ0FBQyxFQUFFLEVBQUUsaUJBQWlCLDRCQStCL0M7SUFFWSxhQUFhLENBQUMsS0FBSyxFQUFFLE9BQU8saUJBZ0J4QztDQUNGIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/state_machine/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/state_machine/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,qBAAa,eAAe;IAEjB,IAAI,EAAE,SAAS;IACf,YAAY,EAAE,eAAe;IAC7B,QAAQ,EAAE,WAAW;IACrB,gBAAgB,EAAE,gBAAgB;IAJ3C,YACS,IAAI,EAAE,SAAS,EACf,YAAY,EAAE,eAAe,EAC7B,QAAQ,EAAE,WAAW,EACrB,gBAAgB,EAAE,gBAAgB,EACvC;IAEJ,OAAoB,MAAM,CAAC,EAAE,EAAE,iBAAiB,4BA+B/C;IAEY,aAAa,CAAC,KAAK,EAAE,OAAO,iBAgBxC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AztecNodeService } from '@aztec/aztec-node';
|
|
2
2
|
import { TestCircuitVerifier } from '@aztec/bb-prover/test';
|
|
3
3
|
import { createLogger } from '@aztec/foundation/log';
|
|
4
|
-
import {
|
|
4
|
+
import { AnchorBlockStore } from '@aztec/pxe/server';
|
|
5
5
|
import { L1PublishedData, PublishedCheckpoint } from '@aztec/stdlib/checkpoint';
|
|
6
6
|
import { getPackageVersion } from '@aztec/stdlib/update-checker';
|
|
7
7
|
import { TXEArchiver } from './archiver.js';
|
|
@@ -15,21 +15,21 @@ export class TXEStateMachine {
|
|
|
15
15
|
node;
|
|
16
16
|
synchronizer;
|
|
17
17
|
archiver;
|
|
18
|
-
|
|
19
|
-
constructor(node, synchronizer, archiver,
|
|
18
|
+
anchorBlockStore;
|
|
19
|
+
constructor(node, synchronizer, archiver, anchorBlockStore){
|
|
20
20
|
this.node = node;
|
|
21
21
|
this.synchronizer = synchronizer;
|
|
22
22
|
this.archiver = archiver;
|
|
23
|
-
this.
|
|
23
|
+
this.anchorBlockStore = anchorBlockStore;
|
|
24
24
|
}
|
|
25
25
|
static async create(db) {
|
|
26
26
|
const archiver = new TXEArchiver(db);
|
|
27
27
|
const synchronizer = await TXESynchronizer.create();
|
|
28
|
-
const
|
|
28
|
+
const anchorBlockStore = new AnchorBlockStore(db);
|
|
29
29
|
const aztecNodeConfig = {};
|
|
30
30
|
const log = createLogger('txe_node');
|
|
31
31
|
const node = new AztecNodeService(aztecNodeConfig, new DummyP2P(), archiver, archiver, archiver, archiver, synchronizer, undefined, undefined, undefined, undefined, VERSION, CHAIN_ID, new TXEGlobalVariablesBuilder(), new MockEpochCache(), getPackageVersion() ?? '', new TestCircuitVerifier(), undefined, log);
|
|
32
|
-
return new this(node, synchronizer, archiver,
|
|
32
|
+
return new this(node, synchronizer, archiver, anchorBlockStore);
|
|
33
33
|
}
|
|
34
34
|
async handleL2Block(block) {
|
|
35
35
|
const checkpoint = block.toCheckpoint();
|
|
@@ -39,7 +39,7 @@ export class TXEStateMachine {
|
|
|
39
39
|
this.archiver.addCheckpoints([
|
|
40
40
|
publishedCheckpoint
|
|
41
41
|
], undefined),
|
|
42
|
-
this.
|
|
42
|
+
this.anchorBlockStore.setHeader(block.getBlockHeader())
|
|
43
43
|
]);
|
|
44
44
|
}
|
|
45
45
|
}
|
package/dest/txe_session.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Fr } from '@aztec/foundation/curves/bn254';
|
|
|
3
3
|
import { type Logger } from '@aztec/foundation/log';
|
|
4
4
|
import { KeyStore } from '@aztec/key-store';
|
|
5
5
|
import type { ProtocolContract } from '@aztec/protocol-contracts';
|
|
6
|
-
import {
|
|
6
|
+
import { AddressStore, CapsuleStore, NoteStore, PrivateEventStore, RecipientTaggingStore, SenderAddressBookStore, SenderTaggingStore } from '@aztec/pxe/server';
|
|
7
7
|
import { type IPrivateExecutionOracle, type IUtilityExecutionOracle } from '@aztec/pxe/simulator';
|
|
8
8
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
9
9
|
import { PrivateContextInputs } from '@aztec/stdlib/kernel';
|
|
@@ -11,8 +11,8 @@ import type { IAvmExecutionOracle, ITxeExecutionOracle } from './oracle/interfac
|
|
|
11
11
|
import { RPCTranslator } from './rpc_translator.js';
|
|
12
12
|
import { TXEStateMachine } from './state_machine/index.js';
|
|
13
13
|
import type { ForeignCallArgs, ForeignCallResult } from './util/encoding.js';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { TXEAccountStore } from './util/txe_account_store.js';
|
|
15
|
+
import { TXEContractStore } from './util/txe_contract_store.js';
|
|
16
16
|
type MethodNames<T> = {
|
|
17
17
|
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
|
18
18
|
}[keyof T];
|
|
@@ -27,7 +27,6 @@ export interface TXESessionStateHandler {
|
|
|
27
27
|
enterPrivateState(contractAddress?: AztecAddress, anchorBlockNumber?: BlockNumber): Promise<PrivateContextInputs>;
|
|
28
28
|
enterUtilityState(contractAddress?: AztecAddress): Promise<void>;
|
|
29
29
|
}
|
|
30
|
-
export declare const DEFAULT_ADDRESS: AztecAddress;
|
|
31
30
|
/**
|
|
32
31
|
* A `TXESession` corresponds to a Noir `#[test]` function, and handles all of its oracle calls, stores test-specific
|
|
33
32
|
* state, etc., independent of all other tests running in parallel.
|
|
@@ -36,22 +35,22 @@ export declare class TXESession implements TXESessionStateHandler {
|
|
|
36
35
|
private logger;
|
|
37
36
|
private stateMachine;
|
|
38
37
|
private oracleHandler;
|
|
39
|
-
private
|
|
40
|
-
private
|
|
38
|
+
private contractStore;
|
|
39
|
+
private noteStore;
|
|
41
40
|
private keyStore;
|
|
42
|
-
private
|
|
43
|
-
private
|
|
44
|
-
private
|
|
45
|
-
private
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
private
|
|
41
|
+
private addressStore;
|
|
42
|
+
private accountStore;
|
|
43
|
+
private senderTaggingStore;
|
|
44
|
+
private recipientTaggingStore;
|
|
45
|
+
private senderAddressBookStore;
|
|
46
|
+
private capsuleStore;
|
|
47
|
+
private privateEventStore;
|
|
49
48
|
private chainId;
|
|
50
49
|
private version;
|
|
51
50
|
private nextBlockTimestamp;
|
|
52
51
|
private state;
|
|
53
52
|
private authwits;
|
|
54
|
-
constructor(logger: Logger, stateMachine: TXEStateMachine, oracleHandler: IUtilityExecutionOracle | IPrivateExecutionOracle | IAvmExecutionOracle | ITxeExecutionOracle,
|
|
53
|
+
constructor(logger: Logger, stateMachine: TXEStateMachine, oracleHandler: IUtilityExecutionOracle | IPrivateExecutionOracle | IAvmExecutionOracle | ITxeExecutionOracle, contractStore: TXEContractStore, noteStore: NoteStore, keyStore: KeyStore, addressStore: AddressStore, accountStore: TXEAccountStore, senderTaggingStore: SenderTaggingStore, recipientTaggingStore: RecipientTaggingStore, senderAddressBookStore: SenderAddressBookStore, capsuleStore: CapsuleStore, privateEventStore: PrivateEventStore, chainId: Fr, version: Fr, nextBlockTimestamp: bigint);
|
|
55
54
|
static init(protocolContracts: ProtocolContract[]): Promise<TXESession>;
|
|
56
55
|
/**
|
|
57
56
|
* Processes an oracle function invoked by the Noir test associated to this session.
|
|
@@ -68,6 +67,7 @@ export declare class TXESession implements TXESessionStateHandler {
|
|
|
68
67
|
private exitPrivateState;
|
|
69
68
|
private exitPublicState;
|
|
70
69
|
private exitUtilityContext;
|
|
70
|
+
private utilityExecutorForContractSync;
|
|
71
71
|
}
|
|
72
72
|
export {};
|
|
73
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
73
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHhlX3Nlc3Npb24uZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy90eGVfc2Vzc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDOUQsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BELE9BQU8sRUFBRSxLQUFLLE1BQU0sRUFBZ0IsTUFBTSx1QkFBdUIsQ0FBQztBQUNsRSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFNUMsT0FBTyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNsRSxPQUFPLEVBQ0wsWUFBWSxFQUNaLFlBQVksRUFFWixTQUFTLEVBQ1QsaUJBQWlCLEVBQ2pCLHFCQUFxQixFQUNyQixzQkFBc0IsRUFDdEIsa0JB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ENBQUMsa0JBQWtCO0lBTTFCLE9BQU8sQ0FBQyw4QkFBOEI7Q0EyQ3ZDIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"txe_session.d.ts","sourceRoot":"","sources":["../src/txe_session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"txe_session.d.ts","sourceRoot":"","sources":["../src/txe_session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,YAAY,EAEZ,SAAS,EACT,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAIL,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAI7B,MAAM,sBAAsB,CAAC;AAW9B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAO5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGvF,OAAO,EAAE,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