@dexterai/x402 3.1.0 → 3.2.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.
@@ -1 +1 @@
1
- var s="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",i="eip155:8453";function o(e,t){let r=Math.pow(10,t);return Math.floor(e*r).toString()}function c(e,t){let r=Math.pow(10,t);return Number(e)/r}function p(e){return e.startsWith("solana:")||e==="solana"}function u(e){return e.startsWith("eip155:")||["base","ethereum","arbitrum"].includes(e)}function a(e){return p(e)?"solana":u(e)?"evm":"unknown"}function l(e){return{[s]:"Solana","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1":"Solana Devnet","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"Solana Testnet",solana:"Solana",[i]:"Base","eip155:84532":"Base Sepolia","eip155:1":"Ethereum","eip155:42161":"Arbitrum One",base:"Base",ethereum:"Ethereum",arbitrum:"Arbitrum"}[e]||e}function f(e,t){let r=a(t);if(r==="solana")return t.includes("devnet")||t==="solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"?`https://solscan.io/tx/${e}?cluster=devnet`:`https://www.orbmarkets.io/tx/${e}`;if(r==="evm"){let n="8453";switch(t.startsWith("eip155:")?n=t.split(":")[1]:t==="ethereum"?n="1":t==="arbitrum"&&(n="42161"),n){case"8453":return`https://basescan.org/tx/${e}`;case"84532":return`https://sepolia.basescan.org/tx/${e}`;case"1":return`https://etherscan.io/tx/${e}`;case"42161":return`https://arbiscan.io/tx/${e}`;default:return`https://basescan.org/tx/${e}`}}return`https://solscan.io/tx/${e}`}export{c as fromAtomicUnits,a as getChainFamily,l as getChainName,f as getExplorerUrl,o as toAtomicUnits};
1
+ var N="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",m="solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",u="solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z";var n="eip155:8453",a="eip155:84532",o="eip155:42161",i="eip155:137",c="eip155:10",p="eip155:43114",E="eip155:56",l="eip155:1187947933",A="eip155:324705682",h="eip155:1";var S="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",T="0x55d398326f99059fF775485246999027B3197955",x="0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",D={[E]:x,[n]:S,[a]:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",[o]:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",[i]:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",[c]:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",[p]:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",[l]:"0x85889c8c714505E0c94b30fcfcF64fE3Ac8FCb20",[A]:"0x2e08028E3C4c2356572E096d8EF835cD5C6030bD",[h]:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},B={[T]:{symbol:"USDT",decimals:18},[x]:{symbol:"USDC",decimals:18}};var I={[E]:56,[n]:8453,[a]:84532,[o]:42161,[i]:137,[c]:10,[p]:43114,[l]:1187947933,[A]:324705682,[h]:1},K={[N]:"https://api.dexter.cash/api/solana/rpc",[m]:"https://api.devnet.solana.com",[u]:"https://api.testnet.solana.com"},L={[E]:"https://bsc-dataseed1.binance.org",[n]:"https://api.dexter.cash/api/base/rpc",[a]:"https://sepolia.base.org",[o]:"https://arb1.arbitrum.io/rpc",[i]:"https://polygon-rpc.com",[c]:"https://mainnet.optimism.io",[p]:"https://api.avax.network/ext/bc/C/rpc",[l]:"https://skale-base.skalenodes.com/v1/base",[A]:"https://base-sepolia-testnet.skalenodes.com/v1/jubilant-horrible-ancha",[h]:"https://eth.llamarpc.com"};function _(t,e){let r=Math.pow(10,e);return Math.floor(t*r).toString()}function d(t,e){let r=Math.pow(10,e);return Number(t)/r}function O(t){return t.startsWith("solana:")||t==="solana"}function R(t){return t.startsWith("eip155:")||["base","ethereum","arbitrum"].includes(t)}function f(t){return O(t)?"solana":R(t)?"evm":"unknown"}function b(t){return{[N]:"Solana",[m]:"Solana Devnet",[u]:"Solana Testnet",solana:"Solana","solana-devnet":"Solana Devnet","solana-testnet":"Solana Testnet",[n]:"Base",[a]:"Base Sepolia",[h]:"Ethereum",[o]:"Arbitrum",[i]:"Polygon",[c]:"Optimism",[p]:"Avalanche",[E]:"BSC",[l]:"SKALE Base",[A]:"SKALE Base Sepolia",base:"Base","base-sepolia":"Base Sepolia",ethereum:"Ethereum",arbitrum:"Arbitrum",polygon:"Polygon",optimism:"Optimism",avalanche:"Avalanche",bsc:"BSC","skale-base":"SKALE Base","skale-base-sepolia":"SKALE Base Sepolia"}[t]||t}function C(t,e){let r=b(t);return r===t?e:r}function g(t,e){let r=f(e);if(r==="solana")return e.includes("devnet")||e===m?`https://solscan.io/tx/${t}?cluster=devnet`:`https://www.orbmarkets.io/tx/${t}`;if(r==="evm"){let s="8453";switch(e.startsWith("eip155:")?s=e.split(":")[1]:e==="ethereum"?s="1":e==="arbitrum"?s="42161":e==="polygon"?s="137":e==="optimism"?s="10":e==="avalanche"?s="43114":e==="bsc"?s="56":e==="skale-base"?s="1187947933":e==="skale-base-sepolia"&&(s="324705682"),s){case"8453":return`https://basescan.org/tx/${t}`;case"84532":return`https://sepolia.basescan.org/tx/${t}`;case"1":return`https://etherscan.io/tx/${t}`;case"42161":return`https://arbiscan.io/tx/${t}`;case"137":return`https://polygonscan.com/tx/${t}`;case"10":return`https://optimistic.etherscan.io/tx/${t}`;case"43114":return`https://snowtrace.io/tx/${t}`;case"56":return`https://bscscan.com/tx/${t}`;case"1187947933":return`https://elated-tan-skat.explorer.mainnet.skalenodes.com/tx/${t}`;case"324705682":return`https://base-sepolia-testnet.explorer.skalenodes.com/tx/${t}`;default:return`https://basescan.org/tx/${t}`}}return`https://solscan.io/tx/${t}`}export{d as fromAtomicUnits,C as getChainDisplayName,f as getChainFamily,b as getChainName,g as getExplorerUrl,_ as toAtomicUnits};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexterai/x402",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Full-stack x402 SDK - add paid API monetization to any endpoint. Express middleware, React hooks, Access Pass, dynamic pricing. Solana, Base, Polygon, Arbitrum, Optimism, Avalanche, SKALE.",
5
5
  "author": "Dexter",
6
6
  "license": "MIT",
@@ -106,6 +106,8 @@
106
106
  "arbitrum",
107
107
  "optimism",
108
108
  "avalanche",
109
+ "bsc",
110
+ "skale",
109
111
  "payments",
110
112
  "dexter",
111
113
  "web3",