@toon-protocol/sdk 0.5.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -539,6 +539,15 @@ interface NodeConfig {
539
539
  ilpAddress?: string;
540
540
  /** BTP endpoint URL advertised in kind:10032 announcements */
541
541
  btpEndpoint?: string;
542
+ /**
543
+ * ILP-over-HTTP endpoint URL (RFC-0035) advertised in kind:10032, for
544
+ * stateless one-shot writes (`POST /ilp`). With the shared transport server,
545
+ * this is typically the same host/port as `btpEndpoint` (e.g.
546
+ * `http://host:3000/ilp`).
547
+ */
548
+ httpEndpoint?: string;
549
+ /** Whether `httpEndpoint` accepts an HTTP Upgrade to BTP (default: false). */
550
+ supportsUpgrade?: boolean;
542
551
  /** Asset code (default: 'USD') */
543
552
  assetCode?: string;
544
553
  /** Asset scale (default: 6) */
package/dist/index.js CHANGED
@@ -568,6 +568,8 @@ function createNode(config) {
568
568
  ilpAddress: resolvedIlpAddress,
569
569
  ilpAddresses: resolvedIlpAddresses,
570
570
  btpEndpoint: config.btpEndpoint ?? "",
571
+ ...config.httpEndpoint !== void 0 && { httpEndpoint: config.httpEndpoint },
572
+ ...config.supportsUpgrade !== void 0 && { supportsUpgrade: config.supportsUpgrade },
571
573
  assetCode: config.assetCode ?? "USD",
572
574
  assetScale: config.assetScale ?? 6,
573
575
  feePerByte: String(config.feePerByte ?? 0n)