Skip to content

Commit

Permalink
publish version 11.1.0-minswap.19
Browse files Browse the repository at this point in the history
  • Loading branch information
h2physics committed Mar 7, 2024
1 parent 7786eb5 commit d4e55cd
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 121 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": "11.1.0-minswap.18",
"version": "11.1.0-minswap.19",
"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; cd ..; npm run js:ts-json-gen; cd rust; 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 = "11.1.0-minswap.18"
version = "11.1.0-minswap.19"
edition = "2018"
authors = ["EMURGO"]
license = "MIT"
Expand Down
234 changes: 117 additions & 117 deletions rust/pkg/cardano_serialization_lib.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,42 @@
* @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 {string} json
* @param {number} schema
Expand Down Expand Up @@ -62,96 +98,6 @@ declare export function min_script_fee(
ex_unit_prices: ExUnitPrices
): 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}
*/
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 {PlutusList} params
* @param {PlutusScript} plutus_script
* @returns {PlutusScript}
*/
declare export function apply_params_to_plutus_script(
params: PlutusList,
plutus_script: PlutusScript
): PlutusScript;

/**
* @param {Transaction} tx
* @param {TransactionUnspentOutputs} utxos
* @param {Costmdls} cost_mdls
* @param {ExUnits} max_ex_units
* @param {BigNum} zero_time
* @param {BigNum} zero_slot
* @param {number} slot_length
* @returns {Redeemers}
*/
declare export function get_ex_units(
tx: Transaction,
utxos: TransactionUnspentOutputs,
cost_mdls: Costmdls,
max_ex_units: ExUnits,
zero_time: BigNum,
zero_slot: BigNum,
slot_length: number
): Redeemers;

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

/**
* @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 {PlutusList} params
* @param {PlutusScript} plutus_script
* @returns {PlutusScript}
*/
declare export function apply_params_to_plutus_script(
params: PlutusList,
plutus_script: PlutusScript
): PlutusScript;

/**
* @param {Transaction} tx
* @param {TransactionUnspentOutputs} utxos
* @param {Costmdls} cost_mdls
* @param {ExUnits} max_ex_units
* @param {BigNum} zero_time
* @param {BigNum} zero_slot
* @param {number} slot_length
* @returns {Redeemers}
*/
declare export function get_ex_units(
tx: Transaction,
utxos: TransactionUnspentOutputs,
cost_mdls: Costmdls,
max_ex_units: ExUnits,
zero_time: BigNum,
zero_slot: BigNum,
slot_length: number
): Redeemers;

/**
*/

Expand Down Expand Up @@ -361,6 +361,26 @@ declare export var NetworkIdKind: {|
+Mainnet: 1, // 1
|};

/**
*/

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

/**
*/

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

/**
*/

Expand Down Expand Up @@ -417,23 +437,20 @@ declare export var PlutusDatumSchema: {|
|};

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

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

/**
*/

declare export var MetadataJsonSchema: {|
+NoConversions: 0, // 0
+BasicConversions: 1, // 1
+DetailedSchema: 2, // 2
declare export var StakeCredKind: {|
+Key: 0, // 0
+Script: 1, // 1
|};

/**
Expand All @@ -446,23 +463,6 @@ declare export var CoinSelectionStrategyCIP2: {|
+RandomImproveMultiAsset: 3, // 3
|};

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

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

/**
*/

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

/**
*/
declare export class Address {
Expand Down

0 comments on commit d4e55cd

Please sign in to comment.