HasMigrationRun

Storage Map v273 → current

Storage for migration run status.

Explore chain
Queried by: developers

The Big Picture

Internal migration tracking.

Use Cases

  • Verify migration status

From Chain Metadata

Storage for the migration run status.

Purpose & Usage

Purpose

Tracks which migrations have been applied.

Common Query Patterns

  • Check migration status by name

Query Keys

#NameTypeDescription
1
key1
BoundedVec key1 (BoundedVec)

Stored Value

value (bool)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query HasMigrationRun storage
const key1 = 0 as any /* BoundedVec */;

const result = await api.query
  [stringCamelCase("Crowdloan")]
  [stringCamelCase("HasMigrationRun")](
  key1
);

console.log("HasMigrationRun:", result.toHuman());

Runtime Info

Pallet
Crowdloan
Storage Kind
Map
First Version
v273
Current Version
v393