Skip to content

Commit

Permalink
Merge pull request #361 from Emurgo/release/10.0.1
Browse files Browse the repository at this point in the history
Release / 10.0.1
  • Loading branch information
vsubhuman authored Feb 7, 2022
2 parents 29dd603 + 1580eb4 commit 6e87b17
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 80 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": "10.0.0",
"version": "10.0.1",
"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) && 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 = "10.0.0"
version = "10.0.1"
edition = "2018"
authors = ["EMURGO"]
license = "MIT"
Expand Down
152 changes: 76 additions & 76 deletions rust/pkg/cardano_serialization_lib.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,6 @@
* @flow
*/

/**
* @param {Uint8Array} bytes
* @returns {TransactionMetadatum}
*/
declare export function encode_arbitrary_bytes_as_metadatum(
bytes: Uint8Array
): TransactionMetadatum;

/**
* @param {TransactionMetadatum} metadata
* @returns {Uint8Array}
*/
declare export function decode_arbitrary_bytes_from_metadatum(
metadata: TransactionMetadatum
): Uint8Array;

/**
* @param {string} json
* @param {number} schema
* @returns {TransactionMetadatum}
*/
declare export function encode_json_str_to_metadatum(
json: string,
schema: number
): TransactionMetadatum;

/**
* @param {TransactionMetadatum} metadatum
* @param {number} schema
* @returns {string}
*/
declare export function decode_metadatum_to_json_str(
metadatum: TransactionMetadatum,
schema: number
): string;

/**
* @param {TransactionHash} tx_body_hash
* @param {ByronAddress} addr
Expand Down Expand Up @@ -165,6 +129,42 @@ declare export function encode_json_str_to_native_script(
schema: number
): NativeScript;

/**
* @param {Uint8Array} bytes
* @returns {TransactionMetadatum}
*/
declare export function encode_arbitrary_bytes_as_metadatum(
bytes: Uint8Array
): TransactionMetadatum;

/**
* @param {TransactionMetadatum} metadata
* @returns {Uint8Array}
*/
declare export function decode_arbitrary_bytes_from_metadatum(
metadata: TransactionMetadatum
): Uint8Array;

/**
* @param {string} json
* @param {number} schema
* @returns {TransactionMetadatum}
*/
declare export function encode_json_str_to_metadatum(
json: string,
schema: number
): TransactionMetadatum;

/**
* @param {TransactionMetadatum} metadatum
* @param {number} schema
* @returns {string}
*/
declare export function decode_metadatum_to_json_str(
metadatum: TransactionMetadatum,
schema: number
): string;

/**
* @param {Transaction} tx
* @param {LinearFee} linear_fee
Expand Down Expand Up @@ -266,78 +266,78 @@ declare export var NetworkIdKind: {|
|};

/**
* Used to choosed the schema for a script JSON string
*/

declare export var StakeCredKind: {|
+Key: 0, // 0
+Script: 1, // 1
declare export var ScriptSchema: {|
+Wallet: 0, // 0
+Node: 1, // 1
|};

/**
*/

declare export var LanguageKind: {|
+PlutusV1: 0, // 0
declare export var TransactionMetadatumKind: {|
+MetadataMap: 0, // 0
+MetadataList: 1, // 1
+Int: 2, // 2
+Bytes: 3, // 3
+Text: 4, // 4
|};

/**
*/

declare export var PlutusDataKind: {|
+ConstrPlutusData: 0, // 0
+Map: 1, // 1
+List: 2, // 2
+Integer: 3, // 3
+Bytes: 4, // 4
declare export var MetadataJsonSchema: {|
+NoConversions: 0, // 0
+BasicConversions: 1, // 1
+DetailedSchema: 2, // 2
|};

/**
*/

declare export var RedeemerTagKind: {|
+Spend: 0, // 0
+Mint: 1, // 1
+Cert: 2, // 2
+Reward: 3, // 3
declare export var CoinSelectionStrategyCIP2: {|
+LargestFirst: 0, // 0
+RandomImprove: 1, // 1
+LargestFirstMultiAsset: 2, // 2
+RandomImproveMultiAsset: 3, // 3
|};

/**
*/

declare export var TransactionMetadatumKind: {|
+MetadataMap: 0, // 0
+MetadataList: 1, // 1
+Int: 2, // 2
+Bytes: 3, // 3
+Text: 4, // 4
declare export var StakeCredKind: {|
+Key: 0, // 0
+Script: 1, // 1
|};

/**
*/

declare export var MetadataJsonSchema: {|
+NoConversions: 0, // 0
+BasicConversions: 1, // 1
+DetailedSchema: 2, // 2
declare export var LanguageKind: {|
+PlutusV1: 0, // 0
|};

/**
* Used to choosed the schema for a script JSON string
*/

declare export var ScriptSchema: {|
+Wallet: 0, // 0
+Node: 1, // 1
declare export var PlutusDataKind: {|
+ConstrPlutusData: 0, // 0
+Map: 1, // 1
+List: 2, // 2
+Integer: 3, // 3
+Bytes: 4, // 4
|};

/**
*/

declare export var CoinSelectionStrategyCIP2: {|
+LargestFirst: 0, // 0
+RandomImprove: 1, // 1
+LargestFirstMultiAsset: 2, // 2
+RandomImproveMultiAsset: 3, // 3
declare export var RedeemerTagKind: {|
+Spend: 0, // 0
+Mint: 1, // 1
+Cert: 2, // 2
+Reward: 3, // 3
|};

/**
Expand Down Expand Up @@ -3146,17 +3146,17 @@ declare export class PlutusScript {
static from_bytes(bytes: Uint8Array): PlutusScript;

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

/**
* The raw bytes of this compiled Plutus script.
* If you need "cborBytes" for cardano-cli use PlutusScript::to_bytes() instead.
* * The raw bytes of this compiled Plutus script.
* * If you need "cborBytes" for cardano-cli use PlutusScript::to_bytes() instead.
* @returns {Uint8Array}
*/
bytes(): Uint8Array;
Expand Down

0 comments on commit 6e87b17

Please sign in to comment.