sf-x402x 0.6.6-patch.4 → 0.7.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/cjs/client/index.d.ts +2 -2
- package/dist/cjs/client/index.js +51 -16
- package/dist/cjs/client/index.js.map +1 -1
- package/dist/{esm/config-CFBSAuxW.d.mts → cjs/config-21jxVzCt.d.ts} +1 -0
- package/dist/cjs/facilitator/index.d.ts +1 -1
- package/dist/cjs/facilitator/index.js +51 -16
- package/dist/cjs/facilitator/index.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +51 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/middleware-5zVJ5R-N.d.ts +93 -0
- package/dist/{esm/network--RYzQfBg.d.mts → cjs/network-BkSsZzNC.d.ts} +3 -3
- package/dist/cjs/paywall/index.d.ts +1 -1
- package/dist/cjs/paywall/index.js +45 -16
- package/dist/cjs/paywall/index.js.map +1 -1
- package/dist/{esm/rpc-22QIQWIu.d.mts → cjs/rpc-MOfP_dWc.d.ts} +1 -1
- package/dist/cjs/schemes/index.d.ts +3 -3
- package/dist/cjs/schemes/index.js +51 -16
- package/dist/cjs/schemes/index.js.map +1 -1
- package/dist/cjs/shared/evm/index.d.ts +1 -1
- package/dist/cjs/shared/evm/index.js +45 -16
- package/dist/cjs/shared/evm/index.js.map +1 -1
- package/dist/cjs/shared/index.d.ts +5 -5
- package/dist/cjs/shared/index.js +52 -17
- package/dist/cjs/shared/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +10 -10
- package/dist/cjs/types/index.js +51 -16
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/verify/index.d.ts +3 -3
- package/dist/cjs/verify/index.js +6 -0
- package/dist/cjs/verify/index.js.map +1 -1
- package/dist/{esm/x402Specs-7OH8g851.d.mts → cjs/x402Specs-CqECt1ac.d.ts} +73 -73
- package/dist/esm/{chunk-AYSH47JL.mjs → chunk-JLKXOYVK.mjs} +3 -3
- package/dist/esm/{chunk-LVNQSDEB.mjs → chunk-KIDCIVC3.mjs} +3 -3
- package/dist/esm/{chunk-SN2GVMJC.mjs → chunk-QNNM7SGM.mjs} +5 -5
- package/dist/esm/{chunk-C7SL4ONO.mjs → chunk-U5KNHXVP.mjs} +4 -4
- package/dist/esm/{chunk-5UPAZUO6.mjs → chunk-UD3U554N.mjs} +46 -17
- package/dist/esm/chunk-UD3U554N.mjs.map +1 -0
- package/dist/esm/{chunk-FVAAYH7O.mjs → chunk-WQJKXB4L.mjs} +10 -4
- package/dist/esm/chunk-WQJKXB4L.mjs.map +1 -0
- package/dist/esm/{chunk-7CWEZNFA.mjs → chunk-YHBBWW7M.mjs} +2 -2
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +5 -5
- package/dist/esm/config-21jxVzCt.d.mts +11 -0
- package/dist/esm/facilitator/index.d.mts +1 -1
- package/dist/esm/facilitator/index.mjs +6 -6
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/{middleware-CAOp-bv4.d.mts → middleware-DON8RJFB.d.mts} +2 -2
- package/dist/esm/network-BkSsZzNC.d.mts +11 -0
- package/dist/esm/paywall/index.d.mts +1 -1
- package/dist/esm/paywall/index.mjs +1 -1
- package/dist/esm/rpc-DXTxMYe2.d.mts +35 -0
- package/dist/esm/schemes/index.d.mts +3 -3
- package/dist/esm/schemes/index.mjs +5 -5
- package/dist/esm/shared/evm/index.d.mts +1 -1
- package/dist/esm/shared/evm/index.mjs +2 -2
- package/dist/esm/shared/index.d.mts +5 -5
- package/dist/esm/shared/index.mjs +3 -3
- package/dist/esm/types/index.d.mts +10 -10
- package/dist/esm/types/index.mjs +3 -3
- package/dist/esm/verify/index.d.mts +3 -3
- package/dist/esm/verify/index.mjs +3 -3
- package/dist/esm/x402Specs-CqECt1ac.d.mts +1306 -0
- package/package.json +1 -1
- package/dist/esm/chunk-5UPAZUO6.mjs.map +0 -1
- package/dist/esm/chunk-FVAAYH7O.mjs.map +0 -1
- /package/dist/esm/{chunk-AYSH47JL.mjs.map → chunk-JLKXOYVK.mjs.map} +0 -0
- /package/dist/esm/{chunk-LVNQSDEB.mjs.map → chunk-KIDCIVC3.mjs.map} +0 -0
- /package/dist/esm/{chunk-SN2GVMJC.mjs.map → chunk-QNNM7SGM.mjs.map} +0 -0
- /package/dist/esm/{chunk-C7SL4ONO.mjs.map → chunk-U5KNHXVP.mjs.map} +0 -0
- /package/dist/esm/{chunk-7CWEZNFA.mjs.map → chunk-YHBBWW7M.mjs.map} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { RpcDevnet, SolanaRpcApiDevnet, RpcMainnet, SolanaRpcApiMainnet, RpcSubscriptionsFromTransport, SolanaRpcSubscriptionsApi, RpcSubscriptionsTransportFromClusterUrl, ClusterUrl } from '@solana/kit';
|
|
2
|
+
import { N as Network } from './network-BkSsZzNC.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Creates a Solana RPC client for the devnet network.
|
|
6
|
+
*
|
|
7
|
+
* @param url - Optional URL of the devnet network.
|
|
8
|
+
* @returns A Solana RPC client.
|
|
9
|
+
*/
|
|
10
|
+
declare function createDevnetRpcClient(url?: string): RpcDevnet<SolanaRpcApiDevnet>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a Solana RPC client for the mainnet network.
|
|
13
|
+
*
|
|
14
|
+
* @param url - Optional URL of the mainnet network.
|
|
15
|
+
* @returns A Solana RPC client.
|
|
16
|
+
*/
|
|
17
|
+
declare function createMainnetRpcClient(url?: string): RpcMainnet<SolanaRpcApiMainnet>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the RPC client for the given network.
|
|
20
|
+
*
|
|
21
|
+
* @param network - The network to get the RPC client for
|
|
22
|
+
* @param url - Optional URL of the network. If not provided, the default URL will be used.
|
|
23
|
+
* @returns The RPC client for the given network
|
|
24
|
+
*/
|
|
25
|
+
declare function getRpcClient(network: Network, url?: string): RpcDevnet<SolanaRpcApiDevnet> | RpcMainnet<SolanaRpcApiMainnet>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the RPC subscriptions for the given network.
|
|
28
|
+
*
|
|
29
|
+
* @param network - The network to get the RPC subscriptions for
|
|
30
|
+
* @param url - Optional URL of the network. If not provided, the default URL will be used.
|
|
31
|
+
* @returns The RPC subscriptions for the given network
|
|
32
|
+
*/
|
|
33
|
+
declare function getRpcSubscriptions(network: Network, url?: string): RpcSubscriptionsFromTransport<SolanaRpcSubscriptionsApi, RpcSubscriptionsTransportFromClusterUrl<ClusterUrl>>;
|
|
34
|
+
|
|
35
|
+
export { createMainnetRpcClient as a, getRpcSubscriptions as b, createDevnetRpcClient as c, getRpcClient as g };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Address, Transport, Chain, LocalAccount, Account } from 'viem';
|
|
2
2
|
import { S as SignerWallet, C as ConnectedClient } from '../wallet-BReyvAJs.mjs';
|
|
3
|
-
import { P as PaymentRequirements, U as UnsignedPaymentPayload, a as PaymentPayload, u as VerifyResponse, S as SettleResponse, b as ErrorReasons, E as ExactSvmPayload } from '../x402Specs-
|
|
3
|
+
import { P as PaymentRequirements, U as UnsignedPaymentPayload, a as PaymentPayload, u as VerifyResponse, S as SettleResponse, b as ErrorReasons, E as ExactSvmPayload } from '../x402Specs-CqECt1ac.mjs';
|
|
4
4
|
import { X as X402Config } from '../config-Dfuvno71.mjs';
|
|
5
5
|
import { KeyPairSigner, signTransaction, RpcDevnet, SolanaRpcApiDevnet, RpcMainnet, SolanaRpcApiMainnet, SendTransactionApi, CompilableTransactionMessage, Instruction, AccountLookupMeta, AccountMeta } from '@solana/kit';
|
|
6
|
-
import { b as getRpcSubscriptions } from '../rpc-
|
|
6
|
+
import { b as getRpcSubscriptions } from '../rpc-DXTxMYe2.mjs';
|
|
7
7
|
import * as _solana_program_token from '@solana-program/token';
|
|
8
8
|
import { parseTransferCheckedInstruction } from '@solana-program/token-2022';
|
|
9
9
|
import 'viem/chains';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../network
|
|
11
|
+
import '../network-BkSsZzNC.mjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Prepares an unsigned payment header with the given sender address and payment requirements.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exact_exports
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QNNM7SGM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
decodePayment,
|
|
6
6
|
encodePayment
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-KIDCIVC3.mjs";
|
|
8
|
+
import "../chunk-WQJKXB4L.mjs";
|
|
9
|
+
import "../chunk-YHBBWW7M.mjs";
|
|
10
|
+
import "../chunk-UD3U554N.mjs";
|
|
11
11
|
export {
|
|
12
12
|
decodePayment,
|
|
13
13
|
encodePayment,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Transport, Chain, Account, Client, Address } from 'viem';
|
|
2
|
-
import { C as ChainConfig } from '../../config-
|
|
2
|
+
import { C as ChainConfig } from '../../config-21jxVzCt.mjs';
|
|
3
3
|
import { C as ConnectedClient } from '../../wallet-BReyvAJs.mjs';
|
|
4
4
|
import '@solana/kit';
|
|
5
5
|
import 'viem/chains';
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
getUsdcAddressForChain,
|
|
6
6
|
getUsdcChainConfigForChain,
|
|
7
7
|
getVersion
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-YHBBWW7M.mjs";
|
|
9
|
+
import "../../chunk-UD3U554N.mjs";
|
|
10
10
|
export {
|
|
11
11
|
getERC20Balance,
|
|
12
12
|
getUSDCBalance,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N as Network } from '../network
|
|
1
|
+
import { N as Network } from '../network-BkSsZzNC.mjs';
|
|
2
2
|
import * as _solana_kit from '@solana/kit';
|
|
3
3
|
import { Transaction, KeyPairSigner, RpcDevnet, SolanaRpcApiDevnet, RpcMainnet, SolanaRpcApiMainnet } from '@solana/kit';
|
|
4
4
|
import { Hex, Address } from 'viem';
|
|
5
|
-
import { R as RoutesConfig, a as RoutePattern, P as Price, E as ERC20TokenAmount, S as SPLTokenAmount } from '../middleware-
|
|
6
|
-
import { P as PaymentRequirements, a as PaymentPayload, E as ExactSvmPayload } from '../x402Specs-
|
|
7
|
-
import { c as createDevnetRpcClient, a as createMainnetRpcClient, g as getRpcClient, b as getRpcSubscriptions } from '../rpc-
|
|
5
|
+
import { R as RoutesConfig, a as RoutePattern, P as Price, E as ERC20TokenAmount, S as SPLTokenAmount } from '../middleware-DON8RJFB.mjs';
|
|
6
|
+
import { P as PaymentRequirements, a as PaymentPayload, E as ExactSvmPayload } from '../x402Specs-CqECt1ac.mjs';
|
|
7
|
+
import { c as createDevnetRpcClient, a as createMainnetRpcClient, g as getRpcClient, b as getRpcSubscriptions } from '../rpc-DXTxMYe2.mjs';
|
|
8
8
|
import { a as SvmConnectedClient, S as SvmSigner, c as createSignerFromBase58, b as createSvmConnectedClient, i as isSignerWallet } from '../wallet-BTqCm9Zp.mjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../wallet-BReyvAJs.mjs';
|
|
@@ -99,7 +99,7 @@ declare function findMatchingPaymentRequirements(paymentRequirements: PaymentReq
|
|
|
99
99
|
description: string;
|
|
100
100
|
asset: string;
|
|
101
101
|
maxAmountRequired: string;
|
|
102
|
-
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "sepolia" | "filecoin-calibration";
|
|
102
|
+
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "ethereum" | "sepolia" | "filecoin" | "filecoin-calibration";
|
|
103
103
|
resource: string;
|
|
104
104
|
mimeType: string;
|
|
105
105
|
payTo: string;
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
safeBase64Encode,
|
|
12
12
|
svm_exports2 as svm_exports,
|
|
13
13
|
toJsonSafe
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-WQJKXB4L.mjs";
|
|
15
|
+
import "../chunk-YHBBWW7M.mjs";
|
|
16
|
+
import "../chunk-UD3U554N.mjs";
|
|
17
17
|
export {
|
|
18
18
|
Base64EncodedRegex,
|
|
19
19
|
computeRoutePatterns,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { S as SvmConfig, X as X402Config } from '../config-Dfuvno71.mjs';
|
|
2
|
-
export { E as ERC20TokenAmount, F as FacilitatorConfig, M as Money, d as PaymentMiddlewareConfig, c as PaywallConfig, P as Price, b as Resource, e as RouteConfig, a as RoutePattern, R as RoutesConfig, S as SPLTokenAmount, W as Wallet, m as moneySchema } from '../middleware-
|
|
3
|
-
export { C as ChainIdToNetwork, E as EvmNetworkToChainId, N as Network, a as NetworkSchema, S as SupportedEVMNetworks, b as SupportedSVMNetworks, c as SvmNetworkToChainId } from '../network
|
|
2
|
+
export { E as ERC20TokenAmount, F as FacilitatorConfig, M as Money, d as PaymentMiddlewareConfig, c as PaywallConfig, P as Price, b as Resource, e as RouteConfig, a as RoutePattern, R as RoutesConfig, S as SPLTokenAmount, W as Wallet, m as moneySchema } from '../middleware-DON8RJFB.mjs';
|
|
3
|
+
export { C as ChainIdToNetwork, E as EvmNetworkToChainId, N as Network, a as NetworkSchema, S as SupportedEVMNetworks, b as SupportedSVMNetworks, c as SvmNetworkToChainId } from '../network-BkSsZzNC.mjs';
|
|
4
4
|
export { C as ConnectedClient, M as MultiNetworkSigner, S as Signer, c as createConnectedClient, a as createSigner, i as isEvmSignerWallet, d as isMultiNetworkSigner, b as isSvmSignerWallet } from '../wallet-C9iHSQbd.mjs';
|
|
5
|
-
import { C as ChainConfig, c as config } from '../config-
|
|
5
|
+
import { C as ChainConfig, c as config } from '../config-21jxVzCt.mjs';
|
|
6
6
|
import { C as ConnectedClient, E as EvmSigner, S as SignerWallet, c as createClientAvalancheFuji, a as createClientSepolia, b as createConnectedClient, d as createSigner, e as createSignerAvalancheFuji, f as createSignerSepolia, g as getChainFromNetwork, i as isAccount, h as isSignerWallet, x as xLayer, j as xLayerTestnet } from '../wallet-BReyvAJs.mjs';
|
|
7
|
-
import { S as SettleResponse } from '../x402Specs-
|
|
8
|
-
export { o as DiscoveredResource, D as DiscoveredResourceSchema, b as ErrorReasons, g as ExactEvmPayload, e as ExactEvmPayloadAuthorization, d as ExactEvmPayloadAuthorizationSchema, f as ExactEvmPayloadSchema, E as ExactSvmPayload, h as ExactSvmPayloadSchema, m as HTTPRequestStructure, l as HTTPRequestStructureSchema, H as HTTPVerbs, w as ListDiscoveryResourcesRequest, L as ListDiscoveryResourcesRequestSchema, z as ListDiscoveryResourcesResponse, y as ListDiscoveryResourcesResponseSchema, a as PaymentPayload, i as PaymentPayloadSchema, P as PaymentRequirements, c as PaymentRequirementsSchema, n as RequestStructure, R as RequestStructureSchema, q as SettleRequest, p as SettleRequestSchema, v as SettleResponseSchema, B as SupportedPaymentKind, A as SupportedPaymentKindSchema, F as SupportedPaymentKindsResponse, C as SupportedPaymentKindsResponseSchema, U as UnsignedPaymentPayload, r as VerifyRequest, V as VerifyRequestSchema, u as VerifyResponse, t as VerifyResponseSchema, s as schemes, k as x402Response, j as x402ResponseSchema, x as x402Versions } from '../x402Specs-
|
|
7
|
+
import { S as SettleResponse } from '../x402Specs-CqECt1ac.mjs';
|
|
8
|
+
export { o as DiscoveredResource, D as DiscoveredResourceSchema, b as ErrorReasons, g as ExactEvmPayload, e as ExactEvmPayloadAuthorization, d as ExactEvmPayloadAuthorizationSchema, f as ExactEvmPayloadSchema, E as ExactSvmPayload, h as ExactSvmPayloadSchema, m as HTTPRequestStructure, l as HTTPRequestStructureSchema, H as HTTPVerbs, w as ListDiscoveryResourcesRequest, L as ListDiscoveryResourcesRequestSchema, z as ListDiscoveryResourcesResponse, y as ListDiscoveryResourcesResponseSchema, a as PaymentPayload, i as PaymentPayloadSchema, P as PaymentRequirements, c as PaymentRequirementsSchema, n as RequestStructure, R as RequestStructureSchema, q as SettleRequest, p as SettleRequestSchema, v as SettleResponseSchema, B as SupportedPaymentKind, A as SupportedPaymentKindSchema, F as SupportedPaymentKindsResponse, C as SupportedPaymentKindsResponseSchema, U as UnsignedPaymentPayload, r as VerifyRequest, V as VerifyRequestSchema, u as VerifyResponse, t as VerifyResponseSchema, s as schemes, k as x402Response, j as x402ResponseSchema, x as x402Versions } from '../x402Specs-CqECt1ac.mjs';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
import '../wallet-BTqCm9Zp.mjs';
|
|
11
11
|
import '@solana/kit';
|
|
@@ -16,7 +16,7 @@ declare const facilitatorRequestSchema: z.ZodObject<{
|
|
|
16
16
|
paymentHeader: z.ZodString;
|
|
17
17
|
paymentRequirements: z.ZodObject<{
|
|
18
18
|
scheme: z.ZodEnum<["exact"]>;
|
|
19
|
-
network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei", "sei-testnet", "polygon", "polygon-amoy", "peaq", "x-layer", "x-layer-testnet", "sepolia", "filecoin-calibration"]>;
|
|
19
|
+
network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei", "sei-testnet", "ethereum", "polygon", "polygon-amoy", "peaq", "x-layer", "x-layer-testnet", "sepolia", "filecoin", "filecoin-calibration"]>;
|
|
20
20
|
maxAmountRequired: z.ZodEffects<z.ZodString, string, string>;
|
|
21
21
|
resource: z.ZodString;
|
|
22
22
|
description: z.ZodString;
|
|
@@ -31,7 +31,7 @@ declare const facilitatorRequestSchema: z.ZodObject<{
|
|
|
31
31
|
description: string;
|
|
32
32
|
asset: string;
|
|
33
33
|
maxAmountRequired: string;
|
|
34
|
-
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "sepolia" | "filecoin-calibration";
|
|
34
|
+
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "ethereum" | "sepolia" | "filecoin" | "filecoin-calibration";
|
|
35
35
|
resource: string;
|
|
36
36
|
mimeType: string;
|
|
37
37
|
payTo: string;
|
|
@@ -43,7 +43,7 @@ declare const facilitatorRequestSchema: z.ZodObject<{
|
|
|
43
43
|
description: string;
|
|
44
44
|
asset: string;
|
|
45
45
|
maxAmountRequired: string;
|
|
46
|
-
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "sepolia" | "filecoin-calibration";
|
|
46
|
+
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "ethereum" | "sepolia" | "filecoin" | "filecoin-calibration";
|
|
47
47
|
resource: string;
|
|
48
48
|
mimeType: string;
|
|
49
49
|
payTo: string;
|
|
@@ -57,7 +57,7 @@ declare const facilitatorRequestSchema: z.ZodObject<{
|
|
|
57
57
|
description: string;
|
|
58
58
|
asset: string;
|
|
59
59
|
maxAmountRequired: string;
|
|
60
|
-
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "sepolia" | "filecoin-calibration";
|
|
60
|
+
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "ethereum" | "sepolia" | "filecoin" | "filecoin-calibration";
|
|
61
61
|
resource: string;
|
|
62
62
|
mimeType: string;
|
|
63
63
|
payTo: string;
|
|
@@ -72,7 +72,7 @@ declare const facilitatorRequestSchema: z.ZodObject<{
|
|
|
72
72
|
description: string;
|
|
73
73
|
asset: string;
|
|
74
74
|
maxAmountRequired: string;
|
|
75
|
-
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "sepolia" | "filecoin-calibration";
|
|
75
|
+
network: "base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "x-layer" | "x-layer-testnet" | "solana-devnet" | "solana" | "ethereum" | "sepolia" | "filecoin" | "filecoin-calibration";
|
|
76
76
|
resource: string;
|
|
77
77
|
mimeType: string;
|
|
78
78
|
payTo: string;
|
package/dist/esm/types/index.mjs
CHANGED
|
@@ -36,9 +36,9 @@ import {
|
|
|
36
36
|
svm_exports,
|
|
37
37
|
x402ResponseSchema,
|
|
38
38
|
x402Versions
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
39
|
+
} from "../chunk-WQJKXB4L.mjs";
|
|
40
|
+
import "../chunk-YHBBWW7M.mjs";
|
|
41
|
+
import "../chunk-UD3U554N.mjs";
|
|
42
42
|
export {
|
|
43
43
|
ChainIdToNetwork,
|
|
44
44
|
DiscoveredResourceSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { C as CreateHeaders, l as list, s as settle, f as supported, u as useFacilitator, v as verify } from '../middleware-
|
|
1
|
+
export { C as CreateHeaders, l as list, s as settle, f as supported, u as useFacilitator, v as verify } from '../middleware-DON8RJFB.mjs';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../network
|
|
3
|
+
import '../network-BkSsZzNC.mjs';
|
|
4
4
|
import '../wallet-BReyvAJs.mjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import 'viem/chains';
|
|
7
|
-
import '../x402Specs-
|
|
7
|
+
import '../x402Specs-CqECt1ac.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toJsonSafe
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-WQJKXB4L.mjs";
|
|
4
|
+
import "../chunk-YHBBWW7M.mjs";
|
|
5
|
+
import "../chunk-UD3U554N.mjs";
|
|
6
6
|
|
|
7
7
|
// src/verify/useFacilitator.ts
|
|
8
8
|
var DEFAULT_FACILITATOR_URL = "https://x402.org/facilitator";
|