FractionTokenFactory
Source: contracts/core/factories/FractionTokenFactory.sol · Guide: fractionalization · Upgradeable (UUPS proxy)
Functions that change state
Function
Who can call
Also
createFractionToken(uint256 fractionId, string name, string symbol, uint256 maxSharesPerWallet, bool burnable)Checked inside the function
initialize(address _fractionalizeContract)Once, when the proxy is initialised
renounceOwnership()The owner
transferOwnership(address newOwner)The owner
updateFractionalizeContract(address newFractionalizeContract)onlyOwnerupdateImplementation(address newImplementation)onlyOwnerupgradeTo(address newImplementation)onlyOwner (via _authorizeUpgrade)upgradeToAndCall(address newImplementation, bytes data)onlyOwner (via _authorizeUpgrade)payable
Read functions
Anyone can call these; they change nothing.
Function
Returns
createdTokens(uint256)address
fractionalizeContract()address
fractionIdToToken(uint256)address
fractionTokenImplementation()address
getAllCreatedTokens()address[]
getCreatedTokenCount()uint256
getTokenByFractionId(uint256 fractionId)address tokenAddress
isCreatedToken(address)bool
isToken(address tokenAddress)bool
owner()address
proxiableUUID()bytes32
Events
Event
AdminChanged(address previousAdmin, address newAdmin)BeaconUpgraded(address beacon indexed)FractionTokenCreated(address tokenAddress indexed, uint256 fractionId indexed, string name, string symbol)ImplementationUpdated(address oldImplementation indexed, address newImplementation indexed)Initialized(uint8 version)OwnershipTransferred(address previousOwner indexed, address newOwner indexed)Upgraded(address implementation indexed)Errors
No custom errors; failures revert with a reason string.