Class: MigrateCoinSelection

MigrateCoinSelection(options)

new MigrateCoinSelection(options)

Parameters:
Name Type Description
options WalletMigratorOptions
Source:

Members

options :WalletMigratorOptions

Type:
  • WalletMigratorOptions
Source:

Methods

(async) check() → {Promise.<MigrationType>}

We always migrate.

Source:
Returns:
Type
Promise.<MigrationType>

decodeProgress(data) → {Object}

Get migration info.

Parameters:
Name Type Description
data Buffer
Source:
Returns:
Type
Object

encodeProgress() → {Buffer}

Source:
Returns:
Type
Buffer

(async) migrate(b, ctx) → {Promise}

Actual migration

Parameters:
Name Type Description
b Batch
ctx WalletMigrationContext
Source:
Returns:
Type
Promise

(async) migrateWallet(wid, ctx) → {Promise}

Parameters:
Name Type Description
wid Number
ctx WalletMigrationContext
Source:
Returns:
Type
Promise