@t2000/sdk 10.19.0 → 10.20.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/browser.cjs CHANGED
@@ -557,7 +557,7 @@ async function payWithMpp(args) {
557
557
  const pick = await pickSuiExactRequirements(probe, client.network);
558
558
  if (pick.kind === "payable") {
559
559
  const requirements = pick.requirements;
560
- const { isX402EscrowRequirements } = await import('@suimpp/mpp/x402');
560
+ const { isX402EscrowRequirements } = await import('@t2000/x402');
561
561
  if (isX402EscrowRequirements(requirements)) {
562
562
  const escrow = requirements.extra.escrow;
563
563
  const price = atomicToHuman(
@@ -627,7 +627,7 @@ async function pickSuiExactRequirements(response, network) {
627
627
  const want = `sui:${network === "testnet" ? "testnet" : "mainnet"}`;
628
628
  const entry = body.accepts?.find((a) => a.scheme === "exact" && a.network === want);
629
629
  if (!entry) return { kind: "none" };
630
- const { isX402EscrowRequirements } = await import('@suimpp/mpp/x402');
630
+ const { isX402EscrowRequirements } = await import('@t2000/x402');
631
631
  if (hasCompleteSuimppChallenge(entry) || isX402EscrowRequirements(entry)) {
632
632
  return { kind: "payable", requirements: entry };
633
633
  }
@@ -645,7 +645,7 @@ async function payViaX402(args) {
645
645
  { reason: "incomplete-x402-accepts" }
646
646
  );
647
647
  }
648
- const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import('@suimpp/mpp/x402');
648
+ const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import('@t2000/x402');
649
649
  const amountRaw = BigInt(requirements.maxAmountRequired);
650
650
  assertWithinMaxPrice(atomicToHuman(amountRaw, await assetDecimals(requirements.asset)), options.maxPrice);
651
651
  const migrationGasSui = await ensureAddressBalanceCovers({