Class: MigrateMigrationStateV1

MigrateMigrationStateV1(options)

new MigrateMigrationStateV1(options)

Create migration migration state

Parameters:
Name Type Description
options ChainMigratorOptions
Source:

Members

options :WalletMigratorOptions

Type:
  • WalletMigratorOptions
Source:

Methods

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

We always migrate.

Source:
Returns:
Type
Promise.<MigrationType>

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

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

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

Migrate Migration State.

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

MigrateMigrationStateV1(options)

new MigrateMigrationStateV1(options)

Create Migration State migration object.

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>

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

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

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

Migrate Migration State.

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