@meshsdk/wallet 1.7.18 → 1.7.20
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 +10 -5
- package/dist/index.js +10 -5
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1142,6 +1142,10 @@ var MeshWallet = class {
|
|
|
1142
1142
|
addresses = {};
|
|
1143
1143
|
constructor(options) {
|
|
1144
1144
|
this._networkId = options.networkId;
|
|
1145
|
+
if (options.fetcher) this._fetcher = options.fetcher;
|
|
1146
|
+
if (options.submitter) this._submitter = options.submitter;
|
|
1147
|
+
if (options.accountIndex) this._accountIndex = options.accountIndex;
|
|
1148
|
+
if (options.keyIndex) this._keyIndex = options.keyIndex;
|
|
1145
1149
|
switch (options.key.type) {
|
|
1146
1150
|
case "root":
|
|
1147
1151
|
this._wallet = new EmbeddedWallet({
|
|
@@ -1179,10 +1183,6 @@ var MeshWallet = class {
|
|
|
1179
1183
|
this.buildAddressFromBech32Address(options.key.address);
|
|
1180
1184
|
break;
|
|
1181
1185
|
}
|
|
1182
|
-
if (options.fetcher) this._fetcher = options.fetcher;
|
|
1183
|
-
if (options.submitter) this._submitter = options.submitter;
|
|
1184
|
-
if (options.accountIndex) this._accountIndex = options.accountIndex;
|
|
1185
|
-
if (options.keyIndex) this._keyIndex = options.keyIndex;
|
|
1186
1186
|
}
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Returns a list of assets in the wallet. This API will return every assets in the wallet. Each asset is an object with the following properties:
|
|
@@ -1327,7 +1327,12 @@ var MeshWallet = class {
|
|
|
1327
1327
|
if (address === void 0) {
|
|
1328
1328
|
address = this.getChangeAddress();
|
|
1329
1329
|
}
|
|
1330
|
-
return this._wallet.signData(
|
|
1330
|
+
return this._wallet.signData(
|
|
1331
|
+
address,
|
|
1332
|
+
payload,
|
|
1333
|
+
this._accountIndex,
|
|
1334
|
+
this._keyIndex
|
|
1335
|
+
);
|
|
1331
1336
|
}
|
|
1332
1337
|
/**
|
|
1333
1338
|
* Requests user to sign the provided transaction (tx). The wallet should ask the user for permission, and if given, try to sign the supplied body and return a signed transaction. partialSign should be true if the transaction provided requires multiple signatures.
|
package/dist/index.js
CHANGED
|
@@ -1166,6 +1166,10 @@ var MeshWallet = class {
|
|
|
1166
1166
|
addresses = {};
|
|
1167
1167
|
constructor(options) {
|
|
1168
1168
|
this._networkId = options.networkId;
|
|
1169
|
+
if (options.fetcher) this._fetcher = options.fetcher;
|
|
1170
|
+
if (options.submitter) this._submitter = options.submitter;
|
|
1171
|
+
if (options.accountIndex) this._accountIndex = options.accountIndex;
|
|
1172
|
+
if (options.keyIndex) this._keyIndex = options.keyIndex;
|
|
1169
1173
|
switch (options.key.type) {
|
|
1170
1174
|
case "root":
|
|
1171
1175
|
this._wallet = new EmbeddedWallet({
|
|
@@ -1203,10 +1207,6 @@ var MeshWallet = class {
|
|
|
1203
1207
|
this.buildAddressFromBech32Address(options.key.address);
|
|
1204
1208
|
break;
|
|
1205
1209
|
}
|
|
1206
|
-
if (options.fetcher) this._fetcher = options.fetcher;
|
|
1207
|
-
if (options.submitter) this._submitter = options.submitter;
|
|
1208
|
-
if (options.accountIndex) this._accountIndex = options.accountIndex;
|
|
1209
|
-
if (options.keyIndex) this._keyIndex = options.keyIndex;
|
|
1210
1210
|
}
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Returns a list of assets in the wallet. This API will return every assets in the wallet. Each asset is an object with the following properties:
|
|
@@ -1351,7 +1351,12 @@ var MeshWallet = class {
|
|
|
1351
1351
|
if (address === void 0) {
|
|
1352
1352
|
address = this.getChangeAddress();
|
|
1353
1353
|
}
|
|
1354
|
-
return this._wallet.signData(
|
|
1354
|
+
return this._wallet.signData(
|
|
1355
|
+
address,
|
|
1356
|
+
payload,
|
|
1357
|
+
this._accountIndex,
|
|
1358
|
+
this._keyIndex
|
|
1359
|
+
);
|
|
1355
1360
|
}
|
|
1356
1361
|
/**
|
|
1357
1362
|
* Requests user to sign the provided transaction (tx). The wallet should ask the user for permission, and if given, try to sign the supplied body and return a signed transaction. partialSign should be true if the transaction provided requires multiple signatures.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/wallet",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.7.20",
|
|
4
|
+
"description": "Wallets - https://meshjs.dev/apis/wallets",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"typescript": "^5.3.3"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@meshsdk/common": "1.7.
|
|
39
|
-
"@meshsdk/core-csl": "1.7.
|
|
40
|
-
"@meshsdk/core-cst": "1.7.
|
|
41
|
-
"@meshsdk/transaction": "1.7.
|
|
38
|
+
"@meshsdk/common": "1.7.20",
|
|
39
|
+
"@meshsdk/core-csl": "1.7.20",
|
|
40
|
+
"@meshsdk/core-cst": "1.7.20",
|
|
41
|
+
"@meshsdk/transaction": "1.7.20",
|
|
42
42
|
"@nufi/dapp-client-cardano": "0.3.5",
|
|
43
43
|
"@nufi/dapp-client-core": "0.3.5"
|
|
44
44
|
},
|