Socket
Socket
Sign inDemoInstall

@emurgo/cardano-serialization-lib-browser

Package Overview
Dependencies
Maintainers
2
Versions
154
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 0.1.0 to 0.1.1

LICENSE

114

cardano_serialization_lib.d.ts

@@ -8,2 +8,8 @@ /* tslint:disable */

export function min_fee(tx: Transaction): number;
/**
*/
export enum MIRPot {
Reserves,
Treasury,
}
export class AddrKeyHash {

@@ -333,2 +339,38 @@ free(): void;

}
export class Coin {
free(): void;
/**
* @returns {Uint8Array}
*/
to_bytes(): Uint8Array;
/**
* @param {Uint8Array} bytes
* @returns {Coin}
*/
static from_bytes(bytes: Uint8Array): Coin;
/**
* @param {BigInt} value
* @returns {Coin}
*/
static new(value: BigInt): Coin;
/**
* @param {string} string
* @returns {Coin}
*/
static from_str(string: string): Coin;
/**
* @returns {string}
*/
to_str(): string;
/**
* @param {Coin} other
* @returns {Coin}
*/
checked_add(other: Coin): Coin;
/**
* @param {Coin} other
* @returns {Coin}
*/
checked_sub(other: Coin): Coin;
}
export class Ed25519Signature {

@@ -423,13 +465,2 @@ free(): void;

}
export class I0OrI1 {
free(): void;
/**
* @returns {I0OrI1}
*/
static new_i0(): I0OrI1;
/**
* @returns {I0OrI1}
*/
static new_i1(): I0OrI1;
}
export class Int {

@@ -482,28 +513,2 @@ free(): void;

}
export class MapStakeCredentialToCoin {
free(): void;
/**
* @returns {Uint8Array}
*/
to_bytes(): Uint8Array;
/**
* @param {Uint8Array} bytes
* @returns {MapStakeCredentialToCoin}
*/
static from_bytes(bytes: Uint8Array): MapStakeCredentialToCoin;
/**
* @returns {MapStakeCredentialToCoin}
*/
static new(): MapStakeCredentialToCoin;
/**
* @returns {number}
*/
len(): number;
/**
* @param {StakeCredential} key
* @param {BigInt} value
* @returns {BigInt | undefined}
*/
insert(key: StakeCredential, value: BigInt): BigInt | undefined;
}
export class MapTransactionMetadatumToTransactionMetadatum {

@@ -559,7 +564,16 @@ free(): void;

/**
* @param {I0OrI1} index_0
* @param {MapStakeCredentialToCoin} index_1
* @param {number} pot
* @returns {MoveInstantaneousReward}
*/
static new(index_0: I0OrI1, index_1: MapStakeCredentialToCoin): MoveInstantaneousReward;
static new(pot: number): MoveInstantaneousReward;
/**
* @returns {number}
*/
len(): number;
/**
* @param {StakeCredential} key
* @param {Coin} value
* @returns {Coin | undefined}
*/
insert(key: StakeCredential, value: Coin): Coin | undefined;
}

@@ -807,4 +821,4 @@ export class MoveInstantaneousRewardsCert {

* @param {VRFKeyHash} vrf_keyhash
* @param {BigInt} pledge
* @param {BigInt} cost
* @param {Coin} pledge
* @param {Coin} cost
* @param {UnitInterval} margin

@@ -817,3 +831,3 @@ * @param {RewardAddress} reward_account

*/
static new(operator: PoolKeyHash, vrf_keyhash: VRFKeyHash, pledge: BigInt, cost: BigInt, margin: UnitInterval, reward_account: RewardAddress, pool_owners: AddrKeyHashes, relays: Relays, pool_metadata?: PoolMetadata): PoolParams;
static new(operator: PoolKeyHash, vrf_keyhash: VRFKeyHash, pledge: Coin, cost: Coin, margin: UnitInterval, reward_account: RewardAddress, pool_owners: AddrKeyHashes, relays: Relays, pool_metadata?: PoolMetadata): PoolParams;
}

@@ -1192,7 +1206,7 @@ export class PoolRegistration {

* @param {TransactionOutputs} outputs
* @param {BigInt} fee
* @param {Coin} fee
* @param {number} ttl
* @returns {TransactionBody}
*/
static new(inputs: TransactionInputs, outputs: TransactionOutputs, fee: BigInt, ttl: number): TransactionBody;
static new(inputs: TransactionInputs, outputs: TransactionOutputs, fee: Coin, ttl: number): TransactionBody;
/**

@@ -1372,6 +1386,6 @@ * @returns {TransactionHash}

* @param {Address} address
* @param {BigInt} amount
* @param {Coin} amount
* @returns {TransactionOutput}
*/
static new(address: Address, amount: BigInt): TransactionOutput;
static new(address: Address, amount: Coin): TransactionOutput;
}

@@ -1541,6 +1555,6 @@ export class TransactionOutputs {

* @param {RewardAddress} key
* @param {BigInt} value
* @returns {BigInt | undefined}
* @param {Coin} value
* @returns {Coin | undefined}
*/
insert(key: RewardAddress, value: BigInt): BigInt | undefined;
insert(key: RewardAddress, value: Coin): Coin | undefined;
}
{
"name": "@emurgo/cardano-serialization-lib-browser",
"version": "0.1.0",
"version": "0.1.1",
"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

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