MetadataFieldTypeValues

Variable: MetadataFieldTypeValues

Properties overview

  • field: readonly field: {
    code: 5n;
    inputType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
    storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
    };
  • image: readonly image: {
    code: 3n;
    inputType: "string";
    storedType: typeof Text;
    };
  • map: readonly map: {
    code: 6n;
    inputType: typeof Metadata;
    storedType: typeof Metadata;
    };
  • string: readonly string: {
    code: 1n;
    inputType: "string";
    storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
    };
  • text: readonly text: {
    code: 2n;
    inputType: "string";
    storedType: typeof Text;
    };
  • tree: readonly tree: {
    code: 7n;
    inputType: typeof MetadataTree;
    storedType: typeof MetadataTree;
    };
  • url: readonly url: {
    code: 4n;
    inputType: "string";
    storedType: typeof Text;
    };
const MetadataFieldTypeValues: {
  field: {
     code: 5n;
     inputType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
     storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
    };
  image: {
     code: 3n;
     inputType: "string";
     storedType: typeof Text;
    };
  map: {
     code: 6n;
     inputType: typeof Metadata;
     storedType: typeof Metadata;
    };
  string: {
     code: 1n;
     inputType: "string";
     storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
    };
  text: {
     code: 2n;
     inputType: "string";
     storedType: typeof Text;
    };
  tree: {
     code: 7n;
     inputType: typeof MetadataTree;
     storedType: typeof MetadataTree;
    };
  url: {
     code: 4n;
     inputType: "string";
     storedType: typeof Text;
    };
};

Defined in: packages/nft/src/metadata/metadata.ts:595

Mapping of metadata field types to their code values and associated types.

Type declaration

field

readonly field: {
  code: 5n;
  inputType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
  storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
};

field.code

readonly code: 5n = 5n;

field.inputType

readonly inputType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field = Field;

field.storedType

readonly storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field = Field;

image

readonly image: {
  code: 3n;
  inputType: "string";
  storedType: typeof Text;
};

image.code

readonly code: 3n = 3n;

image.inputType

readonly inputType: "string" = "string";

image.storedType

readonly storedType: typeof Text = Text;

map

readonly map: {
  code: 6n;
  inputType: typeof Metadata;
  storedType: typeof Metadata;
};

map.code

readonly code: 6n = 6n;

map.inputType

readonly inputType: typeof Metadata = Metadata;

map.storedType

readonly storedType: typeof Metadata = Metadata;

string

readonly string: {
  code: 1n;
  inputType: "string";
  storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field;
};

string.code

readonly code: 1n = 1n;

string.inputType

readonly inputType: "string" = "string";

string.storedType

readonly storedType: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field = Field;

text

readonly text: {
  code: 2n;
  inputType: "string";
  storedType: typeof Text;
};

text.code

readonly code: 2n = 2n;

text.inputType

readonly inputType: "string" = "string";

text.storedType

readonly storedType: typeof Text = Text;

tree

readonly tree: {
  code: 7n;
  inputType: typeof MetadataTree;
  storedType: typeof MetadataTree;
};

tree.code

readonly code: 7n = 7n;

tree.inputType

readonly inputType: typeof MetadataTree = MetadataTree;

tree.storedType

readonly storedType: typeof MetadataTree = MetadataTree;

url

readonly url: {
  code: 4n;
  inputType: "string";
  storedType: typeof Text;
};

url.code

readonly code: 4n = 4n;

url.inputType

readonly inputType: "string" = "string";

url.storedType

readonly storedType: typeof Text = Text;