@ilalv3/cli 0.2.0 → 0.2.1

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.
@@ -9,11 +9,11 @@ const POOL_MANAGER = {
9
9
  "8453": "0x498581fF718922c3f8e6A244956aF099B2652b2b",
10
10
  };
11
11
  const SAMPLE = {
12
- wallet: "0x1b869CaC69Df23Ad9D727932496AEb3605538c8D",
13
- issuer: "0x319c0F1cb46c85B42E051251c4db04BA6BD265a2",
14
- hook: "0xdFF2ebBAc963f5Ed0B0EBCf021aB5EA16d57ea94",
15
- router: "0x4A1F7E7d9D2D1f2A0c4A2F4A8C1A0B3E9E5d1111",
16
- pool: "0x7ef1c0ffee00000000000000000000000000000000000000000000000000bEEF",
12
+ wallet: "0xF40493ACDd33cC4a841fCD69577A66218381C2fC",
13
+ issuer: "0xB13AE2498Df62A85768a4b783109C05fCf5A264a",
14
+ hook: "0x6C57b50Ef9286b132066012B19b291FB120ACa80",
15
+ router: "0xd0aF4D1EFF36CB2a1E88017eA398dCaDe1Ac0040",
16
+ pool: "0x16b3e7a5c52216925f705673b3ab25db5e6025da530cf53b3bcb5affeb18d95f",
17
17
  proof: "0x91f2b8a0c43e902f7f1a8c0d",
18
18
  session: "0x6b84eac5e0db21f8d5d43b7a",
19
19
  };
@@ -10,9 +10,16 @@ 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: "0x319c0F1cb46c85B42E051251c4db04BA6BD265a2",
14
- hook: "0xdFF2ebBAc963f5Ed0B0EBCf021aB5EA16d57ea94",
15
- registry: "0x72A425672c1D0FA95C75F5073e6DAf72194A1E0F",
13
+ issuer: "0xB13AE2498Df62A85768a4b783109C05fCf5A264a",
14
+ hook: "0x6C57b50Ef9286b132066012B19b291FB120ACa80",
15
+ registry: "0x19fD4eCF4359fCc8d5E79916691a28c24A22a9B4",
16
+ router: "0xd0aF4D1EFF36CB2a1E88017eA398dCaDe1Ac0040",
17
+ treasury: "0xF40493ACDd33cC4a841fCD69577A66218381C2fC",
18
+ tokenA: "0x2E0dEd1CF4ec6106079df4eF1200959c2a454f3A",
19
+ tokenB: "0x6dFCC8c373fBC3ecdda0F2b27590f12EeE9fF204",
20
+ poolId: "0x16b3e7a5c52216925f705673b3ab25db5e6025da530cf53b3bcb5affeb18d95f",
21
+ fee: "8388608",
22
+ tickSpacing: "60",
16
23
  rpc: "https://sepolia.base.org",
17
24
  },
18
25
  "8453": {
@@ -35,13 +42,13 @@ export async function init(opts) {
35
42
  issuer: opts.issuer ?? preset["issuer"],
36
43
  hook: opts.hook ?? preset["hook"],
37
44
  registry: opts.registry ?? preset["registry"],
38
- router: opts.router,
39
- treasury: opts.treasury,
40
- tokenA: opts.tokenA,
41
- tokenB: opts.tokenB,
42
- poolId: opts.poolId,
43
- fee: opts.fee,
44
- tickSpacing: opts.tickSpacing,
45
+ router: opts.router ?? preset["router"],
46
+ treasury: opts.treasury ?? preset["treasury"],
47
+ tokenA: opts.tokenA ?? preset["tokenA"],
48
+ tokenB: opts.tokenB ?? preset["tokenB"],
49
+ poolId: opts.poolId ?? preset["poolId"],
50
+ fee: opts.fee ?? preset["fee"],
51
+ tickSpacing: opts.tickSpacing ?? preset["tickSpacing"],
45
52
  rpc: opts.rpc ?? preset["rpc"],
46
53
  ...(opts.circuitDir ? { circuitDir: opts.circuitDir } : {}),
47
54
  };
@@ -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 0x319c0...
15
+ * --issuer 0xB13AE2...
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 0x319c0...
19
+ * --issuer 0xB13AE2...
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 0x319c0...
15
+ * --issuer 0xB13AE2...
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 0x319c0...
19
+ * --issuer 0xB13AE2...
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 0x319c0... \
10
+ * --issuer 0xB13AE2... \
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 0x319c0... \
10
+ * --issuer 0xB13AE2... \
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.1.0")
22
+ .version("0.2.1")
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.0",
3
+ "version": "0.2.1",
4
4
  "description": "ILAL Protocol CLI — compliant swaps and credential management for Uniswap v4",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,9 +23,9 @@
23
23
  ],
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "git+https://github.com/ilal-protocol/ilal.git"
26
+ "url": "git+https://github.com/rpnny/ilal-cli.git"
27
27
  },
28
- "homepage": "https://github.com/ilal-protocol/ilal#readme",
28
+ "homepage": "https://github.com/rpnny/ilal-cli#readme",
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },