sensible-sdk
Version:
Sensible-SDK
20 lines (19 loc) • 735 B
TypeScript
/// <reference types="node" />
export declare const PROTO_FLAG: Buffer;
export declare const PROTO_FLAG_LEN: number;
export declare const PROTO_TYPE_LEN = 4;
export declare const PROTO_TYPE_OFFSET: number;
export declare const PROTO_VERSION_LEN = 4;
export declare const PROTO_VERSION_OFFSET: number;
export declare const HEADER_LEN: number;
export declare enum PROTO_TYPE {
FT = 1,
UNIQUE = 2,
NFT = 3,
NFT_SELL = 65537
}
export declare function getHeaderLen(): number;
export declare function getFlag(script: Buffer): Buffer;
export declare function getProtoType(script: Buffer): number;
export declare function getProtoVersioin(script: Buffer): number;
export declare function hasProtoFlag(script: Buffer): boolean;