aere-quantum/conformance/vectori/payment-risk/company-p1.asset.json

93 lines
2.3 KiB
JSON

{
"v": 1,
"kind": "aere-conformance-vector",
"id": "payment-risk/company-p1.asset",
"artifact": "payment-risk",
"title": "an asset the policy does not allow",
"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": "set",
"path": [
"inputs",
"asset"
],
"value": "other-token"
},
"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": "other-token",
"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": [],
"now": 1790961406
}
},
"expected": {
"verdict": "INVALID",
"failed": [
"risk.asset"
],
"levels": {
"integrity": "FAILED",
"authenticity": "NOT_MEASURED",
"anchoring": "NOT_MEASURED",
"finality": "NOT_MEASURED"
}
}
}