Skip to content

Commit be79d9d

Browse files
committed
feat: calidus key support
1 parent f1347b4 commit be79d9d

File tree

9 files changed

+321
-2
lines changed

9 files changed

+321
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"Bstake",
2020
"Bticker",
2121
"Bxpub",
22+
"calidus",
2223
"cbor",
2324
"decentralisation",
2425
"delegators",

blockfrost-openapi.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9775,6 +9775,47 @@ components:
97759775
type: string
97769776
description: Hash of the transaction including retirement
97779777
example: 252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8
9778+
calidus_key:
9779+
type: object
9780+
nullable: true
9781+
description: Last valid Calidus key for the pool
9782+
properties:
9783+
id:
9784+
type: string
9785+
example: calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
9786+
description: A Bech32-encoded identifier derived from the calidus public key
9787+
pub_key:
9788+
type: string
9789+
example: 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
9790+
description: The raw hexadecimal-encoded calidus public key used for verification purposes
9791+
nonce:
9792+
type: integer
9793+
example: 149292000
9794+
description: A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration
9795+
tx_hash:
9796+
type: string
9797+
example: f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
9798+
description: The transaction hash that submitted the Calidus key registration
9799+
block_height:
9800+
type: integer
9801+
example: 11548408
9802+
description: The block height at which this key registration was recorded
9803+
block_time:
9804+
type: integer
9805+
example: 1740858988
9806+
description: Block time of the key registration
9807+
epoch:
9808+
type: integer
9809+
example: 543
9810+
description: Epoch number of the key registration
9811+
required:
9812+
- id
9813+
- pub_key
9814+
- nonce
9815+
- tx_hash
9816+
- block_height
9817+
- block_time
9818+
- epoch
97789819
required:
97799820
- pool_id
97809821
- hex
@@ -9795,6 +9836,7 @@ components:
97959836
- owners
97969837
- registration
97979838
- retirement
9839+
- calidus_key
97989840
pool_history:
97999841
type: array
98009842
items:

docs/blockfrost-openapi.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10304,6 +10304,51 @@ components:
1030410304
type: string
1030510305
description: Hash of the transaction including retirement
1030610306
example: 252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8
10307+
calidus_key:
10308+
type: object
10309+
nullable: true
10310+
description: Last valid Calidus key for the pool
10311+
properties:
10312+
id:
10313+
type: string
10314+
example: calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
10315+
description: A Bech32-encoded identifier derived from the calidus public key
10316+
pub_key:
10317+
type: string
10318+
example: 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
10319+
description: >-
10320+
The raw hexadecimal-encoded calidus public key used for
10321+
verification purposes
10322+
nonce:
10323+
type: integer
10324+
example: 149292000
10325+
description: >-
10326+
A unique number used once to prevent replay attacks and ensure
10327+
the uniqueness of the key registration
10328+
tx_hash:
10329+
type: string
10330+
example: f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
10331+
description: The transaction hash that submitted the Calidus key registration
10332+
block_height:
10333+
type: integer
10334+
example: 11548408
10335+
description: The block height at which this key registration was recorded
10336+
block_time:
10337+
type: integer
10338+
example: 1740858988
10339+
description: Block time of the key registration
10340+
epoch:
10341+
type: integer
10342+
example: 543
10343+
description: Epoch number of the key registration
10344+
required:
10345+
- id
10346+
- pub_key
10347+
- nonce
10348+
- tx_hash
10349+
- block_height
10350+
- block_time
10351+
- epoch
1030710352
required:
1030810353
- pool_id
1030910354
- hex
@@ -10324,6 +10369,7 @@ components:
1032410369
- owners
1032510370
- registration
1032610371
- retirement
10372+
- calidus_key
1032710373
pool_history:
1032810374
type: array
1032910375
items:

