Skip to content

Commit 6e87b17

Browse files
authored
Merge pull request #361 from Emurgo/release/10.0.1
Release / 10.0.1
2 parents 29dd603 + 1580eb4 commit 6e87b17

File tree

5 files changed

+80
-80
lines changed

5 files changed

+80
-80
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cardano-serialization-lib",
3-
"version": "10.0.0",
3+
"version": "10.0.1",
44
"description": "(De)serialization functions for the Cardano blockchain along with related utility functions",
55
"scripts": {
66
"rust:build-nodejs": "(rimraf ./rust/pkg && cd rust; wasm-pack build --target=nodejs; wasm-pack pack) && npm run js:flowgen",

rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cardano-serialization-lib"
3-
version = "10.0.0"
3+
version = "10.0.1"
44
edition = "2018"
55
authors = ["EMURGO"]
66
license = "MIT"

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,6 @@
55
* @flow
66
*/
77

8-
/**
9-
* @param {Uint8Array} bytes
10-
* @returns {TransactionMetadatum}
11-
*/
12-
declare export function encode_arbitrary_bytes_as_metadatum(
13-
bytes: Uint8Array
14-
): TransactionMetadatum;
15-
16-
/**
17-
* @param {TransactionMetadatum} metadata
18-
* @returns {Uint8Array}
19-
*/
20-
declare export function decode_arbitrary_bytes_from_metadatum(
21-
metadata: TransactionMetadatum
22-
): Uint8Array;
23-
24-
/**
25-
* @param {string} json
26-
* @param {number} schema
27-
* @returns {TransactionMetadatum}
28-
*/
29-
declare export function encode_json_str_to_metadatum(
30-
json: string,
31-
schema: number
32-
): TransactionMetadatum;
33-
34-
/**
35-
* @param {TransactionMetadatum} metadatum
36-
* @param {number} schema
37-
* @returns {string}
38-
*/
39-
declare export function decode_metadatum_to_json_str(
40-
metadatum: TransactionMetadatum,
41-
schema: number
42-
): string;
43-
448
/**
459
* @param {TransactionHash} tx_body_hash
4610
* @param {ByronAddress} addr
@@ -165,6 +129,42 @@ declare export function encode_json_str_to_native_script(
165129
schema: number
166130
): NativeScript;
167131

132+
/**
133+
* @param {Uint8Array} bytes
134+
* @returns {TransactionMetadatum}
135+
*/
136+
declare export function encode_arbitrary_bytes_as_metadatum(
137+
bytes: Uint8Array
138+
): TransactionMetadatum;
139+
140+
/**
141+
* @param {TransactionMetadatum} metadata
142+
* @returns {Uint8Array}
143+
*/
144+
declare export function decode_arbitrary_bytes_from_metadatum(
145+
metadata: TransactionMetadatum
146+
): Uint8Array;
147+
148+
/**
149+
* @param {string} json
150+
* @param {number} schema
151+
* @returns {TransactionMetadatum}
152+
*/
153+
declare export function encode_json_str_to_metadatum(
154+
json: string,
155+
schema: number
156+
): TransactionMetadatum;
157+
158+
/**
159+
* @param {TransactionMetadatum} metadatum
160+
* @param {number} schema
161+
* @returns {string}
162+
*/
163+
declare export function decode_metadatum_to_json_str(
164+
metadatum: TransactionMetadatum,
165+
schema: number
166+
): string;
167+
168168
/**
169169
* @param {Transaction} tx
170170
* @param {LinearFee} linear_fee
@@ -266,78 +266,78 @@ declare export var NetworkIdKind: {|
266266
|};
267267

268268
/**
269+
* Used to choosed the schema for a script JSON string
269270
*/
270271

271-
declare export var StakeCredKind: {|
272-
+Key: 0, // 0
273-
+Script: 1, // 1
272+
declare export var ScriptSchema: {|
273+
+Wallet: 0, // 0
274+
+Node: 1, // 1
274275
|};
275276

276277
/**
277278
*/
278279

279-
declare export var LanguageKind: {|
280-
+PlutusV1: 0, // 0
280+
declare export var TransactionMetadatumKind: {|
281+
+MetadataMap: 0, // 0
282+
+MetadataList: 1, // 1
283+
+Int: 2, // 2
284+
+Bytes: 3, // 3
285+
+Text: 4, // 4
281286
|};
282287

283288
/**
284289
*/
285290

286-
declare export var PlutusDataKind: {|
287-
+ConstrPlutusData: 0, // 0
288-
+Map: 1, // 1
289-
+List: 2, // 2
290-
+Integer: 3, // 3
291-
+Bytes: 4, // 4
291+
declare export var MetadataJsonSchema: {|
292+
+NoConversions: 0, // 0
293+
+BasicConversions: 1, // 1
294+
+DetailedSchema: 2, // 2
292295
|};
293296

294297
/**
295298
*/
296299

297-
declare export var RedeemerTagKind: {|
298-
+Spend: 0, // 0
299-
+Mint: 1, // 1
300-
+Cert: 2, // 2
301-
+Reward: 3, // 3
300+
declare export var CoinSelectionStrategyCIP2: {|
301+
+LargestFirst: 0, // 0
302+
+RandomImprove: 1, // 1
303+
+LargestFirstMultiAsset: 2, // 2
304+
+RandomImproveMultiAsset: 3, // 3
302305
|};
303306

304307
/**
305308
*/
306309

307-
declare export var TransactionMetadatumKind: {|
308-
+MetadataMap: 0, // 0
309-
+MetadataList: 1, // 1
310-
+Int: 2, // 2
311-
+Bytes: 3, // 3
312-
+Text: 4, // 4
310+
declare export var StakeCredKind: {|
311+
+Key: 0, // 0
312+
+Script: 1, // 1
313313
|};
314314

315315
/**
316316
*/
317317

318-
declare export var MetadataJsonSchema: {|
319-
+NoConversions: 0, // 0
320-
+BasicConversions: 1, // 1
321-
+DetailedSchema: 2, // 2
318+
declare export var LanguageKind: {|
319+
+PlutusV1: 0, // 0
322320
|};
323321

324322
/**
325-
* Used to choosed the schema for a script JSON string
326323
*/
327324

328-
declare export var ScriptSchema: {|
329-
+Wallet: 0, // 0
330-
+Node: 1, // 1
325+
declare export var PlutusDataKind: {|
326+
+ConstrPlutusData: 0, // 0
327+
+Map: 1, // 1
328+
+List: 2, // 2
329+
+Integer: 3, // 3
330+
+Bytes: 4, // 4
331331
|};
332332

333333
/**
334334
*/
335335

336-
declare export var CoinSelectionStrategyCIP2: {|
337-
+LargestFirst: 0, // 0
338-
+RandomImprove: 1, // 1
339-
+LargestFirstMultiAsset: 2, // 2
340-
+RandomImproveMultiAsset: 3, // 3
336+
declare export var RedeemerTagKind: {|
337+
+Spend: 0, // 0
338+
+Mint: 1, // 1
339+
+Cert: 2, // 2
340+
+Reward: 3, // 3
341341
|};
342342

343343
/**
@@ -3146,17 +3146,17 @@ declare export class PlutusScript {
31463146
static from_bytes(bytes: Uint8Array): PlutusScript;
31473147

31483148
/**
3149-
* Creates a new Plutus script from the RAW bytes of the compiled script.
3150-
* This does NOT include any CBOR encoding around these bytes (e.g. from "cborBytes" in cardano-cli)
3151-
* If you creating this from those you should use PlutusScript::from_bytes() instead.
3149+
* * Creates a new Plutus script from the RAW bytes of the compiled script.
3150+
* * This does NOT include any CBOR encoding around these bytes (e.g. from "cborBytes" in cardano-cli)
3151+
* * If you creating this from those you should use PlutusScript::from_bytes() instead.
31523152
* @param {Uint8Array} bytes
31533153
* @returns {PlutusScript}
31543154
*/
31553155
static new(bytes: Uint8Array): PlutusScript;
31563156

31573157
/**
3158-
* The raw bytes of this compiled Plutus script.
3159-
* If you need "cborBytes" for cardano-cli use PlutusScript::to_bytes() instead.
3158+
* * The raw bytes of this compiled Plutus script.
3159+
* * If you need "cborBytes" for cardano-cli use PlutusScript::to_bytes() instead.
31603160
* @returns {Uint8Array}
31613161
*/
31623162
bytes(): Uint8Array;

0 commit comments

Comments
 (0)