diff --git a/apis/config/deposit_contract.yaml b/apis/config/deposit_contract.yaml index 2489f503..3390f1ee 100644 --- a/apis/config/deposit_contract.yaml +++ b/apis/config/deposit_contract.yaml @@ -25,8 +25,8 @@ get: - example: "1" address: allOf: - - $ref: ../../beacon-node-oapi.yaml#/components/schemas/Hex + - $ref: ../../beacon-node-oapi.yaml#/components/schemas/ExecutionAddress - description: Hex encoded deposit contract address with 0x prefix - - example: "0x1Db3439a222C519ab44bb1144fC28167b4Fa6EE6" + - example: "0x00000000219ab540356cBB839Cbe05303d7705Fa" "500": $ref: ../../beacon-node-oapi.yaml#/components/responses/InternalError diff --git a/beacon-node-oapi.yaml b/beacon-node-oapi.yaml index 09597aba..ba3f5ae4 100644 --- a/beacon-node-oapi.yaml +++ b/beacon-node-oapi.yaml @@ -283,8 +283,6 @@ components: $ref: './types/primitive.yaml#/Finalized' Root: $ref: './types/primitive.yaml#/Root' - Hex: - $ref: './types/primitive.yaml#/Hex' Graffiti: $ref: './types/primitive.yaml#/Graffiti' Signature: diff --git a/types/altair/sync_committee.yaml b/types/altair/sync_committee.yaml index 5a166d39..f08fcb34 100644 --- a/types/altair/sync_committee.yaml +++ b/types/altair/sync_committee.yaml @@ -81,8 +81,8 @@ Altair: aggregation_bits: allOf: - description: 'A bit is set if a signature from the validator at the corresponding index in the subcommittee is present in the aggregate `signature`.' - - $ref: "../primitive.yaml#/Hex" - - example: "0x01" + - $ref: "../primitive.yaml#/Bitvector" + - example: "0xffffffffffffffffffffffffffffffff" signature: allOf: - $ref: '../primitive.yaml#/Signature' diff --git a/types/p2p.yaml b/types/p2p.yaml index 3859ccb6..69e5d3a9 100644 --- a/types/p2p.yaml +++ b/types/p2p.yaml @@ -34,12 +34,12 @@ MetaData: attnets: allOf: - description: "Bitvector representing the node's persistent attestation subnet subscriptions." - - $ref: "./primitive.yaml#/Hex" + - $ref: "./primitive.yaml#/Bitvector" - example: "0x0000000000000000" syncnets: allOf: - description: "Bitvector representing the node's sync committee subnet subscriptions. This metadata is not present in phase0, but will be present in Altair." - - $ref: "./primitive.yaml#/Hex" + - $ref: "./primitive.yaml#/Bitvector" - example: "0x0f" Peer: diff --git a/types/primitive.yaml b/types/primitive.yaml index 1ecf3f5a..5deda884 100644 --- a/types/primitive.yaml +++ b/types/primitive.yaml @@ -76,11 +76,6 @@ Graffiti: example: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2" pattern: "^0x[a-fA-F0-9]{64}$" -Hex: - type: string - format: hex - pattern: "^0x[a-fA-F0-9]{2,}$" - Signature: type: string format: hex @@ -91,7 +86,13 @@ BitList: type: string format: hex example: "0x01" - pattern: "^0x[a-fA-F0-9]+$" + pattern: "^0x[a-fA-F0-9]{2,64}$" + +Bitvector: + type: string + format: hex + example: "0x01" + pattern: "^0x[a-fA-F0-9]{2,64}$" Uint8: type: string