@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 +18 -16
- package/dist/commands/demo.js +4 -4
- package/dist/commands/init.js +7 -7
- package/dist/commands/oracle.d.ts +2 -2
- package/dist/commands/oracle.js +2 -2
- package/dist/commands/prove.d.ts +1 -1
- package/dist/commands/prove.js +1 -1
- package/dist/index.js +1 -1
- 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 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
|
|
134
|
-
--hook
|
|
135
|
-
--issuer
|
|
136
|
-
--pool-id
|
|
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 | `
|
|
145
|
-
| MockEAS | `
|
|
146
|
-
| ZKVerifierAdapter | `
|
|
147
|
-
| ComplianceHook | `
|
|
148
|
-
| ILALRouter | `
|
|
149
|
-
| PolicyRegistry | `
|
|
150
|
-
| Currency0 / TOKA | `
|
|
151
|
-
| Currency1 / TOKB | `
|
|
152
|
-
| Pool ID | `
|
|
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: `
|
|
157
|
-
-
|
|
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
|
|
package/dist/commands/demo.js
CHANGED
|
@@ -10,10 +10,10 @@ const POOL_MANAGER = {
|
|
|
10
10
|
};
|
|
11
11
|
const SAMPLE = {
|
|
12
12
|
wallet: "0xc0807D4778a9E5FE15ad68A8500e64d65BA78D58",
|
|
13
|
-
issuer: "
|
|
14
|
-
hook: "
|
|
15
|
-
router: "
|
|
16
|
-
pool: "
|
|
13
|
+
issuer: "0x33541301e35d33eDf554c4DFba1e04d04FCc52F4",
|
|
14
|
+
hook: "0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80",
|
|
15
|
+
router: "0x88125331f169aF4Dc81ADa6E8A189110566E457a",
|
|
16
|
+
pool: "0x8b6d21e53673584f192bdad8b65e2002e9e8eea730c62adad5ac1f4a084164a4",
|
|
17
17
|
proof: "0x91f2b8a0c43e902f7f1a8c0d",
|
|
18
18
|
session: "0x6b84eac5e0db21f8d5d43b7a",
|
|
19
19
|
};
|
package/dist/commands/init.js
CHANGED
|
@@ -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: "
|
|
14
|
-
hook: "
|
|
15
|
-
registry: "
|
|
16
|
-
router: "
|
|
13
|
+
issuer: "0x33541301e35d33eDf554c4DFba1e04d04FCc52F4",
|
|
14
|
+
hook: "0x5f1de4376C7a59b5BBC5E5cd766D40995E9e4A80",
|
|
15
|
+
registry: "0x83d8111B415E97bA91eaAe717c2D9Ae6f0DD19d4",
|
|
16
|
+
router: "0x88125331f169aF4Dc81ADa6E8A189110566E457a",
|
|
17
17
|
treasury: "0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38",
|
|
18
|
-
tokenA: "
|
|
19
|
-
tokenB: "
|
|
20
|
-
poolId: "
|
|
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
|
|
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
|
|
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...
|
package/dist/commands/oracle.js
CHANGED
|
@@ -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
|
|
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
|
|
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...
|
package/dist/commands/prove.d.ts
CHANGED
package/dist/commands/prove.js
CHANGED
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.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
|