OpenTermLoanManagerFactory
\
Constructor
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
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:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The initialization arguments to use for the instance deployment, if any. |
1 |
|
|
| The salt to use in the contract creation process. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the deployed proxy contract. |
\
defaultImplementation
defaultImplementation
The address of an implementation for proxies.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
defaultVersion
defaultVersion
The default version.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
disableUpgradePath
disableUpgradePath
Disables upgrading from a version to a version of a implementation. Only the Governor can call this function.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The starting version of the upgrade path. |
1 |
|
|
| The destination version of the upgrade path. |
\
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:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The starting version of the upgrade path. |
1 |
|
|
| The destination version of the upgrade path. |
2 |
|
|
| The address of the migrator, if any. |
\
getInstanceAddress
getInstanceAddress
Returns the deterministic address of a potential proxy, given some arguments and salt.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The initialization arguments to be used when deploying the proxy. |
1 |
|
|
| The salt to be used when deploying the proxy. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The deterministic address of a potential proxy. |
\
implementationOf
implementationOf
Returns the address of an implementation version.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The implementation version. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the implementation. |
\
isInstance
isInstance
Returns if a given address has been deployed by this factory/
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
mapleGlobals
mapleGlobals
The address of the MapleGlobals contract.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
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:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The old version. |
1 |
|
|
| The new version. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of a migrator contract. |
\
registerImplementation
registerImplementation
Registers the address of an implementation contract as a version, with an optional initializer. Only the Governor can call this function.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The version to register. |
1 |
|
|
| The address of the implementation. |
2 |
|
|
| The address of the initializer, if any. |
\
setDefaultVersion
setDefaultVersion
Sets the default version. Only the Governor can call this function.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The implementation version to set as the default. |
\
setGlobals
setGlobals
Sets the Maple Globals contract. Only the Governor can call this function.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of a Maple Globals contract. |
\
upgradeEnabledForPath
upgradeEnabledForPath
Whether the upgrade is enabled for a path from a version to another version.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
| |
1 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
upgradeInstance
upgradeInstance
Upgrades the calling proxy contract's implementation, with some migration arguments.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The implementation version to upgrade the proxy contract to. |
1 |
|
|
| The migration arguments, if any. |
\
versionOf
versionOf
Returns the version of an implementation contract.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of an implementation contract. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The version of the implementation contract. |
\
Events
DefaultVersionSet
DefaultVersionSet
A default version was set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The default version. |
\
ImplementationRegistered
ImplementationRegistered
A version of an implementation, at some address, was registered, with an optional initializer.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The version registered. |
1 |
|
|
| The address of the implementation. |
2 |
|
|
| The address of the initializer, if any. |
\
InstanceDeployed
InstanceDeployed
A proxy contract was deployed with some initialization arguments.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The version of the implementation being proxied by the deployed proxy contract. |
1 |
|
|
| The address of the proxy contract deployed. |
2 |
|
|
| The arguments used to initialize the proxy contract, if any. |
\
InstanceUpgraded
InstanceUpgraded
A instance has upgraded by proxying to a new implementation, with some migration arguments.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the proxy contract. |
1 |
|
|
| The initial implementation version being proxied. |
2 |
|
|
| The new implementation version being proxied. |
3 |
|
|
| The arguments used to migrate, if any. |
\
MapleGlobalsSet
MapleGlobalsSet
The MapleGlobals was set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of a Maple Globals contract. |
\
UpgradePathDisabled
UpgradePathDisabled
An upgrade path was disabled, with an optional migrator contract.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The starting version of the upgrade path. |
1 |
|
|
| The destination version of the upgrade path. |
\
UpgradePathEnabled
UpgradePathEnabled
An upgrade path was enabled, with an optional migrator contract.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The starting version of the upgrade path. |
1 |
|
|
| The destination version of the upgrade path. |
2 |
|
|
| The address of the migrator, if any. |
\
Last updated