Migratable
contract Migratable
Source: migrations/Migratable.sol
Reference
Events
Migrated
event Migrated(string contractName, string migrationId)
Emitted when the contract applies a migration.
- Parameters:
contractName
- Name of the Contract.migrationId
- Identifier of the migration applied.
Modifiers
isInitializer
modifier isInitializer(string contractName, string migrationId)
Modifier to use in the initialization function of a contract.
- Parameters:
contractName
- Name of the contract.migrationId
- Identifier of the migration.
isMigration
modifier isMigration(string contractName, string requiredMigrationId, string newMigrationId)
Modifier to use in the migration of a contract.
- Parameters:
contractName
- Name of the contract.requiredMigrationId
- Identifier of the previous migration, required to apply new one.newMigrationId
- Identifier of the new migration to be applied.
Functions
initialize
function initialize() public
Initializer that marks the contract as initialized. It is important to run this if you had deployed a previous version of a Migratable contract. For more information see https://github.com/zeppelinos/zos-lib/issues/158.
- Modifiers:
- isInitializer
isMigrated
function isMigrated(string contractName, string migrationId) public view returns (bool)
Returns true if the contract migration was applied.
- Parameters:
contractName
- Name of the contract.migrationId
- Identifier of the migration.- Returns:
- true if the contract migration was applied, false otherwise.