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
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(provider, factoryAddress, signer) | Create a new instance of the Factory class. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| 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 |