@lucid-evolution/wallet 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -4
- package/dist/index.js +5 -4
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -249,7 +249,9 @@ var makeWalletFromSeed = (provider, network, seed, options) => {
|
|
|
249
249
|
getUtxosCore: async () => {
|
|
250
250
|
const utxos = await provider.getUtxos((0, import_utils2.paymentCredentialOf)(address));
|
|
251
251
|
const coreUtxos = [];
|
|
252
|
-
|
|
252
|
+
for (const utxo of utxos) {
|
|
253
|
+
coreUtxos.push((0, import_utils2.utxoToCore)(utxo));
|
|
254
|
+
}
|
|
253
255
|
return coreUtxos;
|
|
254
256
|
},
|
|
255
257
|
getDelegation: async () => {
|
|
@@ -260,15 +262,14 @@ var makeWalletFromSeed = (provider, network, seed, options) => {
|
|
|
260
262
|
const ownKeyHashes = [paymentKeyHash, stakeKeyHash];
|
|
261
263
|
const usedKeyHashes = discoverOwnUsedTxKeyHashes(tx, ownKeyHashes, utxos);
|
|
262
264
|
const txWitnessSetBuilder = CML2.TransactionWitnessSetBuilder.new();
|
|
263
|
-
|
|
265
|
+
for (const keyHash of usedKeyHashes) {
|
|
264
266
|
const priv = CML2.PrivateKey.from_bech32(privKeyHashMap[keyHash]);
|
|
265
267
|
const witness = CML2.make_vkey_witness(
|
|
266
268
|
CML2.hash_transaction(tx.body()),
|
|
267
|
-
// toCMLTransactionHash(tx.body()),
|
|
268
269
|
priv
|
|
269
270
|
);
|
|
270
271
|
txWitnessSetBuilder.add_vkey(witness);
|
|
271
|
-
}
|
|
272
|
+
}
|
|
272
273
|
return txWitnessSetBuilder.build();
|
|
273
274
|
},
|
|
274
275
|
signMessage: async (address2, payload) => {
|
package/dist/index.js
CHANGED
|
@@ -214,7 +214,9 @@ var makeWalletFromSeed = (provider, network, seed, options) => {
|
|
|
214
214
|
getUtxosCore: async () => {
|
|
215
215
|
const utxos = await provider.getUtxos(paymentCredentialOf(address));
|
|
216
216
|
const coreUtxos = [];
|
|
217
|
-
|
|
217
|
+
for (const utxo of utxos) {
|
|
218
|
+
coreUtxos.push(utxoToCore(utxo));
|
|
219
|
+
}
|
|
218
220
|
return coreUtxos;
|
|
219
221
|
},
|
|
220
222
|
getDelegation: async () => {
|
|
@@ -225,15 +227,14 @@ var makeWalletFromSeed = (provider, network, seed, options) => {
|
|
|
225
227
|
const ownKeyHashes = [paymentKeyHash, stakeKeyHash];
|
|
226
228
|
const usedKeyHashes = discoverOwnUsedTxKeyHashes(tx, ownKeyHashes, utxos);
|
|
227
229
|
const txWitnessSetBuilder = CML2.TransactionWitnessSetBuilder.new();
|
|
228
|
-
|
|
230
|
+
for (const keyHash of usedKeyHashes) {
|
|
229
231
|
const priv = CML2.PrivateKey.from_bech32(privKeyHashMap[keyHash]);
|
|
230
232
|
const witness = CML2.make_vkey_witness(
|
|
231
233
|
CML2.hash_transaction(tx.body()),
|
|
232
|
-
// toCMLTransactionHash(tx.body()),
|
|
233
234
|
priv
|
|
234
235
|
);
|
|
235
236
|
txWitnessSetBuilder.add_vkey(witness);
|
|
236
|
-
}
|
|
237
|
+
}
|
|
237
238
|
return txWitnessSetBuilder.build();
|
|
238
239
|
},
|
|
239
240
|
signMessage: async (address2, payload) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@dcspark/cardano-multiplatform-lib-nodejs": "^5.
|
|
26
|
-
"@lucid-evolution/bip39": "0.2.
|
|
27
|
-
"@lucid-evolution/core-types": "0.1.
|
|
28
|
-
"@lucid-evolution/core-utils": "0.1.
|
|
29
|
-
"@lucid-evolution/
|
|
30
|
-
"@lucid-evolution/
|
|
25
|
+
"@dcspark/cardano-multiplatform-lib-nodejs": "^5.3.0",
|
|
26
|
+
"@lucid-evolution/bip39": "0.2.6",
|
|
27
|
+
"@lucid-evolution/core-types": "0.1.5",
|
|
28
|
+
"@lucid-evolution/core-utils": "0.1.5",
|
|
29
|
+
"@lucid-evolution/sign_data": "0.1.5",
|
|
30
|
+
"@lucid-evolution/utils": "0.1.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^20.
|
|
33
|
+
"@types/node": "^20.12.8",
|
|
34
34
|
"tsup": "^8.0.2",
|
|
35
|
-
"typescript": "^5.
|
|
35
|
+
"typescript": "^5.4.5"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsup-node src/index.ts --format esm,cjs --dts --clean",
|