OpenTermLoanManagerFactory
Constructor
Parameters:
Functions
createInstance
createInstance
Deploys a new instance proxying the default implementation version, with some initialization arguments. Uses a nonce and `msg.sender` as a salt for the CREATE2 opcode during instantiation to produce deterministic addresses.
Parameters:
Return Values:
defaultImplementation
defaultImplementation
The address of an implementation for proxies.
Return Values:
defaultVersion
defaultVersion
The default version.
Return Values:
disableUpgradePath
disableUpgradePath
Disables upgrading from a version to a version of a implementation. Only the Governor can call this function.
Parameters:
enableUpgradePath
enableUpgradePath
Enables upgrading from a version to a version of an implementation, with an optional migrator. Only the Governor can call this function.
Parameters:
getInstanceAddress
getInstanceAddress
Returns the deterministic address of a potential proxy, given some arguments and salt.
Parameters:
Return Values:
implementationOf
implementationOf
Returns the address of an implementation version.
Parameters:
Return Values:
isInstance
isInstance
Returns if a given address has been deployed by this factory/
Parameters:
Return Values:
mapleGlobals
mapleGlobals
The address of the MapleGlobals contract.
Return Values:
migratorForPath
migratorForPath
Returns the address of a migrator contract for a migration path (from version, to version). If oldVersion_ == newVersion_, the migrator is an initializer.
Parameters:
Return Values:
registerImplementation
registerImplementation
Registers the address of an implementation contract as a version, with an optional initializer. Only the Governor can call this function.
Parameters:
setDefaultVersion
setDefaultVersion
Sets the default version. Only the Governor can call this function.
Parameters:
setGlobals
setGlobals
Sets the Maple Globals contract. Only the Governor can call this function.
Parameters:
upgradeEnabledForPath
upgradeEnabledForPath
Whether the upgrade is enabled for a path from a version to another version.
Parameters:
Return Values:
upgradeInstance
upgradeInstance
Upgrades the calling proxy contract's implementation, with some migration arguments.
Parameters:
versionOf
versionOf
Returns the version of an implementation contract.
Parameters:
Return Values:
Events
DefaultVersionSet
DefaultVersionSet
A default version was set.
Parameters:
ImplementationRegistered
ImplementationRegistered
A version of an implementation, at some address, was registered, with an optional initializer.
Parameters:
InstanceDeployed
InstanceDeployed
A proxy contract was deployed with some initialization arguments.
Parameters:
InstanceUpgraded
InstanceUpgraded
A instance has upgraded by proxying to a new implementation, with some migration arguments.
Parameters:
MapleGlobalsSet
MapleGlobalsSet
The MapleGlobals was set.
Parameters:
UpgradePathDisabled
UpgradePathDisabled
An upgrade path was disabled, with an optional migrator contract.
Parameters:
UpgradePathEnabled
UpgradePathEnabled
An upgrade path was enabled, with an optional migrator contract.
Parameters:
Last updated