TokenFactory
Author: Capsign Inc.
This contract is used to deploy new token contracts.
State Variables
implementations
allTokens
Functions
constructor
addTokenImplementation
createToken
createToken clones the implementation associated with the given tokenType, then initializes it for the owner.
Parameters
tokenImplId
bytes32
The identifier of the token implementation.
initCallData
bytes
The call data to initialize the token contract.
Returns
token
address
The address of the newly deployed token contract.
getAllTokens
Returns the full list of deployed asset addresses.
_getRevertMsg
Returns the revert message from a transaction.
Parameters
_returnData
bytes
The return data from the transaction.
Returns
<none>
string
The revert message.
Events
TokenFactoryCreated
Emitted when a new token factory is created.
Parameters
tokenFactoryAddress
address
The address of the newly deployed token factory contract.
TokenCreated
Emitted when a new token is created.
Parameters
tokenAddress
address
The address of the newly deployed token contract.
creator
address
The creator of the token contract.
tokenImplId
bytes32
The identifier of the token implementation.
TokenImplementationAdded
Emitted when a new implementation is added.
Parameters
implementationId
bytes32
The identifier of the implementation.
tokenType
string
The type of the token contract.
implementation
address
The address of the implementation.
requiredSelector
bytes4
The required selector for the implementation.
issued
bool
Whether the token is issued.
Structs
TokenImplementation
Last updated
Was this helpful?