@toon-protocol/client 3.1.1 → 3.2.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/cli/main.js CHANGED
@@ -542,7 +542,7 @@ function buildClientConfig(settings, keys) {
542
542
  };
543
543
  }
544
544
  async function defaultCreateClient(config) {
545
- const module = await import("../client-AV355FHQ.js");
545
+ const module = await import("../client-SCEP67S5.js");
546
546
  const factory = module.ToonClient;
547
547
  if (factory === void 0) {
548
548
  throw new Error(
@@ -972,7 +972,14 @@ async function run4(ctx) {
972
972
  } else {
973
973
  ctx.out.line("Routes:");
974
974
  ctx.out.rows(
975
- description.routes.map((r) => [r.prefix, formatAmount(r.price, asset)])
975
+ description.routes.map((r) => [
976
+ r.prefix,
977
+ // A route's own carriage pin, where it has one (TOON_Network#111).
978
+ // Beside the price, because a route priced and not qualified reads as
979
+ // one you can simply pay for — which is how the devnet relay read for
980
+ // as long as it pinned BTP and said nothing.
981
+ r.requiredTransport === void 0 ? formatAmount(r.price, asset) : `${formatAmount(r.price, asset)} (${r.requiredTransport} carriage)`
982
+ ])
976
983
  );
977
984
  }
978
985
  });