Skip to main content

Class: DefaultAccountContract

defaults.DefaultAccountContract

Base class for implementing an account contract. Requires that the account uses the default entrypoint method signature.

Hierarchy

Implements

  • AccountContract

Constructors

constructor

new DefaultAccountContract(artifact): DefaultAccountContract

Parameters

NameType
artifactContractArtifact

Returns

DefaultAccountContract

Properties

artifact

Private artifact: ContractArtifact

Methods

getAuthWitnessProvider

getAuthWitnessProvider(address): AuthWitnessProvider

Parameters

NameType
addressCompleteAddress

Returns

AuthWitnessProvider

Implementation of

AccountContract.getAuthWitnessProvider


getContractArtifact

getContractArtifact(): ContractArtifact

Returns

ContractArtifact

Implementation of

AccountContract.getContractArtifact


getDeploymentArgs

getDeploymentArgs(): undefined | any[]

Returns

undefined | any[]

Implementation of

AccountContract.getDeploymentArgs


getInterface

getInterface(address, nodeInfo): AccountInterface

Parameters

NameType
addressCompleteAddress
nodeInfoNodeInfo

Returns

AccountInterface

Implementation of

AccountContract.getInterface