Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@emurgo/cardano-serialization-lib-browser

Package Overview
Dependencies
Maintainers
2
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emurgo/cardano-serialization-lib-browser - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

29

cardano_serialization_lib.d.ts
/* tslint:disable */
/* eslint-disable */
/**
* @param {Transaction} tx
* @param {LinearFee} linear_fee
* @returns {BigNum}
*/
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
/**
* @param {TransactionHash} tx_body_hash

@@ -41,7 +47,8 @@ * @param {ByronAddress} addr

/**
* @param {Transaction} tx
* @param {LinearFee} linear_fee
* @param {TransactionBody} txbody
* @param {BigNum} pool_deposit
* @param {BigNum} key_deposit
* @returns {BigNum}
*/
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
export function get_deposit(txbody: TransactionBody, pool_deposit: BigNum, key_deposit: BigNum): BigNum;
/**

@@ -102,5 +109,6 @@ */

/**
* @param {string | undefined} prefix
* @returns {string}
*/
to_bech32(): string;
to_bech32(prefix?: string): string;
/**

@@ -1915,7 +1923,10 @@ * @param {string} bech_str

/**
* DOES include burnt coins if fee is above minimum
* @returns {BigNum}
*/
get_fee_or_calc(): BigNum;
get_deposit(): BigNum;
/**
* @returns {BigNum | undefined}
*/
get_fee_if_set(): BigNum | undefined;
/**
* Warning: this function will mutate the /fee/ field

@@ -1931,6 +1942,8 @@ * @param {Address} address

/**
* DOES NOT include burnt coins if fee is above minimum
* warning: sum of all parts of a transaction must equal 0. You cannot just set the fee to the min value and forget about it
* warning: min_fee may be slightly larger than the actual minimum fee (ex: a few lovelaces)
* this is done to simplify the library code, but can be fixed later
* @returns {BigNum}
*/
estimate_fee(): BigNum;
min_fee(): BigNum;
}

@@ -1937,0 +1950,0 @@ /**

{
"name": "@emurgo/cardano-serialization-lib-browser",
"version": "1.2.0",
"version": "2.0.0",
"files": [

@@ -5,0 +5,0 @@ "cardano_serialization_lib_bg.wasm",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc