diff --git a/package-lock.json b/package-lock.json index 1a9b2593..80f938f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "cardano-serialization-lib", - "version": "9.0.0-beta.1", + "version": "9.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ba7d1ef3..1186c59e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 0b8e2de0..31c6e2a6 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -50,7 +50,7 @@ checksum = "2e8c087f005730276d1096a652e92a8bacee2e2472bcc9715a74d2bec38b5820" [[package]] name = "cardano-serialization-lib" -version = "9.0.0-beta.1" +version = "9.0.0" dependencies = [ "bech32", "cbor_event", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index e2e529c4..a92f9e56 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -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" diff --git a/rust/pkg/cardano_serialization_lib.js.flow b/rust/pkg/cardano_serialization_lib.js.flow index 950cd8e2..091d024d 100644 --- a/rust/pkg/cardano_serialization_lib.js.flow +++ b/rust/pkg/cardano_serialization_lib.js.flow @@ -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 @@ -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} */ @@ -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} */ @@ -4963,11 +5003,6 @@ declare export class TransactionBuilder { */ output_sizes(): Uint32Array; - /** - * @returns {Uint32Array} - */ - output_value_sizes(): Uint32Array; - /** * @returns {TransactionBody} */