diff --git a/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim b/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim index 84b6f66449..4620ccaba2 100644 --- a/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim +++ b/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim @@ -327,7 +327,7 @@ proc getPoolAttestations*( meth: MethodGet.} ## https://ethereum.github.io/beacon-APIs/#/Beacon/getPoolAttestations -proc getPoolAttestationsV2*( +proc getPoolAttestationsV2Plain*( slot: Option[Slot], committee_index: Option[CommitteeIndex] ): RestPlainResponse {. diff --git a/ncli/resttest-rules.json b/ncli/resttest-rules.json index 93ec197e30..071a8c38bf 100644 --- a/ncli/resttest-rules.json +++ b/ncli/resttest-rules.json @@ -3807,162 +3807,6 @@ "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] } }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "200"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmps", "start": ["data"],"value": [{"aggregation_bits": "", "signature": "", "data": {"slot": "", "index": "", "beacon_block_root": "", "source": {"epoch": "", "root": ""}, "target": {"epoch": "", "root": ""}}}]}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=0", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "200"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmps", "start": ["data"],"value": [{"aggregation_bits": "", "signature": "", "data": {"slot": "", "index": "", "beacon_block_root": "", "source": {"epoch": "", "root": ""}, "target": {"epoch": "", "root": ""}}}]}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=18446744073709551615", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "200"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmps", "start": ["data"],"value": [{"aggregation_bits": "", "signature": "", "data": {"slot": "", "index": "", "beacon_block_root": "", "source": {"epoch": "", "root": ""}, "target": {"epoch": "", "root": ""}}}]}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=18446744073709551616", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=word", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?committee_index=0", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "200"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmps", "start": ["data"],"value": [{"aggregation_bits": "", "signature": "", "data": {"slot": "", "index": "", "beacon_block_root": "", "source": {"epoch": "", "root": ""}, "target": {"epoch": "", "root": ""}}}]}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?committee_index=18446744073709551615", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?committee_index=18446744073709551616", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?committee_index=word", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=0&committee_index=0", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "200"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmps", "start": ["data"],"value": [{"aggregation_bits": "", "signature": "", "data": {"slot": "", "index": "", "beacon_block_root": "", "source": {"epoch": "", "root": ""}, "target": {"epoch": "", "root": ""}}}]}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=word&committee_index=word", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=18446744073709551615&committee_index=18446744073709551615", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, - { - "topics": ["beacon", "pool_attestations"], - "request": { - "url": "/eth/v2/beacon/pool/attestations?slot=18446744073709551616&committee_index=18446744073709551616", - "headers": {"Accept": "application/json"} - }, - "response": { - "status": {"operator": "equals", "value": "400"}, - "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmpns", "value": {"code": 400, "message": ""}}] - } - }, { "topics": ["beacon", "pool_attester_slashings"], "request": {