@emurgo/yoroi-lib
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -11,5 +11,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EmurgoAccountApi = void 0; | ||
const axios_1 = require("axios"); | ||
const axios_1 = __importDefault(require("axios")); | ||
const js_1 = require("../internals/utils/js"); | ||
@@ -16,0 +19,0 @@ const models_1 = require("./models"); |
@@ -9,5 +9,17 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -43,3 +55,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
Object.defineProperty(exports, "UtxoService", { enumerable: true, get: function () { return utxo_1.UtxoService; } }); | ||
exports.UtxoModels = require("./utxo/models"); | ||
exports.UtxoModels = __importStar(require("./utxo/models")); | ||
/** | ||
@@ -263,10 +275,14 @@ * Currently, the @emurgo/react-native-haskell-shelley lib defines some variables as the type `u32`, which have a max value of `4294967295`. | ||
auxiliaryData = { | ||
type: ledgerjs_hw_app_cardano_1.TxAuxiliaryDataType.CATALYST_REGISTRATION, | ||
type: ledgerjs_hw_app_cardano_1.TxAuxiliaryDataType.CIP36_REGISTRATION, | ||
params: { | ||
votingPublicKeyHex: votingPublicKeyHex.replace(/^0x/, ''), | ||
format: ledgerjs_hw_app_cardano_1.CIP36VoteRegistrationFormat.CIP_15, | ||
voteKeyHex: votingPublicKeyHex.replace(/^0x/, ''), | ||
stakingPath: stakingKeyPath, | ||
rewardsDestination: { | ||
type: ledgerjs_hw_app_cardano_1.AddressType.REWARD_KEY, | ||
paymentDestination: { | ||
type: ledgerjs_hw_app_cardano_1.TxOutputDestinationType.DEVICE_OWNED, | ||
params: { | ||
stakingPath: stakingKeyPath, | ||
type: ledgerjs_hw_app_cardano_1.AddressType.REWARD_KEY, | ||
params: { | ||
stakingPath: stakingKeyPath, | ||
}, | ||
}, | ||
@@ -399,3 +415,3 @@ }, | ||
if (unsignedTx.catalystRegistrationData) { | ||
auxData = yield (0, transactions_1.generateRegistrationMetadata)(this.Wasm, unsignedTx.catalystRegistrationData.votingPublicKeyHex, unsignedTx.catalystRegistrationData.stakingPublicKeyHex, unsignedTx.catalystRegistrationData.rewardAddressHex, unsignedTx.catalystRegistrationData.nonce, () => __awaiter(this, void 0, void 0, function* () { var _a, _b; return (_b = (_a = signedLedgerTx.auxiliaryDataSupplement) === null || _a === void 0 ? void 0 : _a.catalystRegistrationSignatureHex) !== null && _b !== void 0 ? _b : ''; })); | ||
auxData = yield (0, transactions_1.generateRegistrationMetadata)(this.Wasm, unsignedTx.catalystRegistrationData.votingPublicKeyHex, unsignedTx.catalystRegistrationData.stakingPublicKeyHex, unsignedTx.catalystRegistrationData.rewardAddressHex, unsignedTx.catalystRegistrationData.nonce, () => __awaiter(this, void 0, void 0, function* () { var _a, _b; return (_b = (_a = signedLedgerTx.auxiliaryDataSupplement) === null || _a === void 0 ? void 0 : _a.cip36VoteRegistrationSignatureHex) !== null && _b !== void 0 ? _b : ''; })); | ||
} | ||
@@ -402,0 +418,0 @@ if (auxData) { |
@@ -11,5 +11,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EmurgoUtxoApi = exports.BatchedEmurgoUtxoApi = void 0; | ||
const bignumber_js_1 = require("bignumber.js"); | ||
const bignumber_js_1 = __importDefault(require("bignumber.js")); | ||
const js_1 = require("../internals/utils/js"); | ||
@@ -16,0 +19,0 @@ const models_1 = require("./models"); |
@@ -11,5 +11,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.init = exports.UtxoService = void 0; | ||
const axios_1 = require("axios"); | ||
const axios_1 = __importDefault(require("axios")); | ||
const js_1 = require("../internals/utils/js"); | ||
@@ -16,0 +19,0 @@ const emurgo_api_1 = require("./emurgo-api"); |
{ | ||
"name": "@emurgo/yoroi-lib", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@cardano-foundation/ledgerjs-hw-app-cardano": "^5.1.0", | ||
"@cardano-foundation/ledgerjs-hw-app-cardano": "^6.0.0", | ||
"@emurgo/cross-csl-core": "^2.2.0", | ||
@@ -31,0 +31,0 @@ "axios": "^0.24.0", |
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
231900
4144
+ Added@cardano-foundation/ledgerjs-hw-app-cardano@6.0.1(transitive)
+ Added@ledgerhq/devices@8.4.4(transitive)
+ Added@ledgerhq/errors@6.19.1(transitive)
+ Added@ledgerhq/hw-transport@6.31.4(transitive)
+ Added@ledgerhq/logs@6.12.0(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedtslib@2.8.1(transitive)