@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.cjs +3 -3
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.js +3 -3
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1148,7 +1148,7 @@ async function payWithMpp(args) {
|
|
|
1148
1148
|
const pick = await pickSuiExactRequirements(probe, client.network);
|
|
1149
1149
|
if (pick.kind === "payable") {
|
|
1150
1150
|
const requirements = pick.requirements;
|
|
1151
|
-
const { isX402EscrowRequirements } = await import('@
|
|
1151
|
+
const { isX402EscrowRequirements } = await import('@t2000/x402');
|
|
1152
1152
|
if (isX402EscrowRequirements(requirements)) {
|
|
1153
1153
|
const escrow = requirements.extra.escrow;
|
|
1154
1154
|
const price = atomicToHuman(
|
|
@@ -1218,7 +1218,7 @@ async function pickSuiExactRequirements(response, network) {
|
|
|
1218
1218
|
const want = `sui:${network === "testnet" ? "testnet" : "mainnet"}`;
|
|
1219
1219
|
const entry = body2.accepts?.find((a) => a.scheme === "exact" && a.network === want);
|
|
1220
1220
|
if (!entry) return { kind: "none" };
|
|
1221
|
-
const { isX402EscrowRequirements } = await import('@
|
|
1221
|
+
const { isX402EscrowRequirements } = await import('@t2000/x402');
|
|
1222
1222
|
if (hasCompleteSuimppChallenge(entry) || isX402EscrowRequirements(entry)) {
|
|
1223
1223
|
return { kind: "payable", requirements: entry };
|
|
1224
1224
|
}
|
|
@@ -1236,7 +1236,7 @@ async function payViaX402(args) {
|
|
|
1236
1236
|
{ reason: "incomplete-x402-accepts" }
|
|
1237
1237
|
);
|
|
1238
1238
|
}
|
|
1239
|
-
const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import('@
|
|
1239
|
+
const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import('@t2000/x402');
|
|
1240
1240
|
const amountRaw = BigInt(requirements.maxAmountRequired);
|
|
1241
1241
|
assertWithinMaxPrice(atomicToHuman(amountRaw, await assetDecimals(requirements.asset)), options.maxPrice);
|
|
1242
1242
|
const migrationGasSui = await ensureAddressBalanceCovers({
|