@emurgo/cardano-serialization-lib-browser-inlined-gc 16.0.0-beta.1 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: PlutusDatumSchema): string;
|
|
4
|
+
export function encode_json_str_to_plutus_datum(json: string, schema: PlutusDatumSchema): PlutusData;
|
|
5
|
+
export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
|
|
6
|
+
export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
|
|
7
|
+
export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
|
|
8
|
+
export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array;
|
|
9
|
+
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
|
|
10
|
+
export function min_ref_script_fee(total_ref_scripts_size: number, ref_script_coins_per_byte: UnitInterval): BigNum;
|
|
11
|
+
export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): BigNum;
|
|
12
|
+
export function calculate_ex_units_ceil_cost(ex_units: ExUnits, ex_unit_prices: ExUnitPrices): BigNum;
|
|
3
13
|
export function encrypt_with_password(password: string, salt: string, nonce: string, data: string): string;
|
|
4
14
|
export function decrypt_with_password(password: string, data: string): string;
|
|
5
|
-
/**
|
|
6
|
-
* Returns the state of the transaction sets.
|
|
7
|
-
* If all sets have a tag, it returns AllSetsHaveTag.
|
|
8
|
-
* If all sets have no tag, it returns AllSetsHaveNoTag.
|
|
9
|
-
* If there is a mix of tagged and untagged sets, it returns MixedSets.
|
|
10
|
-
* This function is useful for checking if a transaction might be signed by a hardware wallet.
|
|
11
|
-
* And for checking which parameter should be used in a hardware wallet api.
|
|
12
|
-
* WARNING this function will be deleted after all tags for set types will be mandatory. Approx after next hf
|
|
13
|
-
*/
|
|
14
|
-
export function has_transaction_set_tag(tx_bytes: Uint8Array): TransactionSetsState;
|
|
15
15
|
export function make_daedalus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: LegacyDaedalusPrivateKey): BootstrapWitness;
|
|
16
|
-
export function
|
|
17
|
-
export function
|
|
16
|
+
export function hash_plutus_data(plutus_data: PlutusData): DataHash;
|
|
17
|
+
export function hash_script_data(redeemers: Redeemers, cost_models: Costmdls, datums?: PlutusList | null): ScriptDataHash;
|
|
18
18
|
export function hash_auxiliary_data(auxiliary_data: AuxiliaryData): AuxiliaryDataHash;
|
|
19
|
-
export function
|
|
19
|
+
export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
|
|
20
20
|
export function get_implicit_input(txbody: TransactionBody, pool_deposit: BigNum, key_deposit: BigNum): Value;
|
|
21
|
-
/**
|
|
22
|
-
* returns minimal amount of ada for the output for case when the amount is included to the output
|
|
23
|
-
*/
|
|
24
|
-
export function min_ada_for_output(output: TransactionOutput, data_cost: DataCost): BigNum;
|
|
25
21
|
/**
|
|
26
22
|
* Receives a script JSON string
|
|
27
23
|
* and returns a NativeScript.
|
|
@@ -33,19 +29,23 @@ export function min_ada_for_output(output: TransactionOutput, data_cost: DataCos
|
|
|
33
29
|
* self_xpub is expected to be a Bip32PublicKey as hex-encoded bytes
|
|
34
30
|
*/
|
|
35
31
|
export function encode_json_str_to_native_script(json: string, self_xpub: string, schema: ScriptSchema): NativeScript;
|
|
36
|
-
export function
|
|
37
|
-
|
|
32
|
+
export function get_deposit(txbody: TransactionBody, pool_deposit: BigNum, key_deposit: BigNum): BigNum;
|
|
33
|
+
/**
|
|
34
|
+
* returns minimal amount of ada for the output for case when the amount is included to the output
|
|
35
|
+
*/
|
|
36
|
+
export function min_ada_for_output(output: TransactionOutput, data_cost: DataCost): BigNum;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the state of the transaction sets.
|
|
39
|
+
* If all sets have a tag, it returns AllSetsHaveTag.
|
|
40
|
+
* If all sets have no tag, it returns AllSetsHaveNoTag.
|
|
41
|
+
* If there is a mix of tagged and untagged sets, it returns MixedSets.
|
|
42
|
+
* This function is useful for checking if a transaction might be signed by a hardware wallet.
|
|
43
|
+
* And for checking which parameter should be used in a hardware wallet api.
|
|
44
|
+
* WARNING this function will be deleted after all tags for set types will be mandatory. Approx after next hf
|
|
45
|
+
*/
|
|
46
|
+
export function has_transaction_set_tag(tx_bytes: Uint8Array): TransactionSetsState;
|
|
47
|
+
export function make_icarus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: Bip32PrivateKey): BootstrapWitness;
|
|
38
48
|
export function create_send_all(address: Address, utxos: TransactionUnspentOutputs, config: TransactionBuilderConfig): TransactionBatchList;
|
|
39
|
-
export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array;
|
|
40
|
-
export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
|
|
41
|
-
export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
|
|
42
|
-
export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
|
|
43
|
-
export function min_ref_script_fee(total_ref_scripts_size: number, ref_script_coins_per_byte: UnitInterval): BigNum;
|
|
44
|
-
export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): BigNum;
|
|
45
|
-
export function calculate_ex_units_ceil_cost(ex_units: ExUnits, ex_unit_prices: ExUnitPrices): BigNum;
|
|
46
|
-
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
|
|
47
|
-
export function encode_json_str_to_plutus_datum(json: string, schema: PlutusDatumSchema): PlutusData;
|
|
48
|
-
export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: PlutusDatumSchema): string;
|
|
49
49
|
export enum AddressKind {
|
|
50
50
|
Base = 0,
|
|
51
51
|
Pointer = 1,
|