@aztec/stdlib 0.81.0 → 0.82.1-alpha-testnet.1
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 +5 -1
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +2 -1
- package/dest/auth_witness/auth_witness.d.ts +21 -0
- package/dest/auth_witness/auth_witness.d.ts.map +1 -1
- package/dest/auth_witness/auth_witness.js +29 -0
- package/dest/avm/avm.d.ts +24 -48
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm_circuit_public_inputs.d.ts +18 -36
- package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
- package/dest/avm/avm_proving_request.d.ts +27 -54
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/block/index.d.ts +0 -1
- package/dest/block/index.d.ts.map +1 -1
- package/dest/block/index.js +0 -1
- package/dest/block/l2_block_downloader/l2_block_stream.d.ts.map +1 -1
- package/dest/block/l2_block_downloader/l2_block_stream.js +0 -2
- package/dest/block/l2_block_source.d.ts +6 -0
- package/dest/block/l2_block_source.d.ts.map +1 -1
- package/dest/contract/contract_class.d.ts.map +1 -1
- package/dest/contract/contract_class.js +3 -21
- package/dest/contract/interfaces/contract_class.d.ts +1 -143
- package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_class.js +0 -5
- package/dest/contract/interfaces/contract_data_source.d.ts +3 -8
- package/dest/contract/interfaces/contract_data_source.d.ts.map +1 -1
- package/dest/database-version/version_manager.d.ts +5 -0
- package/dest/database-version/version_manager.d.ts.map +1 -1
- package/dest/database-version/version_manager.js +7 -0
- package/dest/hash/hash.d.ts +8 -1
- package/dest/hash/hash.d.ts.map +1 -1
- package/dest/hash/hash.js +12 -1
- package/dest/interfaces/archiver.d.ts +1 -2
- package/dest/interfaces/archiver.d.ts.map +1 -1
- package/dest/interfaces/archiver.js +2 -4
- package/dest/interfaces/aztec-node-admin.d.ts +20 -0
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -0
- package/dest/interfaces/aztec-node-admin.js +16 -0
- package/dest/interfaces/aztec-node.d.ts +8 -38
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +4 -12
- package/dest/interfaces/client.d.ts +1 -0
- package/dest/interfaces/client.d.ts.map +1 -1
- package/dest/interfaces/client.js +1 -0
- package/dest/interfaces/private_kernel_prover.d.ts +2 -3
- package/dest/interfaces/private_kernel_prover.d.ts.map +1 -1
- package/dest/interfaces/prover-client.js +1 -1
- package/dest/interfaces/prover-node.d.ts +1 -2
- package/dest/interfaces/prover-node.d.ts.map +1 -1
- package/dest/interfaces/prover-node.js +5 -4
- package/dest/interfaces/proving-job.d.ts +27 -54
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/pxe.d.ts +21 -39
- package/dest/interfaces/pxe.d.ts.map +1 -1
- package/dest/interfaces/pxe.js +10 -9
- package/dest/kernel/index.d.ts +1 -1
- package/dest/kernel/index.d.ts.map +1 -1
- package/dest/kernel/index.js +1 -1
- package/dest/kernel/private_kernel_prover_output.d.ts +49 -0
- package/dest/kernel/private_kernel_prover_output.d.ts.map +1 -0
- package/dest/kernel/private_kernel_prover_output.js +8 -0
- package/dest/kernel/private_kernel_simulated_output.d.ts +3 -7
- package/dest/kernel/private_kernel_simulated_output.d.ts.map +1 -1
- package/dest/kernel/public_call_request.d.ts +14 -19
- package/dest/kernel/public_call_request.d.ts.map +1 -1
- package/dest/kernel/public_call_request.js +19 -20
- package/dest/logs/log_with_tx_data.js +2 -2
- package/dest/noir/index.d.ts +5 -1
- package/dest/noir/index.d.ts.map +1 -1
- package/dest/proofs/client_ivc_proof.d.ts +1 -2
- package/dest/proofs/client_ivc_proof.d.ts.map +1 -1
- package/dest/proofs/client_ivc_proof.js +6 -9
- package/dest/rollup/tube_inputs.d.ts +7 -2
- package/dest/rollup/tube_inputs.d.ts.map +1 -1
- package/dest/rollup/tube_inputs.js +10 -4
- package/dest/stats/stats.d.ts +1 -1
- package/dest/stats/stats.d.ts.map +1 -1
- package/dest/tests/factories.d.ts +2 -2
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +3 -13
- package/dest/tests/mocks.d.ts +3 -4
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +13 -48
- package/dest/trees/nullifier_membership_witness.d.ts +4 -0
- package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
- package/dest/trees/nullifier_membership_witness.js +10 -0
- package/dest/trees/public_data_witness.d.ts +5 -5
- package/dest/trees/public_data_witness.d.ts.map +1 -1
- package/dest/trees/public_data_witness.js +13 -0
- package/dest/tx/call_context.d.ts +1 -1
- package/dest/tx/hashed_values.d.ts +16 -4
- package/dest/tx/hashed_values.d.ts.map +1 -1
- package/dest/tx/hashed_values.js +26 -9
- package/dest/tx/index.d.ts +3 -1
- package/dest/tx/index.d.ts.map +1 -1
- package/dest/tx/index.js +3 -1
- package/dest/tx/private_execution_result.d.ts +10 -26
- package/dest/tx/private_execution_result.d.ts.map +1 -1
- package/dest/tx/private_execution_result.js +18 -70
- package/dest/tx/profiled_tx.d.ts +9 -0
- package/dest/tx/profiled_tx.d.ts.map +1 -0
- package/dest/tx/profiled_tx.js +27 -0
- package/dest/tx/proven_tx.d.ts +33 -0
- package/dest/tx/proven_tx.d.ts.map +1 -0
- package/dest/tx/proven_tx.js +33 -0
- package/dest/tx/public_call_request_with_calldata.d.ts +41 -0
- package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -0
- package/dest/tx/public_call_request_with_calldata.js +57 -0
- package/dest/tx/simulated_tx.d.ts +8 -44
- package/dest/tx/simulated_tx.d.ts.map +1 -1
- package/dest/tx/simulated_tx.js +19 -44
- package/dest/tx/tx.d.ts +16 -20
- package/dest/tx/tx.d.ts.map +1 -1
- package/dest/tx/tx.js +56 -42
- package/dest/tx/tx_execution_request.js +1 -1
- package/dest/tx/tx_receipt.d.ts +1 -30
- package/dest/tx/tx_receipt.d.ts.map +1 -1
- package/dest/tx/tx_receipt.js +3 -13
- package/package.json +6 -7
- package/src/abi/abi.ts +7 -2
- package/src/auth_witness/auth_witness.ts +29 -0
- package/src/block/index.ts +0 -1
- package/src/block/l2_block_downloader/l2_block_stream.ts +0 -2
- package/src/block/l2_block_source.ts +7 -0
- package/src/contract/contract_class.ts +7 -26
- package/src/contract/interfaces/contract_class.ts +2 -18
- package/src/contract/interfaces/contract_data_source.ts +3 -9
- package/src/database-version/version_manager.ts +10 -0
- package/src/hash/hash.ts +15 -1
- package/src/interfaces/archiver.ts +3 -12
- package/src/interfaces/aztec-node-admin.ts +39 -0
- package/src/interfaces/aztec-node.ts +9 -71
- package/src/interfaces/client.ts +1 -0
- package/src/interfaces/private_kernel_prover.ts +2 -3
- package/src/interfaces/prover-client.ts +1 -1
- package/src/interfaces/prover-node.ts +2 -4
- package/src/interfaces/pxe.ts +34 -56
- package/src/kernel/index.ts +1 -1
- package/src/kernel/private_kernel_prover_output.ts +44 -0
- package/src/kernel/private_kernel_simulated_output.ts +4 -13
- package/src/kernel/public_call_request.ts +22 -27
- package/src/logs/log_with_tx_data.ts +2 -2
- package/src/noir/index.ts +6 -1
- package/src/proofs/client_ivc_proof.ts +5 -15
- package/src/rollup/tube_inputs.ts +8 -4
- package/src/stats/stats.ts +1 -1
- package/src/tests/factories.ts +3 -24
- package/src/tests/mocks.ts +28 -80
- package/src/trees/nullifier_membership_witness.ts +12 -0
- package/src/trees/public_data_witness.ts +15 -0
- package/src/tx/hashed_values.ts +29 -9
- package/src/tx/index.ts +3 -1
- package/src/tx/private_execution_result.ts +16 -81
- package/src/tx/profiled_tx.ts +27 -0
- package/src/tx/proven_tx.ts +50 -0
- package/src/tx/public_call_request_with_calldata.ts +72 -0
- package/src/tx/simulated_tx.ts +12 -69
- package/src/tx/tx.ts +57 -70
- package/src/tx/tx_execution_request.ts +1 -1
- package/src/tx/tx_receipt.ts +0 -36
- package/dest/block/nullifier_with_block_source.d.ts +0 -6
- package/dest/block/nullifier_with_block_source.d.ts.map +0 -1
- package/dest/block/nullifier_with_block_source.js +0 -1
- package/dest/kernel/private_kernel_prover_profile_result.d.ts +0 -25
- package/dest/kernel/private_kernel_prover_profile_result.d.ts.map +0 -1
- package/dest/kernel/private_kernel_prover_profile_result.js +0 -7
- package/dest/tx/public_execution_request.d.ts +0 -45
- package/dest/tx/public_execution_request.d.ts.map +0 -1
- package/dest/tx/public_execution_request.js +0 -72
- package/src/block/nullifier_with_block_source.ts +0 -7
- package/src/kernel/private_kernel_prover_profile_result.ts +0 -7
- package/src/tx/public_execution_request.ts +0 -97
|
@@ -935,77 +935,65 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
935
935
|
publicSetupCallRequests: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
936
936
|
msgSender: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
937
937
|
contractAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
938
|
-
functionSelector: import("@aztec/foundation/schemas").ZodFor<import("../abi/function_selector.js").FunctionSelector>;
|
|
939
938
|
isStaticCall: z.ZodBoolean;
|
|
940
|
-
|
|
939
|
+
calldataHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
941
940
|
}, "strip", z.ZodTypeAny, {
|
|
942
941
|
contractAddress: import("../aztec-address/index.js").AztecAddress;
|
|
943
942
|
msgSender: import("../aztec-address/index.js").AztecAddress;
|
|
944
|
-
functionSelector: import("../abi/function_selector.js").FunctionSelector;
|
|
945
943
|
isStaticCall: boolean;
|
|
946
|
-
|
|
944
|
+
calldataHash: import("@aztec/foundation/schemas").Fr;
|
|
947
945
|
}, {
|
|
948
946
|
isStaticCall: boolean;
|
|
949
|
-
|
|
947
|
+
calldataHash: string;
|
|
950
948
|
contractAddress?: any;
|
|
951
949
|
msgSender?: any;
|
|
952
|
-
functionSelector?: any;
|
|
953
950
|
}>, import("../kernel/public_call_request.js").PublicCallRequest, {
|
|
954
951
|
isStaticCall: boolean;
|
|
955
|
-
|
|
952
|
+
calldataHash: string;
|
|
956
953
|
contractAddress?: any;
|
|
957
954
|
msgSender?: any;
|
|
958
|
-
functionSelector?: any;
|
|
959
955
|
}>, "many">;
|
|
960
956
|
publicAppLogicCallRequests: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
961
957
|
msgSender: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
962
958
|
contractAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
963
|
-
functionSelector: import("@aztec/foundation/schemas").ZodFor<import("../abi/function_selector.js").FunctionSelector>;
|
|
964
959
|
isStaticCall: z.ZodBoolean;
|
|
965
|
-
|
|
960
|
+
calldataHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
966
961
|
}, "strip", z.ZodTypeAny, {
|
|
967
962
|
contractAddress: import("../aztec-address/index.js").AztecAddress;
|
|
968
963
|
msgSender: import("../aztec-address/index.js").AztecAddress;
|
|
969
|
-
functionSelector: import("../abi/function_selector.js").FunctionSelector;
|
|
970
964
|
isStaticCall: boolean;
|
|
971
|
-
|
|
965
|
+
calldataHash: import("@aztec/foundation/schemas").Fr;
|
|
972
966
|
}, {
|
|
973
967
|
isStaticCall: boolean;
|
|
974
|
-
|
|
968
|
+
calldataHash: string;
|
|
975
969
|
contractAddress?: any;
|
|
976
970
|
msgSender?: any;
|
|
977
|
-
functionSelector?: any;
|
|
978
971
|
}>, import("../kernel/public_call_request.js").PublicCallRequest, {
|
|
979
972
|
isStaticCall: boolean;
|
|
980
|
-
|
|
973
|
+
calldataHash: string;
|
|
981
974
|
contractAddress?: any;
|
|
982
975
|
msgSender?: any;
|
|
983
|
-
functionSelector?: any;
|
|
984
976
|
}>, "many">;
|
|
985
977
|
publicTeardownCallRequest: z.ZodEffects<z.ZodObject<{
|
|
986
978
|
msgSender: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
987
979
|
contractAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
988
|
-
functionSelector: import("@aztec/foundation/schemas").ZodFor<import("../abi/function_selector.js").FunctionSelector>;
|
|
989
980
|
isStaticCall: z.ZodBoolean;
|
|
990
|
-
|
|
981
|
+
calldataHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
991
982
|
}, "strip", z.ZodTypeAny, {
|
|
992
983
|
contractAddress: import("../aztec-address/index.js").AztecAddress;
|
|
993
984
|
msgSender: import("../aztec-address/index.js").AztecAddress;
|
|
994
|
-
functionSelector: import("../abi/function_selector.js").FunctionSelector;
|
|
995
985
|
isStaticCall: boolean;
|
|
996
|
-
|
|
986
|
+
calldataHash: import("@aztec/foundation/schemas").Fr;
|
|
997
987
|
}, {
|
|
998
988
|
isStaticCall: boolean;
|
|
999
|
-
|
|
989
|
+
calldataHash: string;
|
|
1000
990
|
contractAddress?: any;
|
|
1001
991
|
msgSender?: any;
|
|
1002
|
-
functionSelector?: any;
|
|
1003
992
|
}>, import("../kernel/public_call_request.js").PublicCallRequest, {
|
|
1004
993
|
isStaticCall: boolean;
|
|
1005
|
-
|
|
994
|
+
calldataHash: string;
|
|
1006
995
|
contractAddress?: any;
|
|
1007
996
|
msgSender?: any;
|
|
1008
|
-
functionSelector?: any;
|
|
1009
997
|
}>;
|
|
1010
998
|
previousNonRevertibleAccumulatedDataArrayLengths: z.ZodEffects<z.ZodObject<{
|
|
1011
999
|
noteHashes: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
@@ -1450,24 +1438,21 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
1450
1438
|
};
|
|
1451
1439
|
publicSetupCallRequests: {
|
|
1452
1440
|
isStaticCall: boolean;
|
|
1453
|
-
|
|
1441
|
+
calldataHash: string;
|
|
1454
1442
|
contractAddress?: any;
|
|
1455
1443
|
msgSender?: any;
|
|
1456
|
-
functionSelector?: any;
|
|
1457
1444
|
}[];
|
|
1458
1445
|
publicAppLogicCallRequests: {
|
|
1459
1446
|
isStaticCall: boolean;
|
|
1460
|
-
|
|
1447
|
+
calldataHash: string;
|
|
1461
1448
|
contractAddress?: any;
|
|
1462
1449
|
msgSender?: any;
|
|
1463
|
-
functionSelector?: any;
|
|
1464
1450
|
}[];
|
|
1465
1451
|
publicTeardownCallRequest: {
|
|
1466
1452
|
isStaticCall: boolean;
|
|
1467
|
-
|
|
1453
|
+
calldataHash: string;
|
|
1468
1454
|
contractAddress?: any;
|
|
1469
1455
|
msgSender?: any;
|
|
1470
|
-
functionSelector?: any;
|
|
1471
1456
|
};
|
|
1472
1457
|
previousNonRevertibleAccumulatedDataArrayLengths: {
|
|
1473
1458
|
noteHashes: string | number | bigint;
|
|
@@ -1601,24 +1586,21 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
1601
1586
|
};
|
|
1602
1587
|
publicSetupCallRequests: {
|
|
1603
1588
|
isStaticCall: boolean;
|
|
1604
|
-
|
|
1589
|
+
calldataHash: string;
|
|
1605
1590
|
contractAddress?: any;
|
|
1606
1591
|
msgSender?: any;
|
|
1607
|
-
functionSelector?: any;
|
|
1608
1592
|
}[];
|
|
1609
1593
|
publicAppLogicCallRequests: {
|
|
1610
1594
|
isStaticCall: boolean;
|
|
1611
|
-
|
|
1595
|
+
calldataHash: string;
|
|
1612
1596
|
contractAddress?: any;
|
|
1613
1597
|
msgSender?: any;
|
|
1614
|
-
functionSelector?: any;
|
|
1615
1598
|
}[];
|
|
1616
1599
|
publicTeardownCallRequest: {
|
|
1617
1600
|
isStaticCall: boolean;
|
|
1618
|
-
|
|
1601
|
+
calldataHash: string;
|
|
1619
1602
|
contractAddress?: any;
|
|
1620
1603
|
msgSender?: any;
|
|
1621
|
-
functionSelector?: any;
|
|
1622
1604
|
};
|
|
1623
1605
|
previousNonRevertibleAccumulatedDataArrayLengths: {
|
|
1624
1606
|
noteHashes: string | number | bigint;
|
|
@@ -1861,24 +1843,21 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
1861
1843
|
};
|
|
1862
1844
|
publicSetupCallRequests: {
|
|
1863
1845
|
isStaticCall: boolean;
|
|
1864
|
-
|
|
1846
|
+
calldataHash: string;
|
|
1865
1847
|
contractAddress?: any;
|
|
1866
1848
|
msgSender?: any;
|
|
1867
|
-
functionSelector?: any;
|
|
1868
1849
|
}[];
|
|
1869
1850
|
publicAppLogicCallRequests: {
|
|
1870
1851
|
isStaticCall: boolean;
|
|
1871
|
-
|
|
1852
|
+
calldataHash: string;
|
|
1872
1853
|
contractAddress?: any;
|
|
1873
1854
|
msgSender?: any;
|
|
1874
|
-
functionSelector?: any;
|
|
1875
1855
|
}[];
|
|
1876
1856
|
publicTeardownCallRequest: {
|
|
1877
1857
|
isStaticCall: boolean;
|
|
1878
|
-
|
|
1858
|
+
calldataHash: string;
|
|
1879
1859
|
contractAddress?: any;
|
|
1880
1860
|
msgSender?: any;
|
|
1881
|
-
functionSelector?: any;
|
|
1882
1861
|
};
|
|
1883
1862
|
previousNonRevertibleAccumulatedDataArrayLengths: {
|
|
1884
1863
|
noteHashes: string | number | bigint;
|
|
@@ -2116,24 +2095,21 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
2116
2095
|
};
|
|
2117
2096
|
publicSetupCallRequests: {
|
|
2118
2097
|
isStaticCall: boolean;
|
|
2119
|
-
|
|
2098
|
+
calldataHash: string;
|
|
2120
2099
|
contractAddress?: any;
|
|
2121
2100
|
msgSender?: any;
|
|
2122
|
-
functionSelector?: any;
|
|
2123
2101
|
}[];
|
|
2124
2102
|
publicAppLogicCallRequests: {
|
|
2125
2103
|
isStaticCall: boolean;
|
|
2126
|
-
|
|
2104
|
+
calldataHash: string;
|
|
2127
2105
|
contractAddress?: any;
|
|
2128
2106
|
msgSender?: any;
|
|
2129
|
-
functionSelector?: any;
|
|
2130
2107
|
}[];
|
|
2131
2108
|
publicTeardownCallRequest: {
|
|
2132
2109
|
isStaticCall: boolean;
|
|
2133
|
-
|
|
2110
|
+
calldataHash: string;
|
|
2134
2111
|
contractAddress?: any;
|
|
2135
2112
|
msgSender?: any;
|
|
2136
|
-
functionSelector?: any;
|
|
2137
2113
|
};
|
|
2138
2114
|
previousNonRevertibleAccumulatedDataArrayLengths: {
|
|
2139
2115
|
noteHashes: string | number | bigint;
|
|
@@ -2377,24 +2353,21 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
2377
2353
|
};
|
|
2378
2354
|
publicSetupCallRequests: {
|
|
2379
2355
|
isStaticCall: boolean;
|
|
2380
|
-
|
|
2356
|
+
calldataHash: string;
|
|
2381
2357
|
contractAddress?: any;
|
|
2382
2358
|
msgSender?: any;
|
|
2383
|
-
functionSelector?: any;
|
|
2384
2359
|
}[];
|
|
2385
2360
|
publicAppLogicCallRequests: {
|
|
2386
2361
|
isStaticCall: boolean;
|
|
2387
|
-
|
|
2362
|
+
calldataHash: string;
|
|
2388
2363
|
contractAddress?: any;
|
|
2389
2364
|
msgSender?: any;
|
|
2390
|
-
functionSelector?: any;
|
|
2391
2365
|
}[];
|
|
2392
2366
|
publicTeardownCallRequest: {
|
|
2393
2367
|
isStaticCall: boolean;
|
|
2394
|
-
|
|
2368
|
+
calldataHash: string;
|
|
2395
2369
|
contractAddress?: any;
|
|
2396
2370
|
msgSender?: any;
|
|
2397
|
-
functionSelector?: any;
|
|
2398
2371
|
};
|
|
2399
2372
|
previousNonRevertibleAccumulatedDataArrayLengths: {
|
|
2400
2373
|
noteHashes: string | number | bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avm_proving_request.d.ts","sourceRoot":"","sources":["../../src/avm/avm_proving_request.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB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C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/block/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
|
package/dest/block/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l2_block_stream.d.ts","sourceRoot":"","sources":["../../../src/block/l2_block_downloader/l2_block_stream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAa,aAAa,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,uHAAuH;AACvH,qBAAa,aAAa;IAKtB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,IAAI;IARd,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,SAAS,CAAS;gBAGhB,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,oBAAoB,GAAG,gBAAgB,GAAG,WAAW,CAAC,EACzF,SAAS,EAAE,8BAA8B,EACzC,OAAO,EAAE,yBAAyB,EACzB,GAAG,yCAAqC,EACjD,IAAI,GAAE;QACZ,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;KACnB;IAKD,KAAK;IAKC,IAAI;IAIV,SAAS;IAIH,IAAI;cAMD,IAAI;
|
|
1
|
+
{"version":3,"file":"l2_block_st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AE,cAAc,CAAC;IACrB,qCAAqC;IACrC,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,cAAc,CAAC;IACrB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;CACrB,GACD;IACE,IAAI,EAAE,cAAc,CAAC;IACrB,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB,GACD;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -88,8 +88,6 @@ import { RunningPromise } from '@aztec/foundation/running-promise';
|
|
|
88
88
|
latestBlockNumber = blocks.at(-1).block.number;
|
|
89
89
|
}
|
|
90
90
|
// Update the proven and finalized tips.
|
|
91
|
-
// TODO(palla/reorg): Should we emit this before passing the new blocks? This would allow world-state to skip
|
|
92
|
-
// building the data structures for the pending chain if it's unneeded.
|
|
93
91
|
if (localTips.proven !== undefined && sourceTips.proven.number !== localTips.proven.number) {
|
|
94
92
|
await this.emitEvent({
|
|
95
93
|
type: 'chain-proven',
|
|
@@ -82,6 +82,12 @@ export interface L2BlockSource {
|
|
|
82
82
|
* @param epochNumber - The epoch number to return blocks for.
|
|
83
83
|
*/
|
|
84
84
|
getBlocksForEpoch(epochNumber: bigint): Promise<L2Block[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns all block headers for a given epoch.
|
|
87
|
+
* @dev Use this method only with recent epochs, since it walks the block list backwards.
|
|
88
|
+
* @param epochNumber - The epoch number to return headers for.
|
|
89
|
+
*/
|
|
90
|
+
getBlockHeadersForEpoch(epochNumber: bigint): Promise<BlockHeader[]>;
|
|
85
91
|
/**
|
|
86
92
|
* Returns whether the given epoch is completed on L1, based on the current L1 and L2 block numbers.
|
|
87
93
|
* @param epochNumber - The epoch number to check.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l2_block_source.d.ts","sourceRoot":"","sources":["../../src/block/l2_block_source.ts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,CAAC;IAErE;;;OAGG;IACH,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvD;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE7B;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC9C;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,aAAa,EAAE,YAAY;CAAG;AAEjF;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE3D,4BAA4B;AAC5B,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAEnD,6CAA6C;AAC7C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAGxD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;IASnB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIK,CAAC;AAE/B,oBAAY,mBAAmB;IAC7B,eAAe,oBAAoB;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,iBAAiB,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract_class.d.ts","sourceRoot":"","sources":["../../src/contract/contract_class.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contract_class.d.ts","sourceRoot":"","sources":["../../src/contract/contract_class.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAkC,MAAM,iBAAiB,CAAC;AAG/G,OAAO,EAAE,KAAK,uBAAuB,EAAsC,MAAM,wBAAwB,CAAC;AAC1G,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,oDAAoD;AACpD,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IAAE,YAAY,EAAE,EAAE,CAAA;CAAE,CAAC;AAKxE,oEAAoE;AACpE,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,gBAAgB,GAAG,wBAAwB,GACpD,OAAO,CAAC,mBAAmB,GAAG,uBAAuB,CAAC,CA0BxD;AAED,wBAAsB,2CAA2C,CAC/D,CAAC,EAAE,gBAAgB,GAClB,OAAO,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,CAKpD;AAED;;GAEG;AACH,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,gBAAgB,eAKnE"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { PUBLIC_DISPATCH_SELECTOR } from '@aztec/constants';
|
|
2
1
|
import { vkAsFieldsMegaHonk } from '@aztec/foundation/crypto';
|
|
3
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
4
2
|
import { FunctionSelector, FunctionType } from '../abi/index.js';
|
|
5
3
|
import { hashVK } from '../hash/hash.js';
|
|
6
4
|
import { computeArtifactHash } from './artifact_hash.js';
|
|
@@ -9,32 +7,16 @@ const cmpFunctionArtifacts = (a, b)=>a.selector.toField().cmp(b.selector.toField
|
|
|
9
7
|
/** Creates a ContractClass from a contract compilation artifact. */ export async function getContractClassFromArtifact(artifact) {
|
|
10
8
|
const artifactHash = 'artifactHash' in artifact ? artifact.artifactHash : await computeArtifactHash(artifact);
|
|
11
9
|
const publicFunctions = artifact.functions.filter((f)=>f.functionType === FunctionType.PUBLIC);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const artifactPublicFunctions = await Promise.all(publicFunctions.map(async (f)=>({
|
|
15
|
-
selector: await FunctionSelector.fromNameAndParameters(f.name, f.parameters),
|
|
16
|
-
bytecode: f.bytecode
|
|
17
|
-
})));
|
|
18
|
-
artifactPublicFunctions.sort(cmpFunctionArtifacts);
|
|
19
|
-
let packedBytecode = Buffer.alloc(0);
|
|
20
|
-
let dispatchFunction = undefined;
|
|
21
|
-
if (artifactPublicFunctions.length > 0) {
|
|
22
|
-
dispatchFunction = artifactPublicFunctions.find((f)=>f.selector.equals(FunctionSelector.fromField(new Fr(PUBLIC_DISPATCH_SELECTOR))));
|
|
23
|
-
if (!dispatchFunction) {
|
|
24
|
-
throw new Error(`A contract with public functions should define a public_dispatch(Field) function as its public entrypoint. Contract: ${artifact.name}`);
|
|
25
|
-
}
|
|
26
|
-
packedBytecode = dispatchFunction.bytecode;
|
|
10
|
+
if (publicFunctions.length > 1) {
|
|
11
|
+
throw new Error(`Contract should contain at most one public function artifact. Received ${publicFunctions.length}.`);
|
|
27
12
|
}
|
|
13
|
+
const packedBytecode = publicFunctions[0]?.bytecode ?? Buffer.alloc(0);
|
|
28
14
|
const privateFunctions = artifact.functions.filter((f)=>f.functionType === FunctionType.PRIVATE);
|
|
29
15
|
const privateArtifactFunctions = await Promise.all(privateFunctions.map(getContractClassPrivateFunctionFromArtifact));
|
|
30
16
|
privateArtifactFunctions.sort(cmpFunctionArtifacts);
|
|
31
17
|
const contractClass = {
|
|
32
18
|
version: 1,
|
|
33
19
|
artifactHash,
|
|
34
|
-
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/8985): Remove public functions.
|
|
35
|
-
publicFunctions: dispatchFunction ? [
|
|
36
|
-
dispatchFunction
|
|
37
|
-
] : [],
|
|
38
20
|
packedBytecode,
|
|
39
21
|
privateFunctions: privateArtifactFunctions
|
|
40
22
|
};
|
|
@@ -17,8 +17,6 @@ export interface ContractClass {
|
|
|
17
17
|
artifactHash: Fr;
|
|
18
18
|
/** List of individual private functions, constructors included. */
|
|
19
19
|
privateFunctions: PrivateFunction[];
|
|
20
|
-
/** Contains the public_dispatch function (and only that) if there's any public code in the contract. */
|
|
21
|
-
publicFunctions: PublicFunction[];
|
|
22
20
|
/** Bytecode for the public_dispatch function, or empty. */
|
|
23
21
|
packedBytecode: Buffer;
|
|
24
22
|
}
|
|
@@ -34,38 +32,6 @@ export interface ExecutablePrivateFunction extends PrivateFunction {
|
|
|
34
32
|
/** ACIR and Brillig bytecode */
|
|
35
33
|
bytecode: Buffer;
|
|
36
34
|
}
|
|
37
|
-
/** Public function definition within a contract class. */
|
|
38
|
-
export interface PublicFunction {
|
|
39
|
-
/** Selector of the function. Calculated as the hash of the method name and parameters. The specification of this is not enforced by the protocol. */
|
|
40
|
-
selector: FunctionSelector;
|
|
41
|
-
/** Public bytecode. */
|
|
42
|
-
bytecode: Buffer;
|
|
43
|
-
}
|
|
44
|
-
export declare const PublicFunctionSchema: z.ZodObject<{
|
|
45
|
-
selector: ZodFor<FunctionSelector>;
|
|
46
|
-
bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
|
|
47
|
-
type: z.ZodLiteral<"Buffer">;
|
|
48
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
49
|
-
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
type: "Buffer";
|
|
51
|
-
data: number[];
|
|
52
|
-
}, {
|
|
53
|
-
type: "Buffer";
|
|
54
|
-
data: number[];
|
|
55
|
-
}>, Buffer, {
|
|
56
|
-
type: "Buffer";
|
|
57
|
-
data: number[];
|
|
58
|
-
}>]>;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
bytecode: Buffer;
|
|
61
|
-
selector: FunctionSelector;
|
|
62
|
-
}, {
|
|
63
|
-
bytecode: string | {
|
|
64
|
-
type: "Buffer";
|
|
65
|
-
data: number[];
|
|
66
|
-
};
|
|
67
|
-
selector?: any;
|
|
68
|
-
}>;
|
|
69
35
|
/** Unconstrained function definition. */
|
|
70
36
|
export interface UnconstrainedFunction {
|
|
71
37
|
/** Selector of the function. Calculated as the hash of the method name and parameters. The specification of this is not enforced by the protocol. */
|
|
@@ -108,31 +74,6 @@ export declare const ContractClassSchema: z.ZodObject<{
|
|
|
108
74
|
vkHash: string;
|
|
109
75
|
selector?: any;
|
|
110
76
|
}>, "many">;
|
|
111
|
-
publicFunctions: z.ZodArray<z.ZodObject<{
|
|
112
|
-
selector: ZodFor<FunctionSelector>;
|
|
113
|
-
bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
|
|
114
|
-
type: z.ZodLiteral<"Buffer">;
|
|
115
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
116
|
-
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type: "Buffer";
|
|
118
|
-
data: number[];
|
|
119
|
-
}, {
|
|
120
|
-
type: "Buffer";
|
|
121
|
-
data: number[];
|
|
122
|
-
}>, Buffer, {
|
|
123
|
-
type: "Buffer";
|
|
124
|
-
data: number[];
|
|
125
|
-
}>]>;
|
|
126
|
-
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
bytecode: Buffer;
|
|
128
|
-
selector: FunctionSelector;
|
|
129
|
-
}, {
|
|
130
|
-
bytecode: string | {
|
|
131
|
-
type: "Buffer";
|
|
132
|
-
data: number[];
|
|
133
|
-
};
|
|
134
|
-
selector?: any;
|
|
135
|
-
}>, "many">;
|
|
136
77
|
packedBytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
|
|
137
78
|
type: z.ZodLiteral<"Buffer">;
|
|
138
79
|
data: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -154,10 +95,6 @@ export declare const ContractClassSchema: z.ZodObject<{
|
|
|
154
95
|
selector: FunctionSelector;
|
|
155
96
|
vkHash: Fr;
|
|
156
97
|
}[];
|
|
157
|
-
publicFunctions: {
|
|
158
|
-
bytecode: Buffer;
|
|
159
|
-
selector: FunctionSelector;
|
|
160
|
-
}[];
|
|
161
98
|
}, {
|
|
162
99
|
version: 1;
|
|
163
100
|
artifactHash: string;
|
|
@@ -169,13 +106,6 @@ export declare const ContractClassSchema: z.ZodObject<{
|
|
|
169
106
|
vkHash: string;
|
|
170
107
|
selector?: any;
|
|
171
108
|
}[];
|
|
172
|
-
publicFunctions: {
|
|
173
|
-
bytecode: string | {
|
|
174
|
-
type: "Buffer";
|
|
175
|
-
data: number[];
|
|
176
|
-
};
|
|
177
|
-
selector?: any;
|
|
178
|
-
}[];
|
|
179
109
|
}>;
|
|
180
110
|
/** Commitments to fields of a contract class. */
|
|
181
111
|
interface ContractClassCommitments {
|
|
@@ -201,31 +131,6 @@ export declare const ContractClassWithIdSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
201
131
|
vkHash: string;
|
|
202
132
|
selector?: any;
|
|
203
133
|
}>, "many">;
|
|
204
|
-
publicFunctions: z.ZodArray<z.ZodObject<{
|
|
205
|
-
selector: ZodFor<FunctionSelector>;
|
|
206
|
-
bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
|
|
207
|
-
type: z.ZodLiteral<"Buffer">;
|
|
208
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
209
|
-
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
type: "Buffer";
|
|
211
|
-
data: number[];
|
|
212
|
-
}, {
|
|
213
|
-
type: "Buffer";
|
|
214
|
-
data: number[];
|
|
215
|
-
}>, Buffer, {
|
|
216
|
-
type: "Buffer";
|
|
217
|
-
data: number[];
|
|
218
|
-
}>]>;
|
|
219
|
-
}, "strip", z.ZodTypeAny, {
|
|
220
|
-
bytecode: Buffer;
|
|
221
|
-
selector: FunctionSelector;
|
|
222
|
-
}, {
|
|
223
|
-
bytecode: string | {
|
|
224
|
-
type: "Buffer";
|
|
225
|
-
data: number[];
|
|
226
|
-
};
|
|
227
|
-
selector?: any;
|
|
228
|
-
}>, "many">;
|
|
229
134
|
packedBytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
|
|
230
135
|
type: z.ZodLiteral<"Buffer">;
|
|
231
136
|
data: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -250,10 +155,6 @@ export declare const ContractClassWithIdSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
250
155
|
selector: FunctionSelector;
|
|
251
156
|
vkHash: Fr;
|
|
252
157
|
}[];
|
|
253
|
-
publicFunctions: {
|
|
254
|
-
bytecode: Buffer;
|
|
255
|
-
selector: FunctionSelector;
|
|
256
|
-
}[];
|
|
257
158
|
}, {
|
|
258
159
|
id: string;
|
|
259
160
|
version: 1;
|
|
@@ -266,20 +167,13 @@ export declare const ContractClassWithIdSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
266
167
|
vkHash: string;
|
|
267
168
|
selector?: any;
|
|
268
169
|
}[];
|
|
269
|
-
publicFunctions: {
|
|
270
|
-
bytecode: string | {
|
|
271
|
-
type: "Buffer";
|
|
272
|
-
data: number[];
|
|
273
|
-
};
|
|
274
|
-
selector?: any;
|
|
275
|
-
}[];
|
|
276
170
|
}>;
|
|
277
171
|
/** A contract class with public bytecode information, and optional private and unconstrained. */
|
|
278
172
|
export type ContractClassPublic = {
|
|
279
173
|
privateFunctions: ExecutablePrivateFunctionWithMembershipProof[];
|
|
280
174
|
unconstrainedFunctions: UnconstrainedFunctionWithMembershipProof[];
|
|
281
175
|
} & Pick<ContractClassCommitments, 'id' | 'privateFunctionsRoot'> & Omit<ContractClass, 'privateFunctions'>;
|
|
282
|
-
export type
|
|
176
|
+
export type ContractClassPublicWithCommitment = ContractClassPublic & Pick<ContractClassCommitments, 'publicBytecodeCommitment'>;
|
|
283
177
|
export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
284
178
|
id: z.ZodType<Fr, any, string>;
|
|
285
179
|
privateFunctionsRoot: z.ZodType<Fr, any, string>;
|
|
@@ -455,31 +349,6 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
455
349
|
vkHash: string;
|
|
456
350
|
selector?: any;
|
|
457
351
|
}>, "many">;
|
|
458
|
-
publicFunctions: z.ZodArray<z.ZodObject<{
|
|
459
|
-
selector: ZodFor<FunctionSelector>;
|
|
460
|
-
bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
|
|
461
|
-
type: z.ZodLiteral<"Buffer">;
|
|
462
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
463
|
-
}, "strip", z.ZodTypeAny, {
|
|
464
|
-
type: "Buffer";
|
|
465
|
-
data: number[];
|
|
466
|
-
}, {
|
|
467
|
-
type: "Buffer";
|
|
468
|
-
data: number[];
|
|
469
|
-
}>, Buffer, {
|
|
470
|
-
type: "Buffer";
|
|
471
|
-
data: number[];
|
|
472
|
-
}>]>;
|
|
473
|
-
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
bytecode: Buffer;
|
|
475
|
-
selector: FunctionSelector;
|
|
476
|
-
}, {
|
|
477
|
-
bytecode: string | {
|
|
478
|
-
type: "Buffer";
|
|
479
|
-
data: number[];
|
|
480
|
-
};
|
|
481
|
-
selector?: any;
|
|
482
|
-
}>, "many">;
|
|
483
352
|
packedBytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
|
|
484
353
|
type: z.ZodLiteral<"Buffer">;
|
|
485
354
|
data: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -497,10 +366,6 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
497
366
|
version: 1;
|
|
498
367
|
artifactHash: Fr;
|
|
499
368
|
packedBytecode: Buffer;
|
|
500
|
-
publicFunctions: {
|
|
501
|
-
bytecode: Buffer;
|
|
502
|
-
selector: FunctionSelector;
|
|
503
|
-
}[];
|
|
504
369
|
}, {
|
|
505
370
|
version: 1;
|
|
506
371
|
artifactHash: string;
|
|
@@ -508,13 +373,6 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
508
373
|
type: "Buffer";
|
|
509
374
|
data: number[];
|
|
510
375
|
};
|
|
511
|
-
publicFunctions: {
|
|
512
|
-
bytecode: string | {
|
|
513
|
-
type: "Buffer";
|
|
514
|
-
data: number[];
|
|
515
|
-
};
|
|
516
|
-
selector?: any;
|
|
517
|
-
}[];
|
|
518
376
|
}>>;
|
|
519
377
|
/** The contract class with the block it was initially deployed at */
|
|
520
378
|
export type ContractClassPublicWithBlockNumber = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract_class.d.ts","sourceRoot":"","sources":["../../../src/contract/interfaces/contract_class.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,QAAA,MAAM,OAAO,GAAa,CAAC;AAE3B;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,wRAAwR;IACxR,YAAY,EAAE,EAAE,CAAC;IACjB,mEAAmE;IACnE,gBAAgB,EAAE,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"contract_class.d.ts","sourceRoot":"","sources":["../../../src/contract/interfaces/contract_class.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FqF,CAAC;AAEnG,qEAAqE;AACrE,MAAM,MAAM,kCAAkC,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAAC"}
|
|
@@ -9,10 +9,6 @@ const PrivateFunctionSchema = z.object({
|
|
|
9
9
|
const ExecutablePrivateFunctionSchema = PrivateFunctionSchema.and(z.object({
|
|
10
10
|
bytecode: schemas.Buffer
|
|
11
11
|
}));
|
|
12
|
-
export const PublicFunctionSchema = z.object({
|
|
13
|
-
selector: FunctionSelector.schema,
|
|
14
|
-
bytecode: schemas.Buffer
|
|
15
|
-
});
|
|
16
12
|
const UnconstrainedFunctionSchema = z.object({
|
|
17
13
|
/** lala */ selector: FunctionSelector.schema,
|
|
18
14
|
bytecode: schemas.Buffer
|
|
@@ -37,7 +33,6 @@ export const ContractClassSchema = z.object({
|
|
|
37
33
|
version: z.literal(VERSION),
|
|
38
34
|
artifactHash: schemas.Fr,
|
|
39
35
|
privateFunctions: z.array(PrivateFunctionSchema),
|
|
40
|
-
publicFunctions: z.array(PublicFunctionSchema),
|
|
41
36
|
packedBytecode: schemas.Buffer
|
|
42
37
|
});
|
|
43
38
|
export const ContractClassWithIdSchema = ContractClassSchema.extend({
|