Class ContractPackageHash

Represents a contract package hash within the system, with support for prefixed and JSON representations.

Hierarchy

  • ContractPackageHash

Constructors

Properties

hash: Hash

The hash object representing the contract package.

originPrefix: string

The original prefix of the contract package hash string, if any (e.g., "hash-", "contract-package-wasm-", "contract-package-").

Methods

  • Converts the ContractPackageHash instance to its JSON representation.

    Returns

    A string representation of the ContractPackageHash, including the original prefix.

    Returns string

  • Returns the contract package hash as a prefixed string.

    Returns

    The contract package hash prefixed with ContractPackage.

    Returns string

Generated using TypeDoc