@aztec/txe 0.0.1-commit.ec5f612 → 0.0.1-commit.ef17749e1
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/index.d.ts +1 -1
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +8 -6
- package/dest/oracle/interfaces.d.ts +28 -28
- package/dest/oracle/interfaces.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_public_context.d.ts +13 -13
- package/dest/oracle/txe_oracle_public_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_public_context.js +12 -12
- package/dest/oracle/txe_oracle_top_level_context.d.ts +19 -19
- package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_top_level_context.js +24 -24
- package/dest/rpc_translator.d.ts +82 -82
- package/dest/rpc_translator.d.ts.map +1 -1
- package/dest/rpc_translator.js +228 -147
- package/dest/txe_session.js +3 -3
- package/package.json +15 -15
- package/src/index.ts +8 -5
- package/src/oracle/interfaces.ts +27 -31
- package/src/oracle/txe_oracle_public_context.ts +12 -12
- package/src/oracle/txe_oracle_top_level_context.ts +24 -24
- package/src/rpc_translator.ts +238 -155
- package/src/txe_session.ts +3 -3
package/src/txe_session.ts
CHANGED
|
@@ -202,7 +202,7 @@ export class TXESession implements TXESessionStateHandler {
|
|
|
202
202
|
chainId,
|
|
203
203
|
new Map(),
|
|
204
204
|
);
|
|
205
|
-
await topLevelOracleHandler.
|
|
205
|
+
await topLevelOracleHandler.advanceBlocksBy(1);
|
|
206
206
|
|
|
207
207
|
return new TXESession(
|
|
208
208
|
createLogger('txe:session'),
|
|
@@ -452,8 +452,8 @@ export class TXESession implements TXESessionStateHandler {
|
|
|
452
452
|
|
|
453
453
|
// Note that while all public and private contexts do is build a single block that we then process when exiting
|
|
454
454
|
// those, the top level context performs a large number of actions not captured in the following 'close' call. Among
|
|
455
|
-
// others, it will create empty blocks (via `
|
|
456
|
-
// `
|
|
455
|
+
// others, it will create empty blocks (via `advanceBlocksBy` and `deploy`), create blocks with transactions via
|
|
456
|
+
// `privateCallNewFlow` and `publicCallNewFlow`, add accounts to PXE via `addAccount`, etc. This is a
|
|
457
457
|
// slight inconsistency in the working model of this class, but is not too bad.
|
|
458
458
|
// TODO: it's quite unfortunate that we need to capture the authwits created to later pass them again when the top
|
|
459
459
|
// level context is re-created. This is because authwits create a temporary utility context that'd otherwise reset
|