@aztec/entrypoints 0.0.1-commit.f1df4d2 → 0.0.1-commit.f2ce05ee

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.
@@ -61,7 +61,16 @@ import { EncodedAppEntrypointCalls } from './encoding.js';
61
61
  const { authWitnesses, capsules, extraHashedArgs, feePayer } = exec;
62
62
  const callData = await this.#buildEntrypointCallData(exec, options);
63
63
  // Build the entrypoint function call
64
- const entrypointCall = new FunctionCall(callData.abi.name, this.address, callData.functionSelector, callData.abi.functionType, false, callData.abi.isStatic, callData.encodedArgs, callData.abi.returnTypes);
64
+ const entrypointCall = FunctionCall.from({
65
+ name: callData.abi.name,
66
+ to: this.address,
67
+ selector: callData.functionSelector,
68
+ type: callData.abi.functionType,
69
+ hideMsgSender: false,
70
+ isStatic: callData.abi.isStatic,
71
+ args: callData.encodedArgs,
72
+ returnTypes: callData.abi.returnTypes
73
+ });
65
74
  return new ExecutionPayload([
66
75
  entrypointCall
67
76
  ], [
@@ -33,7 +33,16 @@ import { EncodedAppEntrypointCalls } from './encoding.js';
33
33
  async wrapExecutionPayload(exec, _options) {
34
34
  const { authWitnesses, capsules, extraHashedArgs } = exec;
35
35
  const callData = await this.#buildEntrypointCallData(exec);
36
- const entrypointCall = new FunctionCall(callData.abi.name, this.address, callData.functionSelector, callData.abi.functionType, false, callData.abi.isStatic, callData.encodedArgs, callData.abi.returnTypes);
36
+ const entrypointCall = FunctionCall.from({
37
+ name: callData.abi.name,
38
+ to: this.address,
39
+ selector: callData.functionSelector,
40
+ type: callData.abi.functionType,
41
+ hideMsgSender: false,
42
+ isStatic: callData.abi.isStatic,
43
+ args: callData.encodedArgs,
44
+ returnTypes: callData.abi.returnTypes
45
+ });
37
46
  return new ExecutionPayload([
38
47
  entrypointCall
39
48
  ], authWitnesses, capsules, [
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": "0.0.1-commit.f1df4d2",
5
+ "version": "0.0.1-commit.f2ce05ee",
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": "0.0.1-commit.f1df4d2",
71
- "@aztec/foundation": "0.0.1-commit.f1df4d2",
72
- "@aztec/protocol-contracts": "0.0.1-commit.f1df4d2",
73
- "@aztec/stdlib": "0.0.1-commit.f1df4d2",
70
+ "@aztec/constants": "0.0.1-commit.f2ce05ee",
71
+ "@aztec/foundation": "0.0.1-commit.f2ce05ee",
72
+ "@aztec/protocol-contracts": "0.0.1-commit.f2ce05ee",
73
+ "@aztec/stdlib": "0.0.1-commit.f2ce05ee",
74
74
  "tslib": "^2.4.0",
75
75
  "zod": "^3.23.8"
76
76
  },
@@ -90,16 +90,16 @@ export class DefaultAccountEntrypoint implements EntrypointInterface {
90
90
  const callData = await this.#buildEntrypointCallData(exec, options);
91
91
 
92
92
  // Build the entrypoint function call
93
- const entrypointCall = new FunctionCall(
94
- callData.abi.name,
95
- this.address,
96
- callData.functionSelector,
97
- callData.abi.functionType,
98
- false,
99
- callData.abi.isStatic,
100
- callData.encodedArgs,
101
- callData.abi.returnTypes,
102
- );
93
+ const entrypointCall = FunctionCall.from({
94
+ name: callData.abi.name,
95
+ to: this.address,
96
+ selector: callData.functionSelector,
97
+ type: callData.abi.functionType,
98
+ hideMsgSender: false,
99
+ isStatic: callData.abi.isStatic,
100
+ args: callData.encodedArgs,
101
+ returnTypes: callData.abi.returnTypes,
102
+ });
103
103
 
104
104
  return new ExecutionPayload(
105
105
  [entrypointCall],
@@ -40,16 +40,16 @@ export class DefaultMultiCallEntrypoint implements EntrypointInterface {
40
40
  async wrapExecutionPayload(exec: ExecutionPayload, _options?: any): Promise<ExecutionPayload> {
41
41
  const { authWitnesses, capsules, extraHashedArgs } = exec;
42
42
  const callData = await this.#buildEntrypointCallData(exec);
43
- const entrypointCall = new FunctionCall(
44
- callData.abi.name,
45
- this.address,
46
- callData.functionSelector,
47
- callData.abi.functionType,
48
- false,
49
- callData.abi.isStatic,
50
- callData.encodedArgs,
51
- callData.abi.returnTypes,
52
- );
43
+ const entrypointCall = FunctionCall.from({
44
+ name: callData.abi.name,
45
+ to: this.address,
46
+ selector: callData.functionSelector,
47
+ type: callData.abi.functionType,
48
+ hideMsgSender: false,
49
+ isStatic: callData.abi.isStatic,
50
+ args: callData.encodedArgs,
51
+ returnTypes: callData.abi.returnTypes,
52
+ });
53
53
 
54
54
  return new ExecutionPayload(
55
55
  [entrypointCall],