@aztec/stdlib 3.0.0-nightly.20251109 → 3.0.0-nightly.20251111
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 +3 -18
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/avm/avm.d.ts +844 -665
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +13 -36
- package/dest/avm/avm_accumulated_data.d.ts +6 -6
- package/dest/avm/avm_circuit_public_inputs.d.ts +27 -27
- package/dest/avm/avm_proving_request.d.ts +299 -176
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/avm/public_data_write.d.ts +2 -2
- package/dest/aztec-address/index.d.ts.map +1 -1
- package/dest/aztec-address/index.js +8 -2
- 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 +2 -2
- package/dest/contract/interfaces/contract_class.d.ts +38 -119
- package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_instance.d.ts +200 -32
- package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
- package/dest/database-version/version_manager.d.ts +1 -1
- package/dest/interfaces/aztec-node-admin.d.ts +5 -5
- package/dest/interfaces/proving-job.d.ts +305 -182
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/slasher.d.ts +3 -3
- package/dest/interfaces/validator.d.ts +4 -4
- package/dest/kernel/private_kernel_prover_output.d.ts +6 -6
- package/dest/kernel/private_to_avm_accumulated_data.d.ts +4 -4
- package/dest/kernel/public_call_request.d.ts +1 -1
- package/dest/keys/public_keys.d.ts +84 -12
- package/dest/keys/public_keys.d.ts.map +1 -1
- package/dest/logs/contract_class_log.d.ts +2 -2
- 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 +1 -1
- package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
- package/dest/messaging/l2_to_l1_message.d.ts +8 -8
- package/dest/noir/index.d.ts +6 -6
- package/dest/noir/index.d.ts.map +1 -1
- package/dest/noir/index.js +7 -6
- package/dest/note/note.d.ts +1 -16
- package/dest/note/note.d.ts.map +1 -1
- package/dest/p2p/consensus_payload.d.ts +5 -5
- package/dest/p2p/gossipable.d.ts +1 -1
- package/dest/p2p/gossipable.d.ts.map +1 -1
- package/dest/p2p/gossipable.js +1 -1
- package/dest/proofs/recursive_proof.d.ts +1 -16
- package/dest/proofs/recursive_proof.d.ts.map +1 -1
- package/dest/schemas/schemas.d.ts +2 -13
- package/dest/schemas/schemas.d.ts.map +1 -1
- package/dest/schemas/schemas.js +2 -0
- package/dest/snapshots/types.d.ts +2 -2
- package/dest/trees/append_only_tree_snapshot.d.ts +1 -1
- package/dest/trees/nullifier_leaf.d.ts +4 -4
- package/dest/trees/nullifier_membership_witness.d.ts +5 -29
- package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
- package/dest/trees/public_data_leaf.d.ts +7 -7
- package/dest/trees/public_data_witness.d.ts +6 -30
- package/dest/trees/public_data_witness.d.ts.map +1 -1
- package/dest/tx/content_commitment.d.ts +3 -3
- package/dest/tx/partial_state_reference.d.ts +3 -3
- package/dest/tx/private_execution_result.d.ts +3 -24
- package/dest/tx/private_execution_result.d.ts.map +1 -1
- package/dest/tx/simulated_tx.d.ts +148 -28
- 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 +4 -4
- package/dest/tx/tx.d.ts.map +1 -1
- package/dest/tx/tx.js +2 -2
- package/dest/tx/tx_context.d.ts +2 -2
- package/dest/validators/schemas.d.ts +3 -3
- package/package.json +8 -8
- package/src/avm/avm.ts +11 -28
- package/src/aztec-address/index.ts +8 -2
- package/src/noir/index.ts +7 -6
- package/src/p2p/gossipable.ts +1 -1
- package/src/schemas/schemas.ts +3 -0
- package/src/tx/tx.ts +2 -3
|
@@ -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,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB
|
|
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,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC"}
|
|
@@ -25,8 +25,8 @@ export declare class PublicDataWrite {
|
|
|
25
25
|
*/
|
|
26
26
|
value: Fr);
|
|
27
27
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
28
|
-
leafSlot: z.ZodType<Fr, any, string>;
|
|
29
|
-
value: z.ZodType<Fr, any, string>;
|
|
28
|
+
leafSlot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
29
|
+
value: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
value: Fr;
|
|
32
32
|
leafSlot: Fr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/aztec-address/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAc,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/aztec-address/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAc,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,KAAK,MAAM,EAAiC,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,KAAK,YAAY,EAAE,WAAW,EAAgB,MAAM,6BAA6B,CAAC;AAG3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC3B,aAAa;IACb,SAAS,EAAE,cAAc,CAAC;CAC3B;AACD;;;;;;;;GAQG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAK;gBAEP,MAAM,EAAE,MAAM,GAAG,EAAE;IAO/B,CAAC,OAAO,CAAC,MAAM,CAAC;IAIhB,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM;IAI5B,MAAM,CAAC,aAAa,SAAoB;IAExC,MAAM,CAAC,IAAI,eAAyC;IAEpD,MAAM,CAAC,IAAI,IAAI,YAAY;IAI3B,MAAM,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE;IAIvB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAI/C,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAK5C,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM;IAI/B,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM;IAI/B,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B;;OAEG;WACU,MAAM;IAUnB,IAAI,IAAI,WAEP;IAED,MAAM,CAAC,KAAK,EAAE,YAAY;IAI1B,MAAM;IAIN;;OAEG;IACG,OAAO;IAUb;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC;IAIhC,QAAQ;IAIR,QAAQ;IAIR,OAAO;IAIP,QAAQ;IAIR,MAAM;IAIN,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,CAOxC;CACF"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */ import { Fr, Point, fromBuffer } from '@aztec/foundation/fields';
|
|
2
|
-
import { hexSchemaFor } from '@aztec/foundation/schemas';
|
|
2
|
+
import { bufferSchemaFor, hexSchemaFor } from '@aztec/foundation/schemas';
|
|
3
3
|
import { FieldReader, TypeRegistry } from '@aztec/foundation/serialize';
|
|
4
4
|
import { hexToBuffer } from '@aztec/foundation/string';
|
|
5
5
|
import { inspect } from 'util';
|
|
6
|
+
import { z } from 'zod';
|
|
6
7
|
/**
|
|
7
8
|
* AztecAddress represents a 32-byte address in the Aztec Protocol. It provides methods to create, manipulate, and
|
|
8
9
|
* compare addresses, as well as conversion to and from strings, buffers, and other formats.
|
|
@@ -101,7 +102,12 @@ import { inspect } from 'util';
|
|
|
101
102
|
return this.toString();
|
|
102
103
|
}
|
|
103
104
|
static get schema() {
|
|
104
|
-
return
|
|
105
|
+
return z.union([
|
|
106
|
+
// Serialization from hex string.
|
|
107
|
+
hexSchemaFor(AztecAddress, AztecAddress.isAddress),
|
|
108
|
+
// Serialization from buffer.
|
|
109
|
+
bufferSchemaFor(AztecAddress, (buf)=>buf.length === 32)
|
|
110
|
+
]);
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
113
|
// For deserializing JSON.
|
package/dest/block/l2_block.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class L2Block {
|
|
|
26
26
|
body: Body, blockHash?: Fr | undefined);
|
|
27
27
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
28
28
|
archive: z.ZodEffects<z.ZodObject<{
|
|
29
|
-
root: z.ZodType<Fr, any, string>;
|
|
29
|
+
root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
30
30
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
root: Fr;
|
|
@@ -12,9 +12,9 @@ export type L2BlockInfo = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare function randomBlockInfo(blockNumber?: number): L2BlockInfo;
|
|
14
14
|
export declare const BlockInfoSchema: z.ZodObject<{
|
|
15
|
-
blockHash: z.ZodOptional<z.ZodType<Fr, any, string>>;
|
|
16
|
-
archive: z.ZodType<Fr, any, string>;
|
|
17
|
-
lastArchive: z.ZodType<Fr, any, string>;
|
|
15
|
+
blockHash: z.ZodOptional<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>>;
|
|
16
|
+
archive: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
17
|
+
lastArchive: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
18
18
|
blockNumber: z.ZodNumber;
|
|
19
19
|
slotNumber: z.ZodNumber;
|
|
20
20
|
txCount: z.ZodNumber;
|
|
@@ -7,7 +7,7 @@ export declare class CommitteeAttestationsAndSigners implements Signable {
|
|
|
7
7
|
constructor(attestations: CommitteeAttestation[]);
|
|
8
8
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
9
9
|
attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
10
|
-
address: z.ZodType<EthAddress, any, string>;
|
|
10
|
+
address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
|
|
11
11
|
signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./committee_attestation.js").Signature, string>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
address: EthAddress;
|
|
@@ -9,7 +9,7 @@ export declare class CommitteeAttestation {
|
|
|
9
9
|
readonly signature: Signature;
|
|
10
10
|
constructor(address: EthAddress, signature: Signature);
|
|
11
11
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
12
|
-
address: z.ZodType<EthAddress, any, string>;
|
|
12
|
+
address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
|
|
13
13
|
signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, Signature, string>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
address: EthAddress;
|
|
@@ -32,7 +32,7 @@ export declare class PublishedL2Block {
|
|
|
32
32
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
33
33
|
block: z.ZodEffects<z.ZodObject<{
|
|
34
34
|
archive: z.ZodEffects<z.ZodObject<{
|
|
35
|
-
root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
35
|
+
root: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
36
36
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
root: import("@aztec/foundation/schemas").Fr;
|
|
@@ -79,7 +79,7 @@ export declare class PublishedL2Block {
|
|
|
79
79
|
blockHash: string;
|
|
80
80
|
}>;
|
|
81
81
|
attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
82
|
-
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
82
|
+
address: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>;
|
|
83
83
|
signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./proposal/committee_attestation.js").Signature, string>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
85
|
address: import("@aztec/foundation/schemas").EthAddress;
|
|
@@ -52,9 +52,9 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
52
52
|
}>, z.ZodObject<{
|
|
53
53
|
valid: z.ZodLiteral<false>;
|
|
54
54
|
block: z.ZodObject<{
|
|
55
|
-
blockHash: z.ZodOptional<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>>;
|
|
56
|
-
archive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
57
|
-
lastArchive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
55
|
+
blockHash: z.ZodOptional<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>>;
|
|
56
|
+
archive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
57
|
+
lastArchive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
58
58
|
blockNumber: z.ZodNumber;
|
|
59
59
|
slotNumber: z.ZodNumber;
|
|
60
60
|
txCount: z.ZodNumber;
|
|
@@ -76,12 +76,12 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
76
76
|
txCount: number;
|
|
77
77
|
blockHash?: string | undefined;
|
|
78
78
|
}>;
|
|
79
|
-
committee: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
|
|
79
|
+
committee: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
|
|
80
80
|
epoch: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
81
81
|
seed: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
82
|
-
attestors: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
|
|
82
|
+
attestors: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
|
|
83
83
|
attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
84
|
-
address: z.ZodType<EthAddress, any, string>;
|
|
84
|
+
address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
|
|
85
85
|
signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./proposal/committee_attestation.js").Signature, string>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
address: EthAddress;
|
|
@@ -134,9 +134,9 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
134
134
|
}>, z.ZodObject<{
|
|
135
135
|
valid: z.ZodLiteral<false>;
|
|
136
136
|
block: z.ZodObject<{
|
|
137
|
-
blockHash: z.ZodOptional<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>>;
|
|
138
|
-
archive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
139
|
-
lastArchive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
|
|
137
|
+
blockHash: z.ZodOptional<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>>;
|
|
138
|
+
archive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
139
|
+
lastArchive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
140
140
|
blockNumber: z.ZodNumber;
|
|
141
141
|
slotNumber: z.ZodNumber;
|
|
142
142
|
txCount: z.ZodNumber;
|
|
@@ -158,12 +158,12 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
158
158
|
txCount: number;
|
|
159
159
|
blockHash?: string | undefined;
|
|
160
160
|
}>;
|
|
161
|
-
committee: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
|
|
161
|
+
committee: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
|
|
162
162
|
epoch: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
163
163
|
seed: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
164
|
-
attestors: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
|
|
164
|
+
attestors: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
|
|
165
165
|
attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
166
|
-
address: z.ZodType<EthAddress, any, string>;
|
|
166
|
+
address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
|
|
167
167
|
signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./proposal/committee_attestation.js").Signature, string>;
|
|
168
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
169
|
address: EthAddress;
|
|
@@ -20,7 +20,7 @@ export declare class ContractDeploymentData {
|
|
|
20
20
|
contractClassLogs: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
21
21
|
contractAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
22
22
|
fields: z.ZodEffects<z.ZodObject<{
|
|
23
|
-
fields: z.ZodEffects<z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">, import("@aztec/foundation/schemas").Fr[], string[]>;
|
|
23
|
+
fields: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, "many">, import("@aztec/foundation/schemas").Fr[], string[]>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
fields: import("@aztec/foundation/schemas").Fr[];
|
|
26
26
|
}, {
|
|
@@ -47,7 +47,7 @@ export declare class ContractDeploymentData {
|
|
|
47
47
|
contractAddress?: any;
|
|
48
48
|
}>, "many">;
|
|
49
49
|
privateLogs: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
50
|
-
fields: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
|
|
50
|
+
fields: z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
|
|
51
51
|
emittedLength: z.ZodNumber;
|
|
52
52
|
}, "strict", z.ZodTypeAny, {
|
|
53
53
|
fields: import("@aztec/foundation/schemas").Fr[];
|
|
@@ -65,10 +65,10 @@ export type UtilityFunctionMembershipProof = {
|
|
|
65
65
|
export type UtilityFunctionWithMembershipProof = UtilityFunction & UtilityFunctionMembershipProof;
|
|
66
66
|
export declare const ContractClassSchema: z.ZodObject<{
|
|
67
67
|
version: z.ZodLiteral<1>;
|
|
68
|
-
artifactHash: z.ZodType<Fr, any, string>;
|
|
68
|
+
artifactHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
69
69
|
privateFunctions: z.ZodArray<z.ZodObject<{
|
|
70
70
|
selector: ZodFor<FunctionSelector>;
|
|
71
|
-
vkHash: z.ZodType<Fr, any, string>;
|
|
71
|
+
vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
selector: FunctionSelector;
|
|
74
74
|
vkHash: Fr;
|
|
@@ -76,19 +76,7 @@ export declare const ContractClassSchema: z.ZodObject<{
|
|
|
76
76
|
vkHash: string;
|
|
77
77
|
selector?: any;
|
|
78
78
|
}>, "many">;
|
|
79
|
-
packedBytecode:
|
|
80
|
-
type: z.ZodLiteral<"Buffer">;
|
|
81
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
type: "Buffer";
|
|
84
|
-
data: number[];
|
|
85
|
-
}, {
|
|
86
|
-
type: "Buffer";
|
|
87
|
-
data: number[];
|
|
88
|
-
}>, Buffer<ArrayBuffer>, {
|
|
89
|
-
type: "Buffer";
|
|
90
|
-
data: number[];
|
|
91
|
-
}>]>;
|
|
79
|
+
packedBytecode: ZodFor<Buffer<ArrayBufferLike>>;
|
|
92
80
|
}, "strip", z.ZodTypeAny, {
|
|
93
81
|
version: 1;
|
|
94
82
|
artifactHash: Fr;
|
|
@@ -96,7 +84,7 @@ export declare const ContractClassSchema: z.ZodObject<{
|
|
|
96
84
|
selector: FunctionSelector;
|
|
97
85
|
vkHash: Fr;
|
|
98
86
|
}[];
|
|
99
|
-
packedBytecode: Buffer<
|
|
87
|
+
packedBytecode: Buffer<ArrayBufferLike>;
|
|
100
88
|
}, {
|
|
101
89
|
version: 1;
|
|
102
90
|
artifactHash: string;
|
|
@@ -104,10 +92,7 @@ export declare const ContractClassSchema: z.ZodObject<{
|
|
|
104
92
|
vkHash: string;
|
|
105
93
|
selector?: any;
|
|
106
94
|
}[];
|
|
107
|
-
packedBytecode
|
|
108
|
-
type: "Buffer";
|
|
109
|
-
data: number[];
|
|
110
|
-
};
|
|
95
|
+
packedBytecode?: any;
|
|
111
96
|
}>;
|
|
112
97
|
/** Commitments to fields of a contract class. */
|
|
113
98
|
interface ContractClassCommitments {
|
|
@@ -122,10 +107,10 @@ interface ContractClassCommitments {
|
|
|
122
107
|
export type ContractClassWithId = ContractClass & Pick<ContractClassCommitments, 'id'>;
|
|
123
108
|
export declare const ContractClassWithIdSchema: z.ZodObject<{
|
|
124
109
|
version: z.ZodLiteral<1>;
|
|
125
|
-
artifactHash: z.ZodType<Fr, any, string>;
|
|
110
|
+
artifactHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
126
111
|
privateFunctions: z.ZodArray<z.ZodObject<{
|
|
127
112
|
selector: ZodFor<FunctionSelector>;
|
|
128
|
-
vkHash: z.ZodType<Fr, any, string>;
|
|
113
|
+
vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
129
114
|
}, "strip", z.ZodTypeAny, {
|
|
130
115
|
selector: FunctionSelector;
|
|
131
116
|
vkHash: Fr;
|
|
@@ -133,21 +118,9 @@ export declare const ContractClassWithIdSchema: z.ZodObject<{
|
|
|
133
118
|
vkHash: string;
|
|
134
119
|
selector?: any;
|
|
135
120
|
}>, "many">;
|
|
136
|
-
packedBytecode:
|
|
137
|
-
type: z.ZodLiteral<"Buffer">;
|
|
138
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
139
|
-
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
type: "Buffer";
|
|
141
|
-
data: number[];
|
|
142
|
-
}, {
|
|
143
|
-
type: "Buffer";
|
|
144
|
-
data: number[];
|
|
145
|
-
}>, Buffer<ArrayBuffer>, {
|
|
146
|
-
type: "Buffer";
|
|
147
|
-
data: number[];
|
|
148
|
-
}>]>;
|
|
121
|
+
packedBytecode: ZodFor<Buffer<ArrayBufferLike>>;
|
|
149
122
|
} & {
|
|
150
|
-
id: z.ZodType<Fr, any, string>;
|
|
123
|
+
id: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
151
124
|
}, "strip", z.ZodTypeAny, {
|
|
152
125
|
version: 1;
|
|
153
126
|
artifactHash: Fr;
|
|
@@ -155,7 +128,7 @@ export declare const ContractClassWithIdSchema: z.ZodObject<{
|
|
|
155
128
|
selector: FunctionSelector;
|
|
156
129
|
vkHash: Fr;
|
|
157
130
|
}[];
|
|
158
|
-
packedBytecode: Buffer<
|
|
131
|
+
packedBytecode: Buffer<ArrayBufferLike>;
|
|
159
132
|
id: Fr;
|
|
160
133
|
}, {
|
|
161
134
|
version: 1;
|
|
@@ -164,11 +137,8 @@ export declare const ContractClassWithIdSchema: z.ZodObject<{
|
|
|
164
137
|
vkHash: string;
|
|
165
138
|
selector?: any;
|
|
166
139
|
}[];
|
|
167
|
-
packedBytecode: string | {
|
|
168
|
-
type: "Buffer";
|
|
169
|
-
data: number[];
|
|
170
|
-
};
|
|
171
140
|
id: string;
|
|
141
|
+
packedBytecode?: any;
|
|
172
142
|
}>;
|
|
173
143
|
/** A contract class with public bytecode information, and optional private and utility functions. */
|
|
174
144
|
export type ContractClassPublic = {
|
|
@@ -177,11 +147,11 @@ export type ContractClassPublic = {
|
|
|
177
147
|
} & Pick<ContractClassCommitments, 'id' | 'privateFunctionsRoot'> & Omit<ContractClass, 'privateFunctions'>;
|
|
178
148
|
export type ContractClassPublicWithCommitment = ContractClassPublic & Pick<ContractClassCommitments, 'publicBytecodeCommitment'>;
|
|
179
149
|
export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
180
|
-
id: z.ZodType<Fr, any, string>;
|
|
181
|
-
privateFunctionsRoot: z.ZodType<Fr, any, string>;
|
|
150
|
+
id: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
151
|
+
privateFunctionsRoot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
182
152
|
privateFunctions: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
183
153
|
selector: ZodFor<FunctionSelector>;
|
|
184
|
-
vkHash: z.ZodType<Fr, any, string>;
|
|
154
|
+
vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
185
155
|
}, "strip", z.ZodTypeAny, {
|
|
186
156
|
selector: FunctionSelector;
|
|
187
157
|
vkHash: Fr;
|
|
@@ -189,33 +159,18 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
189
159
|
vkHash: string;
|
|
190
160
|
selector?: any;
|
|
191
161
|
}>, z.ZodObject<{
|
|
192
|
-
bytecode:
|
|
193
|
-
type: z.ZodLiteral<"Buffer">;
|
|
194
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
195
|
-
}, "strip", z.ZodTypeAny, {
|
|
196
|
-
type: "Buffer";
|
|
197
|
-
data: number[];
|
|
198
|
-
}, {
|
|
199
|
-
type: "Buffer";
|
|
200
|
-
data: number[];
|
|
201
|
-
}>, Buffer<ArrayBuffer>, {
|
|
202
|
-
type: "Buffer";
|
|
203
|
-
data: number[];
|
|
204
|
-
}>]>;
|
|
162
|
+
bytecode: ZodFor<Buffer<ArrayBufferLike>>;
|
|
205
163
|
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
bytecode: Buffer<
|
|
164
|
+
bytecode: Buffer<ArrayBufferLike>;
|
|
207
165
|
}, {
|
|
208
|
-
bytecode
|
|
209
|
-
type: "Buffer";
|
|
210
|
-
data: number[];
|
|
211
|
-
};
|
|
166
|
+
bytecode?: any;
|
|
212
167
|
}>>, z.ZodObject<{
|
|
213
|
-
artifactMetadataHash: z.ZodType<Fr, any, string>;
|
|
214
|
-
functionMetadataHash: z.ZodType<Fr, any, string>;
|
|
215
|
-
utilityFunctionsTreeRoot: z.ZodType<Fr, any, string>;
|
|
216
|
-
privateFunctionTreeSiblingPath: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
168
|
+
artifactMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
169
|
+
functionMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
170
|
+
utilityFunctionsTreeRoot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
171
|
+
privateFunctionTreeSiblingPath: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
|
|
217
172
|
privateFunctionTreeLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
218
|
-
artifactTreeSiblingPath: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
173
|
+
artifactTreeSiblingPath: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
|
|
219
174
|
artifactTreeLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
220
175
|
}, "strip", z.ZodTypeAny, {
|
|
221
176
|
functionMetadataHash: Fr;
|
|
@@ -237,33 +192,18 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
237
192
|
utilityFunctions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
238
193
|
/** lala */
|
|
239
194
|
selector: ZodFor<FunctionSelector>;
|
|
240
|
-
bytecode:
|
|
241
|
-
type: z.ZodLiteral<"Buffer">;
|
|
242
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
243
|
-
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
type: "Buffer";
|
|
245
|
-
data: number[];
|
|
246
|
-
}, {
|
|
247
|
-
type: "Buffer";
|
|
248
|
-
data: number[];
|
|
249
|
-
}>, Buffer<ArrayBuffer>, {
|
|
250
|
-
type: "Buffer";
|
|
251
|
-
data: number[];
|
|
252
|
-
}>]>;
|
|
195
|
+
bytecode: ZodFor<Buffer<ArrayBufferLike>>;
|
|
253
196
|
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
bytecode: Buffer<
|
|
197
|
+
bytecode: Buffer<ArrayBufferLike>;
|
|
255
198
|
selector: FunctionSelector;
|
|
256
199
|
}, {
|
|
257
|
-
bytecode
|
|
258
|
-
type: "Buffer";
|
|
259
|
-
data: number[];
|
|
260
|
-
};
|
|
200
|
+
bytecode?: any;
|
|
261
201
|
selector?: any;
|
|
262
202
|
}>, z.ZodObject<{
|
|
263
|
-
artifactMetadataHash: z.ZodType<Fr, any, string>;
|
|
264
|
-
functionMetadataHash: z.ZodType<Fr, any, string>;
|
|
265
|
-
privateFunctionsArtifactTreeRoot: z.ZodType<Fr, any, string>;
|
|
266
|
-
artifactTreeSiblingPath: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
203
|
+
artifactMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
204
|
+
functionMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
205
|
+
privateFunctionsArtifactTreeRoot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
206
|
+
artifactTreeSiblingPath: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
|
|
267
207
|
artifactTreeLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
268
208
|
}, "strip", z.ZodTypeAny, {
|
|
269
209
|
functionMetadataHash: Fr;
|
|
@@ -283,7 +223,7 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
283
223
|
selector: FunctionSelector;
|
|
284
224
|
vkHash: Fr;
|
|
285
225
|
} & {
|
|
286
|
-
bytecode: Buffer<
|
|
226
|
+
bytecode: Buffer<ArrayBufferLike>;
|
|
287
227
|
} & {
|
|
288
228
|
functionMetadataHash: Fr;
|
|
289
229
|
artifactMetadataHash: Fr;
|
|
@@ -296,7 +236,7 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
296
236
|
id: Fr;
|
|
297
237
|
privateFunctionsRoot: Fr;
|
|
298
238
|
utilityFunctions: ({
|
|
299
|
-
bytecode: Buffer<
|
|
239
|
+
bytecode: Buffer<ArrayBufferLike>;
|
|
300
240
|
selector: FunctionSelector;
|
|
301
241
|
} & {
|
|
302
242
|
functionMetadataHash: Fr;
|
|
@@ -310,10 +250,7 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
310
250
|
vkHash: string;
|
|
311
251
|
selector?: any;
|
|
312
252
|
} & {
|
|
313
|
-
bytecode
|
|
314
|
-
type: "Buffer";
|
|
315
|
-
data: number[];
|
|
316
|
-
};
|
|
253
|
+
bytecode?: any;
|
|
317
254
|
} & {
|
|
318
255
|
functionMetadataHash: string;
|
|
319
256
|
artifactMetadataHash: string;
|
|
@@ -326,10 +263,7 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
326
263
|
id: string;
|
|
327
264
|
privateFunctionsRoot: string;
|
|
328
265
|
utilityFunctions: ({
|
|
329
|
-
bytecode
|
|
330
|
-
type: "Buffer";
|
|
331
|
-
data: number[];
|
|
332
|
-
};
|
|
266
|
+
bytecode?: any;
|
|
333
267
|
selector?: any;
|
|
334
268
|
} & {
|
|
335
269
|
functionMetadataHash: string;
|
|
@@ -340,10 +274,10 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
340
274
|
})[];
|
|
341
275
|
}>, z.ZodObject<Omit<{
|
|
342
276
|
version: z.ZodLiteral<1>;
|
|
343
|
-
artifactHash: z.ZodType<Fr, any, string>;
|
|
277
|
+
artifactHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
344
278
|
privateFunctions: z.ZodArray<z.ZodObject<{
|
|
345
279
|
selector: ZodFor<FunctionSelector>;
|
|
346
|
-
vkHash: z.ZodType<Fr, any, string>;
|
|
280
|
+
vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
347
281
|
}, "strip", z.ZodTypeAny, {
|
|
348
282
|
selector: FunctionSelector;
|
|
349
283
|
vkHash: Fr;
|
|
@@ -351,30 +285,15 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
351
285
|
vkHash: string;
|
|
352
286
|
selector?: any;
|
|
353
287
|
}>, "many">;
|
|
354
|
-
packedBytecode:
|
|
355
|
-
type: z.ZodLiteral<"Buffer">;
|
|
356
|
-
data: z.ZodArray<z.ZodNumber, "many">;
|
|
357
|
-
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
type: "Buffer";
|
|
359
|
-
data: number[];
|
|
360
|
-
}, {
|
|
361
|
-
type: "Buffer";
|
|
362
|
-
data: number[];
|
|
363
|
-
}>, Buffer<ArrayBuffer>, {
|
|
364
|
-
type: "Buffer";
|
|
365
|
-
data: number[];
|
|
366
|
-
}>]>;
|
|
288
|
+
packedBytecode: ZodFor<Buffer<ArrayBufferLike>>;
|
|
367
289
|
}, "privateFunctions">, "strip", z.ZodTypeAny, {
|
|
368
290
|
version: 1;
|
|
369
291
|
artifactHash: Fr;
|
|
370
|
-
packedBytecode: Buffer<
|
|
292
|
+
packedBytecode: Buffer<ArrayBufferLike>;
|
|
371
293
|
}, {
|
|
372
294
|
version: 1;
|
|
373
295
|
artifactHash: string;
|
|
374
|
-
packedBytecode
|
|
375
|
-
type: "Buffer";
|
|
376
|
-
data: number[];
|
|
377
|
-
};
|
|
296
|
+
packedBytecode?: any;
|
|
378
297
|
}>>;
|
|
379
298
|
/** The contract class with the block it was initially deployed at */
|
|
380
299
|
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,EAAG,CAAU,CAAC;AAE3B;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB;;;;OAIG;IACH,YAAY,EAAE,EAAE,CAAC;IACjB,mEAAmE;IACnE,gBAAgB,EAAE,eAAe,EAAE,CAAC;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