@anywalletkit/protocol-swap2-core 0.3.1 → 0.3.2

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 (2) hide show
  1. package/README.md +11 -3
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,7 +1,18 @@
1
1
  # @anywalletkit/protocol-swap2-core
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@anywalletkit/protocol-swap2-core?label=npm)](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-core)
4
+
3
5
  The swap2 engine: one interface for swaps and bridges ("swap2"), and the execution safety every swap2 provider package relies on.
4
6
 
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install @anywalletkit/protocol-swap2-core @anywalletkit/core
11
+ # or: pnpm add @anywalletkit/protocol-swap2-core @anywalletkit/core · yarn add @anywalletkit/protocol-swap2-core @anywalletkit/core
12
+ ```
13
+
14
+ On npm: [@anywalletkit/protocol-swap2-core](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-core), published from the [release workflow](https://github.com/ultratestbro/anywalletkit/blob/main/RELEASING.md) with provenance.
15
+
5
16
  - **`BaseSwap2Protocol` / `SingleProviderSwap2`** — a `Swap2Protocol` (from `@anywalletkit/core`) over a provider. It quotes, binds the execution to the quote, runs approvals, sends, and resumes status by id (`getSwap2Status`, `claimSwap2` for two-phase routes).
6
17
  - **Safety checks.** Quote validation, a minimum-output floor, fee caps, a review gate before signing, and refusals that name their reason. Status ids look like `awk1.<provider>.<intent>[.<hash>]` (`SWAP2_ID_PREFIX`).
7
18
  - **`remoteProvider`** — runs a provider on your server (API keys, shared state) while the app keeps the keys and signs.
@@ -10,9 +21,6 @@ The swap2 engine: one interface for swaps and bridges ("swap2"), and the executi
10
21
 
11
22
  Providers live in their own packages: `@anywalletkit/protocol-swap2-near-intents`, `-lifi`, `-thorchain`, `-omniston`, `-cctp`, `-usdt0`, `-chainflip`, `-jupiter`, `-uniswap`, `-balancer`, `-wrap`. `@anywalletkit/protocol-swap2-router` auctions several of them.
12
23
 
13
- ```sh
14
- pnpm add @anywalletkit/protocol-swap2-core
15
- ```
16
24
 
17
25
  Docs: [Swaps](https://docs.anywallet.tech/guides/swaps/)
18
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anywalletkit/protocol-swap2-core",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.anywallet.tech",
@@ -76,17 +76,17 @@
76
76
  ],
77
77
  "dependencies": {
78
78
  "viem": "^2.45.0",
79
- "@anywalletkit/tx-preview-evm": "0.1.2",
80
- "@anywalletkit/swap2-assets": "0.1.3"
79
+ "@anywalletkit/swap2-assets": "0.1.4",
80
+ "@anywalletkit/tx-preview-evm": "0.1.3"
81
81
  },
82
82
  "peerDependencies": {
83
- "@anywalletkit/core": "0.3.1"
83
+ "@anywalletkit/core": "0.3.2"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@types/node": "^22",
87
87
  "vitest": "^5.0.3",
88
- "@anywalletkit/conformance": "0.3.1",
89
- "@anywalletkit/core": "0.3.1"
88
+ "@anywalletkit/core": "0.3.2",
89
+ "@anywalletkit/conformance": "0.3.2"
90
90
  },
91
91
  "keywords": [],
92
92
  "publishConfig": {