@emurgo/cardano-serialization-lib-nodejs
Advanced tools
Comparing version 3.0.0 to 4.0.0
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {Transaction} tx | ||
* @param {LinearFee} linear_fee | ||
* @returns {BigNum} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum; | ||
export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatum} metadata | ||
* @returns {Uint8Array} | ||
*/ | ||
export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array; | ||
/** | ||
* @param {string} json | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
export function encode_json_str_to_metadatum(json: string): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatum} metadatum | ||
* @returns {string} | ||
*/ | ||
export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum): string; | ||
/** | ||
* @param {TransactionHash} tx_body_hash | ||
@@ -54,3 +68,9 @@ * @param {ByronAddress} addr | ||
/** | ||
* @param {Transaction} tx | ||
* @param {LinearFee} linear_fee | ||
* @returns {BigNum} | ||
*/ | ||
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum; | ||
/** | ||
*/ | ||
export enum CertificateKind { | ||
@@ -80,11 +100,2 @@ StakeRegistration, | ||
*/ | ||
export enum TransactionMetadatumKind { | ||
MapTransactionMetadatumToTransactionMetadatum, | ||
ArrTransactionMetadatum, | ||
Int, | ||
Bytes, | ||
Text, | ||
} | ||
/** | ||
*/ | ||
export enum MultisigScriptKind { | ||
@@ -98,2 +109,11 @@ MsigPubkey, | ||
*/ | ||
export enum TransactionMetadatumKind { | ||
MetadataMap, | ||
MetadataList, | ||
Int, | ||
Bytes, | ||
Text, | ||
} | ||
/** | ||
*/ | ||
export class Address { | ||
@@ -487,6 +507,6 @@ free(): void; | ||
* @param {Bip32PublicKey} key | ||
* @param {number} network | ||
* @param {number} protocol_magic | ||
* @returns {ByronAddress} | ||
*/ | ||
static from_icarus_key(key: Bip32PublicKey, network: number): ByronAddress; | ||
static icarus_from_key(key: Bip32PublicKey, protocol_magic: number): ByronAddress; | ||
/** | ||
@@ -927,2 +947,23 @@ * @param {string} s | ||
static new_negative(x: BigNum): Int; | ||
/** | ||
* @param {number} x | ||
* @returns {Int} | ||
*/ | ||
static new_i32(x: number): Int; | ||
/** | ||
* @returns {boolean} | ||
*/ | ||
is_positive(): boolean; | ||
/** | ||
* @returns {BigNum | undefined} | ||
*/ | ||
as_positive(): BigNum | undefined; | ||
/** | ||
* @returns {BigNum | undefined} | ||
*/ | ||
as_negative(): BigNum | undefined; | ||
/** | ||
* @returns {number | undefined} | ||
*/ | ||
as_i32(): number | undefined; | ||
} | ||
@@ -1062,3 +1103,3 @@ /** | ||
*/ | ||
export class MapTransactionMetadatumToTransactionMetadatum { | ||
export class MetadataHash { | ||
free(): void; | ||
@@ -1071,10 +1112,24 @@ /** | ||
* @param {Uint8Array} bytes | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum} | ||
* @returns {MetadataHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MapTransactionMetadatumToTransactionMetadatum; | ||
static from_bytes(bytes: Uint8Array): MetadataHash; | ||
} | ||
/** | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum} | ||
*/ | ||
static new(): MapTransactionMetadatumToTransactionMetadatum; | ||
export class MetadataList { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MetadataList} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MetadataList; | ||
/** | ||
* @returns {MetadataList} | ||
*/ | ||
static new(): MetadataList; | ||
/** | ||
* @returns {number} | ||
@@ -1084,20 +1139,14 @@ */ | ||
/** | ||
* @param {TransactionMetadatum} key | ||
* @param {TransactionMetadatum} value | ||
* @returns {TransactionMetadatum | undefined} | ||
* @param {number} index | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
insert(key: TransactionMetadatum, value: TransactionMetadatum): TransactionMetadatum | undefined; | ||
get(index: number): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatum} key | ||
* @returns {TransactionMetadatum | undefined} | ||
* @param {TransactionMetadatum} elem | ||
*/ | ||
get(key: TransactionMetadatum): TransactionMetadatum | undefined; | ||
/** | ||
* @returns {TransactionMetadatums} | ||
*/ | ||
keys(): TransactionMetadatums; | ||
add(elem: TransactionMetadatum): void; | ||
} | ||
/** | ||
*/ | ||
export class MetadataHash { | ||
export class MetadataMap { | ||
free(): void; | ||
@@ -1110,5 +1159,33 @@ /** | ||
* @param {Uint8Array} bytes | ||
* @returns {MetadataHash} | ||
* @returns {MetadataMap} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MetadataHash; | ||
static from_bytes(bytes: Uint8Array): MetadataMap; | ||
/** | ||
* @returns {MetadataMap} | ||
*/ | ||
static new(): MetadataMap; | ||
/** | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {TransactionMetadatum} key | ||
* @param {TransactionMetadatum} value | ||
* @returns {TransactionMetadatum | undefined} | ||
*/ | ||
insert(key: TransactionMetadatum, value: TransactionMetadatum): TransactionMetadatum | undefined; | ||
/** | ||
* @param {TransactionMetadatum} key | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
get(key: TransactionMetadatum): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatum} key | ||
* @returns {boolean} | ||
*/ | ||
has(key: TransactionMetadatum): boolean; | ||
/** | ||
* @returns {MetadataList} | ||
*/ | ||
keys(): MetadataList; | ||
} | ||
@@ -1384,2 +1461,29 @@ /** | ||
*/ | ||
export class NetworkInfo { | ||
free(): void; | ||
/** | ||
* @param {number} network_id | ||
* @param {number} protocol_magic | ||
* @returns {NetworkInfo} | ||
*/ | ||
static new(network_id: number, protocol_magic: number): NetworkInfo; | ||
/** | ||
* @returns {number} | ||
*/ | ||
network_id(): number; | ||
/** | ||
* @returns {number} | ||
*/ | ||
protocol_magic(): number; | ||
/** | ||
* @returns {NetworkInfo} | ||
*/ | ||
static testnet(): NetworkInfo; | ||
/** | ||
* @returns {NetworkInfo} | ||
*/ | ||
static mainnet(): NetworkInfo; | ||
} | ||
/** | ||
*/ | ||
export class Nonce { | ||
@@ -2691,11 +2795,11 @@ free(): void; | ||
/** | ||
* @param {MapTransactionMetadatumToTransactionMetadatum} map_transaction_metadatum_to_transaction_metadatum | ||
* @param {MetadataMap} map | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static new_map_transaction_metadatum_to_transaction_metadatum(map_transaction_metadatum_to_transaction_metadatum: MapTransactionMetadatumToTransactionMetadatum): TransactionMetadatum; | ||
static new_map(map: MetadataMap): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatums} arr_transaction_metadatum | ||
* @param {MetadataList} list | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static new_arr_transaction_metadatum(arr_transaction_metadatum: TransactionMetadatums): TransactionMetadatum; | ||
static new_list(list: MetadataList): TransactionMetadatum; | ||
/** | ||
@@ -2721,21 +2825,21 @@ * @param {Int} int | ||
/** | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum | undefined} | ||
* @returns {MetadataMap} | ||
*/ | ||
as_map_transaction_metadatum_to_transaction_metadatum(): MapTransactionMetadatumToTransactionMetadatum | undefined; | ||
as_map(): MetadataMap; | ||
/** | ||
* @returns {TransactionMetadatums | undefined} | ||
* @returns {MetadataList} | ||
*/ | ||
as_arr_transaction_metadatum(): TransactionMetadatums | undefined; | ||
as_list(): MetadataList; | ||
/** | ||
* @returns {Int | undefined} | ||
* @returns {Int} | ||
*/ | ||
as_int(): Int | undefined; | ||
as_int(): Int; | ||
/** | ||
* @returns {Uint8Array | undefined} | ||
* @returns {Uint8Array} | ||
*/ | ||
as_bytes(): Uint8Array | undefined; | ||
as_bytes(): Uint8Array; | ||
/** | ||
* @returns {string | undefined} | ||
* @returns {string} | ||
*/ | ||
as_text(): string | undefined; | ||
as_text(): string; | ||
} | ||
@@ -2775,33 +2879,2 @@ /** | ||
*/ | ||
export class TransactionMetadatums { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatums} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionMetadatums; | ||
/** | ||
* @returns {TransactionMetadatums} | ||
*/ | ||
static new(): TransactionMetadatums; | ||
/** | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
get(index: number): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatum} elem | ||
*/ | ||
add(elem: TransactionMetadatum): void; | ||
} | ||
/** | ||
*/ | ||
export class TransactionOutput { | ||
@@ -2808,0 +2881,0 @@ free(): void; |
{ | ||
"name": "@emurgo/cardano-serialization-lib-nodejs", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "cardano_serialization_lib_bg.wasm", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1420718
10815