Class: BiatecClammPoolFactory
A factory to create and deploy one or more instance of the BiatecClammPool smart contract and to create one or more app clients to interact with those (or other) app instances
Constructors
Constructor
new BiatecClammPoolFactory(
params):BiatecClammPoolFactory
Creates a new instance of BiatecClammPoolFactory
Parameters
params
Omit<AppFactoryParams, "appSpec">
The parameters to initialise the app factory with
Returns
BiatecClammPoolFactory
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 BiatecClammPool 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 BiatecClammPool 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 BiatecClammPool 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