@hiero-ledger/sdk
Version:
3 lines (2 loc) • 764 B
JavaScript
import*as e from"@hashgraph/proto";import t from"./FeeSchedule.js";class r{constructor(e={}){this.current=e.currentFeeSchedule,this.next=e.nextFeeSchedule}static fromBytes(t){return r._fromProtobuf(e.proto.CurrentAndNextFeeSchedule.decode(t))}static _fromProtobuf(e){return new r({currentFeeSchedule:null!=e.currentFeeSchedule?t._fromProtobuf(e.currentFeeSchedule):void 0,nextFeeSchedule:null!=e.nextFeeSchedule?t._fromProtobuf(e.nextFeeSchedule):void 0})}_toProtobuf(){return{currentFeeSchedule:null!=this.current?this.current._toProtobuf():void 0,nextFeeSchedule:null!=this.next?this.next._toProtobuf():void 0}}toBytes(){return e.proto.CurrentAndNextFeeSchedule.encode(this._toProtobuf()).finish()}}export{r as default};
//# sourceMappingURL=FeeSchedules.js.map