@hiero-ledger/sdk
Version:
3 lines (2 loc) • 725 B
JavaScript
import o from"./SemanticVersion.js";import*as r from"@hashgraph/proto";class e{constructor(o){this.protobufVersion=o.protobufVersion,this.servicesVersion=o.servicesVersion,Object.freeze(this)}static _fromProtobuf(r){return new e({protobufVersion:o._fromProtobuf(r.hapiProtoVersion),servicesVersion:o._fromProtobuf(r.hederaServicesVersion)})}_toProtobuf(){return{hapiProtoVersion:this.protobufVersion._toProtobuf(),hederaServicesVersion:this.servicesVersion._toProtobuf()}}static fromBytes(o){return e._fromProtobuf(r.proto.NetworkGetVersionInfoResponse.decode(o))}toBytes(){return r.proto.NetworkGetVersionInfoResponse.encode(this._toProtobuf()).finish()}}export{e as default};
//# sourceMappingURL=NetworkVersionInfo.js.map