@anywalletkit/protocol-swap2-router 0.2.2 → 0.2.3
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 +11 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
# @anywalletkit/protocol-swap2-router
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-router)
|
|
4
|
+
|
|
3
5
|
The optional swap2 aggregator. Every provider module (`-lifi`, `-near-intents`, `-thorchain`,
|
|
4
6
|
`-omniston`, `-cctp`, `-uniswap`, `-balancer`, `-wrap`) works on its own; install this package when
|
|
5
7
|
you want one protocol that auctions a route across the providers **you** pass in. It bundles none.
|
|
6
8
|
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @anywalletkit/protocol-swap2-router @anywalletkit/core
|
|
13
|
+
# or: pnpm add @anywalletkit/protocol-swap2-router @anywalletkit/core · yarn add @anywalletkit/protocol-swap2-router @anywalletkit/core
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
On npm: [@anywalletkit/protocol-swap2-router](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-router), published from the [release workflow](https://github.com/ultratestbro/anywalletkit/blob/main/RELEASING.md) with provenance.
|
|
17
|
+
|
|
7
18
|
## Three ways to offer cross-chain swaps
|
|
8
19
|
|
|
9
20
|
**1. One protocol, no aggregator.** Install a single provider and use its own protocol class.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anywalletkit/protocol-swap2-router",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Optional swap2 aggregator for Any Wallet Kit: auctions whichever swap2 providers you install and pass in.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://docs.anywallet.tech",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"module.json"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@anywalletkit/protocol-swap2-core": "0.3.
|
|
50
|
-
"@anywalletkit/swap2-assets": "0.1.
|
|
49
|
+
"@anywalletkit/protocol-swap2-core": "0.3.2",
|
|
50
|
+
"@anywalletkit/swap2-assets": "0.1.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@anywalletkit/core": "0.3.
|
|
53
|
+
"@anywalletkit/core": "0.3.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^22",
|
|
57
57
|
"vitest": "^5.0.3",
|
|
58
|
-
"@anywalletkit/core": "0.3.
|
|
59
|
-
"@anywalletkit/conformance": "0.3.
|
|
58
|
+
"@anywalletkit/core": "0.3.2",
|
|
59
|
+
"@anywalletkit/conformance": "0.3.2"
|
|
60
60
|
},
|
|
61
61
|
"keywords": [],
|
|
62
62
|
"publishConfig": {
|