conformance: a conformance suite for the AIP-23 proof kinds (one verdict form over the published verifiers, 35 rules derived from code, 122 vectors, a runner for any implementation, a second verifier in Python); four defects it found in the published verifiers are fixed here: the market judge accepted a timeline with its submission event withheld, and three verifiers threw on malformed input instead of refusing by name
This commit is contained in:
1 parent
2c000478dc
commit
c9f2932e04
145 files changed
+17395
-104
No files matched your search
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"v": 1,
|
||||
"kind": "aere-conformance-vector",
|
||||
"id": "payment-risk/company-p1.form-time",
|
||||
"artifact": "payment-risk",
|
||||
"title": "no time given",
|
||||
"source": "derived from payment-risk/company-p1.valid",
|
||||
"requires": [],
|
||||
"exercises": [
|
||||
"risk.asset",
|
||||
"risk.counterparty",
|
||||
"risk.form",
|
||||
"risk.limit",
|
||||
"risk.rate",
|
||||
"risk.window"
|
||||
],
|
||||
"base": "payment-risk/company-p1.valid",
|
||||
"mutation": {
|
||||
"op": "remove",
|
||||
"path": [
|
||||
"inputs",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"input": {
|
||||
"policy": {
|
||||
"v": 1,
|
||||
"kind": "aere-payment-risk-policy",
|
||||
"id": "payee-company-28001-2026-10-02",
|
||||
"currency": "USD",
|
||||
"perPaymentMaxUsd": "1.000000",
|
||||
"window": {
|
||||
"seconds": 86400,
|
||||
"maxUsd": "2.500000",
|
||||
"maxCount": 3
|
||||
},
|
||||
"allowedAssets": [
|
||||
{
|
||||
"chainId": 28001,
|
||||
"asset": "native",
|
||||
"decimals": 18
|
||||
}
|
||||
],
|
||||
"refusedCounterparties": [
|
||||
{
|
||||
"address": "0x0000000000000000000000000000000000000000",
|
||||
"reason": "the zero address: funds sent there are unrecoverable",
|
||||
"source": "measured on every EVM chain"
|
||||
},
|
||||
{
|
||||
"address": "0x4145d6f639436d840957f2d4b9f2e73f34f56b5d",
|
||||
"reason": "a contract that only pays out through its own job flow (AereComputeMarketV3 on 28001): a plain transfer to it is lost",
|
||||
"source": "tools/aere-market-settlement/desfasurare-28001.json"
|
||||
},
|
||||
{
|
||||
"address": "0x70099e62735500aa2f85b60c518551a57b202d54",
|
||||
"reason": "a contract with no path to withdraw what is sent to it (AereNotary on 28001)",
|
||||
"source": "contracts/deployments/notary-28001.json"
|
||||
}
|
||||
],
|
||||
"requireRate": true
|
||||
},
|
||||
"inputs": {
|
||||
"chainId": 28001,
|
||||
"payer": "0x86d6c68408ddb2cc0d1cf4dfd6e07d3830600faf",
|
||||
"payee": "0x5c5dc3eb504affbb15d0237fd0bff509840ebf64",
|
||||
"asset": "native",
|
||||
"amount": "400000000000000000",
|
||||
"rate": {
|
||||
"usdPerUnit": "0.5",
|
||||
"source": "declared by the payee for this test (28001 has no market price; tAERE is a test asset)",
|
||||
"at": "2026-10-02T17:16:44.549Z"
|
||||
},
|
||||
"identity": null,
|
||||
"history": []
|
||||
}
|
||||
},
|
||||
"expected": {
|
||||
"verdict": "INVALID",
|
||||
"failed": [
|
||||
"risk.form"
|
||||
],
|
||||
"levels": {
|
||||
"integrity": "FAILED",
|
||||
"authenticity": "NOT_MEASURED",
|
||||
"anchoring": "NOT_MEASURED",
|
||||
"finality": "NOT_MEASURED"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user