Skip to content

Commit 694313c

Browse files
Merge pull request #428 from blockfrost/pr-426
Pr 426 Add PlutusV3 as a Script Type Variant
2 parents 4674f0e + 4bbb837 commit 694313c

File tree

9 files changed

+13
-4
lines changed

9 files changed

+13
-4
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+
- added PlutusV3 to the type field of the script object, to match the actual API response types
15+
1216
## [0.1.82] - 2025-10-20
1317

1418
### Added

blockfrost-openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10825,6 +10825,7 @@ components:
1082510825
- timelock
1082610826
- plutusV1
1082710827
- plutusV2
10828+
- plutusV3
1082810829
example: plutusV1
1082910830
description: Type of the script language
1083010831
serialised_size:

docs/blockfrost-openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11393,6 +11393,7 @@ components:
1139311393
- timelock
1139411394
- plutusV1
1139511395
- plutusV2
11396+
- plutusV3
1139611397
example: plutusV1
1139711398
description: Type of the script language
1139811399
serialised_size:

json-schema.json

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

openapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14749,7 +14749,8 @@
1474914749
"enum": [
1475014750
"timelock",
1475114751
"plutusV1",
14752-
"plutusV2"
14752+
"plutusV2",
14753+
"plutusV3"
1475314754
],
1475414755
"example": "plutusV1",
1475514756
"description": "Type of the script language"

openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11393,6 +11393,7 @@ components:
1139311393
- timelock
1139411394
- plutusV1
1139511395
- plutusV2
11396+
- plutusV3
1139611397
example: plutusV1
1139711398
description: Type of the script language
1139811399
serialised_size:

src/generated-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10673,7 +10673,7 @@ export interface components {
1067310673
* @example plutusV1
1067410674
* @enum {string}
1067510675
*/
10676-
type: "timelock" | "plutusV1" | "plutusV2";
10676+
type: "timelock" | "plutusV1" | "plutusV2" | "plutusV3";
1067710677
/**
1067810678
* @description The size of the CBOR serialised script, if a Plutus script
1067910679
* @example 3119

src/schemas/scripts/script.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ properties:
66
description: Script hash
77
type:
88
type: string
9-
enum: [timelock, plutusV1, plutusV2]
9+
enum: [timelock, plutusV1, plutusV2, plutusV3]
1010
example: "plutusV1"
1111
description: Type of the script language
1212
serialised_size:

test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23420,6 +23420,7 @@ relative to the start of the network
2342023420
"timelock",
2342123421
"plutusV1",
2342223422
"plutusV2",
23423+
"plutusV3",
2342323424
],
2342423425
"example": "plutusV1",
2342523426
"type": "string",

0 commit comments

Comments
 (0)