Skip to content

Commit

Permalink
chore(dreps): update
Browse files Browse the repository at this point in the history
  • Loading branch information
1000101 committed Dec 4, 2023
1 parent 6d306d3 commit bbc29ea
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
21 changes: 4 additions & 17 deletions src/schemas/governance/drep_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ type: array
items:
type: object
properties:
id:
type: integer
description: Id
hash:
type: string
description: The raw bytes of the DRep.
Expand All @@ -17,26 +14,16 @@ items:
is_registered:
type: boolean
description: Flags which shows if the drep is registered or not
voting_power:
type: string
description: The total amount of voting power this DRep is delegated.
required:
- id
- hash
- address
- has_script
- is_registered
- voting_power
example:
- id: "2"
hash: "8788591983aa73981fc92d6cddbbe643959f5a784e84b8bee0db15823f575a5b"
address: "4ef47f6eb681d5d9fa2f7e16336cd629303c635e8da51e425b76088be9c87443"
- hash: "db1bc3c3f99ce68977ceaf27ab4dd917123ef9e73f85c304236eab23"
address: "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn"
has_script: true
is_registered: true
voting_power: "100000000"
- id: "3"
hash: "3788591983aa73981fc92d6cddbbe643959f5a784e84b8bee0db15823f575a5b"
view: "2ef47f6eb681d5d9fa2f7e16336cd629303c635e8da51e425b76088be9c8744v"
- hash: "c1ba49d52822bc4ef30cbf77060251668f1a6ef15ca46d18f76cc758"
view: "drep1cxayn4fgy27yaucvhamsvqj3v6835mh3tjjx6x8hdnr4"
has_script: false
is_registered: false
voting_power: "250000000"
26 changes: 22 additions & 4 deletions src/schemas/governance/drep_details_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,35 @@ type: array
items:
type: object
properties:
address:
type: string
description: Bech32 encoded addresses
amount:
type: string
description: The total amount of voting power this DRep is delegated.
epoch:
nullable: true
type: integer
description: The most recent epoch this distribution is about.
active_until:
nullable: true
type: integer
description: The epoch no this distribution is about.
description: The epoch no until this distribution is active.

required:
- address
- amount
- epoch
- active_until
- is_registered
example:
- amount: "2000000"
- address: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
amount: "2000000"
epoch: 432
- amount: "300000000"
epoch: 433
active_until: 444
is_registered: true
- address: drep1cxayn4fgy27yaucvhamsvqj3v6835mh3tjjx6x8hdnr4
amount: "1000000"
epoch: null
active_until: null
is_registered: false
4 changes: 4 additions & 0 deletions src/schemas/governance/drep_distribution_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ items:
epoch:
type: integer
description: The epoch no this distribution is about.
active_until:
nullable: true
type: integer
description: The epoch no until this distribution is active.
required:
- amount
- epoch
Expand Down

0 comments on commit bbc29ea

Please sign in to comment.