@ilalv3/cli 0.2.6 → 0.2.7

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 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 0x3a7d58fAc623B4C30D7735B01DcE036EfF46e079 --min-amount-out 0
37
+ PRIVATE_KEY=0x... ilal swap --amount-in 1 --token-in 0x3d5b92a8Cea5BBe1c6f63b73D69DA6457e6436E2 --min-amount-out 0
38
38
  ```
39
39
 
40
40
  For a fully seeded local/testnet demo, deploy mock EAS + demo pool pieces:
@@ -130,10 +130,10 @@ The CLI reads `.ilal.json` in the current directory. Run `ilal init` to create i
130
130
 
131
131
  ```bash
132
132
  ilal swap \
133
- --router 0xEfB2F179F6Ce44d7af66d3e3FF792563033C9b7e \
134
- --hook 0xaCD0fccDDd96471f7De9b3f015C5ebFaADe70a80 \
135
- --issuer 0x108fA8db11616d73ccB67725B44C535Ddcaac5a9 \
136
- --pool-id 0x0decaeb998563be8faf6e6b66d4a0c32025a166e35bae97b8ec62ded1b04be1b \
133
+ --router 0x88125331f169aF4Dc81ADa6E8A189110566E457a \
134
+ --hook 0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80 \
135
+ --issuer 0x33541301e35d33eDf554c4DFba1e04d04FCc52F4 \
136
+ --pool-id 0x8b6d21e53673584f192bdad8b65e2002e9e8eea730c62adad5ac1f4a084164a4 \
137
137
  --amount-in 0.001
