@elgora/cli 7.5.1 → 9.0.0
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 +22 -9
- package/dist/cli.js +692 -317
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,10 +27,15 @@ answer.
|
|
|
27
27
|
|
|
28
28
|
## Commands
|
|
29
29
|
|
|
30
|
-
- `poster:
|
|
31
|
-
|
|
30
|
+
- `poster:review` checks a bounty page and saves its readiness certificate
|
|
31
|
+
with `--signoff-out <file>`. Rejected pages print the full issue list and exit 2.
|
|
32
|
+
- `poster:publish-fund` requires `--signoff <file>`, publishes those exact
|
|
33
|
+
approved `bounty_challenge.md` bytes, and funds the new bounty without another AI review.
|
|
32
34
|
- `poster:open-winning-submission` retrieves the finalized winning Submission
|
|
33
35
|
for the funding Poster and decrypts it locally.
|
|
36
|
+
- `check-page <bounty_challenge_md_path|->` checks structural conformance offline,
|
|
37
|
+
returns an issue list and exits non-zero on failure. It needs no wallet or
|
|
38
|
+
network and does not replace hosted semantic readiness review.
|
|
34
39
|
- `spec-commitment` reproduces the challenge's `spec_commitment` offline.
|
|
35
40
|
- `solver:submit` encrypts a Submission for the bounty's pinned Guardian roster
|
|
36
41
|
and prepares or sends the exact ElgoraHub transaction.
|
|
@@ -41,7 +46,8 @@ answer.
|
|
|
41
46
|
on ElgoraHub.
|
|
42
47
|
- `guardian:deliver-key` wraps one Solver–Submission content key for delivery
|
|
43
48
|
so the funding Poster can retrieve the winning work; idempotent, and accepted
|
|
44
|
-
only for the pair ElgoraHub currently records or the finalized winner.
|
|
49
|
+
only for the pair ElgoraHub currently records or the finalized winner. While
|
|
50
|
+
a settlement is not yet finalized it delivers nothing and exits `75`.
|
|
45
51
|
- `claim` prepares or sends the winning Solver's reserved award or the
|
|
46
52
|
Poster's queued refund, as selected from finalized ElgoraHub state.
|
|
47
53
|
- `verification-record` is a plain, unauthenticated GET that fetches or lazily
|
|
@@ -79,6 +85,11 @@ needs.
|
|
|
79
85
|
|
|
80
86
|
## Deployment configuration
|
|
81
87
|
|
|
88
|
+
Since 8.0.0 the default deployment is **Base mainnet** (`base`, chain `8453`),
|
|
89
|
+
which escrows real USDC. Elgora's staging deployment runs on **Base Sepolia**
|
|
90
|
+
(`base-sepolia`, chain `84532`) behind `https://staging.elgora.ai`. A run that
|
|
91
|
+
selects no network prints one stderr line saying it used the default.
|
|
92
|
+
|
|
82
93
|
Every command accepts `--network <name|chain id>`, which selects the deployment
|
|
83
94
|
for that invocation without touching the environment. It takes a network name
|
|
84
95
|
(`base`, `base-sepolia`, `local`) or that network's chain id (`8453`, `84532`,
|
|
@@ -86,9 +97,10 @@ for that invocation without touching the environment. It takes a network name
|
|
|
86
97
|
passed — for that run only:
|
|
87
98
|
|
|
88
99
|
```sh
|
|
89
|
-
elgora-cli guardian:judgeable # the default
|
|
90
|
-
elgora-cli claim --network base-sepolia 7 #
|
|
100
|
+
elgora-cli guardian:judgeable # Base mainnet, the default
|
|
101
|
+
elgora-cli claim --network base-sepolia 7 # staging, by name
|
|
91
102
|
elgora-cli claim --network 84532 7 # the same, by chain id
|
|
103
|
+
export ELGORA_CHAIN_ID=84532 # staging for every run in this shell
|
|
92
104
|
```
|
|
93
105
|
|
|
94
106
|
The chain's public RPC, the ElgoraHub address, the escrow token, and the subgraph
|
|
@@ -101,10 +113,11 @@ and which values it defaults. Supply a complete, coherent configuration when
|
|
|
101
113
|
targeting a deployment this CLI release does not know about, and do not mix
|
|
102
114
|
addresses or endpoints from different deployments.
|
|
103
115
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
over `ELGORA_API_BASE_URL`
|
|
107
|
-
|
|
116
|
+
The API follows the chain too: `https://elgora.ai` for `base` and
|
|
117
|
+
`https://staging.elgora.ai` for `base-sepolia`. Commands that use the public API
|
|
118
|
+
accept `--api-base-url <url>`, which wins over `ELGORA_API_BASE_URL` and that
|
|
119
|
+
default for one invocation — for example to reach a Vercel preview. Point it at
|
|
120
|
+
an API serving the deployment you selected.
|
|
108
121
|
|
|
109
122
|
Protected API reads and writes use one EIP-712 approval per request. The
|
|
110
123
|
signature is bound to the method, path, body, query, API host, and a recent
|