Class: DefaultAccountContract
defaults.DefaultAccountContract
Base class for implementing an account contract. Requires that the account uses the default entrypoint method signature.
Implements
AccountContract
Constructors
constructor
• new DefaultAccountContract(): DefaultAccountContract
Returns
Methods
getAuthWitnessProvider
▸ getAuthWitnessProvider(address
): AuthWitnessProvider
Parameters
Name | Type |
---|---|
address | CompleteAddress |
Returns
AuthWitnessProvider
Implementation of
AccountContract.getAuthWitnessProvider
getContractArtifact
▸ getContractArtifact(): Promise
<ContractArtifact
>
Returns
Promise
<ContractArtifact
>
Implementation of
AccountContract.getContractArtifact
getDeploymentFunctionAndArgs
▸ getDeploymentFunctionAndArgs(): Promise
<undefined
| { constructorArgs
: any
[] ; constructorName
: string
}>
Returns
Promise
<undefined
| { constructorArgs
: any
[] ; constructorName
: string
}>
Implementation of
AccountContract.getDeploymentFunctionAndArgs
getInterface
▸ getInterface(address
, nodeInfo
): AccountInterface
Parameters
Name | Type |
---|---|
address | CompleteAddress |
nodeInfo | NodeInfo |
Returns
AccountInterface
Implementation of
AccountContract.getInterface