138
138
  ```
139
139
 
@@ -141,20 +141,22 @@ ilal swap \
141
141
 
142
142
  | Contract | Address |
143
143
  |---|---|
144
- | CNFIssuer | `0x108fA8db11616d73ccB67725B44C535Ddcaac5a9` |
145
- | MockEAS | `0xE46d87960b8740585010ae5158193D67da7dd807` |
146
- | ZKVerifierAdapter | `0xb77BB4566d5D1e81370E159bb0251467e4a2fcfa` |
147
- | ComplianceHook | `0xaCD0fccDDd96471f7De9b3f015C5ebFaADe70a80` |
148
- | ILALRouter | `0xEfB2F179F6Ce44d7af66d3e3FF792563033C9b7e` |
149
- | PolicyRegistry | `0xC2Be4887aF9218b4B617F7125924737413292160` |
150
- | Currency0 / TOKA | `0x3a7d58fAc623B4C30D7735B01DcE036EfF46e079` |
151
- | Currency1 / TOKB | `0x7BC67f7Fd3892fBE6AcC4F10bc3df95b64c2eD80` |
152
- | Pool ID | `0x0decaeb998563be8faf6e6b66d4a0c32025a166e35bae97b8ec62ded1b04be1b` |
144
+ | CNFIssuer | `0x33541301e35d33eDf554c4DFba1e04d04FCc52F4` |
145
+ | MockEAS | `0x6A98096DF6F54DBF40498dC5525d84AEA840663A` |
146
+ | ZKVerifierAdapter | `0x9467ED8d962221e3C1865a387481B862B1b5bE95` |
147
+ | ComplianceHook | `0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80` |
148
+ | ILALRouter | `0x88125331f169aF4Dc81ADa6E8A189110566E457a` |
149
+ | PolicyRegistry | `0x83d8111B415E97bA91eaAe717c2D9Ae6f0DD19d4` |
150
+ | Currency0 / TOKA | `0x3d5b92a8Cea5BBe1c6f63b73D69DA6457e6436E2` |
151
+ | Currency1 / TOKB | `0x6145F81e3691d991a4D2033FE25BeB140487B7Ee` |
152
+ | Pool ID | `0x8b6d21e53673584f192bdad8b65e2002e9e8eea730c62adad5ac1f4a084164a4` |
153
153
 
154
154
  Live proof:
155
155
 
156
- - CNF ZK mint tx: `0x8c0ca35cb666d839b7070ed8103d12379b12ccb399283fcacaf5caa8b86e4542`
157
- - Current-stack add liquidity / swap: pending re-run after local RPC/TLS instability clears; router happy path is covered by the Solidity integration tests.
156
+ - CNF ZK mint tx: `0xb9aa16c9604a575c8b2281cbfe9ba24fedbf205283a7b05638fbc413ed78de41`
157
+ - Add liquidity tx: `0xc3dba6d488933e1568541ece17ce43307fb173eb747dff303f3631456eccb16a`
158
+ - Swap tx: `0x360461d2a3c19acdc3ba125e55689679fcf809946d8a5092e833eb9e94b0f52f`
159
+ - Router bypass fix verified: `ComplianceHook.authorizedRouter()` returns `0x88125331f169aF4Dc81ADa6E8A189110566E457a`
158
160
 
159
161
  ## License
160
162
 
@@ -10,10 +10,10 @@ const POOL_MANAGER = {
10
10
  };
11
11
  const SAMPLE = {
12
12
  wallet: "0xc0807D4778a9E5FE15ad68A8500e64d65BA78D58",
13
- issuer: "0x108fA8db11616d73ccB67725B44C535Ddcaac5a9",
14
- hook: "0xaCD0fccDDd96471f7De9b3f015C5ebFaADe70a80",
15
- router: "0xEfB2F179F6Ce44d7af66d3e3FF792563033C9b7e",
16
- pool: "0x0decaeb998563be8faf6e6b66d4a0c32025a166e35bae97b8ec62ded1b04be1b",
13
+ issuer: "0x33541301e35d33eDf554c4DFba1e04d04FCc52F4",
14
+ hook: "0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80",
15
+ router: "0x88125331f169aF4Dc81ADa6E8A189110566E457a",
16
+ pool: "0x8b6d21e53673584f192bdad8b65e2002e9e8eea730c62adad5ac1f4a084164a4",
17
17
  proof: "0x91f2b8a0c43e902f7f1a8c0d",
18
18
  session: "0x6b84eac5e0db21f8d5d43b7a",
19
19
  };
@@ -10,14 +10,14 @@ import { fmt, log, header, die } from "../ui.js";
10
10
  // Known testnet / mainnet addresses for quick init
11
11
  const PRESETS = {
12
12
  "84532": {
13
- issuer: "0x108fA8db11616d73ccB67725B44C535Ddcaac5a9",
14
- hook: "0xaCD0fccDDd96471f7De9b3f015C5ebFaADe70a80",
15
- registry: "0xC2Be4887aF9218b4B617F7125924737413292160",
16
- router: "0xEfB2F179F6Ce44d7af66d3e3FF792563033C9b7e",
13
+ issuer: "0x33541301e35d33eDf554c4DFba1e04d04FCc52F4",
14
+ hook: "0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80",
15
+ registry: "0x83d8111B415E97bA91eaAe717c2D9Ae6f0DD19d4",
16
+ router: "0x88125331f169aF4Dc81ADa6E8A189110566E457a",
17
17
  treasury: "0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38",
18
- tokenA: "0x3a7d58fAc623B4C30D7735B01DcE036EfF46e079",
19
- tokenB: "0x7BC67f7Fd3892fBE6AcC4F10bc3df95b64c2eD80",
20
- poolId: "0x0decaeb998563be8faf6e6b66d4a0c32025a166e35bae97b8ec62ded1b04be1b",
18
+ tokenA: "0x3d5b92a8Cea5BBe1c6f63b73D69DA6457e6436E2",
19
+ tokenB: "0x6145F81e3691d991a4D2033FE25BeB140487B7Ee",
20
+ poolId: "0x8b6d21e53673584f192bdad8b65e2002e9e8eea730c62adad5ac1f4a084164a4",
21
21
  fee: "8388608",
22
22
  tickSpacing: "60",
23
23
  rpc: "https://sepolia.base.org",
@@ -12,11 +12,11 @@
12
12
  * # Step 1 — queue a new root (requires owner key, executes immediately)
13
13
  * PRIVATE_KEY=0x... ilal oracle propose-root \
14
14
  * --root 0xDEADBEEF... \
15
- * --issuer 0x108fA8...
15
+ * --issuer 0x335413...
16
16
  *
17
17
  * # Step 2 — after ROOT_DELAY (48 h) has elapsed, activate it
18
18
  * PRIVATE_KEY=0x... ilal oracle activate-root \
19
- * --issuer 0x108fA8...
19
+ * --issuer 0x335413...
20
20
  *
21
21
  * # Same pattern for the ZK verifier (VERIFIER_DELAY = 72 h)
22
22
  * PRIVATE_KEY=0x... ilal oracle propose-verifier --verifier 0x... --issuer 0x...
@@ -12,11 +12,11 @@
12
12
  * # Step 1 — queue a new root (requires owner key, executes immediately)
13
13
  * PRIVATE_KEY=0x... ilal oracle propose-root \
14
14
  * --root 0xDEADBEEF... \
15
- * --issuer 0x108fA8...
15
+ * --issuer 0x335413...
16
16
  *
17
17
  * # Step 2 — after ROOT_DELAY (48 h) has elapsed, activate it
18
18
  * PRIVATE_KEY=0x... ilal oracle activate-root \
19
- * --issuer 0x108fA8...
19
+ * --issuer 0x335413...
20
20
  *
21
21
  * # Same pattern for the ZK verifier (VERIFIER_DELAY = 72 h)
22
22
  * PRIVATE_KEY=0x... ilal oracle propose-verifier --verifier 0x... --issuer 0x...
@@ -7,7 +7,7 @@
7
7
  * Usage:
8
8
  * ilal credential prove \
9
9
  * --wallet 0x1b869... \
10
- * --issuer 0x108fA8... \
10
+ * --issuer 0x335413... \
11
11
  * --chain 84532 \
12
12
  * --action mint # or renew (default: auto-detect)
13
13
  * --circuit-dir ./circuits/build
@@ -7,7 +7,7 @@
7
7
  * Usage:
8
8
  * ilal credential prove \
9
9
  * --wallet 0x1b869... \
10
- * --issuer 0x108fA8... \
10
+ * --issuer 0x335413... \
11
11
  * --chain 84532 \
12
12
  * --action mint # or renew (default: auto-detect)
13
13
  * --circuit-dir ./circuits/build
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.6")
22
+ .version("0.2.7")
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilalv3/cli",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "ILAL Protocol CLI — compliant swaps and credential management for Uniswap v4",
5
5
  "type": "module",
6
6
  "bin": {