@@ -75,8 +75,9 @@ export function hashOpToJSON(object: HashOp): string {
7575 case HashOp . BITCOIN :
7676 return "BITCOIN" ;
7777
78+ case HashOp . UNRECOGNIZED :
7879 default :
79- return "UNKNOWN " ;
80+ return "UNRECOGNIZED " ;
8081 }
8182}
8283/**
@@ -224,8 +225,9 @@ export function lengthOpToJSON(object: LengthOp): string {
224225 case LengthOp . REQUIRE_64_BYTES :
225226 return "REQUIRE_64_BYTES" ;
226227
228+ case LengthOp . UNRECOGNIZED :
227229 default :
228- return "UNKNOWN " ;
230+ return "UNRECOGNIZED " ;
229231 }
230232}
231233/**
@@ -253,7 +255,7 @@ export function lengthOpToJSON(object: LengthOp): string {
253255export interface ExistenceProof {
254256 key : Uint8Array ;
255257 value : Uint8Array ;
256- leaf : LeafOp | undefined ;
258+ leaf ? : LeafOp | undefined ;
257259 path : InnerOp [ ] ;
258260}
259261/**
@@ -281,7 +283,7 @@ export interface ExistenceProof {
281283export interface ExistenceProofSDKType {
282284 key : Uint8Array ;
283285 value : Uint8Array ;
284- leaf : LeafOpSDKType | undefined ;
286+ leaf ? : LeafOpSDKType | undefined ;
285287 path : InnerOpSDKType [ ] ;
286288}
287289/**
@@ -293,8 +295,8 @@ export interface ExistenceProofSDKType {
293295export interface NonExistenceProof {
294296 /** TODO: remove this as unnecessary??? we prove a range */
295297 key : Uint8Array ;
296- left : ExistenceProof | undefined ;
297- right : ExistenceProof | undefined ;
298+ left ? : ExistenceProof | undefined ;
299+ right ? : ExistenceProof | undefined ;
298300}
299301/**
300302 * NonExistenceProof takes a proof of two neighbors, one left of the desired key,
@@ -305,8 +307,8 @@ export interface NonExistenceProof {
305307export interface NonExistenceProofSDKType {
306308 /** TODO: remove this as unnecessary??? we prove a range */
307309 key : Uint8Array ;
308- left : ExistenceProofSDKType | undefined ;
309- right : ExistenceProofSDKType | undefined ;
310+ left ? : ExistenceProofSDKType | undefined ;
311+ right ? : ExistenceProofSDKType | undefined ;
310312}
311313/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */
312314
@@ -446,8 +448,8 @@ export interface ProofSpec {
446448 * any field in the ExistenceProof must be the same as in this spec.
447449 * except Prefix, which is just the first bytes of prefix (spec can be longer)
448450 */
449- leafSpec : LeafOp | undefined ;
450- innerSpec : InnerSpec | undefined ;
451+ leafSpec ? : LeafOp | undefined ;
452+ innerSpec ? : InnerSpec | undefined ;
451453 /** max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) */
452454
453455 maxDepth : number ;
@@ -473,8 +475,8 @@ export interface ProofSpecSDKType {
473475 * any field in the ExistenceProof must be the same as in this spec.
474476 * except Prefix, which is just the first bytes of prefix (spec can be longer)
475477 */
476- leaf_spec : LeafOpSDKType | undefined ;
477- inner_spec : InnerSpecSDKType | undefined ;
478+ leaf_spec ? : LeafOpSDKType | undefined ;
479+ inner_spec ? : InnerSpecSDKType | undefined ;
478480 /** max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) */
479481
480482 max_depth : number ;
@@ -583,30 +585,30 @@ export interface CompressedBatchEntrySDKType {
583585export interface CompressedExistenceProof {
584586 key : Uint8Array ;
585587 value : Uint8Array ;
586- leaf : LeafOp | undefined ;
588+ leaf ? : LeafOp | undefined ;
587589 /** these are indexes into the lookup_inners table in CompressedBatchProof */
588590
589591 path : number [ ] ;
590592}
591593export interface CompressedExistenceProofSDKType {
592594 key : Uint8Array ;
593595 value : Uint8Array ;
594- leaf : LeafOpSDKType | undefined ;
596+ leaf ? : LeafOpSDKType | undefined ;
595597 /** these are indexes into the lookup_inners table in CompressedBatchProof */
596598
597599 path : number [ ] ;
598600}
599601export interface CompressedNonExistenceProof {
600602 /** TODO: remove this as unnecessary??? we prove a range */
601603 key : Uint8Array ;
602- left : CompressedExistenceProof | undefined ;
603- right : CompressedExistenceProof | undefined ;
604+ left ? : CompressedExistenceProof | undefined ;
605+ right ? : CompressedExistenceProof | undefined ;
604606}
605607export interface CompressedNonExistenceProofSDKType {
606608 /** TODO: remove this as unnecessary??? we prove a range */
607609 key : Uint8Array ;
608- left : CompressedExistenceProofSDKType | undefined ;
609- right : CompressedExistenceProofSDKType | undefined ;
610+ left ? : CompressedExistenceProofSDKType | undefined ;
611+ right ? : CompressedExistenceProofSDKType | undefined ;
610612}
611613
612614function createBaseExistenceProof ( ) : ExistenceProof {
0 commit comments