@anywalletkit/protocol-swap2-jupiter 0.2.0 → 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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -1,11 +1,22 @@
1
1
  # @anywalletkit/protocol-swap2-jupiter
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@anywalletkit/protocol-swap2-jupiter?label=npm)](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-jupiter)
4
+
3
5
  [Jupiter](https://developers.jup.ag/docs/swap) same-chain Solana swaps as a
4
6
  swap2 provider. It uses Swap API V2's **Router** path (`GET /swap/v2/build`):
5
7
  Metis on-chain routing, raw instructions, and no Jupiter swap fee. Quotes work
6
8
  without an API key at 0.5 requests per second. Pass `apiKey` for your plan's
7
9
  limit; the key is per organisation, so ship it on a server, not inside an app.
8
10
 
11
+ ## Install
12
+
13
+ ```sh
14
+ npm install @anywalletkit/protocol-swap2-jupiter @anywalletkit/core
15
+ # or: pnpm add @anywalletkit/protocol-swap2-jupiter @anywalletkit/core · yarn add @anywalletkit/protocol-swap2-jupiter @anywalletkit/core
16
+ ```
17
+
18
+ On npm: [@anywalletkit/protocol-swap2-jupiter](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-jupiter), published from the [release workflow](https://github.com/ultratestbro/anywalletkit/blob/main/RELEASING.md) with provenance.
19
+
9
20
  ```ts
10
21
  import {jupiterProvider} from "@anywalletkit/protocol-swap2-jupiter/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-jupiter",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Jupiter same-chain Solana swaps for the swap2 engine through Swap API V2's Router path (GET /swap/v2/build): Metis routing, no Jupiter swap fee, keyless or with an API key. The transaction is assembled locally from raw instructions after every instruction is vetted (Jupiter v6 + token/system/ATA plumbing only, taker the only signer, swap arguments decoded: our amount, the quoted output, our slippage, zero platform fee); the account executes it through its serialized-transaction guard and its own RPC.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.anywallet.tech",
@@ -63,19 +63,19 @@
63
63
  "dependencies": {
64
64
  "@scure/base": "^2.4.0",
65
65
  "@solana/kit": "^8.4.0",
66
- "@anywalletkit/protocol-swap2-core": "0.3.0",
67
- "@anywalletkit/swap2-assets": "0.1.2"
66
+ "@anywalletkit/protocol-swap2-core": "0.3.2",
67
+ "@anywalletkit/swap2-assets": "0.1.4"
68
68
  },
69
69
  "peerDependencies": {
70
- "@anywalletkit/core": "0.3.0"
70
+ "@anywalletkit/core": "0.3.2"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/node": "^22",
74
74
  "vitest": "^5.0.3",
75
- "@anywalletkit/conformance": "0.3.0",
76
- "@anywalletkit/core": "0.3.0",
77
- "@anywalletkit/protocol-swap2-router": "0.2.1",
78
- "@anywalletkit/wallet-solana": "0.1.2"
75
+ "@anywalletkit/conformance": "0.3.2",
76
+ "@anywalletkit/core": "0.3.2",
77
+ "@anywalletkit/wallet-solana": "0.1.4",
78
+ "@anywalletkit/protocol-swap2-router": "0.2.3"
79
79
  },
80
80
  "keywords": [
81
81
  "swap2",