How to use the @polkadot/types/codec/Vec.with function in @polkadot/types

To help you get started, we’ve selected a few @polkadot/types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polkadot-js / api / packages / metadata / src / Metadata / v7 / Storage.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      prefix: 'Text',
      // NOTE renamed to items from entries (since Struct already has entries from Map)
      items: Vec.with(StorageEntryMetadata)
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v5 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      name: 'Text',
      prefix: 'Text',
      storage: Option.with(Vec.with(StorageFunctionMetadata)),
      calls: Option.with('Vec'),
      events: Option.with('Vec')
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v5 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      modules: Vec.with(ModuleMetadataV5)
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v2 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      name: 'Text',
      prefix: 'Text',
      storage: Option.with(Vec.with(StorageFunctionMetadata)),
      calls: Option.with('Vec'),
      events: Option.with('Vec')
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v2 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      modules: Vec.with(ModuleMetadataV2)
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v7 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      modules: Vec.with(ModuleMetadataV7)
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v3 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      modules: Vec.with(ModuleMetadataV3)
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v8 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      modules: Vec.with(ModuleMetadataV8)
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v6 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      name: 'Text',
      prefix: 'Text',
      storage: Option.with(Vec.with(StorageEntryMetadata)),
      calls: Option.with('Vec'),
      events: Option.with('Vec'),
      constants: 'Vec'
    }, value);
  }
github polkadot-js / api / packages / metadata / src / Metadata / v4 / Metadata.ts View on Github external
constructor (registry: Registry, value?: any) {
    super(registry, {
      modules: Vec.with(ModuleMetadataV4)
    }, value);
  }