@aztec/txe 0.0.1-commit.321f6a9 → 0.0.1-commit.330febf
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/{ContractClassRegistry-VWR3F42P.js → ContractClassRegistry-PVNCKGG7.js} +1 -1
- package/dest/{ContractClassRegistry-VWR3F42P.js.map → ContractClassRegistry-PVNCKGG7.js.map} +2 -2
- package/dest/{ContractInstanceRegistry-FHIWE33X.js → ContractInstanceRegistry-WLOZKTR6.js} +1 -1
- package/dest/{ContractInstanceRegistry-FHIWE33X.js.map → ContractInstanceRegistry-WLOZKTR6.js.map} +2 -2
- package/dest/{FeeJuice-SAOWVGG7.js → FeeJuice-MAQJU53K.js} +1 -1
- package/dest/{FeeJuice-SAOWVGG7.js.map → FeeJuice-MAQJU53K.js.map} +2 -2
- package/dest/{SchnorrAccount-NME3E45O.js → SchnorrAccount-ADD65DYA.js} +1 -1
- package/dest/{SchnorrAccount-NME3E45O.js.map → SchnorrAccount-ADD65DYA.js.map} +1 -1
- package/dest/{SchnorrInitializerlessAccount-WTGXU6SW.js → SchnorrInitializerlessAccount-TWGKRUSY.js} +1 -1
- package/dest/{SchnorrInitializerlessAccount-WTGXU6SW.js.map → SchnorrInitializerlessAccount-TWGKRUSY.js.map} +1 -1
- package/dest/bin/check_txe_oracle_version.js +2 -33
- package/dest/bin/index.js +1 -1
- package/dest/{chunk-YS3UIBVR.js → chunk-RVEPNDEP.js} +2 -2
- package/dest/{chunk-YS3UIBVR.js.map → chunk-RVEPNDEP.js.map} +2 -2
- package/dest/chunk-XWIMXLKD.js +258 -0
- package/dest/chunk-XWIMXLKD.js.map +7 -0
- package/dest/constants.js +1 -1
- package/dest/metafile.json +1236 -1162
- package/dest/oracle/test-resolver/default_fixtures.js +1 -1
- package/dest/oracle/txe_oracle_top_level_context.d.ts +1 -1
- package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_top_level_context.js +1 -2
- package/dest/oracle/txe_oracle_version.d.ts +1 -1
- package/dest/oracle/txe_oracle_version.js +1 -1
- package/dest/rpc_translator.d.ts +2 -1
- package/dest/rpc_translator.d.ts.map +1 -1
- package/dest/rpc_translator.js +8 -0
- package/dest/server.bundle.js +1 -1
- package/dest/state_machine/mock_epoch_cache.d.ts +2 -1
- package/dest/state_machine/mock_epoch_cache.d.ts.map +1 -1
- package/dest/state_machine/mock_epoch_cache.js +3 -0
- package/dest/txe_session.d.ts +3 -1
- package/dest/txe_session.d.ts.map +1 -1
- package/dest/txe_session.js +9 -7
- package/dest/utils/encoding.d.ts +5 -3
- package/dest/utils/encoding.d.ts.map +1 -1
- package/dest/worker.bundle.js +1 -1
- package/package.json +17 -17
- package/src/bin/check_txe_oracle_version.ts +2 -38
- package/src/constants.ts +1 -1
- package/src/oracle/test-resolver/default_fixtures.ts +1 -1
- package/src/oracle/txe_oracle_top_level_context.ts +0 -1
- package/src/oracle/txe_oracle_version.ts +1 -1
- package/src/rpc_translator.ts +10 -0
- package/src/state_machine/mock_epoch_cache.ts +4 -0
- package/src/txe_session.ts +11 -7
- package/dest/chunk-SZPMCTJK.js +0 -260
- package/dest/chunk-SZPMCTJK.js.map +0 -7
package/src/txe_session.ts
CHANGED
|
@@ -780,10 +780,7 @@ export class TXESession implements TXESessionStateHandler {
|
|
|
780
780
|
scopes: await this.keyStore.getAccounts(),
|
|
781
781
|
txResolver: this.stateMachine.txResolver,
|
|
782
782
|
simulator: new WASMSimulator(),
|
|
783
|
-
hooks:
|
|
784
|
-
resolveTaggingSecretStrategy: makeResolveTaggingSecretStrategyHook(this.taggingSecretStrategies),
|
|
785
|
-
authorizeUtilityCall: this.authorizeAllUtilityCallTargets ? authorizeAllUtilityCallsHook : undefined,
|
|
786
|
-
}),
|
|
783
|
+
hooks: this.buildExecutionHooks(),
|
|
787
784
|
transientArrayService,
|
|
788
785
|
});
|
|
789
786
|
|
|
@@ -883,9 +880,7 @@ export class TXESession implements TXESessionStateHandler {
|
|
|
883
880
|
scopes: await this.keyStore.getAccounts(),
|
|
884
881
|
simulator: new WASMSimulator(),
|
|
885
882
|
utilityExecutor: this.utilityExecutorForContractSync(anchorBlockHeader),
|
|
886
|
-
hooks:
|
|
887
|
-
authorizeUtilityCall: this.authorizeAllUtilityCallTargets ? authorizeAllUtilityCallsHook : undefined,
|
|
888
|
-
}),
|
|
883
|
+
hooks: this.buildExecutionHooks(),
|
|
889
884
|
// Execution-tree root (top-level utility run): own store; nested frames inherit it.
|
|
890
885
|
transientArrayService: new TransientArrayService(),
|
|
891
886
|
});
|
|
@@ -1013,6 +1008,7 @@ export class TXESession implements TXESessionStateHandler {
|
|
|
1013
1008
|
scopes,
|
|
1014
1009
|
simulator,
|
|
1015
1010
|
utilityExecutor: this.utilityExecutorForContractSync(anchorBlock),
|
|
1011
|
+
hooks: this.buildExecutionHooks(),
|
|
1016
1012
|
// Top-level utility entrypoint: gets a fresh store. Nested frames inherit it via UtilityExecutionOracle.
|
|
1017
1013
|
transientArrayService: new TransientArrayService(),
|
|
1018
1014
|
});
|
|
@@ -1035,4 +1031,12 @@ export class TXESession implements TXESessionStateHandler {
|
|
|
1035
1031
|
}
|
|
1036
1032
|
};
|
|
1037
1033
|
}
|
|
1034
|
+
|
|
1035
|
+
/** Execution hooks for the oracles this session builds. Every oracle construction site must use this. */
|
|
1036
|
+
private buildExecutionHooks() {
|
|
1037
|
+
return composeHooks({
|
|
1038
|
+
resolveTaggingSecretStrategy: makeResolveTaggingSecretStrategyHook(this.taggingSecretStrategies),
|
|
1039
|
+
authorizeUtilityCall: this.authorizeAllUtilityCallTargets ? authorizeAllUtilityCallsHook : undefined,
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1038
1042
|
}
|