@bbachain/spl-token-metadata
Version:
15 lines • 812 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { Metadata } from '../accounts/Metadata';
/**
* This is a custom deserializer for TokenMetadata in order to mitigate acounts with corrupted
* data on chain.
*
* Instead of failing the deserialization for the section that is possibly corrupt it just returns
* `null` for the fields that would normally be stored in that section.
*
* This deserializer matches the [fix implemented in the Rust program](https://github.com/metaplex-foundation/metaplex-program-library/blob/df36da5a78fb17e1690247b8041b761d27c83b1b/token-metadata/program/src/deser.rs#L6).
* Also @see ../../../program/src/deser.rs
*/
export declare function deserialize(buf: Buffer, offset?: number): [Metadata, number];
//# sourceMappingURL=metadata-deserializer.d.ts.map