@blazephoenix/sdk 1.2.1 → 1.3.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 +17 -6
- package/dist/index.cjs +21 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/llms.txt +3 -1
- package/package.json +2 -2
package/llms.txt
CHANGED
|
@@ -22,7 +22,9 @@ const q = await blaze.quote({ chain: 'base', tokenIn: 'WETH', tokenOut: 'USDC',
|
|
|
22
22
|
|
|
23
23
|
`rpc` accepts a URL, a fallback list, an EIP-1193 provider, a viem Transport or a per-chain map. With no `rpc`, the client reads `BLAZEPHOENIX_RPC_URL` (one node) or `BLAZEPHOENIX_RPC_BASE`, `_ETHEREUM`, `_OPTIMISM`, `_ARBITRUM`, `_ROBINHOOD` (comma-separated for fallback).
|
|
24
24
|
|
|
25
|
-
Main methods: `quote`, `quoteExact`, `quoteBatch`, `buildSwap` (verified Router calldata), `simulate`, `execute`, `getFills`, `watchFills`, `tokenInfo`, `solvency`, `deployments`. Every failure is a `BlazeError` with a stable `code`.
|
|
25
|
+
Main methods: `quote`, `quoteExact`, `quoteBatch`, `buildSwap` (verified Router calldata), `simulate`, `execute`, `getFills`, `watchFills`, `tokenInfo`, `solvency`, `deployments`. `quoteExact` returns `exactOut`, net of the 0.28% protocol fee on every Quoter, and `quoterOut`, the scalar exactly as the Quoter returned it (gross of the fee on a 1.x Quoter). Every failure is a `BlazeError` with a stable `code`.
|
|
26
|
+
|
|
27
|
+
Protocol versions are deployments, not SDK versions: 1.0.0 is live on Base, Ethereum, Optimism, Arbitrum and Robinhood Chain; 2.0.0 is pending (Router, Solver, Hub, Quoter and Gate with the Core and Math libraries; Balancer V2/V3 and Curve NG via the Gate) and targets Base, Optimism, Arbitrum, Robinhood Chain and further L2s, not Ethereum L1. `version: 'latest'` (default) uses the newest version deployed on each chain.
|
|
26
28
|
|
|
27
29
|
## Docs
|
|
28
30
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazephoenix/sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Official TypeScript SDK for BlazePhoenix — the on-chain DEX aggregator. Quote, build, verify and execute swaps 100% on YOUR RPC (no API in the read path, no key, no endpoints shipped). Versioned deployments (1.x live
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Official TypeScript SDK for BlazePhoenix — the on-chain DEX aggregator. Quote, build, verify and execute swaps 100% on YOUR RPC (no API in the read path, no key, no endpoints shipped). Versioned deployments (1.x live; 2.x pending: Router, Solver, Hub, Quoter, Gate). Base, Ethereum, Optimism, Arbitrum, Robinhood Chain.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blazephoenix",
|
|
7
7
|
"bzpx",
|