json-schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi.json

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13281,6 +13281,57 @@
1328113281
"description": "Hash of the transaction including retirement",
1328213282
"example": "252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8"
1328313283
}
13284+
},
13285+
"calidus_key": {
13286+
"type": "object",
13287+
"nullable": true,
13288+
"description": "Last valid Calidus key for the pool",
13289+
"properties": {
13290+
"id": {
13291+
"type": "string",
13292+
"example": "calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7",
13293+
"description": "A Bech32-encoded identifier derived from the calidus public key"
13294+
},
13295+
"pub_key": {
13296+
"type": "string",
13297+
"example": "57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0",
13298+
"description": "The raw hexadecimal-encoded calidus public key used for verification purposes"
13299+
},
13300+
"nonce": {
13301+
"type": "integer",
13302+
"example": 149292000,
13303+
"description": "A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration"
13304+
},
13305+
"tx_hash": {
13306+
"type": "string",
13307+
"example": "f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8",
13308+
"description": "The transaction hash that submitted the Calidus key registration"
13309+
},
13310+
"block_height": {
13311+
"type": "integer",
13312+
"example": 11548408,
13313+
"description": "The block height at which this key registration was recorded"
13314+
},
13315+
"block_time": {
13316+
"type": "integer",
13317+
"example": 1740858988,
13318+
"description": "Block time of the key registration"
13319+
},
13320+
"epoch": {
13321+
"type": "integer",
13322+
"example": 543,
13323+
"description": "Epoch number of the key registration"
13324+
}
13325+
},
13326+
"required": [
13327+
"id",
13328+
"pub_key",
13329+
"nonce",
13330+
"tx_hash",
13331+
"block_height",
13332+
"block_time",
13333+
"epoch"
13334+
]
1328413335
}
1328513336
},
1328613337
"required": [
@@ -13302,7 +13353,8 @@
1330213353
"reward_account",
1330313354
"owners",
1330413355
"registration",
13305-
"retirement"
13356+
"retirement",
13357+
"calidus_key"
1330613358
]
1330713359
},
1330813360
"pool_history": {

openapi.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10304,6 +10304,51 @@ components:
1030410304
type: string
1030510305
description: Hash of the transaction including retirement
1030610306
example: 252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8
10307+
calidus_key:
10308+
type: object
10309+
nullable: true
10310+
description: Last valid Calidus key for the pool
10311+
properties:
10312+
id:
10313+
type: string
10314+
example: calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
10315+
description: A Bech32-encoded identifier derived from the calidus public key
10316+
pub_key:
10317+
type: string
10318+
example: 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
10319+
description: >-
10320+
The raw hexadecimal-encoded calidus public key used for
10321+
verification purposes
10322+
nonce:
10323+
type: integer
10324+
example: 149292000
10325+
description: >-
10326+
A unique number used once to prevent replay attacks and ensure
10327+
the uniqueness of the key registration
10328+
tx_hash:
10329+
type: string
10330+
example: f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
10331+
description: The transaction hash that submitted the Calidus key registration
10332+
block_height:
10333+
type: integer
10334+
example: 11548408
10335+
description: The block height at which this key registration was recorded
10336+
block_time:
10337+
type: integer
10338+
example: 1740858988
10339+
description: Block time of the key registration
10340+
epoch:
10341+
type: integer
10342+
example: 543
10343+
description: Epoch number of the key registration
10344+
required:
10345+
- id
10346+
- pub_key
10347+
- nonce
10348+
- tx_hash
10349+
- block_height
10350+
- block_time
10351+
- epoch
1030710352
required:
1030810353
- pool_id
1030910354
- hex
@@ -10324,6 +10369,7 @@ components:
1032410369
- owners
1032510370
- registration
1032610371
- retirement
10372+
- calidus_key
1032710373
pool_history:
1032810374
type: array
1032910375
items:

src/generated-types.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9680,6 +9680,44 @@ export interface components {
96809680
* ] */
96819681
registration: string[];
96829682
retirement: string[];
9683+
/** @description Last valid Calidus key for the pool */
9684+
calidus_key: {
9685+
/**
9686+
* @description A Bech32-encoded identifier derived from the calidus public key
9687+
* @example calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
9688+
*/
9689+
id: string;
9690+
/**
9691+
* @description The raw hexadecimal-encoded calidus public key used for verification purposes
9692+
* @example 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
9693+
*/
9694+
pub_key: string;
9695+
/**
9696+
* @description A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration
9697+
* @example 149292000
9698+
*/
9699+
nonce: number;
9700+
/**
9701+
* @description The transaction hash that submitted the Calidus key registration
9702+
* @example f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
9703+
*/
9704+
tx_hash: string;
9705+
/**
9706+
* @description The block height at which this key registration was recorded
9707+
* @example 11548408
9708+
*/
9709+
block_height: number;
9710+
/**
9711+
* @description Block time of the key registration
9712+
* @example 1740858988
9713+
*/
9714+
block_time: number;
9715+
/**
9716+
* @description Epoch number of the key registration
9717+
* @example 543
9718+
*/
9719+
epoch: number;
9720+
} | null;
96839721
};
96849722
pool_history: {
96859723
/**

src/schemas/pools/pool.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,47 @@ properties:
8080
type: string
8181
description: Hash of the transaction including retirement
8282
example: "252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8"
83+
calidus_key:
84+
type: object
85+
nullable: true
86+
description: Last valid Calidus key for the pool
87+
properties:
88+
id:
89+
type: string
90+
example: "calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7"
91+
description: A Bech32-encoded identifier derived from the calidus public key
92+
pub_key:
93+
type: string
94+
example: "57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0"
95+
description: The raw hexadecimal-encoded calidus public key used for verification purposes
96+
nonce:
97+
type: integer
98+
example: 149292000
99+
description: A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration
100+
tx_hash:
101+
type: string
102+
example: "f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8"
103+
description: The transaction hash that submitted the Calidus key registration
104+
block_height:
105+
type: integer
106+
example: 11548408
107+
description: The block height at which this key registration was recorded
108+
block_time:
109+
type: integer
110+
example: 1740858988
111+
description: Block time of the key registration
112+
epoch:
113+
type: integer
114+
example: 543
115+
description: Epoch number of the key registration
116+
required:
117+
- id
118+
- pub_key
119+
- nonce
120+
- tx_hash
121+
- block_height
122+
- block_time
123+
- epoch
83124
required:
84125
- pool_id
85126
- hex
@@ -100,3 +141,4 @@ required:
100141
- owners
101142
- registration
102143
- retirement
144+
- calidus_key

0 commit comments

Comments
 (0)