@ton/core
Version:
Core TypeScript library that implements low level primitives for TON blockchain.
31 lines (30 loc) • 910 B
JavaScript
/**
* 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 __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExternalAddress = void 0;
const symbol_inspect_1 = __importDefault(require("symbol.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 = symbol_inspect_1.default;
;