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

@emurgo/yoroi-lib-core

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emurgo/yoroi-lib-core - npm Package Compare versions

Comparing version 0.4.1-alpha.28 to 0.4.2-alpha.29

8

dist/internals/tx.d.ts

@@ -13,2 +13,4 @@ import * as WasmContract from './wasm-contract';

private _deregistrations;
private _delegations;
private _registrations;
private _ttl;

@@ -46,2 +48,4 @@ private _neededStakingKeyHashes;

get deregistrations(): ReadonlyArray<WasmContract.StakeDeregistration>;
get delegations(): ReadonlyArray<WasmContract.StakeDelegation>;
get registrations(): ReadonlyArray<WasmContract.StakeRegistration>;
get ttl(): number | undefined;

@@ -64,3 +68,3 @@ get neededStakingKeyHashes(): {

value: MultiTokenValue;
}>, totalOutput: MultiTokenValue, fee: MultiTokenValue, change: ReadonlyArray<Change>, metadata: ReadonlyArray<TxMetadata>, certificates: WasmContract.Certificates, withdrawals: WasmContract.Withdrawals, deregistrations: WasmContract.StakeDeregistration[], ttl: number | undefined, neededStakingKeyHashes: {
}>, totalOutput: MultiTokenValue, fee: MultiTokenValue, change: ReadonlyArray<Change>, metadata: ReadonlyArray<TxMetadata>, certificates: WasmContract.Certificates, withdrawals: WasmContract.Withdrawals, deregistrations: WasmContract.StakeDeregistration[], delegations: WasmContract.StakeDelegation[], registrations: WasmContract.StakeRegistration[], ttl: number | undefined, neededStakingKeyHashes: {
neededHashes: Set<string>;

@@ -100,2 +104,4 @@ wits: Set<string>;

readonly deregistrations: ReadonlyArray<WasmContract.StakeDeregistration>;
readonly delegations: ReadonlyArray<WasmContract.StakeDelegation>;
readonly registrations: ReadonlyArray<WasmContract.StakeRegistration>;
readonly ttl: number | undefined;

@@ -102,0 +108,0 @@ readonly neededStakingKeyHashes: {

@@ -46,3 +46,3 @@ "use strict";

*/
constructor(wasm, txBody, senderUtxos, inputs, totalInput, outputs, totalOutput, fee, change, metadata, certificates, withdrawals, deregistrations, ttl, neededStakingKeyHashes, encodedTx, hash) {
constructor(wasm, txBody, senderUtxos, inputs, totalInput, outputs, totalOutput, fee, change, metadata, certificates, withdrawals, deregistrations, delegations, registrations, ttl, neededStakingKeyHashes, encodedTx, hash) {
this._wasm = wasm;

@@ -61,2 +61,4 @@ this._txBody = txBody;

this._deregistrations = deregistrations;
this._delegations = delegations;
this._registrations = registrations;
this._ttl = ttl;

@@ -109,2 +111,8 @@ this._neededStakingKeyHashes = neededStakingKeyHashes;

}
get delegations() {
return this._delegations;
}
get registrations() {
return this._registrations;
}
get ttl() {

@@ -128,2 +136,4 @@ return this._ttl;

const deregistrations = [];
const delegations = [];
const registrations = [];
if (certs.hasValue()) {

@@ -135,3 +145,3 @@ for (let i = 0; i < (yield certs.len()); i++) {

if (dereg.hasValue()) {
deregistrations.push(yield cert.asStakeDeregistration());
deregistrations.push(dereg);
}

@@ -142,5 +152,23 @@ }

}
try {
const del = yield cert.asStakeDelegation();
if (del.hasValue()) {
deregistrations.push(del);
}
}
catch (_b) {
// not a deregistration, ignore
}
try {
const reg = yield cert.asStakeRegistration();
if (reg.hasValue()) {
registrations.push(reg);
}
}
catch (_c) {
// not a deregistration, ignore
}
}
}
return new WasmUnsignedTx(wasm, txBody, senderUtxos, inputs, totalInput, outputs, totalOutput, fee, change, metadata, certs, withdrawals, deregistrations, ttl, neededStakingKeyHashes, Buffer.from(txBytes).toString('hex'), hash);
return new WasmUnsignedTx(wasm, txBody, senderUtxos, inputs, totalInput, outputs, totalOutput, fee, change, metadata, certs, withdrawals, deregistrations, delegations, registrations, ttl, neededStakingKeyHashes, Buffer.from(txBytes).toString('hex'), hash);
});

@@ -147,0 +175,0 @@ }

2

package.json
{
"name": "@emurgo/yoroi-lib-core",
"version": "0.4.1-alpha.28",
"version": "0.4.2-alpha.29",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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