@emurgo/yoroi-lib-core
Advanced tools
Comparing version 0.8.0-alpha.42 to 0.8.1-alpha.43
@@ -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
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
291257
5139