@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 +9 -10
- package/foundry.toml +1 -1
- package/package.json +1 -1
- package/test/Fork.t.sol +1 -1
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
|
|
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
|
|
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
|
-
|
|
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`
|
|
167
|
-
|
|
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
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gatedpath/receptor-mock",
|
|
3
|
-
"version": "0.2.
|
|
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 (
|
|
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
|