Skip to content

Commit a03a1fa

Browse files
Merge pull request #397 from blockfrost/fix/proposal-params
fix: allow all proposal parameters to be nullable, remove unused `non…
2 parents e95edc5 + b6ee440 commit a03a1fa

File tree

9 files changed

+151
-78
lines changed

9 files changed

+151
-78
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Unreleased changes are in the `master` branch.
99

1010
## [Unreleased]
1111

12+
### Fixed
13+
14+
- Allow all proposal parameters to be nullable, remove unused `nonce` param
15+
1216
## [0.1.72] - 2025-01-16
1317

1418
### Added

blockfrost-openapi.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6682,58 +6682,72 @@ components:
66826682
type: integer
66836683
example: 225
66846684
description: Epoch number
6685+
nullable: true
66856686
min_fee_a:
66866687
type: integer
66876688
example: 44
66886689
description: The linear factor for the minimum fee calculation for given epoch
6690+
nullable: true
66896691
min_fee_b:
66906692
type: integer
66916693
example: 155381
66926694
description: The constant factor for the minimum fee calculation
6695+
nullable: true
66936696
max_block_size:
66946697
type: integer
66956698
example: 65536
66966699
description: Maximum block body size in Bytes
6700+
nullable: true
66976701
max_tx_size:
66986702
type: integer
66996703
example: 16384
67006704
description: Maximum transaction size
6705+
nullable: true
67016706
max_block_header_size:
67026707
type: integer
67036708
example: 1100
67046709
description: Maximum block header size
6710+
nullable: true
67056711
key_deposit:
67066712
type: string
67076713
example: '2000000'
67086714
description: The amount of a key registration deposit in Lovelaces
6715+
nullable: true
67096716
pool_deposit:
67106717
type: string
67116718
example: '500000000'
67126719
description: The amount of a pool registration deposit in Lovelaces
6720+
nullable: true
67136721
e_max:
67146722
type: integer
67156723
example: 18
67166724
description: Epoch bound on pool retirement
6725+
nullable: true
67176726
n_opt:
67186727
type: integer
67196728
example: 150
67206729
description: Desired number of pools
6730+
nullable: true
67216731
a0:
67226732
type: number
67236733
example: 0.3
67246734
description: Pool pledge influence
6735+
nullable: true
67256736
rho:
67266737
type: number
67276738
example: 0.003
67286739
description: Monetary expansion
6740+
nullable: true
67296741
tau:
67306742
type: number
67316743
example: 0.2
67326744
description: Treasury expansion
6745+
nullable: true
67336746
decentralisation_param:
67346747
type: number
67356748
example: 0.5
67366749
description: Percentage of blocks produced by federated nodes
6750+
nullable: true
67376751
extra_entropy:
67386752
type: string
67396753
nullable: true
@@ -6743,22 +6757,22 @@ components:
67436757
type: integer
67446758
example: 2
67456759
description: Accepted protocol major version
6760+
nullable: true
67466761
protocol_minor_ver:
67476762
type: integer
67486763
example: 0
67496764
description: Accepted protocol minor version
6765+
nullable: true
67506766
min_utxo:
67516767
type: string
67526768
example: '1000000'
67536769
description: Minimum UTXO value
6770+
nullable: true
67546771
min_pool_cost:
67556772
type: string
67566773
example: '340000000'
67576774
description: Minimum stake cost forced on the pool
6758-
nonce:
6759-
type: string
6760-
example: 1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81
6761-
description: Epoch number only used once
6775+
nullable: true
67626776
cost_models:
67636777
additionalProperties: true
67646778
type: object
@@ -6944,7 +6958,6 @@ components:
69446958
- protocol_minor_ver
69456959
- min_utxo
69466960
- min_pool_cost
6947-
- nonce
69486961
- cost_models
69496962
- price_mem
69506963
- price_step

docs/blockfrost-openapi.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7010,60 +7010,74 @@ components:
70107010
type: integer
70117011
example: 225
70127012
description: Epoch number
7013+
nullable: true
70137014
min_fee_a:
70147015
type: integer
70157016
example: 44
70167017
description: >-
70177018
The linear factor for the minimum fee calculation for given
70187019
epoch
7020+
nullable: true
70197021
min_fee_b:
70207022
type: integer
70217023
example: 155381
70227024
description: The constant factor for the minimum fee calculation
7025+
nullable: true
70237026
max_block_size:
70247027
type: integer
70257028
example: 65536
70267029
description: Maximum block body size in Bytes
7030+
nullable: true
70277031
max_tx_size:
70287032
type: integer
70297033
example: 16384
70307034
description: Maximum transaction size
7035+
nullable: true
70317036
max_block_header_size:
70327037
type: integer
70337038
example: 1100
70347039
description: Maximum block header size
7040+
nullable: true
70357041
key_deposit:
70367042
type: string
70377043
example: '2000000'
70387044
description: The amount of a key registration deposit in Lovelaces
7045+
nullable: true
70397046
pool_deposit:
70407047
type: string
70417048
example: '500000000'
70427049
description: The amount of a pool registration deposit in Lovelaces
7050+
nullable: true
70437051
e_max:
70447052
type: integer
70457053
example: 18
70467054
description: Epoch bound on pool retirement
7055+
nullable: true
70477056
n_opt:
70487057
type: integer
70497058
example: 150
70507059
description: Desired number of pools
7060+
nullable: true
70517061
a0:
70527062
type: number
70537063
example: 0.3
70547064
description: Pool pledge influence
7065+
nullable: true
70557066
rho:
70567067
type: number
70577068
example: 0.003
70587069
description: Monetary expansion
7070+
nullable: true
70597071
tau:
70607072
type: number
70617073
example: 0.2
70627074
description: Treasury expansion
7075+
nullable: true
70637076
decentralisation_param:
70647077
type: number
70657078
example: 0.5
70667079
description: Percentage of blocks produced by federated nodes
7080+
nullable: true
70677081
extra_entropy:
70687082
type: string
70697083
nullable: true
@@ -7073,22 +7087,22 @@ components:
70737087
type: integer
70747088
example: 2
70757089
description: Accepted protocol major version
7090+
nullable: true
70767091
protocol_minor_ver:
70777092
type: integer
70787093
example: 0
70797094
description: Accepted protocol minor version
7095+
nullable: true
70807096
min_utxo:
70817097
type: string
70827098
example: '1000000'
70837099
description: Minimum UTXO value
7100+
nullable: true
70847101
min_pool_cost:
70857102
type: string
70867103
example: '340000000'
70877104
description: Minimum stake cost forced on the pool
7088-
nonce:
7089-
type: string
7090-
example: 1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81
7091-
description: Epoch number only used once
7105+
nullable: true
70927106
cost_models:
70937107
additionalProperties: true
70947108
type: object
@@ -7318,7 +7332,6 @@ components:
73187332
- protocol_minor_ver
73197333
- min_utxo
73207334
- min_pool_cost
7321-
- nonce
73227335
- cost_models
73237336
- price_mem
73247337
- price_step

json-schema.json

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

openapi.json

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9142,72 +9142,86 @@
91429142
"epoch": {
91439143
"type": "integer",
91449144
"example": 225,
9145-
"description": "Epoch number"
9145+
"description": "Epoch number",
9146+
"nullable": true
91469147
},
91479148
"min_fee_a": {
91489149
"type": "integer",
91499150
"example": 44,
9150-
"description": "The linear factor for the minimum fee calculation for given epoch"
9151+
"description": "The linear factor for the minimum fee calculation for given epoch",
9152+
"nullable": true
91519153
},
91529154
"min_fee_b": {
91539155
"type": "integer",
91549156
"example": 155381,
9155-
"description": "The constant factor for the minimum fee calculation"
9157+
"description": "The constant factor for the minimum fee calculation",
9158+
"nullable": true
91569159
},
91579160
"max_block_size": {
91589161
"type": "integer",
91599162
"example": 65536,
9160-
"description": "Maximum block body size in Bytes"
9163+
"description": "Maximum block body size in Bytes",
9164+
"nullable": true
91619165
},
91629166
"max_tx_size": {
91639167
"type": "integer",
91649168
"example": 16384,
9165-
"description": "Maximum transaction size"
9169+
"description": "Maximum transaction size",
9170+
"nullable": true
91669171
},
91679172
"max_block_header_size": {
91689173
"type": "integer",
91699174
"example": 1100,
9170-
"description": "Maximum block header size"
9175+
"description": "Maximum block header size",
9176+
"nullable": true
91719177
},
91729178
"key_deposit": {
91739179
"type": "string",
91749180
"example": "2000000",
9175-
"description": "The amount of a key registration deposit in Lovelaces"
9181+
"description": "The amount of a key registration deposit in Lovelaces",
9182+
"nullable": true
91769183
},
91779184
"pool_deposit": {
91789185
"type": "string",
91799186
"example": "500000000",
9180-
"description": "The amount of a pool registration deposit in Lovelaces"
9187+
"description": "The amount of a pool registration deposit in Lovelaces",
9188+
"nullable": true
91819189
},
91829190
"e_max": {
91839191
"type": "integer",
91849192
"example": 18,
9185-
"description": "Epoch bound on pool retirement"
9193+
"description": "Epoch bound on pool retirement",
9194+
"nullable": true
91869195
},
91879196
"n_opt": {
91889197
"type": "integer",
91899198
"example": 150,
9190-
"description": "Desired number of pools"
9199+
"description": "Desired number of pools",
9200+
"nullable": true
91919201
},
91929202
"a0": {
91939203
"type": "number",
91949204
"example": 0.3,
9195-
"description": "Pool pledge influence"
9205+
"description": "Pool pledge influence",
9206+
"nullable": true
91969207
},
91979208
"rho": {
91989209
"type": "number",
91999210
"example": 0.003,
9200-
"description": "Monetary expansion"
9211+
"description": "Monetary expansion",
9212+
"nullable": true
92019213
},
92029214
"tau": {
92039215
"type": "number",
92049216
"example": 0.2,
9205-
"description": "Treasury expansion"
9217+
"description": "Treasury expansion",
9218+
"nullable": true
92069219
},
92079220
"decentralisation_param": {
92089221
"type": "number",
92099222
"example": 0.5,
9210-
"description": "Percentage of blocks produced by federated nodes"
9223+
"description": "Percentage of blocks produced by federated nodes",
9224+
"nullable": true
92119225
},
92129226
"extra_entropy": {
92139227
"type": "string",
@@ -9218,27 +9232,26 @@
92189232
"protocol_major_ver": {
92199233
"type": "integer",
92209234
"example": 2,
9221-
"description": "Accepted protocol major version"
9235+
"description": "Accepted protocol major version",
9236+
"nullable": true
92229237
},
92239238
"protocol_minor_ver": {
92249239
"type": "integer",
92259240
"example": 0,
9226-
"description": "Accepted protocol minor version"
9241+
"description": "Accepted protocol minor version",
9242+
"nullable": true
92279243
},
92289244
"min_utxo": {
92299245
"type": "string",
92309246
"example": "1000000",
9231-
"description": "Minimum UTXO value"
9247+
"description": "Minimum UTXO value",
9248+
"nullable": true
92329249
},
92339250
"min_pool_cost": {
92349251
"type": "string",
92359252
"example": "340000000",
9236-
"description": "Minimum stake cost forced on the pool"
9237-
},
9238-
"nonce": {
9239-
"type": "string",
9240-
"example": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
9241-
"description": "Epoch number only used once"
9253+
"description": "Minimum stake cost forced on the pool",
9254+
"nullable": true
92429255
},
92439256
"cost_models": {
92449257
"additionalProperties": true,
@@ -9464,7 +9477,6 @@
94649477
"protocol_minor_ver",
94659478
"min_utxo",
94669479
"min_pool_cost",
9467-
"nonce",
94689480
"cost_models",
94699481
"price_mem",
94709482
"price_step",

0 commit comments

Comments
 (0)