Class ContractOwner<TContract>

Encodes and decodes Contract functions

Type Parameters

  • TContract extends Ownable

Hierarchy

  • ContractOwner

Implements

  • DetectableFeature

Constructors

Properties

Methods

Constructors

Properties

contractWrapper: ContractWrapper<Ownable>
featureName: "Ownable" = FEATURE_OWNER.name
set: {
    prepare: ((...args) => Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>);
    (...args): Promise<TResult>;
} = ...

Type declaration

    • (...args): Promise<TResult>
    • Set the new owner of the contract

      Parameters

      • Rest ...args: [address: string]

      Returns Promise<TResult>

      Remarks

      Can only be called by the current owner.

      Example

      const newOwnerAddress = "{{wallet_address}}";
      await contract.owner.set(newOwnerAddress);

      Twfeature

      Ownable

  • prepare: ((...args) => Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>)
      • (...args): Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>
      • Parameters

        • Rest ...args: [address: string]

        Returns Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>

Methods

Generated using TypeDoc