@ilalv3/cli 0.2.5 → 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 0x589dDBdf4Bd6d605bD809a540FF4BC1066f6895e --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 0xf7DBe6721AE935FA25D963076cd202994E0D5e17 \
134
- --hook 0x1623276697B4e6609F8887C9Caa9dB6A6fa08A80 \
135
- --issuer 0x18EF418Ca1C81d37BD3247D34c19Adc42306535F \
136
- --pool-id 0xf32ae7435348041d4e979a24ce417bfe71d0f6642d2dcb2326e01acfe660fa0d \
133
+ --router 0x88125331f169aF4Dc81ADa6E8A189110566E457a \
134
+ --hook 0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80 \
135
+ --issuer 0x33541301e35d33eDf554c4DFba1e04d04FCc52F4 \
136
+ --pool-id 0x8b6d21e53673584f192bdad8b65e2002e9e8eea730c62adad5ac1f4a084164a4 \
137
137
  --amount-in 0.001
138
138
  ```
139
139
 
@@ -141,21 +141,22 @@ ilal swap \
141
141
 
142
142
  | Contract | Address |
143
143
  |---|---|
144
- | CNFIssuer | `0x18EF418Ca1C81d37BD3247D34c19Adc42306535F` |
145
- | MockEAS | `0x1B1867e5A98EA90865E3E3a21b31c2edAdBA7c09` |
146
- | ZKVerifierAdapter | `0x9C918604069CFA897606760E53aB854BA38303Ca` |
147
- | ComplianceHook | `0x1623276697B4e6609F8887C9Caa9dB6A6fa08A80` |
148
- | ILALRouter | `0xf7DBe6721AE935FA25D963076cd202994E0D5e17` |
149
- | PolicyRegistry | `0xB2A94DE0432c1dEDfa941816A450002C6581B0aD` |
150
- | Currency0 / TOKB | `0x589dDBdf4Bd6d605bD809a540FF4BC1066f6895e` |
151
- | Currency1 / TOKA | `0xA9C0AB8e7Bc6a79649903EdE052E1B41585cCd08` |
152
- | Pool ID | `0xf32ae7435348041d4e979a24ce417bfe71d0f6642d2dcb2326e01acfe660fa0d` |
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: `0x3e770104228abc547664df2958ce8f88ddd6d66dd11a78fa1ba1b3569a75a8dc`
157
- - Add liquidity tx: `0x39f82fdc8e8a8aa6fe1d6cd98adac15f79fdce2b99cc82955dd35eedef89b9d0`
158
- - Swap tx: `0x3ff5b22707eb4172816359d61b1d97f0086b08c47f396fd44ee1c68471a7b8cc`
156
+ - CNF ZK mint tx: `0xb9aa16c9604a575c8b2281cbfe9ba24fedbf205283a7b05638fbc413ed78de41`
157
+ - Add liquidity tx: `0xc3dba6d488933e1568541ece17ce43307fb173eb747dff303f3631456eccb16a`
158
+ - Swap tx: `0x360461d2a3c19acdc3ba125e55689679fcf809946d8a5092e833eb9e94b0f52f`
159
+ - Router bypass fix verified: `ComplianceHook.authorizedRouter()` returns `0x88125331f169aF4Dc81ADa6E8A189110566E457a`
159
160
 
160
161
  ## License
161
162
 
@@ -10,10 +10,10 @@ const POOL_MANAGER = {
10
10
  };
11
11
  const SAMPLE = {
12
12
  wallet: "0xc0807D4778a9E5FE15ad68A8500e64d65BA78D58",
13
- issuer: "0x18EF418Ca1C81d37BD3247D34c19Adc42306535F",
14
- hook: "0x1623276697B4e6609F8887C9Caa9dB6A6fa08A80",
15
- router: "0xf7DBe6721AE935FA25D963076cd202994E0D5e17",
16
- pool: "0xf32ae7435348041d4e979a24ce417bfe71d0f6642d2dcb2326e01acfe660fa0d",
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: "0x18EF418Ca1C81d37BD3247D34c19Adc42306535F",
14
- hook: "0x1623276697B4e6609F8887C9Caa9dB6A6fa08A80",
15
- registry: "0xB2A94DE0432c1dEDfa941816A450002C6581B0aD",
16
- router: "0xf7DBe6721AE935FA25D963076cd202994E0D5e17",
13
+ issuer: "0x33541301e35d33eDf554c4DFba1e04d04FCc52F4",
14
+ hook: "0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80",
15
+ registry: "0x83d8111B415E97bA91eaAe717c2D9Ae6f0DD19d4",
16
+ router: "0x88125331f169aF4Dc81ADa6E8A189110566E457a",
17
17
  treasury: "0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38",
18
- tokenA: "0x589dDBdf4Bd6d605bD809a540FF4BC1066f6895e",
19
- tokenB: "0xA9C0AB8e7Bc6a79649903EdE052E1B41585cCd08",
20
- poolId: "0xf32ae7435348041d4e979a24ce417bfe71d0f6642d2dcb2326e01acfe660fa0d",
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 0xc4E032...
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 0xc4E032...
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 0xc4E032...
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 0xc4E032...
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 0xc4E032... \
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 0xc4E032... \
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.5")
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.5",
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": {