@anywalletkit/protocol-swap2-usdt0 0.1.2 → 0.1.4
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 +11 -8
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @anywalletkit/protocol-swap2-usdt0
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-usdt0)
|
|
4
|
+
|
|
3
5
|
[USDT0](https://docs.usdt0.to) — Tether's USDT as a LayerZero OFT — as a swap2
|
|
4
6
|
provider: USDT / USDT0 between 16 EVM chains in **one source transaction**.
|
|
5
7
|
`send(SendParam, MessagingFee, refund)` on the chain's OFT with the LayerZero
|
|
@@ -10,6 +12,15 @@ LayerZero fee in the source chain's native coin (≈ 0.0000024 ETH for
|
|
|
10
12
|
Arbitrum → HyperEVM on 2026-10-20). It is the only direct USDT path into
|
|
11
13
|
HyperEVM.
|
|
12
14
|
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install @anywalletkit/protocol-swap2-usdt0 @anywalletkit/core
|
|
19
|
+
# or: pnpm add @anywalletkit/protocol-swap2-usdt0 @anywalletkit/core · yarn add @anywalletkit/protocol-swap2-usdt0 @anywalletkit/core
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
On npm: [@anywalletkit/protocol-swap2-usdt0](https://www.npmjs.com/package/@anywalletkit/protocol-swap2-usdt0), published from the [release workflow](https://github.com/ultratestbro/anywalletkit/blob/main/RELEASING.md) with provenance.
|
|
23
|
+
|
|
13
24
|
```ts
|
|
14
25
|
import {usdt0Provider} from "@anywalletkit/protocol-swap2-usdt0/provider";
|
|
15
26
|
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-usdt0",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "USDT0 (Tether's LayerZero OFT for USDT) for the swap2 engine: USDT / USDT0 between 16 EVM chains in one source transaction — quoteOFT + quoteSend on the OFT itself, send with the LayerZero fee as msg.value, status from LayerZero Scan, lzReceive retry of a stored payload as the claim. Bound to the deployments docs.usdt0.to lists, re-verified on-chain.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://docs.anywallet.tech",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"directory": "packages/protocol-swap2-usdt0"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20"
|
|
18
|
+
},
|
|
16
19
|
"sideEffects": false,
|
|
17
20
|
"main": "./dist/index.cjs",
|
|
18
21
|
"module": "./dist/index.js",
|
|
@@ -52,18 +55,18 @@
|
|
|
52
55
|
],
|
|
53
56
|
"dependencies": {
|
|
54
57
|
"viem": "^2.57.2",
|
|
55
|
-
"@anywalletkit/swap2-
|
|
56
|
-
"@anywalletkit/
|
|
58
|
+
"@anywalletkit/protocol-swap2-core": "0.4.0",
|
|
59
|
+
"@anywalletkit/swap2-assets": "0.1.5"
|
|
57
60
|
},
|
|
58
61
|
"peerDependencies": {
|
|
59
|
-
"@anywalletkit/core": "0.
|
|
62
|
+
"@anywalletkit/core": "0.4.0"
|
|
60
63
|
},
|
|
61
64
|
"devDependencies": {
|
|
62
65
|
"@types/node": "^22",
|
|
63
66
|
"vitest": "^5.0.3",
|
|
64
|
-
"@anywalletkit/conformance": "0.
|
|
65
|
-
"@anywalletkit/
|
|
66
|
-
"@anywalletkit/
|
|
67
|
+
"@anywalletkit/conformance": "0.4.0",
|
|
68
|
+
"@anywalletkit/protocol-swap2-router": "0.2.4",
|
|
69
|
+
"@anywalletkit/core": "0.4.0"
|
|
67
70
|
},
|
|
68
71
|
"keywords": [
|
|
69
72
|
"swap2",
|
|
@@ -83,7 +86,7 @@
|
|
|
83
86
|
"build": "tsup",
|
|
84
87
|
"typecheck": "tsc --noEmit",
|
|
85
88
|
"test": "vitest run",
|
|
86
|
-
"lint": "
|
|
89
|
+
"lint": "eslint src",
|
|
87
90
|
"verify:live": "node scripts/verify-live.mjs"
|
|
88
91
|
}
|
|
89
92
|
}
|