UNPKG

@hashgraph/sdk

Version:
20 lines (16 loc) 523 B
// SPDX-License-Identifier: Apache-2.0 import TokenId from "../token/TokenId.js"; import ObjectMap from "../ObjectMap.js"; /** * @namespace proto * @typedef {import("@hashgraph/proto").proto.ITokenBalance} HieroProto.proto.ITokenBalance * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID */ /** * @augments {ObjectMap<TokenId, number | null>} */ export default class NullableTokenDecimalMap extends ObjectMap { constructor() { super((s) => TokenId.fromString(s)); } }