Skip to content

Commit 1bc6a81

Browse files
authored
Merge pull request #205 from Emurgo/release/9.0
Release / 9.0
2 parents 63e1b71 + f98f2b2 commit 1bc6a81

File tree

5 files changed

+44
-9
lines changed

5 files changed

+44
-9
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": "9.0.0-beta.1",
3+
"version": "9.0.0",
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; cd .. && 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 = "9.0.0-beta.1"
3+
version = "9.0.0"
44
edition = "2018"
55
authors = ["EMURGO"]
66
license = "MIT"

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,24 @@ declare export function hash_transaction(
122122
tx_body: TransactionBody
123123
): TransactionHash;
124124

125+
/**
126+
* @param {PlutusData} plutus_data
127+
* @returns {DataHash}
128+
*/
129+
declare export function hash_plutus_data(plutus_data: PlutusData): DataHash;
130+
131+
/**
132+
* @param {Redeemers} redeemers
133+
* @param {Costmdls} cost_models
134+
* @param {PlutusList | void} datums
135+
* @returns {ScriptDataHash}
136+
*/
137+
declare export function hash_script_data(
138+
redeemers: Redeemers,
139+
cost_models: Costmdls,
140+
datums?: PlutusList
141+
): ScriptDataHash;
142+
125143
/**
126144
* @param {TransactionBody} txbody
127145
* @param {BigNum} pool_deposit
@@ -2891,6 +2909,17 @@ declare export class PlutusData {
28912909
declare export class PlutusList {
28922910
free(): void;
28932911

2912+
/**
2913+
* @returns {Uint8Array}
2914+
*/
2915+
to_bytes(): Uint8Array;
2916+
2917+
/**
2918+
* @param {Uint8Array} bytes
2919+
* @returns {PlutusList}
2920+
*/
2921+
static from_bytes(bytes: Uint8Array): PlutusList;
2922+
28942923
/**
28952924
* @returns {PlutusList}
28962925
*/
@@ -3864,6 +3893,17 @@ declare export class RedeemerTag {
38643893
declare export class Redeemers {
38653894
free(): void;
38663895

3896+
/**
3897+
* @returns {Uint8Array}
3898+
*/
3899+
to_bytes(): Uint8Array;
3900+
3901+
/**
3902+
* @param {Uint8Array} bytes
3903+
* @returns {Redeemers}
3904+
*/
3905+
static from_bytes(bytes: Uint8Array): Redeemers;
3906+
38673907
/**
38683908
* @returns {Redeemers}
38693909
*/
@@ -4963,11 +5003,6 @@ declare export class TransactionBuilder {
49635003
*/
49645004
output_sizes(): Uint32Array;
49655005

4966-
/**
4967-
* @returns {Uint32Array}
4968-
*/
4969-
output_value_sizes(): Uint32Array;
4970-
49715006
/**
49725007
* @returns {TransactionBody}
49735008
*/

0 commit comments

Comments
 (0)