UNPKG

@okxweb3/coin-stellar

Version:

@okxweb3/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

24 lines 968 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) { var _a; if (((_a = opts.extendTo) !== null && _a !== void 0 ? _a : -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