Class: BiatecIdentityProviderFactory
A factory to create and deploy one or more instance of the BiatecIdentityProvider smart contract and to create one or more app clients to interact with those (or other) app instances
Constructors
Constructor
new BiatecIdentityProviderFactory(
params):BiatecIdentityProviderFactory
Creates a new instance of BiatecIdentityProviderFactory
Parameters
params
Omit<AppFactoryParams, "appSpec">
The parameters to initialise the app factory with
Returns
BiatecIdentityProviderFactory
Properties
appFactory
readonlyappFactory:_AppFactory
The underlying AppFactory for when you want to have more flexibility
params
readonlyparams:object
Get parameters to create transactions (create and deploy related calls) for the current app. A good mental model for this is that these parameters represent a deferred transaction creation.
create
create:
object
Gets available create methods
create.createApplication()
createApplication: (
params) =>any
Creates a new instance of the BiatecIdentityProvider smart contract using the createApplication()void ABI method.
Initial setup
Parameters
params
any = ...
The params for the smart contract call
Returns
any
The create params
deployUpdate
deployUpdate:
object
Gets available deployUpdate methods
deployUpdate.updateApplication()
updateApplication: (
params) =>any
Updates an existing instance of the BiatecIdentityProvider smart contract using the updateApplication(uint64,byte[])void ABI method.
addressUdpater from global biatec configuration is allowed to update application
Parameters
params
any
The params for the smart contract call
Returns
any
The deployUpdate params
createTransaction
readonlycreateTransaction:object
Create transactions for the current app
create
create:
object
Gets available create methods
create.createApplication()
createApplication: (
params) =>any
Creates a new instance of the BiatecIdentityProvider smart contract using the createApplication()void ABI method.
Initial setup
Parameters
params
any = ...
The params for the smart contract call
Returns
any
The create transaction
send
readonlysend:object
Send calls to the current app
create
create:
object
Gets available create methods
create.createApplication()
createApplication: (
params) =>Promise<{result:any;appClient:BiatecIdentityProviderClient; }>
Creates a new instance of the BiatecIdentityProvider smart contract using an ABI method call using the createApplication()void ABI method.
Initial setup
Parameters
params
any = ...
The params for the smart contract call
Returns
Promise<{ result: any; appClient: BiatecIdentityProviderClient; }>
The create result
Accessors
appName
Get Signature
get appName():
any
The name of the app (from the ARC-32 / ARC-56 app spec or override).
Returns
any
appSpec
Get Signature
get appSpec():
Arc56Contract
The ARC-56 app spec being used
Returns
Arc56Contract
algorand
Get Signature
get algorand():
AlgorandClient
A reference to the underlying AlgorandClient this app factory is using.
Returns
AlgorandClient
Methods
getAppClientById()
getAppClientById(
params):BiatecIdentityProviderClient
Returns a new AppClient client for an app instance of the given ID.
Automatically populates appName, defaultSender and source maps from the factory if not specified in the params.
Parameters
params
AppFactoryAppClientParams
The parameters to create the app client
Returns
The AppClient