uvd-x402-sdk 2.74.0 → 2.75.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.
Files changed (77) hide show
  1. package/dist/adapters/index.d.mts +3 -3
  2. package/dist/adapters/index.d.ts +3 -3
  3. package/dist/adapters/index.js.map +1 -1
  4. package/dist/adapters/index.mjs.map +1 -1
  5. package/dist/backend/index.d.mts +2 -2
  6. package/dist/backend/index.d.ts +2 -2
  7. package/dist/backend/index.js +18 -18
  8. package/dist/backend/index.mjs +18 -18
  9. package/dist/erc8128/index.d.mts +1 -1
  10. package/dist/erc8128/index.d.ts +1 -1
  11. package/dist/{index-BkeMrSHP.d.mts → index-CiRbsqXe.d.mts} +2 -2
  12. package/dist/{index-BQ45e-Xa.d.ts → index-DTXTOEby.d.ts} +2 -2
  13. package/dist/{index-DeJMYEKC.d.mts → index-ZH10otHE.d.mts} +1 -1
  14. package/dist/{index-DeJMYEKC.d.ts → index-ZH10otHE.d.ts} +1 -1
  15. package/dist/index.d.mts +6 -6
  16. package/dist/index.d.ts +6 -6
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/{ows-Z9v4GxOZ.d.mts → ows-CYIVd4xO.d.mts} +1 -1
  20. package/dist/{ows-C-KmORG9.d.ts → ows-DTDixPzO.d.ts} +1 -1
  21. package/dist/providers/algorand/index.d.mts +1 -1
  22. package/dist/providers/algorand/index.d.ts +1 -1
  23. package/dist/providers/algorand/index.js +2 -0
  24. package/dist/providers/algorand/index.js.map +1 -1
  25. package/dist/providers/algorand/index.mjs +2 -0
  26. package/dist/providers/algorand/index.mjs.map +1 -1
  27. package/dist/providers/evm/index.d.mts +1 -1
  28. package/dist/providers/evm/index.d.ts +1 -1
  29. package/dist/providers/evm/index.js.map +1 -1
  30. package/dist/providers/evm/index.mjs.map +1 -1
  31. package/dist/providers/near/index.d.mts +1 -1
  32. package/dist/providers/near/index.d.ts +1 -1
  33. package/dist/providers/near/index.js +2 -0
  34. package/dist/providers/near/index.js.map +1 -1
  35. package/dist/providers/near/index.mjs +2 -0
  36. package/dist/providers/near/index.mjs.map +1 -1
  37. package/dist/providers/solana/index.d.mts +1 -1
  38. package/dist/providers/solana/index.d.ts +1 -1
  39. package/dist/providers/solana/index.js +2 -0
  40. package/dist/providers/solana/index.js.map +1 -1
  41. package/dist/providers/solana/index.mjs +2 -0
  42. package/dist/providers/solana/index.mjs.map +1 -1
  43. package/dist/providers/stellar/index.d.mts +1 -1
  44. package/dist/providers/stellar/index.d.ts +1 -1
  45. package/dist/providers/stellar/index.js +2 -0
  46. package/dist/providers/stellar/index.js.map +1 -1
  47. package/dist/providers/stellar/index.mjs +2 -0
  48. package/dist/providers/stellar/index.mjs.map +1 -1
  49. package/dist/providers/sui/index.d.mts +1 -1
  50. package/dist/providers/sui/index.d.ts +1 -1
  51. package/dist/providers/sui/index.js +2 -0
  52. package/dist/providers/sui/index.js.map +1 -1
  53. package/dist/providers/sui/index.mjs +2 -0
  54. package/dist/providers/sui/index.mjs.map +1 -1
  55. package/dist/providers/xrpl/index.d.mts +1 -1
  56. package/dist/providers/xrpl/index.d.ts +1 -1
  57. package/dist/providers/xrpl/index.js +2 -0
  58. package/dist/providers/xrpl/index.js.map +1 -1
  59. package/dist/providers/xrpl/index.mjs +2 -0
  60. package/dist/providers/xrpl/index.mjs.map +1 -1
  61. package/dist/react/index.d.mts +3 -3
  62. package/dist/react/index.d.ts +3 -3
  63. package/dist/react/index.js.map +1 -1
  64. package/dist/react/index.mjs.map +1 -1
  65. package/dist/utils/index.d.mts +31 -260
  66. package/dist/utils/index.d.ts +31 -260
  67. package/dist/utils/index.js +17 -0
  68. package/dist/utils/index.js.map +1 -1
  69. package/dist/utils/index.mjs +16 -1
  70. package/dist/utils/index.mjs.map +1 -1
  71. package/dist/validation-De3bessL.d.mts +273 -0
  72. package/dist/validation-DsbfDAtV.d.ts +273 -0
  73. package/dist/{wallet-w7BnImDG.d.mts → wallet-0cX9Pw2F.d.mts} +1 -1
  74. package/dist/{wallet-w7BnImDG.d.ts → wallet-0cX9Pw2F.d.ts} +1 -1
  75. package/package.json +1 -1
  76. package/src/utils/index.ts +5 -0
  77. package/src/utils/personal-sign.ts +54 -0
@@ -1,5 +1,5 @@
1
- import { S as SigningWalletAdapter } from '../wallet-w7BnImDG.mjs';
2
- import { e as X402Header, X as X402Version, f as X402PayloadData } from '../index-DeJMYEKC.mjs';
1
+ import { S as SigningWalletAdapter } from '../wallet-0cX9Pw2F.mjs';
2
+ import { x as X402Header, Q as X402Version, G as X402PayloadData } from '../index-ZH10otHE.mjs';
3
3
 
