Skip to content

Commit

Permalink
Merge pull request #205 from Emurgo/release/9.0
Browse files Browse the repository at this point in the history
Release / 9.0
  • Loading branch information
vsubhuman authored Sep 19, 2021
2 parents 63e1b71 + f98f2b2 commit 1bc6a81
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cardano-serialization-lib",
"version": "9.0.0-beta.1",
"version": "9.0.0",
"description": "(De)serialization functions for the Cardano blockchain along with related utility functions",
"scripts": {
"rust:build-nodejs": "rimraf ./rust/pkg && cd rust; wasm-pack build --target=nodejs; wasm-pack pack; cd .. && npm run js:flowgen",
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardano-serialization-lib"
version = "9.0.0-beta.1"
version = "9.0.0"
edition = "2018"
authors = ["EMURGO"]
license = "MIT"
Expand Down
45 changes: 40 additions & 5 deletions rust/pkg/cardano_serialization_lib.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ declare export function hash_transaction(
tx_body: TransactionBody
): TransactionHash;

/**
* @param {PlutusData} plutus_data
* @returns {DataHash}
*/
declare export function hash_plutus_data(plutus_data: PlutusData): DataHash;

/**
* @param {Redeemers} redeemers
* @param {Costmdls} cost_models
* @param {PlutusList | void} datums
* @returns {ScriptDataHash}
*/
declare export function hash_script_data(
redeemers: Redeemers,
cost_models: Costmdls,
datums?: PlutusList
): ScriptDataHash;

/**
* @param {TransactionBody} txbody
* @param {BigNum} pool_deposit
Expand Down Expand Up @@ -2891,6 +2909,17 @@ declare export class PlutusData {
declare export class PlutusList {
free(): void;

/**
* @returns {Uint8Array}
*/
to_bytes(): Uint8Array;

/**
* @param {Uint8Array} bytes
* @returns {PlutusList}
*/
static from_bytes(bytes: Uint8Array): PlutusList;

/**
* @returns {PlutusList}
*/
Expand Down Expand Up @@ -3864,6 +3893,17 @@ declare export class RedeemerTag {
declare export class Redeemers {
free(): void;

/**
* @returns {Uint8Array}
*/
to_bytes(): Uint8Array;

/**
* @param {Uint8Array} bytes
* @returns {Redeemers}
*/
static from_bytes(bytes: Uint8Array): Redeemers;

/**
* @returns {Redeemers}
*/
Expand Down Expand Up @@ -4963,11 +5003,6 @@ declare export class TransactionBuilder {
*/
output_sizes(): Uint32Array;

/**
* @returns {Uint32Array}
*/
output_value_sizes(): Uint32Array;

/**
* @returns {TransactionBody}
*/
Expand Down

0 comments on commit 1bc6a81

Please sign in to comment.