Interface that any module factory contract should implement (ModuleFactory.sol)

View Source: contracts/modules/ModuleFactory.solarrow-up-right

↗ Extends: IModuleFactoryarrow-up-right, Ownablearrow-up-right ↘ Derived Contracts: KYCTransferManagerFactoryarrow-up-right, ScheduledCheckpointFactoryarrow-up-right, SignedTransferManagerFactoryarrow-up-right, TrackedRedemptionFactoryarrow-up-right, UpgradableModuleFactoryarrow-up-right

ModuleFactory

Contract is abstract

Contract Members

Constants & Variables

//public members
contract IPolymathRegistry public polymathRegistry;
bytes32 public name;
string public title;
string public description;
bool public isCostInPoly;
uint256 public setupCost;

//internal members
string internal initialVersion;
uint8[] internal typesData;
bytes32[] internal tagsData;
string internal constant POLY_ORACLE;
mapping(string => uint24) internal compatibleSTVersionRange;

Functions

Constructor

Arguments

Name

Type

Description

_setupCost

uint256

_polymathRegistry

address

_isCostInPoly

bool

getTypes

⤾ overrides IModuleFactory.getTypesarrow-up-right

⤿ Overridden Implementation(s): MockFactory.getTypesarrow-up-right,MockWrongTypeFactory.getTypesarrow-up-right

Type of the Module factory

Arguments

Name

Type

Description

getTags

⤾ overrides IModuleFactory.getTagsarrow-up-right

⤿ Overridden Implementation(s): TestSTOFactory.getTagsarrow-up-right

Get the tags related to the module factory

Arguments

Name

Type

Description

version

⤾ overrides IModuleFactory.versionarrow-up-right

⤿ Overridden Implementation(s): UpgradableModuleFactory.versionarrow-up-right

Get the version related to the module factory

Arguments

Name

Type

Description

changeSetupCost

⤾ overrides IModuleFactory.changeSetupCostarrow-up-right

Used to change the fee of the setup cost

Arguments

Name

Type

Description

_setupCost

uint256

new setup cost

changeCostAndType

⤾ overrides IModuleFactory.changeCostAndTypearrow-up-right

Used to change the currency and amount of setup cost

Arguments

Name

Type

Description

_setupCost

uint256

new setup cost

_isCostInPoly

bool

new setup cost currency. USD or POLY

changeTitle

⤾ overrides IModuleFactory.changeTitlearrow-up-right

Updates the title of the ModuleFactory

Arguments

Name

Type

Description

_title

string

New Title that will replace the old one.

changeDescription

⤾ overrides IModuleFactory.changeDescriptionarrow-up-right

Updates the description of the ModuleFactory

Arguments

Name

Type

Description

_description

string

New description that will replace the old one.

changeName

⤾ overrides IModuleFactory.changeNamearrow-up-right

Updates the name of the ModuleFactory

Arguments

Name

Type

Description

_name

bytes32

New name that will replace the old one.

changeTags

⤾ overrides IModuleFactory.changeTagsarrow-up-right

Updates the tags of the ModuleFactory

Arguments

Name

Type

Description

_tagsData

bytes32[]

New list of tags

changeSTVersionBounds

⤾ overrides IModuleFactory.changeSTVersionBoundsarrow-up-right

Function use to change the lower and upper bound of the compatible version st

Arguments

Name

Type

Description

_boundType

string

Type of bound

_newVersion

uint8[]

new version array

getLowerSTVersionBounds

⤾ overrides IModuleFactory.getLowerSTVersionBoundsarrow-up-right

Used to get the lower bound

Returns

lower bound

Arguments

Name

Type

Description

getUpperSTVersionBounds

⤾ overrides IModuleFactory.getUpperSTVersionBoundsarrow-up-right

Used to get the upper bound

Returns

upper bound

Arguments

Name

Type

Description

setupCostInPoly

⤾ overrides IModuleFactory.setupCostInPolyarrow-up-right

Get the setup cost of the module

Arguments

Name

Type

Description

_takeFee

Calculates fee in POLY

Arguments

Name

Type

Description

_initializeModule

⤿ Overridden Implementation(s): UpgradableModuleFactory._initializeModulearrow-up-right

Used to initialize the module

Arguments

Name

Type

Description

_module

address

Address of module

_data

bytes

Data used for the intialization of the module factory variables

Last updated

Was this helpful?