Skip to content

Commit

Permalink
Simplify schema to have a single drep hash
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly committed Dec 13, 2024
1 parent be83ff0 commit 67e2085
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,21 +399,11 @@ x-stakePoolId: &stakePoolId
example: pool1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm
description: A unique identifier for the pool.

x-drepKeyHash: &drepKeyHash
x-drepHash: &drepHash
type: string
format: bech32
example: drep1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm
description: DRep's key hash according to CIP-0129.
pattern: "^(drep)1[0-9a-z]*$"

x-drepScriptHash: &drepScriptHash
type: string
format: bech32
example: drep1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm
description: |
DRep's script hash according to CIP-0129. Note this is identical
to drepKeyHash but for unknown reasons we need to different
schema fragments here.
description: DRep's key or script hash according to CIP-0129.
pattern: "^(drep)1[0-9a-z]*$"

x-walletAccountXPubkey: &walletAccountXPubkey
Expand Down Expand Up @@ -2980,10 +2970,8 @@ components:
- abstain
- no_confidence
title: casting a default vote
- <<: *drepKeyHash
- <<: *drepHash
title: vote to a drep represented by key hash
- <<: *drepScriptHash
title: vote to a drep represented by script hash

ApiWalletDelegationNext: &ApiWalletDelegationNext
type: object
Expand Down

0 comments on commit 67e2085

Please sign in to comment.