@aztec/entrypoints 3.0.0-nightly.20251111 → 3.0.0-nightly.20251113

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.
@@ -2,8 +2,8 @@ import { Fr } from '@aztec/foundation/fields';
2
2
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
3
3
  import type { GasSettings } from '@aztec/stdlib/gas';
4
4
  import { TxExecutionRequest } from '@aztec/stdlib/tx';
5
+ import type { ExecutionPayload } from '@aztec/stdlib/tx';
5
6
  import type { AuthWitnessProvider, EntrypointInterface } from './interfaces.js';
6
- import { ExecutionPayload } from './payload.js';
7
7
  /**
8
8
  * The mechanism via which an account contract will pay for a transaction in which it gets invoked.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"account_entrypoint.d.ts","sourceRoot":"","sources":["../src/account_entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD;;GAEG;AACH,oBAAY,8BAA8B;IACxC;;OAEG;IACH,QAAQ,IAAI;IACZ;;;;;OAKG;IACH,qBAAqB,IAAI;IACzB;;;;;;;OAOG;IACH,oBAAoB,IAAI;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;IACb,4GAA4G;IAC5G,uBAAuB,EAAE,8BAA8B,CAAC;CACzD,CAAC;AAEF;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,mBAAmB;IAEhE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAHP,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,mBAAmB,EACzB,OAAO,GAAE,MAAyB,EAClC,OAAO,GAAE,MAAwB;IAGrC,wBAAwB,CAC5B,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IAgC9B,OAAO,CAAC,gBAAgB;CA2DzB"}
1
+ {"version":3,"file":"account_entrypoint.d.ts","sourceRoot":"","sources":["../src/account_entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEhF;;GAEG;AACH,oBAAY,8BAA8B;IACxC;;OAEG;IACH,QAAQ,IAAI;IACZ;;;;;OAKG;IACH,qBAAqB,IAAI;IACzB;;;;;;;OAOG;IACH,oBAAoB,IAAI;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;IACb,4GAA4G;IAC5G,uBAAuB,EAAE,8BAA8B,CAAC;CACzD,CAAC;AAEF;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,mBAAmB;IAEhE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAHP,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,mBAAmB,EACzB,OAAO,GAAE,MAAyB,EAClC,OAAO,GAAE,MAAwB;IAGrC,wBAAwB,CAC5B,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IAgC9B,OAAO,CAAC,gBAAgB;CA2DzB"}
@@ -80,7 +80,7 @@ import { EncodedAppEntrypointCalls } from './encoding.js';
80
80
  name: 'entrypoint',
81
81
  isInitializer: false,
82
82
  functionType: 'private',
83
- isInternal: false,
83
+ isOnlySelf: false,
84
84
  isStatic: false,
85
85
  parameters: [
86
86
  {
@@ -1,7 +1,6 @@
1
1
  import type { GasSettings } from '@aztec/stdlib/gas';
2
- import { TxExecutionRequest } from '@aztec/stdlib/tx';
2
+ import { type ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
3
3
  import type { EntrypointInterface } from './interfaces.js';
4
- import type { ExecutionPayload } from './payload.js';
5
4
  /**
6
5
  * Default implementation of the entrypoint interface. It calls a function on a contract directly
7
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"default_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,mBAAmB;IAEzD,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,aAAa;gBADb,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM;IAGzB,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA4B9G"}
1
+ {"version":3,"file":"default_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;GAEG;AACH,qBAAa,iBAAkB,YAAW,mBAAmB;IAEzD,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,aAAa;gBADb,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM;IAGzB,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA4B9G"}
@@ -1,8 +1,8 @@
1
1
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
2
2
  import type { GasSettings } from '@aztec/stdlib/gas';
3
3
  import { TxExecutionRequest } from '@aztec/stdlib/tx';
4
+ import type { ExecutionPayload } from '@aztec/stdlib/tx';
4
5
  import type { EntrypointInterface } from './interfaces.js';
5
- import type { ExecutionPayload } from './payload.js';
6
6
  /**
7
7
  * Implementation for an entrypoint interface that can execute multiple function calls in a single transaction
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"default_multi_call_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_multi_call_entrypoint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAElE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAFP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAA0D;IAGvE,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA0B7G,OAAO,CAAC,gBAAgB;CAyDzB"}
1
+ {"version":3,"file":"default_multi_call_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_multi_call_entrypoint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;GAEG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAElE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAFP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAA0D;IAGvE,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA0B7G,OAAO,CAAC,gBAAgB;CAyDzB"}
@@ -46,7 +46,7 @@ import { EncodedAppEntrypointCalls } from './encoding.js';
46
46
  name: 'entrypoint',
47
47
  isInitializer: false,
48
48
  functionType: 'private',
49
- isInternal: false,
49
+ isOnlySelf: false,
50
50
  isStatic: false,
51
51
  parameters: [
52
52
  {
@@ -1,8 +1,7 @@
1
1
  import type { Fr } from '@aztec/foundation/fields';
2
2
  import type { AuthWitness } from '@aztec/stdlib/auth-witness';
3
3
  import type { GasSettings } from '@aztec/stdlib/gas';
4
- import type { TxExecutionRequest } from '@aztec/stdlib/tx';
5
- import type { ExecutionPayload } from './payload.js';
4
+ import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
6
5
  /**
7
6
  * Information on the connected chain. Used by wallets when constructing transactions to protect against replay
8
7
  * attacks.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,sBAAsB;IACtB,OAAO,EAAE,EAAE,CAAC;IACZ,iCAAiC;IACjC,OAAO,EAAE,EAAE,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,GAAG,GACZ,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC;AAED,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/D"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,sBAAsB;IACtB,OAAO,EAAE,EAAE,CAAC;IACZ,iCAAiC;IACjC,OAAO,EAAE,EAAE,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,GAAG,GACZ,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC;AAED,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/D"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aztec/entrypoints",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/entrypoints",
4
4
  "description": "Implementation of sample contract entrypoints for the Aztec Network",
5
- "version": "3.0.0-nightly.20251111",
5
+ "version": "3.0.0-nightly.20251113",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  "./account": "./dest/account_entrypoint.js",
@@ -67,10 +67,10 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/constants": "3.0.0-nightly.20251111",
71
- "@aztec/foundation": "3.0.0-nightly.20251111",
72
- "@aztec/protocol-contracts": "3.0.0-nightly.20251111",
73
- "@aztec/stdlib": "3.0.0-nightly.20251111",
70
+ "@aztec/constants": "3.0.0-nightly.20251113",
71
+ "@aztec/foundation": "3.0.0-nightly.20251113",
72
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251113",
73
+ "@aztec/stdlib": "3.0.0-nightly.20251113",
74
74
  "tslib": "^2.4.0"
75
75
  },
76
76
  "devDependencies": {
@@ -3,11 +3,11 @@ import { type FunctionAbi, FunctionSelector, encodeArguments } from '@aztec/stdl
3
3
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
4
4
  import type { GasSettings } from '@aztec/stdlib/gas';
5
5
  import { HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
6
+ import type { ExecutionPayload } from '@aztec/stdlib/tx';
6
7
 
7
8
  import { DEFAULT_CHAIN_ID, DEFAULT_VERSION } from './constants.js';
8
9
  import { EncodedAppEntrypointCalls } from './encoding.js';
9
10
  import type { AuthWitnessProvider, EntrypointInterface } from './interfaces.js';
10
- import { ExecutionPayload } from './payload.js';
11
11
 
12
12
  /**
13
13
  * The mechanism via which an account contract will pay for a transaction in which it gets invoked.
@@ -104,7 +104,7 @@ export class DefaultAccountEntrypoint implements EntrypointInterface {
104
104
  name: 'entrypoint',
105
105
  isInitializer: false,
106
106
  functionType: 'private',
107
- isInternal: false,
107
+ isOnlySelf: false,
108
108
  isStatic: false,
109
109
  parameters: [
110
110
  {
@@ -1,9 +1,8 @@
1
1
  import { FunctionType } from '@aztec/stdlib/abi';
2
2
  import type { GasSettings } from '@aztec/stdlib/gas';
3
- import { HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
3
+ import { type ExecutionPayload, HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
4
4
 
5
5
  import type { EntrypointInterface } from './interfaces.js';
6
- import type { ExecutionPayload } from './payload.js';
7
6
 
8
7
  /**
9
8
  * Default implementation of the entrypoint interface. It calls a function on a contract directly
@@ -4,10 +4,10 @@ import { type FunctionAbi, FunctionSelector, encodeArguments } from '@aztec/stdl
4
4
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
5
5
  import type { GasSettings } from '@aztec/stdlib/gas';
6
6
  import { HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
7
+ import type { ExecutionPayload } from '@aztec/stdlib/tx';
7
8
 
8
9
  import { EncodedAppEntrypointCalls } from './encoding.js';
9
10
  import type { EntrypointInterface } from './interfaces.js';
10
- import type { ExecutionPayload } from './payload.js';
11
11
 
12
12
  /**
13
13
  * Implementation for an entrypoint interface that can execute multiple function calls in a single transaction
@@ -50,7 +50,7 @@ export class DefaultMultiCallEntrypoint implements EntrypointInterface {
50
50
  name: 'entrypoint',
51
51
  isInitializer: false,
52
52
  functionType: 'private',
53
- isInternal: false,
53
+ isOnlySelf: false,
54
54
  isStatic: false,
55
55
  parameters: [
56
56
  {
package/src/interfaces.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  import type { Fr } from '@aztec/foundation/fields';
2
2
  import type { AuthWitness } from '@aztec/stdlib/auth-witness';
3
3
  import type { GasSettings } from '@aztec/stdlib/gas';
4
- import type { TxExecutionRequest } from '@aztec/stdlib/tx';
5
-
6
- import type { ExecutionPayload } from './payload.js';
4
+ import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
7
5
 
8
6
  /**
9
7
  * Information on the connected chain. Used by wallets when constructing transactions to protect against replay
package/dest/payload.d.ts DELETED
@@ -1,32 +0,0 @@
1
- import { FunctionCall } from '@aztec/stdlib/abi';
2
- import type { AuthWitness } from '@aztec/stdlib/auth-witness';
3
- import { Capsule, HashedValues } from '@aztec/stdlib/tx';
4
- /**
5
- * Represents data necessary to perform an action in the network successfully.
6
- * This class can be considered Aztec's "minimal execution unit".
7
- * */
8
- export declare class ExecutionPayload {
9
- /** The function calls to be executed. */
10
- calls: FunctionCall[];
11
- /** Any transient auth witnesses needed for this execution */
12
- authWitnesses: AuthWitness[];
13
- /** Data passed through an oracle for this execution. */
14
- capsules: Capsule[];
15
- /** Extra hashed values to be injected in the execution cache */
16
- extraHashedArgs: HashedValues[];
17
- constructor(
18
- /** The function calls to be executed. */
19
- calls: FunctionCall[],
20
- /** Any transient auth witnesses needed for this execution */
21
- authWitnesses: AuthWitness[],
22
- /** Data passed through an oracle for this execution. */
23
- capsules: Capsule[],
24
- /** Extra hashed values to be injected in the execution cache */
25
- extraHashedArgs?: HashedValues[]);
26
- static empty(): ExecutionPayload;
27
- }
28
- /**
29
- * Merges an array ExecutionPayloads combining their calls, authWitnesses, capsules and extraArgHashes.
30
- */
31
- export declare function mergeExecutionPayloads(requests: ExecutionPayload[]): ExecutionPayload;
32
- //# sourceMappingURL=payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../src/payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEzD;;;KAGK;AACL,qBAAa,gBAAgB;IAEzB,yCAAyC;IAClC,KAAK,EAAE,YAAY,EAAE;IAC5B,6DAA6D;IACtD,aAAa,EAAE,WAAW,EAAE;IACnC,wDAAwD;IACjD,QAAQ,EAAE,OAAO,EAAE;IAC1B,gEAAgE;IACzD,eAAe,EAAE,YAAY,EAAE;;IAPtC,yCAAyC;IAClC,KAAK,EAAE,YAAY,EAAE;IAC5B,6DAA6D;IACtD,aAAa,EAAE,WAAW,EAAE;IACnC,wDAAwD;IACjD,QAAQ,EAAE,OAAO,EAAE;IAC1B,gEAAgE;IACzD,eAAe,GAAE,YAAY,EAAO;IAG7C,MAAM,CAAC,KAAK;CAGb;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,CAMrF"}
package/dest/payload.js DELETED
@@ -1,27 +0,0 @@
1
- /**
2
- * Represents data necessary to perform an action in the network successfully.
3
- * This class can be considered Aztec's "minimal execution unit".
4
- * */ export class ExecutionPayload {
5
- calls;
6
- authWitnesses;
7
- capsules;
8
- extraHashedArgs;
9
- constructor(/** The function calls to be executed. */ calls, /** Any transient auth witnesses needed for this execution */ authWitnesses, /** Data passed through an oracle for this execution. */ capsules, /** Extra hashed values to be injected in the execution cache */ extraHashedArgs = []){
10
- this.calls = calls;
11
- this.authWitnesses = authWitnesses;
12
- this.capsules = capsules;
13
- this.extraHashedArgs = extraHashedArgs;
14
- }
15
- static empty() {
16
- return new ExecutionPayload([], [], []);
17
- }
18
- }
19
- /**
20
- * Merges an array ExecutionPayloads combining their calls, authWitnesses, capsules and extraArgHashes.
21
- */ export function mergeExecutionPayloads(requests) {
22
- const calls = requests.map((r)=>r.calls).flat();
23
- const combinedAuthWitnesses = requests.map((r)=>r.authWitnesses ?? []).flat();
24
- const combinedCapsules = requests.map((r)=>r.capsules ?? []).flat();
25
- const combinedextraHashedArgs = requests.map((r)=>r.extraHashedArgs ?? []).flat();
26
- return new ExecutionPayload(calls, combinedAuthWitnesses, combinedCapsules, combinedextraHashedArgs);
27
- }
package/src/payload.ts DELETED
@@ -1,35 +0,0 @@
1
- import { FunctionCall } from '@aztec/stdlib/abi';
2
- import type { AuthWitness } from '@aztec/stdlib/auth-witness';
3
- import { Capsule, HashedValues } from '@aztec/stdlib/tx';
4
-
5
- /**
6
- * Represents data necessary to perform an action in the network successfully.
7
- * This class can be considered Aztec's "minimal execution unit".
8
- * */
9
- export class ExecutionPayload {
10
- public constructor(
11
- /** The function calls to be executed. */
12
- public calls: FunctionCall[],
13
- /** Any transient auth witnesses needed for this execution */
14
- public authWitnesses: AuthWitness[],
15
- /** Data passed through an oracle for this execution. */
16
- public capsules: Capsule[],
17
- /** Extra hashed values to be injected in the execution cache */
18
- public extraHashedArgs: HashedValues[] = [],
19
- ) {}
20
-
21
- static empty() {
22
- return new ExecutionPayload([], [], []);
23
- }
24
- }
25
-
26
- /**
27
- * Merges an array ExecutionPayloads combining their calls, authWitnesses, capsules and extraArgHashes.
28
- */
29
- export function mergeExecutionPayloads(requests: ExecutionPayload[]): ExecutionPayload {
30
- const calls = requests.map(r => r.calls).flat();
31
- const combinedAuthWitnesses = requests.map(r => r.authWitnesses ?? []).flat();
32
- const combinedCapsules = requests.map(r => r.capsules ?? []).flat();
33
- const combinedextraHashedArgs = requests.map(r => r.extraHashedArgs ?? []).flat();
34
- return new ExecutionPayload(calls, combinedAuthWitnesses, combinedCapsules, combinedextraHashedArgs);
35
- }