@anywalletkit/protocol-swap2-relay 0.0.0-stage → 0.1.1

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 (58) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +116 -2
  3. package/dist/activity.cjs +82 -0
  4. package/dist/activity.cjs.map +1 -0
  5. package/dist/activity.d.cts +15 -0
  6. package/dist/activity.d.ts +15 -0
  7. package/dist/activity.js +10 -0
  8. package/dist/activity.js.map +1 -0
  9. package/dist/chunk-7LPLU3MB.js +27 -0
  10. package/dist/chunk-7LPLU3MB.js.map +1 -0
  11. package/dist/chunk-CCMNAZZB.js +307 -0
  12. package/dist/chunk-CCMNAZZB.js.map +1 -0
  13. package/dist/chunk-JQAN7HB5.js +80 -0
  14. package/dist/chunk-JQAN7HB5.js.map +1 -0
  15. package/dist/chunk-K5F3BEUO.js +22 -0
  16. package/dist/chunk-K5F3BEUO.js.map +1 -0
  17. package/dist/chunk-UVHDMGM5.js +190 -0
  18. package/dist/chunk-UVHDMGM5.js.map +1 -0
  19. package/dist/chunk-WRIKAUWI.js +384 -0
  20. package/dist/chunk-WRIKAUWI.js.map +1 -0
  21. package/dist/config.cjs +100 -0
  22. package/dist/config.cjs.map +1 -0
  23. package/dist/config.d.cts +58 -0
  24. package/dist/config.d.ts +58 -0
  25. package/dist/config.js +35 -0
  26. package/dist/config.js.map +1 -0
  27. package/dist/index.cjs +965 -0
  28. package/dist/index.cjs.map +1 -0
  29. package/dist/index.d.cts +11 -0
  30. package/dist/index.d.ts +11 -0
  31. package/dist/index.js +98 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/order.cjs +210 -0
  34. package/dist/order.cjs.map +1 -0
  35. package/dist/order.d.cts +178 -0
  36. package/dist/order.d.ts +178 -0
  37. package/dist/order.js +15 -0
  38. package/dist/order.js.map +1 -0
  39. package/dist/protocol.cjs +922 -0
  40. package/dist/protocol.cjs.map +1 -0
  41. package/dist/protocol.d.cts +16 -0
  42. package/dist/protocol.d.ts +16 -0
  43. package/dist/protocol.js +12 -0
  44. package/dist/protocol.js.map +1 -0
  45. package/dist/provider.cjs +907 -0
  46. package/dist/provider.cjs.map +1 -0
  47. package/dist/provider.d.cts +31 -0
  48. package/dist/provider.d.ts +31 -0
  49. package/dist/provider.js +13 -0
  50. package/dist/provider.js.map +1 -0
  51. package/dist/verify.cjs +617 -0
  52. package/dist/verify.cjs.map +1 -0
  53. package/dist/verify.d.cts +151 -0
  54. package/dist/verify.d.ts +151 -0
  55. package/dist/verify.js +39 -0
  56. package/dist/verify.js.map +1 -0
  57. package/module.json +42 -0
  58. package/package.json +99 -3
package/package.json CHANGED
@@ -1,6 +1,102 @@
1
1
  {
2
2
  "name": "@anywalletkit/protocol-swap2-relay",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Relay (relay.link) for the swap2 engine, with the whole order verified on the device before anything is signed: the order id recomputed from the order (EIP-712 hashStruct), the solver's signature recovered to a pinned signer, recipient / chain / token / minimum / refunds held to the user's request, and the deposit built here for the pinned RelayDepository. EVM to EVM, exact input, native coin and ERC-20.",
5
+ "license": "Apache-2.0",
6
+ "homepage": "https://docs.anywallet.tech",
7
+ "bugs": {
8
+ "url": "https://github.com/ultratestbro/anywalletkit/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/ultratestbro/anywalletkit.git",
13
+ "directory": "packages/protocol-swap2-relay"
14
+ },
15
+ "type": "module",
16
+ "engines": {
17
+ "node": ">=22"
18
+ },
19
+ "sideEffects": false,
20
+ "main": "./dist/index.cjs",
21
+ "module": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js",
27
+ "require": "./dist/index.cjs"
28
+ },
29
+ "./config": {
30
+ "types": "./dist/config.d.ts",
31
+ "import": "./dist/config.js",
32
+ "require": "./dist/config.cjs"
33
+ },
34
+ "./order": {
35
+ "types": "./dist/order.d.ts",
36
+ "import": "./dist/order.js",
37
+ "require": "./dist/order.cjs"
38
+ },
39
+ "./verify": {
40
+ "types": "./dist/verify.d.ts",
41
+ "import": "./dist/verify.js",
42
+ "require": "./dist/verify.cjs"
43
+ },
44
+ "./provider": {
45
+ "types": "./dist/provider.d.ts",
46
+ "import": "./dist/provider.js",
47
+ "require": "./dist/provider.cjs"
48
+ },
49
+ "./protocol": {
50
+ "types": "./dist/protocol.d.ts",
51
+ "import": "./dist/protocol.js",
52
+ "require": "./dist/protocol.cjs"
53
+ },
54
+ "./activity": {
55
+ "types": "./dist/activity.d.ts",
56
+ "import": "./dist/activity.js",
57
+ "require": "./dist/activity.cjs"
58
+ },
59
+ "./package.json": "./package.json"
60
+ },
61
+ "files": [
62
+ "dist",
63
+ "README.md",
64
+ "module.json"
65
+ ],
66
+ "dependencies": {
67
+ "@noble/curves": "^2.4.0",
68
+ "viem": "^2.57.2",
69
+ "@anywalletkit/swap2-assets": "0.3.0",
70
+ "@anywalletkit/protocol-swap2-core": "0.11.0"
71
+ },
72
+ "peerDependencies": {
73
+ "@anywalletkit/core": "0.8.0"
74
+ },
75
+ "devDependencies": {
76
+ "@types/node": "^22",
77
+ "vitest": "^5.1.0",
78
+ "@anywalletkit/conformance": "0.5.1",
79
+ "@anywalletkit/core": "0.8.0",
80
+ "@anywalletkit/protocol-swap2-router": "0.5.5"
81
+ },
82
+ "keywords": [
83
+ "swap2",
84
+ "bridge",
85
+ "relay",
86
+ "relay.link",
87
+ "intents",
88
+ "eip-712",
89
+ "anywalletkit"
90
+ ],
91
+ "publishConfig": {
92
+ "access": "public",
93
+ "provenance": true
94
+ },
95
+ "scripts": {
96
+ "build": "tsup",
97
+ "typecheck": "tsc --noEmit",
98
+ "test": "vitest run",
99
+ "lint": "eslint src",
100
+ "verify:live": "node scripts/verify-live.mjs"
101
+ }
6
102
  }