UNPKG

@okxweb3/coin-stellar

Version:

@ok/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers

23 lines 919 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.extendFootprintTtl = void 0; const xdr_1 = __importDefault(require("../xdr")); function extendFootprintTtl(opts) { if ((opts.extendTo ?? -1) <= 0) { throw new RangeError('extendTo has to be positive'); } const extendFootprintOp = new xdr_1.default.ExtendFootprintTtlOp({ ext: new xdr_1.default.ExtensionPoint(0), extendTo: opts.extendTo }); const opAttributes = { body: xdr_1.default.OperationBody.extendFootprintTtl(extendFootprintOp) }; this.setSourceAccount(opAttributes, opts); return new xdr_1.default.Operation(opAttributes); } exports.extendFootprintTtl = extendFootprintTtl; //# sourceMappingURL=extend_footprint_ttl.js.map