Skip to content

Commit

Permalink
7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Jun 11, 2021
1 parent 6b180e0 commit 0e89dea
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 28 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": "7.0.0",
"version": "7.1.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 = "7.0.0"
version = "7.1.0"
edition = "2018"
authors = ["EMURGO"]
license = "MIT"
Expand Down
95 changes: 71 additions & 24 deletions rust/pkg/cardano_serialization_lib.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,30 @@ declare export function min_ada_required(
minimum_utxo_val: BigNum
): BigNum;

/**
* @param {string} password
* @param {string} salt
* @param {string} nonce
* @param {string} data
* @returns {string}
*/
declare export function encrypt_with_password(
password: string,
salt: string,
nonce: string,
data: string
): string;

/**
* @param {string} password
* @param {string} data
* @returns {string}
*/
declare export function decrypt_with_password(
password: string,
data: string
): string;

/**
* @param {Uint8Array} bytes
* @returns {TransactionMetadatum}
Expand Down Expand Up @@ -132,30 +156,6 @@ declare export function decode_metadatum_to_json_str(
*/
declare export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;

/**
* @param {string} password
* @param {string} salt
* @param {string} nonce
* @param {string} data
* @returns {string}
*/
declare export function encrypt_with_password(
password: string,
salt: string,
nonce: string,
data: string
): string;

/**
* @param {string} password
* @param {string} data
* @returns {string}
*/
declare export function decrypt_with_password(
password: string,
data: string
): string;

/**
*/

Expand Down Expand Up @@ -4279,6 +4279,42 @@ declare export class TransactionOutputs {
*/
add(elem: TransactionOutput): void;
}
/**
*/
declare export class TransactionUnspentOutput {
free(): void;

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

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

/**
* @param {TransactionInput} input
* @param {TransactionOutput} output
* @returns {TransactionUnspentOutput}
*/
static new(
input: TransactionInput,
output: TransactionOutput
): TransactionUnspentOutput;

/**
* @returns {TransactionInput}
*/
input(): TransactionInput;

/**
* @returns {TransactionOutput}
*/
output(): TransactionOutput;
}
/**
*/
declare export class TransactionWitnessSet {
Expand Down Expand Up @@ -4557,6 +4593,17 @@ declare export class VRFVKey {
declare export class Value {
free(): void;

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

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

/**
* @param {BigNum} coin
* @returns {Value}
Expand Down

0 comments on commit 0e89dea

Please sign in to comment.