@gatedpath/receptor-mock 0.2.5 → 0.2.6

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
@@ -13,7 +13,7 @@ For agents
13
13
  - No private keys, no wallet creation, no funded transactions anywhere in this package.
14
14
  ```
15
15
 
16
- The local development kit's identity half (`PLAN.md` sections 5.3 and 5.5, Phase 1 deliverable (c)):
16
+ The local development kit's identity half:
17
17
  a mock verifier that puts any wallet into any of five credential states, the `Gated` base contract
18
18
  every template gates with, adapters that present a real verifier through the same interface, and a
19
19
  Foundry test base that proves a gate against all five states so nobody forgets one. Solidity
@@ -21,7 +21,7 @@ Foundry test base that proves a gate against all five states so nobody forgets o
21
21
 
22
22
  ## Why an interface
23
23
 
24
- There is no network-wide verifier on Redbelly to pin (RESEARCH.md question 8). Each dApp deploys
24
+ There is no network-wide verifier on Redbelly to pin. Each dApp deploys
25
25
  its own: either an Iden3 `ZKPVerifier`-family child for Proof by Query, or a `VCVerifierBaseContract`
26
26
  child for standard credentials. Those two families expose different read functions, and the Iden3
27
27
  one has changed shape three times. `Gated` therefore binds to one small interface of our own,
@@ -139,10 +139,8 @@ npm run test:fork # adds the two fork tests against governors.testnet.redbe
139
139
  ```
140
140
 
141
141
  Dependencies are pinned two ways on purpose. OpenZeppelin comes from npm with a lockfile because
142
- Hardhat needs it there anyway. forge-std is cloned by `forge install --no-git` at a pinned tag
143
- because a git submodule would write `.gitmodules` at the root of this repository, which belongs to
144
- a preserved work record, and soldeer's client could not reach its registry through the session
145
- proxy. `lib/` and `node_modules/` are ignored by git; `scripts/setup.sh` recreates both.
142
+ Hardhat needs it there anyway. forge-std is cloned by `forge install --no-git` at a pinned tag.
143
+ `lib/` and `node_modules/` are ignored by git; `scripts/setup.sh` recreates both.
146
144
 
147
145
  As a dependency of another Foundry project:
148
146
 
@@ -163,13 +161,14 @@ Hardhat 2.29.1 with the same pins; see its README.
163
161
 
164
162
  ## Static analysis and gas
165
163
 
166
- `npm run slither` and `npm run aderyn` write to `reports/`. Slither 0.11.6: three informational
167
- results, all intended or false positives, each triaged in `reports/slither.md`. Aderyn 0.6.8: no
164
+ `npm run slither` writes to `reports/` (`npm run aderyn` too, if you still have a copy of Aderyn;
165
+ its maker retired it on 13 November 2026). Slither 0.11.6: three informational
166
+ results, all intended or false positives, each triaged in `reports/slither.md`. Aderyn 0.6.8, before its retirement: no
168
167
  findings. `.gas-snapshot` is committed; `forge snapshot --check` diffs against it.
169
168
 
170
169
  ## What is verified and what is not
171
170
 
172
- Verified on 2026-09-12 and logged in `RESEARCH.md`: the Iden3 read functions in `@iden3/contracts`
171
+ Verified on 2026-09-12: the Iden3 read functions in `@iden3/contracts`
173
172
  1.4.8, 2.5.0, 3.4.0 (npm `latest`) and master at commit 610249b (15 June 2026); the Redbelly docs
174
173
  pages for Receptor, Proof by Query, the contract example and eligibility criteria; the archived
175
174
  `receptor-verifier-contract-example` and its deployment on chain 153, which answers the
@@ -179,7 +178,7 @@ selectors and returns true for the sample credential's wallet.
179
178
  Not verified, marked **verify**: the ABI of `VCVerifierBaseContract` itself. It ships only in a
180
179
  GitHub Packages npm package that refuses unauthenticated reads. The VC adapter is coded against the
181
180
  child getter the example exposes, not against the base. Also unknown: which `@iden3/contracts`
182
- release Redbelly's own verifier backend deploys from (RESEARCH.md question 29), so the adapter
181
+ release Redbelly's own verifier backend deploys from, so the adapter
183
182
  supports all three and the builder picks.
184
183
 
185
184
  ## Last verified
package/foundry.toml CHANGED
@@ -1,4 +1,4 @@
1
- # Redbelly Network pins: EVM Prague, solc 0.8.30 (RESEARCH.md question 1, verified 2026-09-12).
1
+ # Redbelly Network pins: EVM Prague, solc 0.8.30 (research question 1, verified 2026-09-12).
2
2
  [profile.default]
3
3
  src = "src"
4
4
  test = "test"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gatedpath/receptor-mock",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "ReceptorMock, the Gated base contract, verifier adapters and the five-state Foundry test helper for Redbelly Network (151 mainnet, 153 testnet).",
5
5
  "license": "MIT",
6
6
  "repository": {
package/test/Fork.t.sol CHANGED
@@ -21,7 +21,7 @@ interface IPermission {
21
21
  contract ForkTest is GatedTest {
22
22
  uint256 internal constant REDBELLY_TESTNET = 153;
23
23
 
24
- /// @dev Same address on 151 and 153; has code from block 0 (RESEARCH.md, 2026-09-12).
24
+ /// @dev Same address on 151 and 153; has code from block 0 (read 2026-09-12).
25
25
  address internal constant BOOTSTRAP_REGISTRY = 0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5;
26
26
 
27
27
  /// @dev Third-party wallet that `isAllowed` returned true for on 2026-09-12 (chain-definitions