Algorand TypeScript Testing
    Preparing search index...

    Class ContractContext

    Provides a context for creating contracts and registering created contract instances with test execution context.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a new contract instance and register the created instance with test execution context.

      Type Parameters

      • T extends BaseContract

        Type of contract extending BaseContract

      Parameters

      • type: IConstructor<T>

        The contract class constructor

      • ...args: any[]

        Constructor arguments for the contract

      Returns T

      Proxied instance of the contract

      const ctx = new TestExecutionContext();
      const contract = ctx.contract.create(MyContract);