@ilalv3/cli 0.2.13 → 0.2.15
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 +12 -12
- package/dist/commands/demo.js +3 -3
- package/dist/commands/init.js +6 -6
- package/dist/commands/liquidity.d.ts +1 -1
- package/dist/commands/liquidity.js +1 -1
- package/dist/index.js +1 -1
- package/dist/ui.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ ilal status --wallet 0xc0807D4778a9E5FE15ad68A8500e64d65BA78D58
|
|
|
34
34
|
ilal demo check --wallet 0xc0807D4778a9E5FE15ad68A8500e64d65BA78D58
|
|
35
35
|
|
|
36
36
|
# 4. Execute a compliant swap with the seeded reviewer key
|
|
37
|
-
PRIVATE_KEY=0x... ilal swap --amount-in 1 --token-in
|
|
37
|
+
PRIVATE_KEY=0x... ilal swap --amount-in 1 --token-in 0x8C38061e31FB02df445576685975d85F01D8686d --min-amount-out 0
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
For a fully seeded local/testnet demo, deploy mock EAS + demo pool pieces:
|
|
@@ -158,10 +158,10 @@ The CLI reads `.ilal.json` in the current directory. Run `ilal init` to create i
|
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
160
|
ilal swap \
|
|
161
|
-
--router
|
|
162
|
-
--hook
|
|
161
|
+
--router 0xA571F7f41c8abC19F20ABAe648e26a75fbe1F434 \
|
|
162
|
+
--hook 0x4847B222d11938A70073292d97cDB98ff8D64a80 \
|
|
163
163
|
--issuer 0x33541301e35d33eDf554c4DFba1e04d04FCc52F4 \
|
|
164
|
-
--pool-id
|
|
164
|
+
--pool-id 0x426925fe1ebecf2da7184f9749622ab1a4b8870c888d75da10332aee2080c86f \
|
|
165
165
|
--amount-in 0.001
|
|
166
166
|
```
|
|
167
167
|
|
|
@@ -172,19 +172,19 @@ ilal swap \
|
|
|
172
172
|
| CNFIssuer | `0x33541301e35d33eDf554c4DFba1e04d04FCc52F4` |
|
|
173
173
|
| MockEAS | `0x6A98096DF6F54DBF40498dC5525d84AEA840663A` |
|
|
174
174
|
| ZKVerifierAdapter | `0x9467ED8d962221e3C1865a387481B862B1b5bE95` |
|
|
175
|
-
| ComplianceHook | `
|
|
176
|
-
| ILALRouter | `
|
|
175
|
+
| ComplianceHook | `0x4847B222d11938A70073292d97cDB98ff8D64a80` |
|
|
176
|
+
| ILALRouter | `0xA571F7f41c8abC19F20ABAe648e26a75fbe1F434` |
|
|
177
177
|
| PolicyRegistry | `0x83d8111B415E97bA91eaAe717c2D9Ae6f0DD19d4` |
|
|
178
|
-
| Currency0 / TOKA | `
|
|
179
|
-
| Currency1 / TOKB | `
|
|
180
|
-
| Pool ID | `
|
|
178
|
+
| Currency0 / TOKA | `0x8C38061e31FB02df445576685975d85F01D8686d` |
|
|
179
|
+
| Currency1 / TOKB | `0xD0e6467D562829d215dB48CDfF4C289095D90B6B` |
|
|
180
|
+
| Pool ID | `0x426925fe1ebecf2da7184f9749622ab1a4b8870c888d75da10332aee2080c86f` |
|
|
181
181
|
|
|
182
182
|
Live proof:
|
|
183
183
|
|
|
184
184
|
- CNF ZK mint tx: `0xb9aa16c9604a575c8b2281cbfe9ba24fedbf205283a7b05638fbc413ed78de41`
|
|
185
|
-
- Add liquidity tx: `
|
|
186
|
-
- Swap tx: `
|
|
187
|
-
- Router bypass fix verified: `ComplianceHook.authorizedRouter()` returns `
|
|
185
|
+
- Add liquidity tx: `0x1ffd6b1546b3f3846d8f86fc21ec059a83a02f23130390c1b9343733d3a9776f`
|
|
186
|
+
- Swap tx: `0x36427e232b323e4a8c310286d0312dbf1f4ecde86d58245a81713aafe4df0720`
|
|
187
|
+
- Router bypass fix verified: `ComplianceHook.authorizedRouter()` returns `0xA571F7f41c8abC19F20ABAe648e26a75fbe1F434`
|
|
188
188
|
|
|
189
189
|
## License
|
|
190
190
|
|
package/dist/commands/demo.js
CHANGED
|
@@ -11,9 +11,9 @@ const POOL_MANAGER = {
|
|
|
11
11
|
const SAMPLE = {
|
|
12
12
|
wallet: "0xc0807D4778a9E5FE15ad68A8500e64d65BA78D58",
|
|
13
13
|
issuer: "0x33541301e35d33eDf554c4DFba1e04d04FCc52F4",
|
|
14
|
-
hook: "
|
|
15
|
-
router: "
|
|
16
|
-
pool: "
|
|
14
|
+
hook: "0x4847B222d11938A70073292d97cDB98ff8D64a80",
|
|
15
|
+
router: "0xA571F7f41c8abC19F20ABAe648e26a75fbe1F434",
|
|
16
|
+
pool: "0x426925fe1ebecf2da7184f9749622ab1a4b8870c888d75da10332aee2080c86f",
|
|
17
17
|
proof: "0x91f2b8a0c43e902f7f1a8c0d",
|
|
18
18
|
session: "0x6b84eac5e0db21f8d5d43b7a",
|
|
19
19
|
};
|
package/dist/commands/init.js
CHANGED
|
@@ -11,13 +11,13 @@ import { fmt, log, header, die } from "../ui.js";
|
|
|
11
11
|
const PRESETS = {
|
|
12
12
|
"84532": {
|
|
13
13
|
issuer: "0x33541301e35d33eDf554c4DFba1e04d04FCc52F4",
|
|
14
|
-
hook: "
|
|
14
|
+
hook: "0x4847B222d11938A70073292d97cDB98ff8D64a80",
|
|
15
15
|
registry: "0x83d8111B415E97bA91eaAe717c2D9Ae6f0DD19d4",
|
|
16
|
-
router: "
|
|
17
|
-
treasury: "
|
|
18
|
-
tokenA: "
|
|
19
|
-
tokenB: "
|
|
20
|
-
poolId: "
|
|
16
|
+
router: "0xA571F7f41c8abC19F20ABAe648e26a75fbe1F434",
|
|
17
|
+
treasury: "0xc0807D4778a9E5FE15ad68A8500e64d65BA78D58",
|
|
18
|
+
tokenA: "0x8C38061e31FB02df445576685975d85F01D8686d",
|
|
19
|
+
tokenB: "0xD0e6467D562829d215dB48CDfF4C289095D90B6B",
|
|
20
|
+
poolId: "0x426925fe1ebecf2da7184f9749622ab1a4b8870c888d75da10332aee2080c86f",
|
|
21
21
|
fee: "8388608",
|
|
22
22
|
tickSpacing: "60",
|
|
23
23
|
rpc: "https://sepolia.base.org",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Usage:
|
|
10
10
|
* ilal pool add-liquidity \
|
|
11
11
|
* --tick-lower -600 --tick-upper 600 \
|
|
12
|
-
* --liquidity
|
|
12
|
+
* --liquidity 1000000000000 \
|
|
13
13
|
* --router 0xROUTER --hook 0xHOOK --issuer 0xISSUER \
|
|
14
14
|
* --pool-id 0xPOOLID --token-a 0xTOKA --token-b 0xTOKB
|
|
15
15
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Usage:
|
|
10
10
|
* ilal pool add-liquidity \
|
|
11
11
|
* --tick-lower -600 --tick-upper 600 \
|
|
12
|
-
* --liquidity
|
|
12
|
+
* --liquidity 1000000000000 \
|
|
13
13
|
* --router 0xROUTER --hook 0xHOOK --issuer 0xISSUER \
|
|
14
14
|
* --pool-id 0xPOOLID --token-a 0xTOKA --token-b 0xTOKB
|
|
15
15
|
*/
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const program = new Command();
|
|
|
19
19
|
program
|
|
20
20
|
.name("ilal")
|
|
21
21
|
.description("ILAL Protocol CLI — Uniswap v4 compliance hook toolkit")
|
|
22
|
-
.version("0.2.
|
|
22
|
+
.version("0.2.15")
|
|
23
23
|
.addHelpText("before", `\n ${fmt.bold(fmt.cyan("◆"))} ${fmt.bold("ILAL Protocol")} ${fmt.gray("Uniswap v4 Compliance Hook")}\n`);
|
|
24
24
|
// ─── init ─────────────────────────────────────────────────────────────────────
|
|
25
25
|
program
|
package/dist/ui.js
CHANGED
|
@@ -178,6 +178,9 @@ const CONTRACT_ERRORS = {
|
|
|
178
178
|
"0xfa9f081c": "Schema hash mismatch",
|
|
179
179
|
"0xb7e9429b": "Issuer hash mismatch",
|
|
180
180
|
"0x0e917e64": "Wallet hash mismatch — wrong wallet key",
|
|
181
|
+
"0x21374865": "Session signature invalid — re-sign hookData with the wallet that owns the CNF",
|
|
182
|
+
"0xd9b2290c": "Session user mismatch — hookData can only be used by the wallet that signed it",
|
|
183
|
+
"0x1fb09b80": "Session nonce already used — sign a fresh session",
|
|
181
184
|
};
|
|
182
185
|
function parseViemError(e) {
|
|
183
186
|
const msg = e instanceof Error ? e.message : String(e);
|