x402-proxy 0.10.12 → 0.11.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/README.md +3 -3
- package/dist/{Credential-0iRzpJkF.js → Mcp-CKylLH8N.js} +209 -211
- package/dist/accounts-D5u2KBgr.js +4 -0
- package/dist/{hashTypedData-CtEdfx4y.js → accounts-D9KsVVpJ.js} +228 -3
- package/dist/{auth-J9VuNMoG.js → auth-CaCZiNCk.js} +3 -3
- package/dist/bin/cli.js +46 -51
- package/dist/{decodeFunctionData-JPOUdvil.js → call-CNxk2xpg.js} +2084 -144
- package/dist/{decodeFunctionData-DuFcwhC_.js → call-DdUUzMfg.js} +11 -16
- package/dist/{ccip-C6CQOJYv.js → ccip-Cc1Fdazz.js} +1 -1
- package/dist/{ccip-Bx-zoUCJ.js → ccip-IumNC20V.js} +13 -3
- package/dist/{ccip-C2k1DD1T.js → ccip-JDVib6lf.js} +1 -1
- package/dist/{ccip-RZzsZ5Mv.js → ccip-RzF9aX_O.js} +3 -4
- package/dist/{chain-CafcHffR.js → chain-C_3Km9Dx.js} +1 -1
- package/dist/{client-Bcl2uC6u.js → client-C2DwSbYN.js} +1 -2
- package/dist/{Sse-DGR-tH7K.js → client-DqtxTnu6.js} +10249 -6224
- package/dist/client-DuqEc8Iw.js +3 -0
- package/dist/{client-DZV1cVsW.js → client-uAaF6lv2.js} +2 -2
- package/dist/{derive-DNUl8LU9.js → config-cyNyKO4-.js} +1024 -919
- package/dist/{dist-DM5_F3r5.js → dist-CFt2UZ4W.js} +1 -1
- package/dist/{dist-DxJCYyL5.js → dist-Cwt2qrTK.js} +2 -2
- package/dist/{helpers-ChcFbdC0.js → helpers-DebIs_21.js} +2 -2
- package/dist/{sendRawTransactionSync-DvSkhZtW.js → http-J0KYM-2Y.js} +2186 -169
- package/dist/index.d.ts +0 -1
- package/dist/index.js +30107 -771
- package/dist/{index.node-l8K03uWn.js → index.node-xc-jRJ78.js} +1 -1
- package/dist/{localBatchGatewayRequest-DOdQ9bR7.js → localBatchGatewayRequest-0gr8vzH3.js} +14 -2
- package/dist/{localBatchGatewayRequest-DQkbZaSy.js → localBatchGatewayRequest-CBsFXIAU.js} +2 -2
- package/dist/{localBatchGatewayRequest-C-RPJyDO.js → localBatchGatewayRequest-CPqqSJcB.js} +2 -2
- package/dist/{schemas-BxMFYNbH.js → schemas-DzZjufD1.js} +1 -1
- package/dist/{secp256k1-BZpiyffY.js → secp256k1-Bp7LcNvI.js} +2 -7
- package/dist/secp256k1-BsaSkXlH.js +2 -0
- package/dist/{secp256k1-BjenrLl5.js → secp256k1-BwSAYyif.js} +2 -2
- package/dist/secp256k1-CHAXu2gP.js +3 -0
- package/dist/{server-D2apWWY9.js → server-Dbsk9dql.js} +2 -2
- package/dist/setup-BdSfEdx4.js +3 -0
- package/dist/{setup-BY4J49Lv.js → setup-C10O8N36.js} +16 -33
- package/dist/{hmac-59IlS_by.js → sha2-XLg3s2a9.js} +81 -81
- package/dist/{sha256-FAs0qeni.js → sha256-DCLdwsRU.js} +1 -1
- package/dist/{sha3-DbMJRJ3C.js → sha3-03id956K.js} +1 -1
- package/dist/{sha3-CYkWM8Xa.js → sha3-VSia5eGE.js} +1 -1
- package/dist/{sse-qIEKrJEZ.js → sse-kba68iqF.js} +2 -2
- package/dist/status-B2xUewrq.js +3 -0
- package/dist/{status-CD_fCzGf.js → status-DjZdIeES.js} +2 -3
- package/dist/{stdio-BfDjLLnd.js → stdio-CdmkLt8r.js} +3 -3
- package/dist/{streamableHttp-BkayeoEQ.js → streamableHttp-DRntYTFN.js} +2 -2
- package/dist/{types-BmyZIQ8G.js → types-BQ17ZF7g.js} +1 -1
- package/dist/{types-DlqDf-zE.js → types-DH9rDVeP.js} +1 -1
- package/dist/{utils-SeGHMW9O.js → utils-psFtUKLa.js} +53 -53
- package/dist/wallet-BsCgqUun.js +3 -0
- package/dist/{wallet-C4RiduwM.js → wallet-CUCoLEqs.js} +179 -147
- package/package.json +1 -1
- package/dist/Mcp-CSyD7Hxz.js +0 -10
- package/dist/Sse-C-KDPYh0.js +0 -16482
- package/dist/accounts-DsuvWwph.js +0 -232
- package/dist/accounts-DzvAlQRn.js +0 -5
- package/dist/accounts-IG-Cmrwy.js +0 -229
- package/dist/chain-DwfP5RGZ.js +0 -1968
- package/dist/chunk-DBEY4PJZ.js +0 -16
- package/dist/client-1XQsO-Eh.js +0 -5152
- package/dist/client-Co7Fg1lv.js +0 -6388
- package/dist/config-BUQsit4s.js +0 -3
- package/dist/config-DR1Fs_wL.js +0 -6600
- package/dist/config-rvKA3SYT.js +0 -96
- package/dist/hashTypedData-BHmP9dBd.js +0 -859
- package/dist/http-BAtucMbS.js +0 -2060
- package/dist/isAddressEqual-BLrd1Hg1.js +0 -9
- package/dist/isAddressEqual-DsAqfQOD.js +0 -10
- package/dist/parseUnits-CApwcKSD.js +0 -49
- package/dist/parseUnits-cMO2udMe.js +0 -48
- package/dist/secp256k1-CLPUX17u.js +0 -3
- package/dist/setup-wMOAgrsN.js +0 -3
- package/dist/status-_TcPMyzr.js +0 -3
- package/dist/tempo-BcTkftHK.js +0 -17
- package/dist/tempo-Bs_aydgm.js +0 -18
- package/dist/wallet-BymEHYms.js +0 -3
- /package/dist/{api-CUzmQvTQ.js → api-B5mo8tpE.js} +0 -0
- /package/dist/{dist-C2YO6HSQ.js → dist-CvV4mGO6.js} +0 -0
- /package/dist/{index.node-DPDV8w2j.js → index.node-DCvOPMK7.js} +0 -0
- /package/dist/{utils-BYjkXZDF.js → utils-B1qOlJzL.js} +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { H as isAddress, K as InvalidAddressError } from "./chain-DwfP5RGZ.js";
|
|
2
|
-
//#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
3
|
-
function isAddressEqual(a, b) {
|
|
4
|
-
if (!isAddress(a, { strict: false })) throw new InvalidAddressError({ address: a });
|
|
5
|
-
if (!isAddress(b, { strict: false })) throw new InvalidAddressError({ address: b });
|
|
6
|
-
return a.toLowerCase() === b.toLowerCase();
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { isAddressEqual as t };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { G as isAddress, Y as InvalidAddressError } from "./chain-CafcHffR.js";
|
|
3
|
-
//#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
4
|
-
function isAddressEqual(a, b) {
|
|
5
|
-
if (!isAddress(a, { strict: false })) throw new InvalidAddressError({ address: a });
|
|
6
|
-
if (!isAddress(b, { strict: false })) throw new InvalidAddressError({ address: b });
|
|
7
|
-
return a.toLowerCase() === b.toLowerCase();
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { isAddressEqual as t };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { Mt as BaseError } from "./chain-CafcHffR.js";
|
|
3
|
-
//#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
|
|
4
|
-
var InvalidDecimalNumberError = class extends BaseError {
|
|
5
|
-
constructor({ value }) {
|
|
6
|
-
super(`Number \`${value}\` is not a valid decimal number.`, { name: "InvalidDecimalNumberError" });
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
11
|
-
/**
|
|
12
|
-
* Multiplies a string representation of a number by a given exponent of base 10 (10exponent).
|
|
13
|
-
*
|
|
14
|
-
* - Docs: https://viem.sh/docs/utilities/parseUnits
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* import { parseUnits } from 'viem'
|
|
18
|
-
*
|
|
19
|
-
* parseUnits('420', 9)
|
|
20
|
-
* // 420000000000n
|
|
21
|
-
*/
|
|
22
|
-
function parseUnits(value, decimals) {
|
|
23
|
-
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value)) throw new InvalidDecimalNumberError({ value });
|
|
24
|
-
let [integer, fraction = "0"] = value.split(".");
|
|
25
|
-
const negative = integer.startsWith("-");
|
|
26
|
-
if (negative) integer = integer.slice(1);
|
|
27
|
-
fraction = fraction.replace(/(0+)$/, "");
|
|
28
|
-
if (decimals === 0) {
|
|
29
|
-
if (Math.round(Number(`.${fraction}`)) === 1) integer = `${BigInt(integer) + 1n}`;
|
|
30
|
-
fraction = "";
|
|
31
|
-
} else if (fraction.length > decimals) {
|
|
32
|
-
const [left, unit, right] = [
|
|
33
|
-
fraction.slice(0, decimals - 1),
|
|
34
|
-
fraction.slice(decimals - 1, decimals),
|
|
35
|
-
fraction.slice(decimals)
|
|
36
|
-
];
|
|
37
|
-
const rounded = Math.round(Number(`${unit}.${right}`));
|
|
38
|
-
if (rounded > 9) fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
|
|
39
|
-
else fraction = `${left}${rounded}`;
|
|
40
|
-
if (fraction.length > decimals) {
|
|
41
|
-
fraction = fraction.slice(1);
|
|
42
|
-
integer = `${BigInt(integer) + 1n}`;
|
|
43
|
-
}
|
|
44
|
-
fraction = fraction.slice(0, decimals);
|
|
45
|
-
} else fraction = fraction.padEnd(decimals, "0");
|
|
46
|
-
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
export { parseUnits as t };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Dt as BaseError } from "./chain-DwfP5RGZ.js";
|
|
2
|
-
//#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
|
|
3
|
-
var InvalidDecimalNumberError = class extends BaseError {
|
|
4
|
-
constructor({ value }) {
|
|
5
|
-
super(`Number \`${value}\` is not a valid decimal number.`, { name: "InvalidDecimalNumberError" });
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
10
|
-
/**
|
|
11
|
-
* Multiplies a string representation of a number by a given exponent of base 10 (10exponent).
|
|
12
|
-
*
|
|
13
|
-
* - Docs: https://viem.sh/docs/utilities/parseUnits
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* import { parseUnits } from 'viem'
|
|
17
|
-
*
|
|
18
|
-
* parseUnits('420', 9)
|
|
19
|
-
* // 420000000000n
|
|
20
|
-
*/
|
|
21
|
-
function parseUnits(value, decimals) {
|
|
22
|
-
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value)) throw new InvalidDecimalNumberError({ value });
|
|
23
|
-
let [integer, fraction = "0"] = value.split(".");
|
|
24
|
-
const negative = integer.startsWith("-");
|
|
25
|
-
if (negative) integer = integer.slice(1);
|
|
26
|
-
fraction = fraction.replace(/(0+)$/, "");
|
|
27
|
-
if (decimals === 0) {
|
|
28
|
-
if (Math.round(Number(`.${fraction}`)) === 1) integer = `${BigInt(integer) + 1n}`;
|
|
29
|
-
fraction = "";
|
|
30
|
-
} else if (fraction.length > decimals) {
|
|
31
|
-
const [left, unit, right] = [
|
|
32
|
-
fraction.slice(0, decimals - 1),
|
|
33
|
-
fraction.slice(decimals - 1, decimals),
|
|
34
|
-
fraction.slice(decimals)
|
|
35
|
-
];
|
|
36
|
-
const rounded = Math.round(Number(`${unit}.${right}`));
|
|
37
|
-
if (rounded > 9) fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
|
|
38
|
-
else fraction = `${left}${rounded}`;
|
|
39
|
-
if (fraction.length > decimals) {
|
|
40
|
-
fraction = fraction.slice(1);
|
|
41
|
-
integer = `${BigInt(integer) + 1n}`;
|
|
42
|
-
}
|
|
43
|
-
fraction = fraction.slice(0, decimals);
|
|
44
|
-
} else fraction = fraction.padEnd(decimals, "0");
|
|
45
|
-
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
export { parseUnits as t };
|
package/dist/setup-wMOAgrsN.js
DELETED
package/dist/status-_TcPMyzr.js
DELETED
package/dist/tempo-BcTkftHK.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { n as __exportAll } from "./chunk-DBEY4PJZ.js";
|
|
2
|
-
import { d as Voucher_exports, i as Receipt_exports, l as Channel_exports, o as Chain_exports, r as ChannelStore_exports, t as Sse_exports } from "./Sse-C-KDPYh0.js";
|
|
3
|
-
//#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/Types.js
|
|
4
|
-
var Types_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/index.js
|
|
7
|
-
var session_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
-
Chain: () => Chain_exports,
|
|
9
|
-
Channel: () => Channel_exports,
|
|
10
|
-
ChannelStore: () => ChannelStore_exports,
|
|
11
|
-
Receipt: () => Receipt_exports,
|
|
12
|
-
Sse: () => Sse_exports,
|
|
13
|
-
Types: () => Types_exports,
|
|
14
|
-
Voucher: () => Voucher_exports
|
|
15
|
-
});
|
|
16
|
-
//#endregion
|
|
17
|
-
export { session_exports as Session };
|
package/dist/tempo-Bs_aydgm.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { n as __exportAll } from "./chunk-DjEMn6fM.js";
|
|
3
|
-
import { d as Voucher_exports, i as Receipt_exports, l as Channel_exports, o as Chain_exports, r as ChannelStore_exports, t as Sse_exports } from "./Sse-DGR-tH7K.js";
|
|
4
|
-
//#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/Types.js
|
|
5
|
-
var Types_exports = /* @__PURE__ */ __exportAll({});
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/index.js
|
|
8
|
-
var session_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
-
Chain: () => Chain_exports,
|
|
10
|
-
Channel: () => Channel_exports,
|
|
11
|
-
ChannelStore: () => ChannelStore_exports,
|
|
12
|
-
Receipt: () => Receipt_exports,
|
|
13
|
-
Sse: () => Sse_exports,
|
|
14
|
-
Types: () => Types_exports,
|
|
15
|
-
Voucher: () => Voucher_exports
|
|
16
|
-
});
|
|
17
|
-
//#endregion
|
|
18
|
-
export { session_exports as Session };
|
package/dist/wallet-BymEHYms.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|