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