@anywalletkit/protocol-swap2-chainflip 0.2.1 → 0.2.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.
- package/README.md +11 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
# @anywalletkit/protocol-swap2-chainflip
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-chainflip)
|
|
4
|
+
|
|
3
5
|
[Chainflip](https://docs.chainflip.io) vault swaps as a swap2 provider: native
|
|
4
6
|
BTC / ETH / SOL / TRX and USDC / USDT between Ethereum, Arbitrum, Solana, Tron
|
|
5
7
|
and Bitcoin, priced by Chainflip's JIT AMM. Quotes and encoding come from
|
|
6
8
|
Chainflip's public backend (`chainflip-swap.chainflip.io`). You need no broker
|
|
7
9
|
account, there is no API key, and the commission is 0 bps.
|
|
8
10
|
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @anywalletkit/protocol-swap2-chainflip @anywalletkit/core
|
|
15
|
+
# or: pnpm add @anywalletkit/protocol-swap2-chainflip @anywalletkit/core · yarn add @anywalletkit/protocol-swap2-chainflip @anywalletkit/core
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
On npm: [@anywalletkit/protocol-swap2-chainflip](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-chainflip), published from the [release workflow](https://github.com/ultratestbro/anywalletkit/blob/main/RELEASING.md) with provenance.
|
|
19
|
+
|
|
9
20
|
```ts
|
|
10
21
|
import {chainflipProvider} from "@anywalletkit/protocol-swap2-chainflip/provider";
|
|
11
22
|
import {RouterSwap2Protocol} from "@anywalletkit/protocol-swap2-router/swap2/router";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anywalletkit/protocol-swap2-chainflip",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Chainflip vault swaps for the swap2 engine: native BTC / ETH / SOL / TRX and USDC / USDT across Ethereum, Arbitrum, Solana, Tron and Bitcoin through Chainflip's public backend (its own broker, 0 bps, no account). Sources in this release: Ethereum, Arbitrum and Tron (a plain USDT transfer to the Vault with the swap in the note — no approval, no 3.4 USDT channel fee). Every byte the encoder returns is decoded and checked before signing; fill-or-kill refunds to the sender.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://docs.anywallet.tech",
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
"@noble/hashes": "^2.4.0",
|
|
60
60
|
"@scure/base": "^2.4.0",
|
|
61
61
|
"viem": "^2.57.2",
|
|
62
|
-
"@anywalletkit/protocol-swap2-core": "0.3.
|
|
62
|
+
"@anywalletkit/protocol-swap2-core": "0.3.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@anywalletkit/core": "0.3.
|
|
65
|
+
"@anywalletkit/core": "0.3.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/node": "^22",
|
|
69
69
|
"vitest": "^5.0.3",
|
|
70
|
-
"@anywalletkit/conformance": "0.3.
|
|
71
|
-
"@anywalletkit/
|
|
72
|
-
"@anywalletkit/
|
|
70
|
+
"@anywalletkit/conformance": "0.3.2",
|
|
71
|
+
"@anywalletkit/protocol-swap2-router": "0.2.3",
|
|
72
|
+
"@anywalletkit/core": "0.3.2"
|
|
73
73
|
},
|
|
74
74
|
"keywords": [
|
|
75
75
|
"swap2",
|