Skip to main content

sdk.factory

Home > @openformat/sdk > Factory

Factory class

A class representing a Factory contract that extends the BaseContract class.

BaseContract

Signature:

export declare class Factory extends BaseContract 

Extends: BaseContract

Constructors

ConstructorModifiersDescription
(constructor)(provider, factoryAddress, signer)

Create a new instance of the Factory class.

Methods

MethodModifiersDescription
createConstellation({ name, symbol, decimals, supply, })

Creates a new contract with the given name.

create

createStar({ name, constellation, owner, })

Creates a new contract with the given name.

create

getConstellationFactoryContractAddress(chainId)
getStarFactoryContractAddress(chainId)
processTransaction(tx)

Processes a contract transaction and returns the receipt.

processTransaction