@t2000/sdk 10.20.0 → 10.20.2

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.cjs CHANGED
@@ -1154,7 +1154,7 @@ async function payWithMpp(args) {
1154
1154
  const pick = await pickSuiExactRequirements(probe, client.network);
1155
1155
  if (pick.kind === "payable") {
1156
1156
  const requirements = pick.requirements;
1157
- const { isX402EscrowRequirements } = await import('@t2000/x402');
1157
+ const { isX402EscrowRequirements } = await import('@t2000/sui-x402');
1158
1158
  if (isX402EscrowRequirements(requirements)) {
1159
1159
  const escrow = requirements.extra.escrow;
1160
1160
  const price = atomicToHuman(
@@ -1224,7 +1224,7 @@ async function pickSuiExactRequirements(response, network) {
1224
1224
  const want = `sui:${network === "testnet" ? "testnet" : "mainnet"}`;
1225
1225
  const entry = body2.accepts?.find((a) => a.scheme === "exact" && a.network === want);
1226
1226
  if (!entry) return { kind: "none" };
1227
- const { isX402EscrowRequirements } = await import('@t2000/x402');
1227
+ const { isX402EscrowRequirements } = await import('@t2000/sui-x402');
1228
1228
  if (hasCompleteSuimppChallenge(entry) || isX402EscrowRequirements(entry)) {
1229
1229
  return { kind: "payable", requirements: entry };
1230
1230
  }
@@ -1242,7 +1242,7 @@ async function payViaX402(args) {
1242
1242
  { reason: "incomplete-x402-accepts" }
1243
1243
  );
1244
1244
  }
1245
- const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import('@t2000/x402');
1245
+ const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import('@t2000/sui-x402');
1246
1246
  const amountRaw = BigInt(requirements.maxAmountRequired);
1247
1247
  assertWithinMaxPrice(atomicToHuman(amountRaw, await assetDecimals(requirements.asset)), options.maxPrice);
1248
1248
  const migrationGasSui = await ensureAddressBalanceCovers({