@@ -264,9 +264,11 @@ def from_string(cls, text: str) -> "MerkleProofPair":
264264 return cls (MerkleProofInput .from_string (parts [0 ]), MerkleProofInput .from_string (parts [1 ]))
265265
266266
267- #: One compliance proof argument as a caller may supply it: the ``[MerkleProof; 2]``
267+ #: One compliance proof as a caller may supply it: the ``[MerkleProof; 2]``
268268#: literal, a :class:`MerkleProofPair`, or the two :class:`MerkleProofInput` paths.
269- ComplianceProofs = str | MerkleProofPair | tuple [MerkleProofInput , MerkleProofInput ]
269+ #: A call's ``compliance_proofs`` argument holds one or more of these (see the
270+ #: ``ComplianceProofs`` alias of each SDK package).
271+ ComplianceProof = str | MerkleProofPair | tuple [MerkleProofInput , MerkleProofInput ]
270272
271273
272274def format_merkle_proof_pair (pair : MerkleProofPair | tuple [MerkleProofInput , MerkleProofInput ]) -> str :
@@ -278,7 +280,7 @@ def format_merkle_proof_pair(pair: MerkleProofPair | tuple[MerkleProofInput, Mer
278280 raise FreezeListError ("A proof pair is a MerkleProofPair or a (MerkleProofInput, MerkleProofInput) tuple" )
279281
280282
281- def _bundle_literal (bundle : ComplianceProofs ) -> str :
283+ def _bundle_literal (bundle : ComplianceProof ) -> str :
282284 """The ``[MerkleProof; 2]`` literal for one caller-supplied bundle, validated."""
283285 if isinstance (bundle , str ):
284286 text = bundle .strip ()
@@ -295,7 +297,7 @@ def literal_compliance_proof(compliance_proofs: Any, legacy: Any = None, *, lega
295297 """The one ``[MerkleProof; 2]`` literal a call was given, or ``None`` when the SDK should build it.
296298
297299 Normalises the proof arguments of a call that takes exactly one bundle:
298- a :data:`ComplianceProofs ` or a one-element tuple of one under
300+ a :data:`ComplianceProof ` or a one-element tuple of one under
299301 ``compliance_proofs``, and the literal string the call accepted before
300302 under its old keyword. Reads nothing from the chain.
301303
@@ -315,11 +317,11 @@ def literal_compliance_proof(compliance_proofs: Any, legacy: Any = None, *, lega
315317 if isinstance (compliance_proofs , tuple ):
316318 items = cast (tuple [Any , ...], compliance_proofs )
317319 if _is_path_tuple (items ):
318- return _bundle_literal (cast (ComplianceProofs , items ))
320+ return _bundle_literal (cast (ComplianceProof , items ))
319321 if len (items ) != 1 :
320322 raise FreezeListError (f"This operation requires exactly one compliance proof bundle; received { len (items )} " )
321- return _bundle_literal (cast (ComplianceProofs , items [0 ]))
322- return _bundle_literal (cast (ComplianceProofs , compliance_proofs ))
323+ return _bundle_literal (cast (ComplianceProof , items [0 ]))
324+ return _bundle_literal (cast (ComplianceProof , compliance_proofs ))
323325
324326
325327def _is_path_tuple (value : Any ) -> bool :
@@ -713,7 +715,7 @@ def _network_module(network: str) -> Any:
713715 "FREEZE_LIST_INDEX_MAPPING" , "FREEZE_LIST_LAST_INDEX_MAPPING" , "FREEZE_LIST_MAPPING" , "FREEZE_LIST_ROOT_MAPPING" ,
714716 "KNOWN_TOKEN_FREEZELISTS" , "PROOF_SIBLINGS" , "ZERO_ADDRESS" ,
715717 "AsyncFreezeListProofs" , "FreezeListError" , "FreezeListProofs" , "FrozenAddressError" ,
716- "ComplianceProofContext" , "MerkleProofInput" , "MerkleProofPair" , "ComplianceProofs " ,
718+ "ComplianceProofContext" , "MerkleProofInput" , "MerkleProofPair" , "ComplianceProof " ,
717719 "address_to_field_int" , "async_freezelist_program" , "build_tree" , "format_merkle_proof" ,
718720 "format_merkle_proof_pair" , "freezelist_from_imports" , "freezelist_program" , "generate_freezelist_proof" ,
719721 "generate_leaves" , "hash_two" , "leaf_indices" , "literal_compliance_proof" , "sibling_path" ,
0 commit comments