4
4
  /**
5
5
  * Payment requirements sent to the facilitator
@@ -1,5 +1,5 @@
1
- import { S as SigningWalletAdapter } from '../wallet-w7BnImDG.js';
2
- import { e as X402Header, X as X402Version, f as X402PayloadData } from '../index-DeJMYEKC.js';
1
+ import { S as SigningWalletAdapter } from '../wallet-0cX9Pw2F.js';
2
+ import { x as X402Header, Q as X402Version, G as X402PayloadData } from '../index-ZH10otHE.js';
3
3
 
4
4
  /**
5
5
  * Payment requirements sent to the facilitator
@@ -3826,8 +3826,8 @@ var AdvancedEscrowClient = class {
3826
3826
  * Matches the on-chain AuthCaptureEscrow nonce derivation.
3827
3827
  */
3828
3828
  async computeNonce(paymentInfo) {
3829
- const { ethers: ethers2 } = await import('ethers');
3830
- const piTuple = ethers2.AbiCoder.defaultAbiCoder().encode(
3829
+ const { ethers: ethers3 } = await import('ethers');
3830
+ const piTuple = ethers3.AbiCoder.defaultAbiCoder().encode(
3831
3831
  ["bytes32", "tuple(address,address,address,address,uint120,uint48,uint48,uint48,uint16,uint16,address,uint256)"],
3832
3832
  [
3833
3833
  PAYMENT_INFO_TYPEHASH,
@@ -3848,12 +3848,12 @@ var AdvancedEscrowClient = class {
3848
3848
  ]
3849
3849
  ]
3850
3850
  );
3851
- const piHash = ethers2.keccak256(piTuple);
3852
- const finalEncoded = ethers2.AbiCoder.defaultAbiCoder().encode(
3851
+ const piHash = ethers3.keccak256(piTuple);
3852
+ const finalEncoded = ethers3.AbiCoder.defaultAbiCoder().encode(
3853
3853
  ["uint256", "address", "bytes32"],
3854
3854
  [this.chainId, this.contracts.escrow, piHash]
3855
3855
  );
3856
- return ethers2.keccak256(finalEncoded);
3856
+ return ethers3.keccak256(finalEncoded);
3857
3857
  }
3858
3858
  /**
3859
3859
  * Sign ReceiveWithAuthorization for ERC-3009.
@@ -4010,17 +4010,17 @@ var AdvancedEscrowClient = class {
4010
4010
  async release(paymentInfo, amount) {
4011
4011
  if (!this.payerAddress) await this.init();
4012
4012
  try {
4013
- const { ethers: ethers2 } = await import('ethers');
4013
+ const { ethers: ethers3 } = await import('ethers');
4014
4014
  const isCreate3 = CREATE3_CHAIN_IDS.has(this.chainId);
4015
4015
  const abi = isCreate3 ? OPERATOR_ABI_CREATE3 : OPERATOR_ABI;
4016
4016
  const amt = amount || paymentInfo.maxAmount;
4017
4017
  const tuple = this.buildTuple(paymentInfo);
4018
4018
  if (this.walletAdapter) {
4019
- return this.sendViaAdapter(ethers2, abi, (iface) => {
4019
+ return this.sendViaAdapter(ethers3, abi, (iface) => {
4020
4020
  return isCreate3 ? iface.encodeFunctionData("release", [tuple, amt, "0x"]) : iface.encodeFunctionData("release", [tuple, amt]);
4021
4021
  });
4022
4022
  }
4023
- const contract = new ethers2.Contract(this.contracts.operator, abi, this.signer);
4023
+ const contract = new ethers3.Contract(this.contracts.operator, abi, this.signer);
4024
4024
  const tx = isCreate3 ? await contract.release(tuple, amt, "0x", { gasLimit: this.gasLimit }) : await contract.release(tuple, amt, { gasLimit: this.gasLimit });
4025
4025
  const receipt = await tx.wait();
4026
4026
  return {
@@ -4044,17 +4044,17 @@ var AdvancedEscrowClient = class {
4044
4044
  async refundInEscrow(paymentInfo, amount) {
4045
4045
  if (!this.payerAddress) await this.init();
4046
4046
  try {
4047
- const { ethers: ethers2 } = await import('ethers');
4047
+ const { ethers: ethers3 } = await import('ethers');
4048
4048
  const isCreate3 = CREATE3_CHAIN_IDS.has(this.chainId);
4049
4049
  const abi = isCreate3 ? OPERATOR_ABI_CREATE3 : OPERATOR_ABI;
4050
4050
  const amt = amount || paymentInfo.maxAmount;
4051
4051
  const tuple = this.buildTuple(paymentInfo);
4052
4052
  if (this.walletAdapter) {
4053
- return this.sendViaAdapter(ethers2, abi, (iface) => {
4053
+ return this.sendViaAdapter(ethers3, abi, (iface) => {
4054
4054
  return isCreate3 ? iface.encodeFunctionData("refundInEscrow", [tuple, amt, "0x"]) : iface.encodeFunctionData("refundInEscrow", [tuple, amt]);
4055
4055
  });
4056
4056
  }
4057
- const contract = new ethers2.Contract(this.contracts.operator, abi, this.signer);
4057
+ const contract = new ethers3.Contract(this.contracts.operator, abi, this.signer);
4058
4058
  const tx = isCreate3 ? await contract.refundInEscrow(tuple, amt, "0x", { gasLimit: this.gasLimit }) : await contract.refundInEscrow(tuple, amt, { gasLimit: this.gasLimit });
4059
4059
  const receipt = await tx.wait();
4060
4060
  return {
@@ -4320,7 +4320,7 @@ var AdvancedEscrowClient = class {
4320
4320
  async charge(paymentInfo, amount) {
4321
4321
  if (!this.payerAddress) await this.init();
4322
4322
  try {
4323
- const { ethers: ethers2 } = await import('ethers');
4323
+ const { ethers: ethers3 } = await import('ethers');
4324
4324
  const nonce = await this.computeNonce(paymentInfo);
4325
4325
  const amt = amount || paymentInfo.maxAmount;
4326
4326
  const auth = {
@@ -4332,10 +4332,10 @@ var AdvancedEscrowClient = class {
4332
4332
  nonce
4333
4333
  };
4334
4334
  const signature = await this.signErc3009(auth);
4335
- const collectorData = ethers2.getBytes(signature);
4335
+ const collectorData = ethers3.getBytes(signature);
4336
4336
  const tuple = this.buildTuple(paymentInfo);
4337
4337
  if (this.walletAdapter) {
4338
- return this.sendViaAdapter(ethers2, OPERATOR_ABI, (iface) => {
4338
+ return this.sendViaAdapter(ethers3, OPERATOR_ABI, (iface) => {
4339
4339
  return iface.encodeFunctionData("charge", [
4340
4340
  tuple,
4341
4341
  amt,
@@ -4344,7 +4344,7 @@ var AdvancedEscrowClient = class {
4344
4344
  ]);
4345
4345
  });
4346
4346
  }
4347
- const contract = new ethers2.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4347
+ const contract = new ethers3.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4348
4348
  const tx = await contract.charge(
4349
4349
  tuple,
4350
4350
  amt,
@@ -4386,11 +4386,11 @@ var AdvancedEscrowClient = class {
4386
4386
  async refundPostEscrow(paymentInfo, amount, tokenCollector, collectorData) {
4387
4387
  if (!this.payerAddress) await this.init();
4388
4388
  try {
4389
- const { ethers: ethers2 } = await import('ethers');
4389
+ const { ethers: ethers3 } = await import('ethers');
4390
4390
  const amt = amount || paymentInfo.maxAmount;
4391
4391
  const tuple = this.buildTuple(paymentInfo);
4392
4392
  if (this.walletAdapter) {
4393
- return this.sendViaAdapter(ethers2, OPERATOR_ABI, (iface) => {
4393
+ return this.sendViaAdapter(ethers3, OPERATOR_ABI, (iface) => {
4394
4394
  return iface.encodeFunctionData("refundPostEscrow", [
4395
4395
  tuple,
4396
4396
  amt,
@@ -4399,7 +4399,7 @@ var AdvancedEscrowClient = class {
4399
4399
  ]);
4400
4400
  });
4401
4401
  }
4402
- const contract = new ethers2.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4402
+ const contract = new ethers3.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4403
4403
  const tx = await contract.refundPostEscrow(
4404
4404
  tuple,
4405
4405
  amt,
@@ -3824,8 +3824,8 @@ var AdvancedEscrowClient = class {
3824
3824
  * Matches the on-chain AuthCaptureEscrow nonce derivation.
3825
3825
  */
3826
3826
  async computeNonce(paymentInfo) {
3827
- const { ethers: ethers2 } = await import('ethers');
3828
- const piTuple = ethers2.AbiCoder.defaultAbiCoder().encode(
3827
+ const { ethers: ethers3 } = await import('ethers');
3828
+ const piTuple = ethers3.AbiCoder.defaultAbiCoder().encode(
3829
3829
  ["bytes32", "tuple(address,address,address,address,uint120,uint48,uint48,uint48,uint16,uint16,address,uint256)"],
3830
3830
  [
3831
3831
  PAYMENT_INFO_TYPEHASH,
@@ -3846,12 +3846,12 @@ var AdvancedEscrowClient = class {
3846
3846
  ]
3847
3847
  ]
3848
3848
  );
3849
- const piHash = ethers2.keccak256(piTuple);
3850
- const finalEncoded = ethers2.AbiCoder.defaultAbiCoder().encode(
3849
+ const piHash = ethers3.keccak256(piTuple);
3850
+ const finalEncoded = ethers3.AbiCoder.defaultAbiCoder().encode(
3851
3851
  ["uint256", "address", "bytes32"],
3852
3852
  [this.chainId, this.contracts.escrow, piHash]
3853
3853
  );
3854
- return ethers2.keccak256(finalEncoded);
3854
+ return ethers3.keccak256(finalEncoded);
3855
3855
  }
3856
3856
  /**
3857
3857
  * Sign ReceiveWithAuthorization for ERC-3009.
@@ -4008,17 +4008,17 @@ var AdvancedEscrowClient = class {
4008
4008
  async release(paymentInfo, amount) {
4009
4009
  if (!this.payerAddress) await this.init();
4010
4010
  try {
4011
- const { ethers: ethers2 } = await import('ethers');
4011
+ const { ethers: ethers3 } = await import('ethers');
4012
4012
  const isCreate3 = CREATE3_CHAIN_IDS.has(this.chainId);
4013
4013
  const abi = isCreate3 ? OPERATOR_ABI_CREATE3 : OPERATOR_ABI;
4014
4014
  const amt = amount || paymentInfo.maxAmount;
4015
4015
  const tuple = this.buildTuple(paymentInfo);
4016
4016
  if (this.walletAdapter) {
4017
- return this.sendViaAdapter(ethers2, abi, (iface) => {
4017
+ return this.sendViaAdapter(ethers3, abi, (iface) => {
4018
4018
  return isCreate3 ? iface.encodeFunctionData("release", [tuple, amt, "0x"]) : iface.encodeFunctionData("release", [tuple, amt]);
4019
4019
  });
4020
4020
  }
4021
- const contract = new ethers2.Contract(this.contracts.operator, abi, this.signer);
4021
+ const contract = new ethers3.Contract(this.contracts.operator, abi, this.signer);
4022
4022
  const tx = isCreate3 ? await contract.release(tuple, amt, "0x", { gasLimit: this.gasLimit }) : await contract.release(tuple, amt, { gasLimit: this.gasLimit });
4023
4023
  const receipt = await tx.wait();
4024
4024
  return {
@@ -4042,17 +4042,17 @@ var AdvancedEscrowClient = class {
4042
4042
  async refundInEscrow(paymentInfo, amount) {
4043
4043
  if (!this.payerAddress) await this.init();
4044
4044
  try {
4045
- const { ethers: ethers2 } = await import('ethers');
4045
+ const { ethers: ethers3 } = await import('ethers');
4046
4046
  const isCreate3 = CREATE3_CHAIN_IDS.has(this.chainId);
4047
4047
  const abi = isCreate3 ? OPERATOR_ABI_CREATE3 : OPERATOR_ABI;
4048
4048
  const amt = amount || paymentInfo.maxAmount;
4049
4049
  const tuple = this.buildTuple(paymentInfo);
4050
4050
  if (this.walletAdapter) {
4051
- return this.sendViaAdapter(ethers2, abi, (iface) => {
4051
+ return this.sendViaAdapter(ethers3, abi, (iface) => {
4052
4052
  return isCreate3 ? iface.encodeFunctionData("refundInEscrow", [tuple, amt, "0x"]) : iface.encodeFunctionData("refundInEscrow", [tuple, amt]);
4053
4053
  });
4054
4054
  }
4055
- const contract = new ethers2.Contract(this.contracts.operator, abi, this.signer);
4055
+ const contract = new ethers3.Contract(this.contracts.operator, abi, this.signer);
4056
4056
  const tx = isCreate3 ? await contract.refundInEscrow(tuple, amt, "0x", { gasLimit: this.gasLimit }) : await contract.refundInEscrow(tuple, amt, { gasLimit: this.gasLimit });
4057
4057
  const receipt = await tx.wait();
4058
4058
  return {
@@ -4318,7 +4318,7 @@ var AdvancedEscrowClient = class {
4318
4318
  async charge(paymentInfo, amount) {
4319
4319
  if (!this.payerAddress) await this.init();
4320
4320
  try {
4321
- const { ethers: ethers2 } = await import('ethers');
4321
+ const { ethers: ethers3 } = await import('ethers');
4322
4322
  const nonce = await this.computeNonce(paymentInfo);
4323
4323
  const amt = amount || paymentInfo.maxAmount;
4324
4324
  const auth = {
@@ -4330,10 +4330,10 @@ var AdvancedEscrowClient = class {
4330
4330
  nonce
4331
4331
  };
4332
4332
  const signature = await this.signErc3009(auth);
4333
- const collectorData = ethers2.getBytes(signature);
4333
+ const collectorData = ethers3.getBytes(signature);
4334
4334
  const tuple = this.buildTuple(paymentInfo);
4335
4335
  if (this.walletAdapter) {
4336
- return this.sendViaAdapter(ethers2, OPERATOR_ABI, (iface) => {
4336
+ return this.sendViaAdapter(ethers3, OPERATOR_ABI, (iface) => {
4337
4337
  return iface.encodeFunctionData("charge", [
4338
4338
  tuple,
4339
4339
  amt,
@@ -4342,7 +4342,7 @@ var AdvancedEscrowClient = class {
4342
4342
  ]);
4343
4343
  });
4344
4344
  }
4345
- const contract = new ethers2.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4345
+ const contract = new ethers3.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4346
4346
  const tx = await contract.charge(
4347
4347
  tuple,
4348
4348
  amt,
@@ -4384,11 +4384,11 @@ var AdvancedEscrowClient = class {
4384
4384
  async refundPostEscrow(paymentInfo, amount, tokenCollector, collectorData) {
4385
4385
  if (!this.payerAddress) await this.init();
4386
4386
  try {
4387
- const { ethers: ethers2 } = await import('ethers');
4387
+ const { ethers: ethers3 } = await import('ethers');
4388
4388
  const amt = amount || paymentInfo.maxAmount;
4389
4389
  const tuple = this.buildTuple(paymentInfo);
4390
4390
  if (this.walletAdapter) {
4391
- return this.sendViaAdapter(ethers2, OPERATOR_ABI, (iface) => {
4391
+ return this.sendViaAdapter(ethers3, OPERATOR_ABI, (iface) => {
4392
4392
  return iface.encodeFunctionData("refundPostEscrow", [
4393
4393
  tuple,
4394
4394
  amt,
@@ -4397,7 +4397,7 @@ var AdvancedEscrowClient = class {
4397
4397
  ]);
4398
4398
  });
4399
4399
  }
4400
- const contract = new ethers2.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4400
+ const contract = new ethers3.Contract(this.contracts.operator, OPERATOR_ABI, this.signer);
4401
4401
  const tx = await contract.refundPostEscrow(
4402
4402
  tuple,
4403
4403
  amt,
@@ -1,4 +1,4 @@
1
- import { S as SigningWalletAdapter } from '../wallet-w7BnImDG.mjs';
1
+ import { S as SigningWalletAdapter } from '../wallet-0cX9Pw2F.mjs';
2
2
 
3
3
  /**
4
4
  * uvd-x402-sdk/erc8128 — error taxonomy.
@@ -1,4 +1,4 @@
1
- import { S as SigningWalletAdapter } from '../wallet-w7BnImDG.js';
1
+ import { S as SigningWalletAdapter } from '../wallet-0cX9Pw2F.js';
2
2
 
3
3
  /**
4
4
  * uvd-x402-sdk/erc8128 — error taxonomy.
@@ -1,4 +1,4 @@
1
- import { a as X402ClientConfig, P as PaymentInfo, b as PaymentResult, d as WalletState, C as ChainConfig, g as X402Event, h as X402EventHandler, c as NetworkType, T as TokenType, i as TokenConfig } from './index-DeJMYEKC.mjs';
1
+ import { q as X402ClientConfig, h as PaymentInfo, k as PaymentResult, p as WalletState, b as ChainConfig, u as X402Event, w as X402EventHandler, g as NetworkType, o as TokenType, T as TokenConfig } from './index-ZH10otHE.mjs';
2
2
 
3
3
  /**
4
4
  * uvd-x402-sdk - Main Client
@@ -274,4 +274,4 @@ declare function isTokenSupported(chainName: string, tokenType: TokenType): bool
274
274
  */
275
275
  declare function getChainsByToken(tokenType: TokenType): ChainConfig[];
276
276
 
277
- export { DEFAULT_CHAIN as D, SUPPORTED_CHAINS as S, X402Client as X, DEFAULT_FACILITATOR_URL as a, getAlgorandChains as b, getChainById as c, getChainsByNetworkType as d, getChainsByToken as e, getEVMChainIds as f, getChainByName as g, getEnabledChains as h, getExplorerAddressUrl as i, getExplorerTxUrl as j, getNetworkType as k, getSVMChains as l, getSuiChains as m, getSupportedTokens as n, getTokenByAddress as o, getTokenConfig as p, getXRPLChains as q, isAlgorandChain as r, isChainSupported as s, isSVMChain as t, isSuiChain as u, isTokenSupported as v, isXRPLChain as w };
277
+ export { DEFAULT_CHAIN as D, SUPPORTED_CHAINS as S, X402Client as X, DEFAULT_FACILITATOR_URL as a, getChainById as b, getChainByName as c, getChainsByNetworkType as d, getChainsByToken as e, getEVMChainIds as f, getAlgorandChains as g, getEnabledChains as h, getExplorerAddressUrl as i, getExplorerTxUrl as j, getNetworkType as k, getSVMChains as l, getSuiChains as m, getSupportedTokens as n, getTokenByAddress as o, getTokenConfig as p, getXRPLChains as q, isAlgorandChain as r, isChainSupported as s, isSVMChain as t, isSuiChain as u, isTokenSupported as v, isXRPLChain as w };
@@ -1,4 +1,4 @@
1
- import { a as X402ClientConfig, P as PaymentInfo, b as PaymentResult, d as WalletState, C as ChainConfig, g as X402Event, h as X402EventHandler, c as NetworkType, T as TokenType, i as TokenConfig } from './index-DeJMYEKC.js';
1
+ import { q as X402ClientConfig, h as PaymentInfo, k as PaymentResult, p as WalletState, b as ChainConfig, u as X402Event, w as X402EventHandler, g as NetworkType, o as TokenType, T as TokenConfig } from './index-ZH10otHE.js';
2
2
 
3
3
  /**
4
4
  * uvd-x402-sdk - Main Client
@@ -274,4 +274,4 @@ declare function isTokenSupported(chainName: string, tokenType: TokenType): bool
274
274
  */
275
275
  declare function getChainsByToken(tokenType: TokenType): ChainConfig[];
276
276
 
277
- export { DEFAULT_CHAIN as D, SUPPORTED_CHAINS as S, X402Client as X, DEFAULT_FACILITATOR_URL as a, getAlgorandChains as b, getChainById as c, getChainsByNetworkType as d, getChainsByToken as e, getEVMChainIds as f, getChainByName as g, getEnabledChains as h, getExplorerAddressUrl as i, getExplorerTxUrl as j, getNetworkType as k, getSVMChains as l, getSuiChains as m, getSupportedTokens as n, getTokenByAddress as o, getTokenConfig as p, getXRPLChains as q, isAlgorandChain as r, isChainSupported as s, isSVMChain as t, isSuiChain as u, isTokenSupported as v, isXRPLChain as w };
277
+ export { DEFAULT_CHAIN as D, SUPPORTED_CHAINS as S, X402Client as X, DEFAULT_FACILITATOR_URL as a, getChainById as b, getChainByName as c, getChainsByNetworkType as d, getChainsByToken as e, getEVMChainIds as f, getAlgorandChains as g, getEnabledChains as h, getExplorerAddressUrl as i, getExplorerTxUrl as j, getNetworkType as k, getSVMChains as l, getSuiChains as m, getSupportedTokens as n, getTokenByAddress as o, getTokenConfig as p, getXRPLChains as q, isAlgorandChain as r, isChainSupported as s, isSVMChain as t, isSuiChain as u, isTokenSupported as v, isXRPLChain as w };
@@ -688,4 +688,4 @@ declare class X402Error extends Error {
688
688
  constructor(message: string, code: X402ErrorCode, details?: unknown);
689
689
  }
690
690
 
691
- export { type AlgorandPaymentPayload as A, type X402HeaderName as B, type ChainConfig as C, DEFAULT_CONFIG as D, type EIP712Domain as E, type X402HeaderV1 as F, type X402HeaderV2 as G, type X402NEARPayload as H, type X402PaymentOption as I, type X402Scheme as J, type X402SettlementAccountPayload as K, type X402SolanaPayload as L, type MultiPaymentConfig as M, type NetworkBalance as N, type X402StellarPayload as O, type PaymentInfo as P, type X402SuiPayload as Q, type X402XRPLPayload as R, type SolanaPaymentPayload as S, type TokenType as T, type USDCConfig as U, type XRPLPaymentPayload as V, type WalletAdapter as W, type X402Version as X, type X402ClientConfig as a, type PaymentResult as b, type NetworkType as c, type WalletState as d, type X402Header as e, type X402PayloadData as f, type X402Event as g, type X402EventHandler as h, type TokenConfig as i, CAIP2_IDENTIFIERS as j, CAIP2_TO_CHAIN as k, type EIP712Types as l, type EVMPaymentPayload as m, type NEARPaymentPayload as n, type NativeCurrency as o, type PaymentHeaders as p, type PaymentPayload as q, type PaymentRequest as r, type PaymentTokenMetadata as s, type StellarPaymentPayload as t, type SuiPaymentPayload as u, type X402AlgorandPayload as v, type X402EVMPayload as w, X402Error as x, type X402ErrorCode as y, type X402EventData as z };
691
+ export { type AlgorandPaymentPayload as A, type X402HeaderV2 as B, CAIP2_IDENTIFIERS as C, DEFAULT_CONFIG as D, type EIP712Domain as E, type X402NEARPayload as F, type X402PayloadData as G, type X402PaymentOption as H, type X402Scheme as I, type X402SettlementAccountPayload as J, type X402SolanaPayload as K, type X402StellarPayload as L, type MultiPaymentConfig as M, type NEARPaymentPayload as N, type X402SuiPayload as O, type PaymentHeaders as P, type X402Version as Q, type X402XRPLPayload as R, type SolanaPaymentPayload as S, type TokenConfig as T, type USDCConfig as U, type XRPLPaymentPayload as V, type WalletAdapter as W, type X402AlgorandPayload as X, CAIP2_TO_CHAIN as a, type ChainConfig as b, type EIP712Types as c, type EVMPaymentPayload as d, type NativeCurrency as e, type NetworkBalance as f, type NetworkType as g, type PaymentInfo as h, type PaymentPayload as i, type PaymentRequest as j, type PaymentResult as k, type PaymentTokenMetadata as l, type StellarPaymentPayload as m, type SuiPaymentPayload as n, type TokenType as o, type WalletState as p, type X402ClientConfig as q, type X402EVMPayload as r, X402Error as s, type X402ErrorCode as t, type X402Event as u, type X402EventData as v, type X402EventHandler as w, type X402Header as x, type X402HeaderName as y, type X402HeaderV1 as z };
@@ -688,4 +688,4 @@ declare class X402Error extends Error {
688
688
  constructor(message: string, code: X402ErrorCode, details?: unknown);
689
689
  }
690
690
 
691
- export { type AlgorandPaymentPayload as A, type X402HeaderName as B, type ChainConfig as C, DEFAULT_CONFIG as D, type EIP712Domain as E, type X402HeaderV1 as F, type X402HeaderV2 as G, type X402NEARPayload as H, type X402PaymentOption as I, type X402Scheme as J, type X402SettlementAccountPayload as K, type X402SolanaPayload as L, type MultiPaymentConfig as M, type NetworkBalance as N, type X402StellarPayload as O, type PaymentInfo as P, type X402SuiPayload as Q, type X402XRPLPayload as R, type SolanaPaymentPayload as S, type TokenType as T, type USDCConfig as U, type XRPLPaymentPayload as V, type WalletAdapter as W, type X402Version as X, type X402ClientConfig as a, type PaymentResult as b, type NetworkType as c, type WalletState as d, type X402Header as e, type X402PayloadData as f, type X402Event as g, type X402EventHandler as h, type TokenConfig as i, CAIP2_IDENTIFIERS as j, CAIP2_TO_CHAIN as k, type EIP712Types as l, type EVMPaymentPayload as m, type NEARPaymentPayload as n, type NativeCurrency as o, type PaymentHeaders as p, type PaymentPayload as q, type PaymentRequest as r, type PaymentTokenMetadata as s, type StellarPaymentPayload as t, type SuiPaymentPayload as u, type X402AlgorandPayload as v, type X402EVMPayload as w, X402Error as x, type X402ErrorCode as y, type X402EventData as z };
691
+ export { type AlgorandPaymentPayload as A, type X402HeaderV2 as B, CAIP2_IDENTIFIERS as C, DEFAULT_CONFIG as D, type EIP712Domain as E, type X402NEARPayload as F, type X402PayloadData as G, type X402PaymentOption as H, type X402Scheme as I, type X402SettlementAccountPayload as J, type X402SolanaPayload as K, type X402StellarPayload as L, type MultiPaymentConfig as M, type NEARPaymentPayload as N, type X402SuiPayload as O, type PaymentHeaders as P, type X402Version as Q, type X402XRPLPayload as R, type SolanaPaymentPayload as S, type TokenConfig as T, type USDCConfig as U, type XRPLPaymentPayload as V, type WalletAdapter as W, type X402AlgorandPayload as X, CAIP2_TO_CHAIN as a, type ChainConfig as b, type EIP712Types as c, type EVMPaymentPayload as d, type NativeCurrency as e, type NetworkBalance as f, type NetworkType as g, type PaymentInfo as h, type PaymentPayload as i, type PaymentRequest as j, type PaymentResult as k, type PaymentTokenMetadata as l, type StellarPaymentPayload as m, type SuiPaymentPayload as n, type TokenType as o, type WalletState as p, type X402ClientConfig as q, type X402EVMPayload as r, X402Error as s, type X402ErrorCode as t, type X402Event as u, type X402EventData as v, type X402EventHandler as w, type X402Header as x, type X402HeaderName as y, type X402HeaderV1 as z };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- export { D as DEFAULT_CHAIN, a as DEFAULT_FACILITATOR_URL, S as SUPPORTED_CHAINS, X as X402Client, b as getAlgorandChains, c as getChainById, g as getChainByName, d as getChainsByNetworkType, e as getChainsByToken, f as getEVMChainIds, h as getEnabledChains, i as getExplorerAddressUrl, j as getExplorerTxUrl, k as getNetworkType, l as getSVMChains, m as getSuiChains, n as getSupportedTokens, o as getTokenByAddress, p as getTokenConfig, q as getXRPLChains, r as isAlgorandChain, s as isChainSupported, t as isSVMChain, u as isSuiChain, v as isTokenSupported, w as isXRPLChain } from './index-BkeMrSHP.mjs';
2
- export { DEFAULT_PAYMENT_HEADER, PAYMENT_HEADER_NAMES, buildTokenMetadata, caip2ToChain, chainToCAIP2, convertX402Header, createPaymentHeaders, createX402Header, createX402V1Header, createX402V2Header, decodeBase64Utf8, decodeX402Header, detectX402Version, encodeBase64Json, encodeBase64Utf8, encodeX402Header, generatePaymentOptions, getPaymentHeader, isCAIP2Format, parseNetworkIdentifier, paymentChallengeFrom, validateAmount, validateRecipient } from './utils/index.mjs';
3
- export { A as AlgorandPaymentPayload, j as CAIP2_IDENTIFIERS, k as CAIP2_TO_CHAIN, C as ChainConfig, D as DEFAULT_CONFIG, E as EIP712Domain, l as EIP712Types, m as EVMPaymentPayload, M as MultiPaymentConfig, n as NEARPaymentPayload, o as NativeCurrency, N as NetworkBalance, c as NetworkType, p as PaymentHeaders, P as PaymentInfo, q as PaymentPayload, r as PaymentRequest, b as PaymentResult, s as PaymentTokenMetadata, S as SolanaPaymentPayload, t as StellarPaymentPayload, u as SuiPaymentPayload, i as TokenConfig, T as TokenType, U as USDCConfig, W as WalletAdapter, d as WalletState, v as X402AlgorandPayload, a as X402ClientConfig, w as X402EVMPayload, x as X402Error, y as X402ErrorCode, g as X402Event, z as X402EventData, h as X402EventHandler, e as X402Header, B as X402HeaderName, F as X402HeaderV1, G as X402HeaderV2, H as X402NEARPayload, f as X402PayloadData, I as X402PaymentOption, J as X402Scheme, K as X402SettlementAccountPayload, L as X402SolanaPayload, O as X402StellarPayload, Q as X402SuiPayload, X as X402Version, R as X402XRPLPayload, V as XRPLPaymentPayload } from './index-DeJMYEKC.mjs';
4
- import { S as SigningWalletAdapter } from './wallet-w7BnImDG.mjs';
5
- export { a as EIP3009Authorization, E as EIP3009Params } from './wallet-w7BnImDG.mjs';
6
- export { E as EnvKeyAdapter, O as OWSWallet, a as OWSWalletAdapter } from './ows-Z9v4GxOZ.mjs';
1
+ export { D as DEFAULT_CHAIN, a as DEFAULT_FACILITATOR_URL, S as SUPPORTED_CHAINS, X as X402Client, g as getAlgorandChains, b as getChainById, c as getChainByName, d as getChainsByNetworkType, e as getChainsByToken, f as getEVMChainIds, h as getEnabledChains, i as getExplorerAddressUrl, j as getExplorerTxUrl, k as getNetworkType, l as getSVMChains, m as getSuiChains, n as getSupportedTokens, o as getTokenByAddress, p as getTokenConfig, q as getXRPLChains, r as isAlgorandChain, s as isChainSupported, t as isSVMChain, u as isSuiChain, v as isTokenSupported, w as isXRPLChain } from './index-CiRbsqXe.mjs';
2
+ export { D as DEFAULT_PAYMENT_HEADER, P as PAYMENT_HEADER_NAMES, b as buildTokenMetadata, c as caip2ToChain, a as chainToCAIP2, d as convertX402Header, e as createPaymentHeaders, f as createX402Header, g as createX402V1Header, h as createX402V2Header, i as decodeBase64Utf8, j as decodeX402Header, k as detectX402Version, l as encodeBase64Json, m as encodeBase64Utf8, n as encodeX402Header, o as generatePaymentOptions, p as getPaymentHeader, q as isCAIP2Format, r as parseNetworkIdentifier, s as paymentChallengeFrom, v as validateAmount, t as validateRecipient } from './validation-De3bessL.mjs';
3
+ export { A as AlgorandPaymentPayload, C as CAIP2_IDENTIFIERS, a as CAIP2_TO_CHAIN, b as ChainConfig, D as DEFAULT_CONFIG, E as EIP712Domain, c as EIP712Types, d as EVMPaymentPayload, M as MultiPaymentConfig, N as NEARPaymentPayload, e as NativeCurrency, f as NetworkBalance, g as NetworkType, P as PaymentHeaders, h as PaymentInfo, i as PaymentPayload, j as PaymentRequest, k as PaymentResult, l as PaymentTokenMetadata, S as SolanaPaymentPayload, m as StellarPaymentPayload, n as SuiPaymentPayload, T as TokenConfig, o as TokenType, U as USDCConfig, W as WalletAdapter, p as WalletState, X as X402AlgorandPayload, q as X402ClientConfig, r as X402EVMPayload, s as X402Error, t as X402ErrorCode, u as X402Event, v as X402EventData, w as X402EventHandler, x as X402Header, y as X402HeaderName, z as X402HeaderV1, B as X402HeaderV2, F as X402NEARPayload, G as X402PayloadData, H as X402PaymentOption, I as X402Scheme, J as X402SettlementAccountPayload, K as X402SolanaPayload, L as X402StellarPayload, O as X402SuiPayload, Q as X402Version, R as X402XRPLPayload, V as XRPLPaymentPayload } from './index-ZH10otHE.mjs';
4
+ import { S as SigningWalletAdapter } from './wallet-0cX9Pw2F.mjs';
5
+ export { E as EIP3009Authorization, a as EIP3009Params } from './wallet-0cX9Pw2F.mjs';
6
+ export { E as EnvKeyAdapter, O as OWSWallet, a as OWSWalletAdapter } from './ows-CYIVd4xO.mjs';
7
7
  export { FacilitatorClient, FacilitatorClientOptions, HonoMiddlewareOptions, PaymentAcceptance, PaymentMiddlewareOptions, PaymentPayloadV2, PaymentRequirementsV2, ResourceInfoV2, SettleRequestV2, VerifiedPaymentState, VerifyRequestV2, X402_CORS_HEADERS, X402_HEADER_NAMES, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildVerifyRequest, buildVerifyRequestV2, create402Response, createHonoMiddleware, createPaymentMiddleware, extractPaymentFromHeaders, getCorsHeaders } from './backend/index.mjs';
8
8
 
9
9
  /**
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { D as DEFAULT_CHAIN, a as DEFAULT_FACILITATOR_URL, S as SUPPORTED_CHAINS, X as X402Client, b as getAlgorandChains, c as getChainById, g as getChainByName, d as getChainsByNetworkType, e as getChainsByToken, f as getEVMChainIds, h as getEnabledChains, i as getExplorerAddressUrl, j as getExplorerTxUrl, k as getNetworkType, l as getSVMChains, m as getSuiChains, n as getSupportedTokens, o as getTokenByAddress, p as getTokenConfig, q as getXRPLChains, r as isAlgorandChain, s as isChainSupported, t as isSVMChain, u as isSuiChain, v as isTokenSupported, w as isXRPLChain } from './index-BQ45e-Xa.js';
2
- export { DEFAULT_PAYMENT_HEADER, PAYMENT_HEADER_NAMES, buildTokenMetadata, caip2ToChain, chainToCAIP2, convertX402Header, createPaymentHeaders, createX402Header, createX402V1Header, createX402V2Header, decodeBase64Utf8, decodeX402Header, detectX402Version, encodeBase64Json, encodeBase64Utf8, encodeX402Header, generatePaymentOptions, getPaymentHeader, isCAIP2Format, parseNetworkIdentifier, paymentChallengeFrom, validateAmount, validateRecipient } from './utils/index.js';
3
- export { A as AlgorandPaymentPayload, j as CAIP2_IDENTIFIERS, k as CAIP2_TO_CHAIN, C as ChainConfig, D as DEFAULT_CONFIG, E as EIP712Domain, l as EIP712Types, m as EVMPaymentPayload, M as MultiPaymentConfig, n as NEARPaymentPayload, o as NativeCurrency, N as NetworkBalance, c as NetworkType, p as PaymentHeaders, P as PaymentInfo, q as PaymentPayload, r as PaymentRequest, b as PaymentResult, s as PaymentTokenMetadata, S as SolanaPaymentPayload, t as StellarPaymentPayload, u as SuiPaymentPayload, i as TokenConfig, T as TokenType, U as USDCConfig, W as WalletAdapter, d as WalletState, v as X402AlgorandPayload, a as X402ClientConfig, w as X402EVMPayload, x as X402Error, y as X402ErrorCode, g as X402Event, z as X402EventData, h as X402EventHandler, e as X402Header, B as X402HeaderName, F as X402HeaderV1, G as X402HeaderV2, H as X402NEARPayload, f as X402PayloadData, I as X402PaymentOption, J as X402Scheme, K as X402SettlementAccountPayload, L as X402SolanaPayload, O as X402StellarPayload, Q as X402SuiPayload, X as X402Version, R as X402XRPLPayload, V as XRPLPaymentPayload } from './index-DeJMYEKC.js';
4
- import { S as SigningWalletAdapter } from './wallet-w7BnImDG.js';
5
- export { a as EIP3009Authorization, E as EIP3009Params } from './wallet-w7BnImDG.js';
6
- export { E as EnvKeyAdapter, O as OWSWallet, a as OWSWalletAdapter } from './ows-C-KmORG9.js';
1
+ export { D as DEFAULT_CHAIN, a as DEFAULT_FACILITATOR_URL, S as SUPPORTED_CHAINS, X as X402Client, g as getAlgorandChains, b as getChainById, c as getChainByName, d as getChainsByNetworkType, e as getChainsByToken, f as getEVMChainIds, h as getEnabledChains, i as getExplorerAddressUrl, j as getExplorerTxUrl, k as getNetworkType, l as getSVMChains, m as getSuiChains, n as getSupportedTokens, o as getTokenByAddress, p as getTokenConfig, q as getXRPLChains, r as isAlgorandChain, s as isChainSupported, t as isSVMChain, u as isSuiChain, v as isTokenSupported, w as isXRPLChain } from './index-DTXTOEby.js';
2
+ export { D as DEFAULT_PAYMENT_HEADER, P as PAYMENT_HEADER_NAMES, b as buildTokenMetadata, c as caip2ToChain, a as chainToCAIP2, d as convertX402Header, e as createPaymentHeaders, f as createX402Header, g as createX402V1Header, h as createX402V2Header, i as decodeBase64Utf8, j as decodeX402Header, k as detectX402Version, l as encodeBase64Json, m as encodeBase64Utf8, n as encodeX402Header, o as generatePaymentOptions, p as getPaymentHeader, q as isCAIP2Format, r as parseNetworkIdentifier, s as paymentChallengeFrom, v as validateAmount, t as validateRecipient } from './validation-DsbfDAtV.js';
3
+ export { A as AlgorandPaymentPayload, C as CAIP2_IDENTIFIERS, a as CAIP2_TO_CHAIN, b as ChainConfig, D as DEFAULT_CONFIG, E as EIP712Domain, c as EIP712Types, d as EVMPaymentPayload, M as MultiPaymentConfig, N as NEARPaymentPayload, e as NativeCurrency, f as NetworkBalance, g as NetworkType, P as PaymentHeaders, h as PaymentInfo, i as PaymentPayload, j as PaymentRequest, k as PaymentResult, l as PaymentTokenMetadata, S as SolanaPaymentPayload, m as StellarPaymentPayload, n as SuiPaymentPayload, T as TokenConfig, o as TokenType, U as USDCConfig, W as WalletAdapter, p as WalletState, X as X402AlgorandPayload, q as X402ClientConfig, r as X402EVMPayload, s as X402Error, t as X402ErrorCode, u as X402Event, v as X402EventData, w as X402EventHandler, x as X402Header, y as X402HeaderName, z as X402HeaderV1, B as X402HeaderV2, F as X402NEARPayload, G as X402PayloadData, H as X402PaymentOption, I as X402Scheme, J as X402SettlementAccountPayload, K as X402SolanaPayload, L as X402StellarPayload, O as X402SuiPayload, Q as X402Version, R as X402XRPLPayload, V as XRPLPaymentPayload } from './index-ZH10otHE.js';
4
+ import { S as SigningWalletAdapter } from './wallet-0cX9Pw2F.js';
5
+ export { E as EIP3009Authorization, a as EIP3009Params } from './wallet-0cX9Pw2F.js';
6
+ export { E as EnvKeyAdapter, O as OWSWallet, a as OWSWalletAdapter } from './ows-DTDixPzO.js';
7
7
  export { FacilitatorClient, FacilitatorClientOptions, HonoMiddlewareOptions, PaymentAcceptance, PaymentMiddlewareOptions, PaymentPayloadV2, PaymentRequirementsV2, ResourceInfoV2, SettleRequestV2, VerifiedPaymentState, VerifyRequestV2, X402_CORS_HEADERS, X402_HEADER_NAMES, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildVerifyRequest, buildVerifyRequestV2, create402Response, createHonoMiddleware, createPaymentMiddleware, extractPaymentFromHeaders, getCorsHeaders } from './backend/index.js';
8
8
 
9
9
  /**