Skip to content

Commit

Permalink
feat(gov): add drep_id to accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
1000101 committed Jun 19, 2024
1 parent 7ff60c7 commit c90502e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 8 deletions.
2 changes: 1 addition & 1 deletion json-schema.json

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10197,7 +10197,13 @@
"type": "string",
"nullable": true,
"example": "pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy",
"description": "Bech32 pool ID that owns the account"
"description": "Bech32 pool ID to which this account is delegated"
},
"drep_id": {
"type": "string",
"nullable": true,
"example": "drep15cfxz9exyn5rx0807zvxfrvslrjqfchrd4d47kv9e0f46uedqtc",
"description": "Bech32 drep ID to which this account is delegated"
}
},
"required": [
Expand All @@ -10210,7 +10216,8 @@
"reserves_sum",
"treasury_sum",
"withdrawable_amount",
"pool_id"
"pool_id",
"drep_id"
]
},
"account_reward_content": {
Expand Down
8 changes: 7 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7522,7 +7522,12 @@ components:
type: string
nullable: true
example: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
description: Bech32 pool ID that owns the account
description: Bech32 pool ID to which this account is delegated
drep_id:
type: string
nullable: true
example: drep15cfxz9exyn5rx0807zvxfrvslrjqfchrd4d47kv9e0f46uedqtc
description: Bech32 drep ID to which this account is delegated
required:
- stake_address
- active
Expand All @@ -7534,6 +7539,7 @@ components:
- treasury_sum
- withdrawable_amount
- pool_id
- drep_id
account_reward_content:
type: array
items:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/openapi",
"version": "0.1.62-beta.6",
"version": "0.1.62-beta.7",
"description": "OpenAPI specifications for blockfrost.io",
"repository": "[email protected]:blockfrost/openapi.git",
"author": "[email protected]",
Expand Down Expand Up @@ -39,4 +39,4 @@
"engines": {
"node": ">=18"
}
}
}
7 changes: 6 additions & 1 deletion src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5460,10 +5460,15 @@ export interface components {
*/
withdrawable_amount: string;
/**
* @description Bech32 pool ID that owns the account
* @description Bech32 pool ID to which this account is delegated
* @example pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
*/
pool_id: string | null;
/**
* @description Bech32 drep ID to which this account is delegated
* @example drep15cfxz9exyn5rx0807zvxfrvslrjqfchrd4d47kv9e0f46uedqtc
*/
drep_id: string | null;
};
/**
* @example [
Expand Down
9 changes: 8 additions & 1 deletion src/schemas/accounts/account_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ properties:
type: string
nullable: true
example: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
description: Bech32 pool ID that owns the account
description: Bech32 pool ID to which this account is delegated
drep_id:
type: string
nullable: true
example: drep15cfxz9exyn5rx0807zvxfrvslrjqfchrd4d47kv9e0f46uedqtc
description: Bech32 drep ID to which this account is delegated

required:
- stake_address
- active
Expand All @@ -53,3 +59,4 @@ required:
- treasury_sum
- withdrawable_amount
- pool_id
- drep_id

0 comments on commit c90502e

Please sign in to comment.