UNPKG

@ton/core

Version:

Core TypeScript library that implements low level primitives for TON blockchain.

28 lines (27 loc) 742 B
"use strict"; /** * Copyright (c) Whales Corp. * All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExternalAddress = void 0; const inspect_1 = require("../inspect"); class ExternalAddress { static isAddress(src) { return src instanceof ExternalAddress; } constructor(value, bits) { this[_a] = () => this.toString(); this.value = value; this.bits = bits; } toString() { return `External<${this.bits}:${this.value}>`; } } exports.ExternalAddress = ExternalAddress; _a = inspect_1.inspectSymbol;