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.8.0-alpha.42 to 0.8.1-alpha.43

4

dist/internals/tx.d.ts

@@ -90,3 +90,3 @@ import * as WasmContract from './wasm-contract';

}, metadata: ReadonlyArray<TxMetadata>, auxiliaryData: WasmContract.AuxiliaryData | undefined, catalystRegistrationData: CatalystRegistrationData | undefined, stakingKey: WasmContract.PublicKey | undefined, valueInAccount: MultiTokenValue | undefined, withdrawalRequests: Array<WithdrawalRequest>): Promise<WasmUnsignedTx>;
sign(keyLevel: number, privateKey: string, stakingKeyWits: Set<string>, extraMetadata: TxMetadata[], stakingKeys?: {
sign(keyLevel: number, privateKey: string, stakingKeyWits: Set<string>, stakingKeys?: {
rewardAddress: string;

@@ -135,3 +135,3 @@ privateKey: WasmContract.PrivateKey;

readonly withdrawalRequests: Array<WithdrawalRequest>;
sign(keyLevel: number, privateKey: string, stakingKeyWits: Set<string>, metadata: ReadonlyArray<TxMetadata>, stakingKeys?: {
sign(keyLevel: number, privateKey: string, stakingKeyWits: Set<string>, stakingKeys?: {
rewardAddress: string;

@@ -138,0 +138,0 @@ privateKey: WasmContract.PrivateKey;

@@ -15,3 +15,2 @@ "use strict";

const models_1 = require("./models");
const utils_1 = require("./utils");
const addresses_1 = require("./utils/addresses");

@@ -185,3 +184,3 @@ const crypto_1 = require("./utils/crypto");

}
sign(keyLevel, privateKey, stakingKeyWits, extraMetadata, stakingKeys = []) {
sign(keyLevel, privateKey, stakingKeyWits, stakingKeys = []) {
var _a;

@@ -249,5 +248,5 @@ return __awaiter(this, void 0, void 0, function* () {

yield witnessSet.setVkeys(vkeyWits);
const fullMetadata = ((_a = this.metadata) !== null && _a !== void 0 ? _a : []).concat(extraMetadata !== null && extraMetadata !== void 0 ? extraMetadata : []);
const aux = yield (0, utils_1.createMetadata)(this._wasm, fullMetadata);
const signedTx = yield this._wasm.Transaction.new(this._txBody, witnessSet, aux);
const signedTx = yield this._wasm.Transaction.new(this._txBody, witnessSet, this.auxiliaryData && ((_a = this._auxiliaryData) === null || _a === void 0 ? void 0 : _a.hasValue())
? this.auxiliaryData
: yield this.wasm.AuxiliaryData.empty());
const signedTxBody = yield signedTx.body();

@@ -254,0 +253,0 @@ const signedTxHash = yield this._wasm.hashTransaction(signedTxBody);

{
"name": "@emurgo/yoroi-lib-core",
"version": "0.8.0-alpha.42",
"version": "0.8.1-alpha.43",
"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