UNPKG

@x5e/gink

Version:

an eventually consistent database

26 lines 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Addressable = void 0; class Addressable { constructor(address) { this.address = address; } equals(other) { if (!(other instanceof Addressable)) return false; return (other.address.medallion === this.address.medallion && other.address.offset === this.address.offset && other.address.timestamp === this.address.timestamp); } get timestamp() { return this.address.timestamp; } get medallion() { return this.address.medallion; } get offset() { return this.address.offset; } } exports.Addressable = Addressable; //# sourceMappingURL=Addressable.js.map