@aztec/stdlib 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.
- package/dest/abi/abi.d.ts +8 -8
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +2 -2
- package/dest/abi/contract_artifact.js +3 -3
- package/dest/avm/avm.d.ts +780 -1010
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +209 -15
- package/dest/avm/avm_accumulated_data.d.ts +22 -6
- package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
- package/dest/avm/avm_accumulated_data.js +18 -0
- package/dest/avm/avm_circuit_public_inputs.d.ts +35 -27
- package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
- package/dest/avm/avm_circuit_public_inputs.js +9 -0
- package/dest/avm/avm_proving_request.d.ts +308 -464
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/avm/public_data_write.d.ts +10 -2
- package/dest/avm/public_data_write.d.ts.map +1 -1
- package/dest/avm/public_data_write.js +9 -0
- package/dest/avm/revert_code.d.ts +8 -0
- package/dest/avm/revert_code.d.ts.map +1 -1
- package/dest/avm/revert_code.js +16 -0
- package/dest/aztec-address/index.d.ts +9 -0
- package/dest/aztec-address/index.d.ts.map +1 -1
- package/dest/aztec-address/index.js +16 -0
- package/dest/block/l2_block.d.ts +1 -1
- package/dest/block/l2_block_info.d.ts +3 -3
- package/dest/block/proposal/attestations_and_signers.d.ts +1 -1
- package/dest/block/proposal/committee_attestation.d.ts +1 -1
- package/dest/block/published_l2_block.d.ts +2 -2
- package/dest/block/validate_block_result.d.ts +12 -12
- package/dest/contract/contract_deployment_data.d.ts +10 -2
- package/dest/contract/contract_deployment_data.d.ts.map +1 -1
- package/dest/contract/contract_deployment_data.js +12 -0
- package/dest/contract/interfaces/contract_class.d.ts +19 -19
- package/dest/contract/interfaces/contract_instance.d.ts +32 -200
- package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
- package/dest/database-version/version_manager.d.ts +1 -1
- package/dest/file-store/http.d.ts.map +1 -1
- package/dest/file-store/http.js +8 -3
- package/dest/file-store/s3.d.ts.map +1 -1
- package/dest/file-store/s3.js +3 -7
- package/dest/gas/gas.d.ts +8 -0
- package/dest/gas/gas.d.ts.map +1 -1
- package/dest/gas/gas.js +12 -0
- package/dest/gas/gas_fees.d.ts +8 -0
- package/dest/gas/gas_fees.d.ts.map +1 -1
- package/dest/gas/gas_fees.js +12 -0
- package/dest/gas/gas_settings.d.ts +8 -0
- package/dest/gas/gas_settings.d.ts.map +1 -1
- package/dest/gas/gas_settings.js +12 -0
- package/dest/gas/gas_used.d.ts +12 -1
- package/dest/gas/gas_used.d.ts.map +1 -1
- package/dest/gas/gas_used.js +19 -1
- package/dest/interfaces/aztec-node-admin.d.ts +8 -5
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/interfaces/configs.d.ts +5 -0
- package/dest/interfaces/configs.d.ts.map +1 -1
- package/dest/interfaces/configs.js +1 -0
- package/dest/interfaces/proving-job.d.ts +336 -492
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/slasher.d.ts +3 -3
- package/dest/interfaces/validator.d.ts +12 -4
- package/dest/interfaces/validator.d.ts.map +1 -1
- package/dest/interfaces/validator.js +2 -1
- package/dest/kernel/private_to_avm_accumulated_data.d.ts +20 -4
- package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_to_avm_accumulated_data.js +18 -0
- package/dest/kernel/public_call_request.d.ts +17 -1
- package/dest/kernel/public_call_request.d.ts.map +1 -1
- package/dest/kernel/public_call_request.js +18 -0
- package/dest/keys/public_keys.d.ts +20 -84
- package/dest/keys/public_keys.d.ts.map +1 -1
- package/dest/keys/public_keys.js +12 -0
- package/dest/logs/contract_class_log.d.ts +18 -2
- package/dest/logs/contract_class_log.d.ts.map +1 -1
- package/dest/logs/contract_class_log.js +24 -0
- package/dest/logs/debug_log.d.ts +9 -1
- package/dest/logs/debug_log.d.ts.map +1 -1
- package/dest/logs/debug_log.js +13 -0
- package/dest/logs/directional_app_tagging_secret.d.ts +1 -1
- package/dest/logs/pre_tag.d.ts +1 -1
- package/dest/logs/private_log.d.ts +9 -1
- package/dest/logs/private_log.d.ts.map +1 -1
- package/dest/logs/private_log.js +12 -0
- package/dest/logs/public_log.d.ts +8 -0
- package/dest/logs/public_log.d.ts.map +1 -1
- package/dest/logs/public_log.js +9 -0
- package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
- package/dest/messaging/l2_to_l1_message.d.ts +24 -8
- package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
- package/dest/messaging/l2_to_l1_message.js +18 -0
- package/dest/noir/index.d.ts +1 -1
- package/dest/noir/index.d.ts.map +1 -1
- package/dest/noir/index.js +1 -2
- package/dest/p2p/consensus_payload.d.ts +5 -5
- package/dest/snapshots/types.d.ts +2 -2
- package/dest/tests/factories.d.ts +4 -1
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +14 -2
- package/dest/trees/append_only_tree_snapshot.d.ts +9 -1
- package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
- package/dest/trees/append_only_tree_snapshot.js +9 -0
- package/dest/trees/nullifier_leaf.d.ts +20 -4
- package/dest/trees/nullifier_leaf.d.ts.map +1 -1
- package/dest/trees/nullifier_leaf.js +24 -0
- package/dest/trees/nullifier_membership_witness.d.ts +2 -2
- package/dest/trees/public_data_leaf.d.ts +23 -7
- package/dest/trees/public_data_leaf.d.ts.map +1 -1
- package/dest/trees/public_data_leaf.js +24 -0
- package/dest/trees/public_data_witness.d.ts +3 -3
- package/dest/tx/content_commitment.d.ts +3 -3
- package/dest/tx/execution_payload.d.ts +45 -0
- package/dest/tx/execution_payload.d.ts.map +1 -0
- package/dest/tx/execution_payload.js +40 -0
- package/dest/tx/global_variables.d.ts +8 -0
- package/dest/tx/global_variables.d.ts.map +1 -1
- package/dest/tx/global_variables.js +9 -0
- package/dest/tx/index.d.ts +1 -0
- package/dest/tx/index.d.ts.map +1 -1
- package/dest/tx/index.js +1 -0
- package/dest/tx/partial_state_reference.d.ts +3 -3
- package/dest/tx/profiling.d.ts +3 -3
- package/dest/tx/profiling.d.ts.map +1 -1
- package/dest/tx/profiling.js +5 -4
- package/dest/tx/protocol_contracts.d.ts +8 -0
- package/dest/tx/protocol_contracts.d.ts.map +1 -1
- package/dest/tx/protocol_contracts.js +9 -0
- package/dest/tx/public_call_request_with_calldata.d.ts +8 -0
- package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
- package/dest/tx/public_call_request_with_calldata.js +12 -0
- package/dest/tx/simulated_tx.d.ts +28 -148
- package/dest/tx/simulated_tx.d.ts.map +1 -1
- package/dest/tx/state_reference.d.ts +4 -4
- package/dest/tx/tree_snapshots.d.ts +12 -4
- package/dest/tx/tree_snapshots.d.ts.map +1 -1
- package/dest/tx/tree_snapshots.js +9 -0
- package/dest/tx/tx_context.d.ts +2 -2
- package/dest/validators/schemas.d.ts +3 -3
- package/package.json +8 -8
- package/src/abi/abi.ts +4 -4
- package/src/abi/contract_artifact.ts +3 -3
- package/src/avm/avm.ts +362 -15
- package/src/avm/avm_accumulated_data.ts +40 -0
- package/src/avm/avm_circuit_public_inputs.ts +40 -0
- package/src/avm/public_data_write.ts +11 -0
- package/src/avm/revert_code.ts +18 -0
- package/src/aztec-address/index.ts +18 -0
- package/src/contract/contract_deployment_data.ts +17 -0
- package/src/file-store/http.ts +6 -3
- package/src/file-store/s3.ts +3 -7
- package/src/gas/gas.ts +14 -0
- package/src/gas/gas_fees.ts +14 -0
- package/src/gas/gas_settings.ts +19 -0
- package/src/gas/gas_used.ts +22 -1
- package/src/interfaces/configs.ts +3 -0
- package/src/interfaces/validator.ts +4 -0
- package/src/kernel/private_to_avm_accumulated_data.ts +35 -0
- package/src/kernel/public_call_request.ts +27 -0
- package/src/keys/public_keys.ts +19 -0
- package/src/logs/contract_class_log.ts +32 -0
- package/src/logs/debug_log.ts +20 -1
- package/src/logs/private_log.ts +17 -0
- package/src/logs/public_log.ts +14 -0
- package/src/messaging/l2_to_l1_message.ts +25 -0
- package/src/noir/index.ts +1 -2
- package/src/tests/factories.ts +45 -0
- package/src/trees/append_only_tree_snapshot.ts +11 -0
- package/src/trees/nullifier_leaf.ts +32 -0
- package/src/trees/public_data_leaf.ts +32 -0
- package/src/tx/execution_payload.ts +60 -0
- package/src/tx/global_variables.ts +20 -0
- package/src/tx/index.ts +1 -0
- package/src/tx/profiling.ts +4 -6
- package/src/tx/protocol_contracts.ts +16 -0
- package/src/tx/public_call_request_with_calldata.ts +17 -0
- package/src/tx/tree_snapshots.ts +16 -0
|
@@ -26,97 +26,25 @@ export declare class SimulationOverrides {
|
|
|
26
26
|
originalContractClassId: ZodFor<import("@aztec/foundation/schemas").Fr>;
|
|
27
27
|
initializationHash: ZodFor<import("@aztec/foundation/schemas").Fr>;
|
|
28
28
|
publicKeys: z.ZodEffects<z.ZodObject<{
|
|
29
|
-
masterNullifierPublicKey: z.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
x: import("@aztec/foundation/schemas").Fr;
|
|
34
|
-
y: import("@aztec/foundation/schemas").Fr;
|
|
35
|
-
}, {
|
|
36
|
-
x: string;
|
|
37
|
-
y: string;
|
|
38
|
-
}>, import("@aztec/foundation/schemas").Point, {
|
|
39
|
-
x: string;
|
|
40
|
-
y: string;
|
|
41
|
-
}>]>;
|
|
42
|
-
masterIncomingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Point, any, string>, z.ZodEffects<z.ZodObject<{
|
|
43
|
-
x: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
44
|
-
y: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
45
|
-
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
x: import("@aztec/foundation/schemas").Fr;
|
|
47
|
-
y: import("@aztec/foundation/schemas").Fr;
|
|
48
|
-
}, {
|
|
49
|
-
x: string;
|
|
50
|
-
y: string;
|
|
51
|
-
}>, import("@aztec/foundation/schemas").Point, {
|
|
52
|
-
x: string;
|
|
53
|
-
y: string;
|
|
54
|
-
}>]>;
|
|
55
|
-
masterOutgoingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Point, any, string>, z.ZodEffects<z.ZodObject<{
|
|
56
|
-
x: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
57
|
-
y: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
x: import("@aztec/foundation/schemas").Fr;
|
|
60
|
-
y: import("@aztec/foundation/schemas").Fr;
|
|
61
|
-
}, {
|
|
62
|
-
x: string;
|
|
63
|
-
y: string;
|
|
64
|
-
}>, import("@aztec/foundation/schemas").Point, {
|
|
65
|
-
x: string;
|
|
66
|
-
y: string;
|
|
67
|
-
}>]>;
|
|
68
|
-
masterTaggingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Point, any, string>, z.ZodEffects<z.ZodObject<{
|
|
69
|
-
x: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
70
|
-
y: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
x: import("@aztec/foundation/schemas").Fr;
|
|
73
|
-
y: import("@aztec/foundation/schemas").Fr;
|
|
74
|
-
}, {
|
|
75
|
-
x: string;
|
|
76
|
-
y: string;
|
|
77
|
-
}>, import("@aztec/foundation/schemas").Point, {
|
|
78
|
-
x: string;
|
|
79
|
-
y: string;
|
|
80
|
-
}>]>;
|
|
29
|
+
masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
30
|
+
masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
31
|
+
masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
32
|
+
masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
81
33
|
}, "strip", z.ZodTypeAny, {
|
|
82
34
|
masterNullifierPublicKey: import("@aztec/foundation/schemas").Point;
|
|
83
35
|
masterIncomingViewingPublicKey: import("@aztec/foundation/schemas").Point;
|
|
84
36
|
masterOutgoingViewingPublicKey: import("@aztec/foundation/schemas").Point;
|
|
85
37
|
masterTaggingPublicKey: import("@aztec/foundation/schemas").Point;
|
|
86
38
|
}, {
|
|
87
|
-
masterNullifierPublicKey: string
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
masterIncomingViewingPublicKey: string | {
|
|
92
|
-
x: string;
|
|
93
|
-
y: string;
|
|
94
|
-
};
|
|
95
|
-
masterOutgoingViewingPublicKey: string | {
|
|
96
|
-
x: string;
|
|
97
|
-
y: string;
|
|
98
|
-
};
|
|
99
|
-
masterTaggingPublicKey: string | {
|
|
100
|
-
x: string;
|
|
101
|
-
y: string;
|
|
102
|
-
};
|
|
39
|
+
masterNullifierPublicKey: string;
|
|
40
|
+
masterIncomingViewingPublicKey: string;
|
|
41
|
+
masterOutgoingViewingPublicKey: string;
|
|
42
|
+
masterTaggingPublicKey: string;
|
|
103
43
|
}>, import("../keys/public_keys.js").PublicKeys, {
|
|
104
|
-
masterNullifierPublicKey: string
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
masterIncomingViewingPublicKey: string | {
|
|
109
|
-
x: string;
|
|
110
|
-
y: string;
|
|
111
|
-
};
|
|
112
|
-
masterOutgoingViewingPublicKey: string | {
|
|
113
|
-
x: string;
|
|
114
|
-
y: string;
|
|
115
|
-
};
|
|
116
|
-
masterTaggingPublicKey: string | {
|
|
117
|
-
x: string;
|
|
118
|
-
y: string;
|
|
119
|
-
};
|
|
44
|
+
masterNullifierPublicKey: string;
|
|
45
|
+
masterIncomingViewingPublicKey: string;
|
|
46
|
+
masterOutgoingViewingPublicKey: string;
|
|
47
|
+
masterTaggingPublicKey: string;
|
|
120
48
|
}>;
|
|
121
49
|
}, "strip", z.ZodTypeAny, {
|
|
122
50
|
version: 1;
|
|
@@ -129,22 +57,10 @@ export declare class SimulationOverrides {
|
|
|
129
57
|
}, {
|
|
130
58
|
version: 1;
|
|
131
59
|
publicKeys: {
|
|
132
|
-
masterNullifierPublicKey: string
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
masterIncomingViewingPublicKey: string | {
|
|
137
|
-
x: string;
|
|
138
|
-
y: string;
|
|
139
|
-
};
|
|
140
|
-
masterOutgoingViewingPublicKey: string | {
|
|
141
|
-
x: string;
|
|
142
|
-
y: string;
|
|
143
|
-
};
|
|
144
|
-
masterTaggingPublicKey: string | {
|
|
145
|
-
x: string;
|
|
146
|
-
y: string;
|
|
147
|
-
};
|
|
60
|
+
masterNullifierPublicKey: string;
|
|
61
|
+
masterIncomingViewingPublicKey: string;
|
|
62
|
+
masterOutgoingViewingPublicKey: string;
|
|
63
|
+
masterTaggingPublicKey: string;
|
|
148
64
|
};
|
|
149
65
|
salt?: any;
|
|
150
66
|
deployer?: any;
|
|
@@ -176,22 +92,10 @@ export declare class SimulationOverrides {
|
|
|
176
92
|
instance: {
|
|
177
93
|
version: 1;
|
|
178
94
|
publicKeys: {
|
|
179
|
-
masterNullifierPublicKey: string
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
masterIncomingViewingPublicKey: string | {
|
|
184
|
-
x: string;
|
|
185
|
-
y: string;
|
|
186
|
-
};
|
|
187
|
-
masterOutgoingViewingPublicKey: string | {
|
|
188
|
-
x: string;
|
|
189
|
-
y: string;
|
|
190
|
-
};
|
|
191
|
-
masterTaggingPublicKey: string | {
|
|
192
|
-
x: string;
|
|
193
|
-
y: string;
|
|
194
|
-
};
|
|
95
|
+
masterNullifierPublicKey: string;
|
|
96
|
+
masterIncomingViewingPublicKey: string;
|
|
97
|
+
masterOutgoingViewingPublicKey: string;
|
|
98
|
+
masterTaggingPublicKey: string;
|
|
195
99
|
};
|
|
196
100
|
salt?: any;
|
|
197
101
|
deployer?: any;
|
|
@@ -223,22 +127,10 @@ export declare class SimulationOverrides {
|
|
|
223
127
|
instance: {
|
|
224
128
|
version: 1;
|
|
225
129
|
publicKeys: {
|
|
226
|
-
masterNullifierPublicKey: string
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
masterIncomingViewingPublicKey: string | {
|
|
231
|
-
x: string;
|
|
232
|
-
y: string;
|
|
233
|
-
};
|
|
234
|
-
masterOutgoingViewingPublicKey: string | {
|
|
235
|
-
x: string;
|
|
236
|
-
y: string;
|
|
237
|
-
};
|
|
238
|
-
masterTaggingPublicKey: string | {
|
|
239
|
-
x: string;
|
|
240
|
-
y: string;
|
|
241
|
-
};
|
|
130
|
+
masterNullifierPublicKey: string;
|
|
131
|
+
masterIncomingViewingPublicKey: string;
|
|
132
|
+
masterOutgoingViewingPublicKey: string;
|
|
133
|
+
masterTaggingPublicKey: string;
|
|
242
134
|
};
|
|
243
135
|
salt?: any;
|
|
244
136
|
deployer?: any;
|
|
@@ -255,22 +147,10 @@ export declare class SimulationOverrides {
|
|
|
255
147
|
instance: {
|
|
256
148
|
version: 1;
|
|
257
149
|
publicKeys: {
|
|
258
|
-
masterNullifierPublicKey: string
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
masterIncomingViewingPublicKey: string | {
|
|
263
|
-
x: string;
|
|
264
|
-
y: string;
|
|
265
|
-
};
|
|
266
|
-
masterOutgoingViewingPublicKey: string | {
|
|
267
|
-
x: string;
|
|
268
|
-
y: string;
|
|
269
|
-
};
|
|
270
|
-
masterTaggingPublicKey: string | {
|
|
271
|
-
x: string;
|
|
272
|
-
y: string;
|
|
273
|
-
};
|
|
150
|
+
masterNullifierPublicKey: string;
|
|
151
|
+
masterIncomingViewingPublicKey: string;
|
|
152
|
+
masterOutgoingViewingPublicKey: string;
|
|
153
|
+
masterTaggingPublicKey: string;
|
|
274
154
|
};
|
|
275
155
|
salt?: any;
|
|
276
156
|
deployer?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulated_tx.d.ts","sourceRoot":"","sources":["../../src/tx/simulated_tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oCAAoC,EAAE,MAAM,wDAAwD,CAAC;AAE9G,OAAO,EAEL,sBAAsB,EAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClG,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAO7B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,MAAM,EACN;IAAE,QAAQ,EAAE,2BAA2B,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CACtE,CAAC;AAMF,qBAAa,mBAAmB;IACX,SAAS,CAAC,EAAE,iBAAiB;gBAA7B,SAAS,CAAC,EAAE,iBAAiB,YAAA;IAEhD,MAAM,KAAK,MAAM
|
|
1
|
+
{"version":3,"file":"simulated_tx.d.ts","sourceRoot":"","sources":["../../src/tx/simulated_tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oCAAoC,EAAE,MAAM,wDAAwD,CAAC;AAE9G,OAAO,EAEL,sBAAsB,EAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClG,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAO7B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,MAAM,EACN;IAAE,QAAQ,EAAE,2BAA2B,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CACtE,CAAC;AAMF,qBAAa,mBAAmB;IACX,SAAS,CAAC,EAAE,iBAAiB;gBAA7B,SAAS,CAAC,EAAE,iBAAiB,YAAA;IAEhD,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAahB;CACF;AAED,qBAAa,uBAAuB;IAEzB,sBAAsB,EAAE,sBAAsB;IAC9C,YAAY,EAAE,oCAAoC;gBADlD,sBAAsB,EAAE,sBAAsB,EAC9C,YAAY,EAAE,oCAAoC;IAG3D,sBAAsB;IAIhB,aAAa,IAAI,OAAO,CAAC,EAAE,CAAC;CAUnC;AAED,qBAAa,kBAAkB;IAEpB,sBAAsB,EAAE,sBAAsB;IAC9C,YAAY,EAAE,oCAAoC;IAClD,YAAY,CAAC,EAAE,sBAAsB;IACrC,KAAK,CAAC,EAAE,eAAe;gBAHvB,sBAAsB,EAAE,sBAAsB,EAC9C,YAAY,EAAE,oCAAoC,EAClD,YAAY,CAAC,EAAE,sBAAsB,YAAA,EACrC,KAAK,CAAC,EAAE,eAAe,YAAA;IAGhC,IAAI,OAAO,IAAI,OAAO,CASrB;IAED,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAS9C;IAED,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IASjE,MAAM,CAAC,0CAA0C,CAC/C,uBAAuB,EAAE,uBAAuB,EAChD,YAAY,CAAC,EAAE,sBAAsB,EACrC,KAAK,CAAC,EAAE,eAAe;WAUZ,MAAM;IAQnB,sBAAsB;IAItB,aAAa,IAAI,OAAO,CAAC,EAAE,CAAC;IAI5B,qBAAqB;CAGtB;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,eAAe,EAAE,sBAAsB,GAAG,yBAAyB,CAWhH"}
|
|
@@ -20,7 +20,7 @@ export declare class StateReference {
|
|
|
20
20
|
partial: PartialStateReference);
|
|
21
21
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
22
22
|
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
23
|
-
root: z.
|
|
23
|
+
root: z.ZodType<Fr, any, string>;
|
|
24
24
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
root: Fr;
|
|
@@ -34,7 +34,7 @@ export declare class StateReference {
|
|
|
34
34
|
}>;
|
|
35
35
|
partial: z.ZodEffects<z.ZodObject<{
|
|
36
36
|
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
37
|
-
root: z.
|
|
37
|
+
root: z.ZodType<Fr, any, string>;
|
|
38
38
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
root: Fr;
|
|
@@ -47,7 +47,7 @@ export declare class StateReference {
|
|
|
47
47
|
nextAvailableLeafIndex: string | number | bigint;
|
|
48
48
|
}>;
|
|
49
49
|
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
50
|
-
root: z.
|
|
50
|
+
root: z.ZodType<Fr, any, string>;
|
|
51
51
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
root: Fr;
|
|
@@ -60,7 +60,7 @@ export declare class StateReference {
|
|
|
60
60
|
nextAvailableLeafIndex: string | number | bigint;
|
|
61
61
|
}>;
|
|
62
62
|
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
63
|
-
root: z.
|
|
63
|
+
root: z.ZodType<Fr, any, string>;
|
|
64
64
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
root: Fr;
|
|
@@ -14,7 +14,7 @@ export declare class TreeSnapshots {
|
|
|
14
14
|
constructor(l1ToL2MessageTree: AppendOnlyTreeSnapshot, noteHashTree: AppendOnlyTreeSnapshot, nullifierTree: AppendOnlyTreeSnapshot, publicDataTree: AppendOnlyTreeSnapshot);
|
|
15
15
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
16
16
|
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
17
|
-
root: z.
|
|
17
|
+
root: z.ZodType<Fr, any, string>;
|
|
18
18
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
root: Fr;
|
|
@@ -27,7 +27,7 @@ export declare class TreeSnapshots {
|
|
|
27
27
|
nextAvailableLeafIndex: string | number | bigint;
|
|
28
28
|
}>;
|
|
29
29
|
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
30
|
-
root: z.
|
|
30
|
+
root: z.ZodType<Fr, any, string>;
|
|
31
31
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
root: Fr;
|
|
@@ -40,7 +40,7 @@ export declare class TreeSnapshots {
|
|
|
40
40
|
nextAvailableLeafIndex: string | number | bigint;
|
|
41
41
|
}>;
|
|
42
42
|
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
43
|
-
root: z.
|
|
43
|
+
root: z.ZodType<Fr, any, string>;
|
|
44
44
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
root: Fr;
|
|
@@ -53,7 +53,7 @@ export declare class TreeSnapshots {
|
|
|
53
53
|
nextAvailableLeafIndex: string | number | bigint;
|
|
54
54
|
}>;
|
|
55
55
|
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
56
|
-
root: z.
|
|
56
|
+
root: z.ZodType<Fr, any, string>;
|
|
57
57
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
root: Fr;
|
|
@@ -111,6 +111,14 @@ export declare class TreeSnapshots {
|
|
|
111
111
|
static fromFields(fields: Fr[] | FieldReader): TreeSnapshots;
|
|
112
112
|
toFields(): Fr[];
|
|
113
113
|
static empty(): TreeSnapshots;
|
|
114
|
+
/**
|
|
115
|
+
* Creates a TreeSnapshots instance from a plain object without Zod validation.
|
|
116
|
+
* This method is optimized for performance and skips validation, making it suitable
|
|
117
|
+
* for deserializing trusted data (e.g., from C++ via MessagePack).
|
|
118
|
+
* @param obj - Plain object containing TreeSnapshots fields
|
|
119
|
+
* @returns A TreeSnapshots instance
|
|
120
|
+
*/
|
|
121
|
+
static fromPlainObject(obj: any): TreeSnapshots;
|
|
114
122
|
isEmpty(): boolean;
|
|
115
123
|
[inspect.custom](): string;
|
|
116
124
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree_snapshots.d.ts","sourceRoot":"","sources":["../../src/tx/tree_snapshots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,aAAa;IAEf,iBAAiB,EAAE,sBAAsB;IACzC,YAAY,EAAE,sBAAsB;IACpC,aAAa,EAAE,sBAAsB;IACrC,cAAc,EAAE,sBAAsB;gBAHtC,iBAAiB,EAAE,sBAAsB,EACzC,YAAY,EAAE,sBAAsB,EACpC,aAAa,EAAE,sBAAsB,EACrC,cAAc,EAAE,sBAAsB;IAG/C,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAYhB;IAED,OAAO;IASP,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa;IAU/D,QAAQ;IAKR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAW5C,QAAQ,IAAI,EAAE,EAAE;IAehB,MAAM,CAAC,KAAK,IAAI,aAAa;IAS7B,OAAO,IAAI,OAAO;IASlB,CAAC,OAAO,CAAC,MAAM,CAAC;CAQjB"}
|
|
1
|
+
{"version":3,"file":"tree_snapshots.d.ts","sourceRoot":"","sources":["../../src/tx/tree_snapshots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,aAAa;IAEf,iBAAiB,EAAE,sBAAsB;IACzC,YAAY,EAAE,sBAAsB;IACpC,aAAa,EAAE,sBAAsB;IACrC,cAAc,EAAE,sBAAsB;gBAHtC,iBAAiB,EAAE,sBAAsB,EACzC,YAAY,EAAE,sBAAsB,EACpC,aAAa,EAAE,sBAAsB,EACrC,cAAc,EAAE,sBAAsB;IAG/C,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAYhB;IAED,OAAO;IASP,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa;IAU/D,QAAQ;IAKR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAW5C,QAAQ,IAAI,EAAE,EAAE;IAehB,MAAM,CAAC,KAAK,IAAI,aAAa;IAS7B;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,aAAa;IAS/C,OAAO,IAAI,OAAO;IASlB,CAAC,OAAO,CAAC,MAAM,CAAC;CAQjB"}
|
|
@@ -58,6 +58,15 @@ import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
|
|
|
58
58
|
static empty() {
|
|
59
59
|
return new TreeSnapshots(AppendOnlyTreeSnapshot.empty(), AppendOnlyTreeSnapshot.empty(), AppendOnlyTreeSnapshot.empty(), AppendOnlyTreeSnapshot.empty());
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates a TreeSnapshots instance from a plain object without Zod validation.
|
|
63
|
+
* This method is optimized for performance and skips validation, making it suitable
|
|
64
|
+
* for deserializing trusted data (e.g., from C++ via MessagePack).
|
|
65
|
+
* @param obj - Plain object containing TreeSnapshots fields
|
|
66
|
+
* @returns A TreeSnapshots instance
|
|
67
|
+
*/ static fromPlainObject(obj) {
|
|
68
|
+
return new TreeSnapshots(AppendOnlyTreeSnapshot.fromPlainObject(obj.l1ToL2MessageTree), AppendOnlyTreeSnapshot.fromPlainObject(obj.noteHashTree), AppendOnlyTreeSnapshot.fromPlainObject(obj.nullifierTree), AppendOnlyTreeSnapshot.fromPlainObject(obj.publicDataTree));
|
|
69
|
+
}
|
|
61
70
|
isEmpty() {
|
|
62
71
|
return this.l1ToL2MessageTree.isEmpty() && this.noteHashTree.isEmpty() && this.nullifierTree.isEmpty() && this.publicDataTree.isEmpty();
|
|
63
72
|
}
|
package/dest/tx/tx_context.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export declare class TxContext {
|
|
|
19
19
|
/** Gas limits for this transaction. */
|
|
20
20
|
gasSettings: GasSettings);
|
|
21
21
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
22
|
-
chainId: z.
|
|
23
|
-
version: z.
|
|
22
|
+
chainId: z.ZodType<Fr, any, string>;
|
|
23
|
+
version: z.ZodType<Fr, any, string>;
|
|
24
24
|
gasSettings: z.ZodEffects<z.ZodObject<{
|
|
25
25
|
gasLimits: z.ZodEffects<z.ZodObject<{
|
|
26
26
|
daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
@@ -31,7 +31,7 @@ export declare const ValidatorStatusHistorySchemaMap: z.ZodRecord<z.ZodString, z
|
|
|
31
31
|
slot: string | number | bigint;
|
|
32
32
|
}>, "many">, "many">>;
|
|
33
33
|
export declare const ValidatorStatsSchema: z.ZodObject<{
|
|
34
|
-
address: z.
|
|
34
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
35
35
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
36
36
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
37
37
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
@@ -162,7 +162,7 @@ export declare const ValidatorStatsSchema: z.ZodObject<{
|
|
|
162
162
|
}>;
|
|
163
163
|
export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
164
164
|
stats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
|
-
address: z.
|
|
165
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
166
166
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
167
167
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
168
168
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
@@ -365,7 +365,7 @@ export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
|
365
365
|
}>;
|
|
366
366
|
export declare const SingleValidatorStatsSchema: z.ZodObject<{
|
|
367
367
|
validator: z.ZodObject<{
|
|
368
|
-
address: z.
|
|
368
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
369
369
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
370
370
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
371
371
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251113",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@aws-sdk/client-s3": "^3.892.0",
|
|
75
|
-
"@aztec/bb.js": "3.0.0-nightly.
|
|
76
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
77
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
78
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
79
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
80
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
81
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
75
|
+
"@aztec/bb.js": "3.0.0-nightly.20251113",
|
|
76
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251113",
|
|
77
|
+
"@aztec/constants": "3.0.0-nightly.20251113",
|
|
78
|
+
"@aztec/ethereum": "3.0.0-nightly.20251113",
|
|
79
|
+
"@aztec/foundation": "3.0.0-nightly.20251113",
|
|
80
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251113",
|
|
81
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251113",
|
|
82
82
|
"@google-cloud/storage": "^7.15.0",
|
|
83
83
|
"axios": "^1.12.0",
|
|
84
84
|
"json-stringify-deterministic": "1.0.12",
|
package/src/abi/abi.ts
CHANGED
|
@@ -173,8 +173,8 @@ export interface FunctionAbi {
|
|
|
173
173
|
name: string;
|
|
174
174
|
/** Whether the function is secret. */
|
|
175
175
|
functionType: FunctionType;
|
|
176
|
-
/** Whether the function is
|
|
177
|
-
|
|
176
|
+
/** Whether the function is marked as `#[only_self]` and hence callable only from within the contract. */
|
|
177
|
+
isOnlySelf: boolean;
|
|
178
178
|
/** Whether the function can alter state or not */
|
|
179
179
|
isStatic: boolean;
|
|
180
180
|
/** Function parameters. */
|
|
@@ -190,7 +190,7 @@ export interface FunctionAbi {
|
|
|
190
190
|
export const FunctionAbiSchema = z.object({
|
|
191
191
|
name: z.string(),
|
|
192
192
|
functionType: z.nativeEnum(FunctionType),
|
|
193
|
-
|
|
193
|
+
isOnlySelf: z.boolean(),
|
|
194
194
|
isStatic: z.boolean(),
|
|
195
195
|
isInitializer: z.boolean(),
|
|
196
196
|
parameters: z.array(z.object({ name: z.string(), type: AbiTypeSchema, visibility: z.enum(ABIParameterVisibility) })),
|
|
@@ -501,7 +501,7 @@ export function emptyFunctionAbi(): FunctionAbi {
|
|
|
501
501
|
return {
|
|
502
502
|
name: '',
|
|
503
503
|
functionType: FunctionType.PRIVATE,
|
|
504
|
-
|
|
504
|
+
isOnlySelf: false,
|
|
505
505
|
isStatic: false,
|
|
506
506
|
parameters: [],
|
|
507
507
|
returnTypes: [],
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '../abi/index.js';
|
|
18
18
|
import {
|
|
19
19
|
AZTEC_INITIALIZER_ATTRIBUTE,
|
|
20
|
-
|
|
20
|
+
AZTEC_ONLY_SELF_ATTRIBUTE,
|
|
21
21
|
AZTEC_PRIVATE_ATTRIBUTE,
|
|
22
22
|
AZTEC_PUBLIC_ATTRIBUTE,
|
|
23
23
|
AZTEC_UTILITY_ATTRIBUTE,
|
|
@@ -152,7 +152,7 @@ function generateFunctionAbi(fn: NoirCompiledContractFunction, contract: NoirCom
|
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
const functionType = getFunctionType(fn);
|
|
155
|
-
const
|
|
155
|
+
const isOnlySelf = fn.custom_attributes.includes(AZTEC_ONLY_SELF_ATTRIBUTE);
|
|
156
156
|
const isStatic = fn.custom_attributes.includes(AZTEC_VIEW_ATTRIBUTE);
|
|
157
157
|
|
|
158
158
|
// If the function is not a utility function, the first item is inputs or CallContext which we should omit
|
|
@@ -185,7 +185,7 @@ function generateFunctionAbi(fn: NoirCompiledContractFunction, contract: NoirCom
|
|
|
185
185
|
return {
|
|
186
186
|
name: fn.name,
|
|
187
187
|
functionType,
|
|
188
|
-
|
|
188
|
+
isOnlySelf,
|
|
189
189
|
isStatic,
|
|
190
190
|
isInitializer: fn.custom_attributes.includes(AZTEC_INITIALIZER_ATTRIBUTE),
|
|
191
191
|
parameters,
|