Interface that every module factory contract should implement (IModuleFactory.sol)

View Source: contracts/interfaces/IModuleFactory.sol

↘ Derived Contracts: ModuleFactory

IModuleFactory

Events

event ChangeSetupCost(uint256  _oldSetupCost, uint256  _newSetupCost);
event ChangeCostType(bool  _isOldCostInPoly, bool  _isNewCostInPoly);
event GenerateModuleFromFactory(address  _module, bytes32 indexed _moduleName, address indexed _moduleFactory, address  _creator, uint256  _setupCost, uint256  _setupCostInPoly);
event ChangeSTVersionBound(string  _boundType, uint8  _major, uint8  _minor, uint8  _patch);

Functions

deploy

⤿ Overridden Implementation(s): BlacklistTransferManagerFactory.deploy,CappedSTOFactory.deploy,CountTransferManagerFactory.deploy,DummySTOFactory.deploy,ERC20DividendCheckpointFactory.deploy,EtherDividendCheckpointFactory.deploy,GeneralPermissionManagerFactory.deploy,GeneralTransferManagerFactory.deploy,KYCTransferManagerFactory.deploy,LockUpTransferManagerFactory.deploy,ManualApprovalTransferManagerFactory.deploy,MockBurnFactory.deploy,PercentageTransferManagerFactory.deploy,PLCRVotingCheckpointFactory.deploy,PreSaleSTOFactory.deploy,ScheduledCheckpointFactory.deploy,SignedTransferManagerFactory.deploy,TrackedRedemptionFactory.deploy,USDTieredSTOFactory.deploy,VestingEscrowWalletFactory.deploy,VolumeRestrictionTMFactory.deploy,WeightedVoteCheckpointFactory.deploy

Arguments

Name

Type

Description

_data

bytes

version

⤿ Overridden Implementation(s): ModuleFactory.version,UpgradableModuleFactory.version

Get the tags related to the module factory

Arguments

Name

Type

Description

name

Get the tags related to the module factory

Arguments

Name

Type

Description

title

Returns the title associated with the module

Arguments

Name

Type

Description

description

Returns the description associated with the module

Arguments

Name

Type

Description

setupCost

Get the setup cost of the module in USD

Arguments

Name

Type

Description

getTypes

⤿ Overridden Implementation(s): MockFactory.getTypes,MockWrongTypeFactory.getTypes,ModuleFactory.getTypes

Type of the Module factory

Arguments

Name

Type

Description

getTags

⤿ Overridden Implementation(s): ModuleFactory.getTags,TestSTOFactory.getTags

Get the tags related to the module factory

Arguments

Name

Type

Description

changeSetupCost

⤿ Overridden Implementation(s): ModuleFactory.changeSetupCost

Used to change the setup fee

Arguments

Name

Type

Description

_newSetupCost

uint256

New setup fee

changeCostAndType

⤿ Overridden Implementation(s): ModuleFactory.changeCostAndType

Used to change the currency and amount setup cost

Arguments

Name

Type

Description

_setupCost

uint256

new setup cost

_isCostInPoly

bool

new setup cost currency. USD or POLY

changeSTVersionBounds

⤿ Overridden Implementation(s): ModuleFactory.changeSTVersionBounds

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

setupCostInPoly

⤿ Overridden Implementation(s): ModuleFactory.setupCostInPoly

Get the setup cost of the module

Arguments

Name

Type

Description

getLowerSTVersionBounds

⤿ Overridden Implementation(s): ModuleFactory.getLowerSTVersionBounds

Used to get the lower bound

Returns

Lower bound

Arguments

Name

Type

Description

getUpperSTVersionBounds

⤿ Overridden Implementation(s): ModuleFactory.getUpperSTVersionBounds

Used to get the upper bound

Returns

Upper bound

Arguments

Name

Type

Description

changeTags

⤿ Overridden Implementation(s): ModuleFactory.changeTags

Updates the tags of the ModuleFactory

Arguments

Name

Type

Description

_tagsData

bytes32[]

New list of tags

changeName

⤿ Overridden Implementation(s): ModuleFactory.changeName

Updates the name of the ModuleFactory

Arguments

Name

Type

Description

_name

bytes32

New name that will replace the old one.

changeDescription

⤿ Overridden Implementation(s): ModuleFactory.changeDescription

Updates the description of the ModuleFactory

Arguments

Name

Type

Description

_description

string

New description that will replace the old one.

changeTitle

⤿ Overridden Implementation(s): ModuleFactory.changeTitle

Updates the title of the ModuleFactory

Arguments

Name

Type

Description

_title

string

New Title that will replace the old one.

Last updated

Was this helpful?