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
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.