Constructor
new MigrateChainState(options)
Create migration chain state
Parameters:
Name | Type | Description |
---|---|---|
options |
ChainMigratorOptions |
- Source:
Methods
(async) check() → {Promise}
Check if the migration applies to the database
- Source:
Returns:
- Type
- Promise
(async) getBlock(hash) → {Promise.<Block>}
Get Block (old layout)
Parameters:
Name | Type | Description |
---|---|---|
hash |
Hash |
- Source:
Returns:
- Type
- Promise.<Block>
(async) getBlockView(block) → {Promise}
Get block view (old layout)
Parameters:
Name | Type | Description |
---|---|---|
block |
Block |
- Source:
Returns:
- UndoCoins
- Type
- Promise
(async) migrate(b) → {Promise}
Actual migration
Parameters:
Name | Type | Description |
---|---|---|
b |
Batch |
- Source:
Returns:
- Type
- Promise
warning()
Log warnings when skipped.
- Source: