Class ExecutableDeployItem

Represents an executable deploy item, which can be one of several types such as ModuleBytes, StoredContractByHash, etc.

Hierarchy

  • ExecutableDeployItem

Constructors

Properties

moduleBytes?: ModuleBytes

A module bytes deploy item.

storedContractByHash?: StoredContractByHash

A stored contract deploy item referenced by hash.

storedContractByName?: StoredContractByName

A stored contract deploy item referenced by name.

storedVersionedContractByHash?: StoredVersionedContractByHash

A stored versioned contract deploy item referenced by hash.

storedVersionedContractByName?: StoredVersionedContractByName

A stored versioned contract deploy item referenced by name.

A transfer deploy item.

Methods

  • Retrieves an argument by name from the deploy item.

    Returns

    The argument value, or undefined if not found.

    Parameters

    • name: string

      The name of the argument.

    Returns undefined | CLValue

  • Checks if the ExecutableDeployItem is of type ModuleBytes.

    Returns

    true if the ExecutableDeployItem is of type ModuleBytes, false otherwise.

    Returns boolean

  • Checks if the ExecutableDeployItem is of type StoredContractByHash.

    Returns

    true if the ExecutableDeployItem is a stored contract by hash, false otherwise.

    Returns boolean

  • Checks if the ExecutableDeployItem is of type StoredContractByName.

    Returns

    true if the ExecutableDeployItem is a stored contract by name, false otherwise.

    Returns boolean

  • Checks if the ExecutableDeployItem is of type StoredVersionedContractByHash.

    Returns

    true if the ExecutableDeployItem is a stored versioned contract by hash, false otherwise.

    Returns boolean

  • Checks if the ExecutableDeployItem is of type StoredVersionedContractByName.

    Returns

    true if the ExecutableDeployItem is a stored versioned contract by name, false otherwise.

    Returns boolean

  • Checks if the ExecutableDeployItem is of type Transfer.

    Returns

    true if the ExecutableDeployItem is a transfer item, false otherwise.

    Returns boolean

  • Creates a new ModuleBytes object from a Uint8Array of module bytes and a set of RuntimeArgs

    Returns

    A new ExecutableDeployItem created from a new ModuleBytes object built using moduleBytes and args

    Parameters

    • moduleBytes: Uint8Array

      A set of module bytes as a Uint8Array

    • args: Args

      The runtime arguments for the new ModuleBytes object

    Returns ExecutableDeployItem

Generated using TypeDoc