@ukeyfe/hardware-core 1.1.14 → 1.1.16
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/__tests__/checkBootloaderReleast.test.ts +1 -1
- package/__tests__/evmSignTransaction.test.ts +1 -1
- package/dist/api/FirmwareUpdate.d.ts +1 -1
- package/dist/api/FirmwareUpdateV2.d.ts +1 -1
- package/dist/api/GetFeatures.d.ts +1 -1
- package/dist/api/GetUkeyFeatures.d.ts +1 -1
- package/dist/api/cardano/CardanoSignMessage.d.ts +1 -1
- package/dist/api/device/DeviceRebootToBoardloader.d.ts +1 -1
- package/dist/data/config.d.ts.map +1 -1
- package/dist/index.d.ts +44 -44
- package/dist/index.js +147 -147
- package/dist/types/api/alephiumGetAddress.d.ts +1 -1
- package/dist/types/api/alephiumGetAddress.d.ts.map +1 -1
- package/dist/types/api/algoGetAddress.d.ts +1 -1
- package/dist/types/api/algoGetAddress.d.ts.map +1 -1
- package/dist/types/api/allNetworkGetAddress.d.ts +1 -1
- package/dist/types/api/allNetworkGetAddress.d.ts.map +1 -1
- package/dist/types/api/aptosGetAddress.d.ts +1 -1
- package/dist/types/api/aptosGetAddress.d.ts.map +1 -1
- package/dist/types/api/aptosGetPublicKey.d.ts +1 -1
- package/dist/types/api/aptosGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/benfenGetAddress.d.ts +1 -1
- package/dist/types/api/benfenGetAddress.d.ts.map +1 -1
- package/dist/types/api/benfenGetPublicKey.d.ts +1 -1
- package/dist/types/api/benfenGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/btcGetAddress.d.ts +1 -1
- package/dist/types/api/btcGetAddress.d.ts.map +1 -1
- package/dist/types/api/btcGetPublicKey.d.ts +1 -1
- package/dist/types/api/btcGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/cardanoGetAddress.d.ts +1 -1
- package/dist/types/api/cardanoGetAddress.d.ts.map +1 -1
- package/dist/types/api/cardanoGetPublicKey.d.ts +1 -1
- package/dist/types/api/cardanoGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/confluxGetAddress.d.ts +1 -1
- package/dist/types/api/confluxGetAddress.d.ts.map +1 -1
- package/dist/types/api/cosmosGetAddress.d.ts +1 -1
- package/dist/types/api/cosmosGetAddress.d.ts.map +1 -1
- package/dist/types/api/cosmosGetPublicKey.d.ts +1 -1
- package/dist/types/api/cosmosGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/dnxGetAddress.d.ts +1 -1
- package/dist/types/api/dnxGetAddress.d.ts.map +1 -1
- package/dist/types/api/evmGetAddress.d.ts +1 -1
- package/dist/types/api/evmGetAddress.d.ts.map +1 -1
- package/dist/types/api/evmGetPublicKey.d.ts +1 -1
- package/dist/types/api/evmGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/filecoinGetAddress.d.ts +1 -1
- package/dist/types/api/filecoinGetAddress.d.ts.map +1 -1
- package/dist/types/api/kaspaGetAddress.d.ts +1 -1
- package/dist/types/api/kaspaGetAddress.d.ts.map +1 -1
- package/dist/types/api/nearGetAddress.d.ts +1 -1
- package/dist/types/api/nearGetAddress.d.ts.map +1 -1
- package/dist/types/api/nemGetAddress.d.ts +1 -1
- package/dist/types/api/nemGetAddress.d.ts.map +1 -1
- package/dist/types/api/neoGetAddress.d.ts +1 -1
- package/dist/types/api/neoGetAddress.d.ts.map +1 -1
- package/dist/types/api/nervosGetAddress.d.ts +1 -1
- package/dist/types/api/nervosGetAddress.d.ts.map +1 -1
- package/dist/types/api/nexaGetAddress.d.ts +1 -1
- package/dist/types/api/nexaGetAddress.d.ts.map +1 -1
- package/dist/types/api/nostrDecryptMessage.d.ts +1 -1
- package/dist/types/api/nostrDecryptMessage.d.ts.map +1 -1
- package/dist/types/api/nostrEncryptMessage.d.ts +1 -1
- package/dist/types/api/nostrEncryptMessage.d.ts.map +1 -1
- package/dist/types/api/nostrGetPublicKey.d.ts +1 -1
- package/dist/types/api/nostrGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/polkadotGetAddress.d.ts +1 -1
- package/dist/types/api/polkadotGetAddress.d.ts.map +1 -1
- package/dist/types/api/scdoGetAddress.d.ts +1 -1
- package/dist/types/api/scdoGetAddress.d.ts.map +1 -1
- package/dist/types/api/solGetAddress.d.ts +1 -1
- package/dist/types/api/solGetAddress.d.ts.map +1 -1
- package/dist/types/api/starcoinGetAddress.d.ts +1 -1
- package/dist/types/api/starcoinGetAddress.d.ts.map +1 -1
- package/dist/types/api/starcoinGetPublicKey.d.ts +1 -1
- package/dist/types/api/starcoinGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/stellarGetAddress.d.ts +1 -1
- package/dist/types/api/stellarGetAddress.d.ts.map +1 -1
- package/dist/types/api/suiGetAddress.d.ts +1 -1
- package/dist/types/api/suiGetAddress.d.ts.map +1 -1
- package/dist/types/api/suiGetPublicKey.d.ts +1 -1
- package/dist/types/api/suiGetPublicKey.d.ts.map +1 -1
- package/dist/types/api/tonGetAddress.d.ts +1 -1
- package/dist/types/api/tonGetAddress.d.ts.map +1 -1
- package/dist/types/api/tronGetAddress.d.ts +1 -1
- package/dist/types/api/tronGetAddress.d.ts.map +1 -1
- package/dist/types/api/xrpGetAddress.d.ts +1 -1
- package/dist/types/api/xrpGetAddress.d.ts.map +1 -1
- package/dist/utils/logger.d.ts +12 -12
- package/dist/utils/logger.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/alephium/AlephiumGetAddress.ts +3 -3
- package/src/api/algo/AlgoGetAddress.ts +3 -3
- package/src/api/allnetwork/AllNetworkGetAddressBase.ts +19 -19
- package/src/api/aptos/AptosGetAddress.ts +5 -5
- package/src/api/aptos/AptosGetPublicKey.ts +3 -3
- package/src/api/benfen/BenfenGetAddress.ts +5 -5
- package/src/api/benfen/BenfenGetPublicKey.ts +3 -3
- package/src/api/btc/BTCGetAddress.ts +3 -3
- package/src/api/btc/BTCGetPublicKey.ts +3 -3
- package/src/api/cardano/CardanoGetAddress.ts +2 -2
- package/src/api/cardano/CardanoGetPublicKey.ts +2 -2
- package/src/api/conflux/ConfluxGetAddress.ts +3 -3
- package/src/api/cosmos/CosmosGetAddress.ts +3 -3
- package/src/api/cosmos/CosmosGetPublicKey.ts +3 -3
- package/src/api/dynex/DnxGetAddress.ts +3 -3
- package/src/api/evm/EVMGetAddress.ts +3 -3
- package/src/api/evm/EVMGetPublicKey.ts +4 -4
- package/src/api/filecoin/FilecoinGetAddress.ts +3 -3
- package/src/api/kaspa/KaspaGetAddress.ts +3 -3
- package/src/api/near/NearGetAddress.ts +3 -3
- package/src/api/nem/NEMGetAddress.ts +3 -3
- package/src/api/neo/NeoGetAddress.ts +3 -3
- package/src/api/nervos/NervosGetAddress.ts +3 -3
- package/src/api/nexa/NexaGetAddress.ts +3 -3
- package/src/api/nostr/NostrDecryptMessage.ts +2 -2
- package/src/api/nostr/NostrEncryptMessage.ts +2 -2
- package/src/api/nostr/NostrGetPublicKey.ts +3 -3
- package/src/api/polkadot/PolkadotGetAddress.ts +3 -3
- package/src/api/scdo/ScdoGetAddress.ts +3 -3
- package/src/api/solana/SolGetAddress.ts +3 -3
- package/src/api/starcoin/StarcoinGetAddress.ts +3 -3
- package/src/api/starcoin/StarcoinGetPublicKey.ts +3 -3
- package/src/api/stellar/StellarGetAddress.ts +3 -3
- package/src/api/sui/SuiGetAddress.ts +5 -5
- package/src/api/sui/SuiGetPublicKey.ts +3 -3
- package/src/api/ton/TonGetAddress.ts +4 -4
- package/src/api/tron/TronGetAddress.ts +3 -3
- package/src/api/xrp/XrpGetAddress.ts +4 -4
- package/src/data/config.ts +4 -4
- package/src/data-manager/DataManager.ts +2 -2
- package/src/types/api/alephiumGetAddress.ts +1 -1
- package/src/types/api/algoGetAddress.ts +1 -1
- package/src/types/api/allNetworkGetAddress.ts +1 -1
- package/src/types/api/aptosGetAddress.ts +1 -1
- package/src/types/api/aptosGetPublicKey.ts +1 -1
- package/src/types/api/benfenGetAddress.ts +1 -1
- package/src/types/api/benfenGetPublicKey.ts +1 -1
- package/src/types/api/btcGetAddress.ts +1 -1
- package/src/types/api/btcGetPublicKey.ts +1 -1
- package/src/types/api/cardanoGetAddress.ts +1 -1
- package/src/types/api/cardanoGetPublicKey.ts +1 -1
- package/src/types/api/confluxGetAddress.ts +1 -1
- package/src/types/api/cosmosGetAddress.ts +1 -1
- package/src/types/api/cosmosGetPublicKey.ts +1 -1
- package/src/types/api/dnxGetAddress.ts +1 -1
- package/src/types/api/evmGetAddress.ts +1 -1
- package/src/types/api/evmGetPublicKey.ts +1 -1
- package/src/types/api/filecoinGetAddress.ts +1 -1
- package/src/types/api/kaspaGetAddress.ts +1 -1
- package/src/types/api/nearGetAddress.ts +1 -1
- package/src/types/api/nemGetAddress.ts +1 -1
- package/src/types/api/neoGetAddress.ts +1 -1
- package/src/types/api/nervosGetAddress.ts +1 -1
- package/src/types/api/nexaGetAddress.ts +1 -1
- package/src/types/api/nostrDecryptMessage.ts +1 -1
- package/src/types/api/nostrEncryptMessage.ts +1 -1
- package/src/types/api/nostrGetPublicKey.ts +1 -1
- package/src/types/api/polkadotGetAddress.ts +1 -1
- package/src/types/api/scdoGetAddress.ts +1 -1
- package/src/types/api/solGetAddress.ts +1 -1
- package/src/types/api/starcoinGetAddress.ts +1 -1
- package/src/types/api/starcoinGetPublicKey.ts +1 -1
- package/src/types/api/stellarGetAddress.ts +1 -1
- package/src/types/api/suiGetAddress.ts +1 -1
- package/src/types/api/suiGetPublicKey.ts +1 -1
- package/src/types/api/tonGetAddress.ts +1 -1
- package/src/types/api/tronGetAddress.ts +1 -1
- package/src/types/api/xrpGetAddress.ts +1 -1
- package/src/utils/logger.ts +6 -6
package/dist/index.js
CHANGED
|
@@ -895,7 +895,7 @@ const sendLogMessage = (prefix, ...args) => {
|
|
|
895
895
|
};
|
|
896
896
|
exports.LoggerNames = void 0;
|
|
897
897
|
(function (LoggerNames) {
|
|
898
|
-
LoggerNames["Core"] = "@ukey/
|
|
898
|
+
LoggerNames["Core"] = "@ukey/hardware-core";
|
|
899
899
|
LoggerNames["Transport"] = "Transport";
|
|
900
900
|
LoggerNames["Device"] = "Device";
|
|
901
901
|
LoggerNames["DeviceCommands"] = "DeviceCommands";
|
|
@@ -903,11 +903,11 @@ exports.LoggerNames = void 0;
|
|
|
903
903
|
LoggerNames["DeviceList"] = "DeviceList";
|
|
904
904
|
LoggerNames["DevicePool"] = "DevicePool";
|
|
905
905
|
LoggerNames["HdCommonConnectSdk"] = "@ukey/common-connect-sdk";
|
|
906
|
-
LoggerNames["HdBleSdk"] = "@ukey/
|
|
907
|
-
LoggerNames["HdTransportHttp"] = "@ukey/
|
|
908
|
-
LoggerNames["HdTransportLowLevel"] = "@ukey/
|
|
909
|
-
LoggerNames["HdBleTransport"] = "@ukey/
|
|
910
|
-
LoggerNames["HdWebBleTransport"] = "@ukey/
|
|
906
|
+
LoggerNames["HdBleSdk"] = "@ukey/hardware-ble-sdk";
|
|
907
|
+
LoggerNames["HdTransportHttp"] = "@ukey/hardware-transport-http";
|
|
908
|
+
LoggerNames["HdTransportLowLevel"] = "@ukey/hardware-transport-lowlevel";
|
|
909
|
+
LoggerNames["HdBleTransport"] = "@ukey/hardware-ble-transport";
|
|
910
|
+
LoggerNames["HdWebBleTransport"] = "@ukey/hardware-web-ble-transport";
|
|
911
911
|
LoggerNames["Connect"] = "@ukey/connect";
|
|
912
912
|
LoggerNames["Iframe"] = "IFrame";
|
|
913
913
|
LoggerNames["SendMessage"] = "[SendMessage]";
|
|
@@ -24920,8 +24920,8 @@ class DataManager {
|
|
|
24920
24920
|
}
|
|
24921
24921
|
try {
|
|
24922
24922
|
const url = settings.preRelease
|
|
24923
|
-
? 'https://data.
|
|
24924
|
-
: 'https://data.
|
|
24923
|
+
? 'https://data.sanying.site/pre-config.json'
|
|
24924
|
+
: 'https://data.sanying.site/config.json';
|
|
24925
24925
|
const { data } = yield axios__default["default"].get(`${url}?noCache=${getTimeStamp()}`, {
|
|
24926
24926
|
timeout: 7000,
|
|
24927
24927
|
});
|
|
@@ -25401,13 +25401,13 @@ const fixFeaturesFirmwareVersion = (features) => {
|
|
|
25401
25401
|
|
|
25402
25402
|
const pkg = require('../package.json');
|
|
25403
25403
|
const getSDKVersion = () => pkg.version;
|
|
25404
|
-
const DEFAULT_DOMAIN = `https://jssdk.
|
|
25404
|
+
const DEFAULT_DOMAIN = `https://jssdk.sanying.site/${getSDKVersion()}/`;
|
|
25405
25405
|
const whitelist = [
|
|
25406
25406
|
{ origin: 'file://' },
|
|
25407
25407
|
{ origin: '1key.so' },
|
|
25408
|
-
{ origin: '
|
|
25409
|
-
{ origin: '
|
|
25410
|
-
{ origin: '
|
|
25408
|
+
{ origin: 'sanying.site' },
|
|
25409
|
+
{ origin: 'sanying.com' },
|
|
25410
|
+
{ origin: 'sanyingtest.com' },
|
|
25411
25411
|
{ origin: 'localhost' },
|
|
25412
25412
|
];
|
|
25413
25413
|
const whitelistExtension = [
|
|
@@ -30166,7 +30166,7 @@ const networkConfigMap = {
|
|
|
30166
30166
|
evm: {
|
|
30167
30167
|
methodName: 'evmGetAddress',
|
|
30168
30168
|
getParams: (baseParams, chainName) => {
|
|
30169
|
-
const { path,
|
|
30169
|
+
const { path, showOnUKey } = baseParams;
|
|
30170
30170
|
let chainId;
|
|
30171
30171
|
if (chainName) {
|
|
30172
30172
|
chainId = parseInt(chainName);
|
|
@@ -30174,7 +30174,7 @@ const networkConfigMap = {
|
|
|
30174
30174
|
return {
|
|
30175
30175
|
chainId,
|
|
30176
30176
|
path,
|
|
30177
|
-
|
|
30177
|
+
showOnUKey,
|
|
30178
30178
|
};
|
|
30179
30179
|
},
|
|
30180
30180
|
},
|
|
@@ -30193,11 +30193,11 @@ const networkConfigMap = {
|
|
|
30193
30193
|
cfx: {
|
|
30194
30194
|
methodName: 'confluxGetAddress',
|
|
30195
30195
|
getParams: (baseParams, chainName) => {
|
|
30196
|
-
const { path,
|
|
30196
|
+
const { path, showOnUKey } = baseParams;
|
|
30197
30197
|
return {
|
|
30198
30198
|
chainId: parseInt(chainName !== null && chainName !== void 0 ? chainName : '1029'),
|
|
30199
30199
|
path,
|
|
30200
|
-
|
|
30200
|
+
showOnUKey,
|
|
30201
30201
|
};
|
|
30202
30202
|
},
|
|
30203
30203
|
},
|
|
@@ -30213,18 +30213,18 @@ const networkConfigMap = {
|
|
|
30213
30213
|
cosmos: {
|
|
30214
30214
|
methodName: 'cosmosGetPublicKey',
|
|
30215
30215
|
getParams: (baseParams) => {
|
|
30216
|
-
const { path, prefix,
|
|
30216
|
+
const { path, prefix, showOnUKey } = baseParams;
|
|
30217
30217
|
return {
|
|
30218
30218
|
hrp: prefix,
|
|
30219
30219
|
path,
|
|
30220
|
-
|
|
30220
|
+
showOnUKey,
|
|
30221
30221
|
};
|
|
30222
30222
|
},
|
|
30223
30223
|
},
|
|
30224
30224
|
ada: {
|
|
30225
30225
|
methodName: 'cardanoGetAddress',
|
|
30226
30226
|
getParams: (baseParams, chainName) => {
|
|
30227
|
-
const { path,
|
|
30227
|
+
const { path, showOnUKey } = baseParams;
|
|
30228
30228
|
const addressPath = typeof path === 'string' ? `${path}/0/0` : serializedPath([...path, 0, 0]);
|
|
30229
30229
|
const stakingPath = typeof path === 'string' ? `${path}/2/0` : serializedPath([...path, 2, 0]);
|
|
30230
30230
|
let networkId = 1;
|
|
@@ -30240,7 +30240,7 @@ const networkConfigMap = {
|
|
|
30240
30240
|
protocolMagic: 764824073,
|
|
30241
30241
|
networkId,
|
|
30242
30242
|
derivationType: hardwareTransport.Messages.CardanoDerivationType.ICARUS,
|
|
30243
|
-
|
|
30243
|
+
showOnUKey,
|
|
30244
30244
|
address: '',
|
|
30245
30245
|
isCheck: false,
|
|
30246
30246
|
};
|
|
@@ -30255,7 +30255,7 @@ const networkConfigMap = {
|
|
|
30255
30255
|
fil: {
|
|
30256
30256
|
methodName: 'filecoinGetAddress',
|
|
30257
30257
|
getParams: (baseParams, chainName) => {
|
|
30258
|
-
const { path,
|
|
30258
|
+
const { path, showOnUKey } = baseParams;
|
|
30259
30259
|
let isTestnet = false;
|
|
30260
30260
|
if (chainName) {
|
|
30261
30261
|
isTestnet = chainName !== Mainnet;
|
|
@@ -30263,14 +30263,14 @@ const networkConfigMap = {
|
|
|
30263
30263
|
return {
|
|
30264
30264
|
isTestnet,
|
|
30265
30265
|
path,
|
|
30266
|
-
|
|
30266
|
+
showOnUKey,
|
|
30267
30267
|
};
|
|
30268
30268
|
},
|
|
30269
30269
|
},
|
|
30270
30270
|
dot: {
|
|
30271
30271
|
methodName: 'polkadotGetAddress',
|
|
30272
30272
|
getParams: (baseParams, chainName) => {
|
|
30273
|
-
const { path, prefix,
|
|
30273
|
+
const { path, prefix, showOnUKey } = baseParams;
|
|
30274
30274
|
if (!prefix || !chainName) {
|
|
30275
30275
|
throw new Error('Invalid params');
|
|
30276
30276
|
}
|
|
@@ -30278,19 +30278,19 @@ const networkConfigMap = {
|
|
|
30278
30278
|
prefix: parseInt(prefix),
|
|
30279
30279
|
network: chainName,
|
|
30280
30280
|
path,
|
|
30281
|
-
|
|
30281
|
+
showOnUKey,
|
|
30282
30282
|
};
|
|
30283
30283
|
},
|
|
30284
30284
|
},
|
|
30285
30285
|
kaspa: {
|
|
30286
30286
|
methodName: 'kaspaGetAddress',
|
|
30287
30287
|
getParams: (baseParams) => {
|
|
30288
|
-
const { path, prefix,
|
|
30288
|
+
const { path, prefix, showOnUKey, useTweak } = baseParams;
|
|
30289
30289
|
return {
|
|
30290
30290
|
scheme: 'schnorr',
|
|
30291
30291
|
prefix,
|
|
30292
30292
|
path,
|
|
30293
|
-
|
|
30293
|
+
showOnUKey,
|
|
30294
30294
|
useTweak,
|
|
30295
30295
|
};
|
|
30296
30296
|
},
|
|
@@ -30298,12 +30298,12 @@ const networkConfigMap = {
|
|
|
30298
30298
|
nexa: {
|
|
30299
30299
|
methodName: 'nexaGetAddress',
|
|
30300
30300
|
getParams: (baseParams) => {
|
|
30301
|
-
const { path, prefix,
|
|
30301
|
+
const { path, prefix, showOnUKey } = baseParams;
|
|
30302
30302
|
return {
|
|
30303
30303
|
scheme: 'Schnorr',
|
|
30304
30304
|
prefix,
|
|
30305
30305
|
path,
|
|
30306
|
-
|
|
30306
|
+
showOnUKey,
|
|
30307
30307
|
};
|
|
30308
30308
|
},
|
|
30309
30309
|
},
|
|
@@ -30313,11 +30313,11 @@ const networkConfigMap = {
|
|
|
30313
30313
|
nervos: {
|
|
30314
30314
|
methodName: 'nervosGetAddress',
|
|
30315
30315
|
getParams: (baseParams, chainName) => {
|
|
30316
|
-
const { path,
|
|
30316
|
+
const { path, showOnUKey } = baseParams;
|
|
30317
30317
|
return {
|
|
30318
30318
|
network: chainName,
|
|
30319
30319
|
path,
|
|
30320
|
-
|
|
30320
|
+
showOnUKey,
|
|
30321
30321
|
};
|
|
30322
30322
|
},
|
|
30323
30323
|
},
|
|
@@ -30352,7 +30352,7 @@ class AllNetworkGetAddressBase extends BaseMethod {
|
|
|
30352
30352
|
{ name: 'path', required: true },
|
|
30353
30353
|
{ name: 'network', type: 'string', required: true },
|
|
30354
30354
|
{ name: 'chainName', type: 'string' },
|
|
30355
|
-
{ name: '
|
|
30355
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
30356
30356
|
]);
|
|
30357
30357
|
});
|
|
30358
30358
|
}
|
|
@@ -30945,11 +30945,11 @@ class BTCGetAddress extends BaseMethod {
|
|
|
30945
30945
|
validateParams(batch, [
|
|
30946
30946
|
{ name: 'path', required: true },
|
|
30947
30947
|
{ name: 'coin', type: 'string' },
|
|
30948
|
-
{ name: '
|
|
30948
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
30949
30949
|
{ name: 'multisig', type: 'object' },
|
|
30950
30950
|
{ name: 'scriptType', type: 'string' },
|
|
30951
30951
|
]);
|
|
30952
|
-
const
|
|
30952
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
30953
30953
|
const { multisig, coin } = batch;
|
|
30954
30954
|
let { scriptType } = batch;
|
|
30955
30955
|
if (!scriptType) {
|
|
@@ -30961,7 +30961,7 @@ class BTCGetAddress extends BaseMethod {
|
|
|
30961
30961
|
const coinName = getCoinInfo(addressN, coin).name;
|
|
30962
30962
|
this.params.push({
|
|
30963
30963
|
address_n: addressN,
|
|
30964
|
-
show_display:
|
|
30964
|
+
show_display: showOnUKey,
|
|
30965
30965
|
coin_name: coinName,
|
|
30966
30966
|
multisig,
|
|
30967
30967
|
script_type: scriptType || 'SPENDADDRESS',
|
|
@@ -31154,10 +31154,10 @@ class BTCGetPublicKey extends BaseMethod {
|
|
|
31154
31154
|
validateParams(batch, [
|
|
31155
31155
|
{ name: 'path', required: true },
|
|
31156
31156
|
{ name: 'coin', type: 'string' },
|
|
31157
|
-
{ name: '
|
|
31157
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
31158
31158
|
{ name: 'scriptType', type: 'string' },
|
|
31159
31159
|
]);
|
|
31160
|
-
const
|
|
31160
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
31161
31161
|
const { multisig, coin } = batch;
|
|
31162
31162
|
let { scriptType } = batch;
|
|
31163
31163
|
if (!scriptType) {
|
|
@@ -31169,7 +31169,7 @@ class BTCGetPublicKey extends BaseMethod {
|
|
|
31169
31169
|
const coinName = getCoinInfo(addressN, coin).name;
|
|
31170
31170
|
this.params.push({
|
|
31171
31171
|
address_n: addressN,
|
|
31172
|
-
show_display:
|
|
31172
|
+
show_display: showOnUKey,
|
|
31173
31173
|
coin_name: coinName,
|
|
31174
31174
|
script_type: scriptType || 'SPENDADDRESS',
|
|
31175
31175
|
});
|
|
@@ -31775,13 +31775,13 @@ class ConfluxGetAddress extends BaseMethod {
|
|
|
31775
31775
|
validateParams(batch, [
|
|
31776
31776
|
{ name: 'path', required: true },
|
|
31777
31777
|
{ name: 'chainId', type: 'number' },
|
|
31778
|
-
{ name: '
|
|
31778
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
31779
31779
|
]);
|
|
31780
|
-
const
|
|
31780
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
31781
31781
|
this.params.push({
|
|
31782
31782
|
address_n: addressN,
|
|
31783
31783
|
chain_id: (_b = batch.chainId) !== null && _b !== void 0 ? _b : 1029,
|
|
31784
|
-
show_display:
|
|
31784
|
+
show_display: showOnUKey,
|
|
31785
31785
|
});
|
|
31786
31786
|
});
|
|
31787
31787
|
}
|
|
@@ -32004,13 +32004,13 @@ class EvmGetAddress extends BaseMethod {
|
|
|
32004
32004
|
const addressN = validatePath(batch.path, 3);
|
|
32005
32005
|
validateParams(batch, [
|
|
32006
32006
|
{ name: 'path', required: true },
|
|
32007
|
-
{ name: '
|
|
32007
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
32008
32008
|
{ name: 'chainId', type: 'number' },
|
|
32009
32009
|
]);
|
|
32010
|
-
const
|
|
32010
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
32011
32011
|
this.params.push({
|
|
32012
32012
|
address_n: addressN,
|
|
32013
|
-
show_display:
|
|
32013
|
+
show_display: showOnUKey,
|
|
32014
32014
|
chain_id: batch.chainId,
|
|
32015
32015
|
});
|
|
32016
32016
|
});
|
|
@@ -32082,7 +32082,7 @@ class EVMGetPublicKey extends BaseMethod {
|
|
|
32082
32082
|
this.checkDeviceId = true;
|
|
32083
32083
|
this.allowDeviceMode = [...this.allowDeviceMode, UI_REQUEST.NOT_INITIALIZE];
|
|
32084
32084
|
this.hasBundle = !!((_a = this.payload) === null || _a === void 0 ? void 0 : _a.bundle);
|
|
32085
|
-
this.confirmShowOnUKey = (_c = (_b = this.payload) === null || _b === void 0 ? void 0 : _b.bundle) === null || _c === void 0 ? void 0 : _c.some((item) => !!item.
|
|
32085
|
+
this.confirmShowOnUKey = (_c = (_b = this.payload) === null || _b === void 0 ? void 0 : _b.bundle) === null || _c === void 0 ? void 0 : _c.some((item) => !!item.showOnUKey);
|
|
32086
32086
|
this.useBatch = !this.confirmShowOnUKey && this.hasBundle && this.payload.useBatch;
|
|
32087
32087
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
32088
32088
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
@@ -32092,13 +32092,13 @@ class EVMGetPublicKey extends BaseMethod {
|
|
|
32092
32092
|
const addressN = validatePath(batch.path, 3);
|
|
32093
32093
|
validateParams(batch, [
|
|
32094
32094
|
{ name: 'path', required: true },
|
|
32095
|
-
{ name: '
|
|
32095
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
32096
32096
|
{ name: 'chainId', type: 'number' },
|
|
32097
32097
|
]);
|
|
32098
|
-
const
|
|
32098
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
32099
32099
|
this.params.push({
|
|
32100
32100
|
address_n: addressN,
|
|
32101
|
-
show_display:
|
|
32101
|
+
show_display: showOnUKey,
|
|
32102
32102
|
chain_id: batch.chainId,
|
|
32103
32103
|
});
|
|
32104
32104
|
});
|
|
@@ -33082,12 +33082,12 @@ class StarcoinGetAddress extends BaseMethod {
|
|
|
33082
33082
|
const addressN = validatePath(batch.path, 3);
|
|
33083
33083
|
validateParams(batch, [
|
|
33084
33084
|
{ name: 'path', required: true },
|
|
33085
|
-
{ name: '
|
|
33085
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
33086
33086
|
]);
|
|
33087
|
-
const
|
|
33087
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
33088
33088
|
this.params.push({
|
|
33089
33089
|
address_n: addressN,
|
|
33090
|
-
show_display:
|
|
33090
|
+
show_display: showOnUKey,
|
|
33091
33091
|
});
|
|
33092
33092
|
});
|
|
33093
33093
|
}
|
|
@@ -33130,12 +33130,12 @@ class StarcoinGetPublicKey extends BaseMethod {
|
|
|
33130
33130
|
const addressN = validatePath(batch.path, 3);
|
|
33131
33131
|
validateParams(batch, [
|
|
33132
33132
|
{ name: 'path', required: true },
|
|
33133
|
-
{ name: '
|
|
33133
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
33134
33134
|
]);
|
|
33135
|
-
const
|
|
33135
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
33136
33136
|
this.params.push({
|
|
33137
33137
|
address_n: addressN,
|
|
33138
|
-
show_display:
|
|
33138
|
+
show_display: showOnUKey,
|
|
33139
33139
|
});
|
|
33140
33140
|
});
|
|
33141
33141
|
}
|
|
@@ -33245,13 +33245,13 @@ class NEMGetAddress extends BaseMethod {
|
|
|
33245
33245
|
validateParams(batch, [
|
|
33246
33246
|
{ name: 'path', required: true },
|
|
33247
33247
|
{ name: 'network', type: 'number' },
|
|
33248
|
-
{ name: '
|
|
33248
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
33249
33249
|
]);
|
|
33250
|
-
const
|
|
33250
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
33251
33251
|
this.params.push({
|
|
33252
33252
|
address_n: addressN,
|
|
33253
33253
|
network: batch.network || MAINNET,
|
|
33254
|
-
show_display:
|
|
33254
|
+
show_display: showOnUKey,
|
|
33255
33255
|
});
|
|
33256
33256
|
});
|
|
33257
33257
|
}
|
|
@@ -33484,12 +33484,12 @@ class SolGetAddress extends BaseMethod {
|
|
|
33484
33484
|
const addressN = validatePath(batch.path, 3);
|
|
33485
33485
|
validateParams(batch, [
|
|
33486
33486
|
{ name: 'path', required: true },
|
|
33487
|
-
{ name: '
|
|
33487
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
33488
33488
|
]);
|
|
33489
|
-
const
|
|
33489
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
33490
33490
|
this.params.push({
|
|
33491
33491
|
address_n: addressN,
|
|
33492
|
-
show_display:
|
|
33492
|
+
show_display: showOnUKey,
|
|
33493
33493
|
});
|
|
33494
33494
|
});
|
|
33495
33495
|
}
|
|
@@ -33701,12 +33701,12 @@ class StellarGetAddress extends BaseMethod {
|
|
|
33701
33701
|
const addressN = validatePath(batch.path, 3);
|
|
33702
33702
|
validateParams(batch, [
|
|
33703
33703
|
{ name: 'path', required: true },
|
|
33704
|
-
{ name: '
|
|
33704
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
33705
33705
|
]);
|
|
33706
|
-
const
|
|
33706
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
33707
33707
|
this.params.push({
|
|
33708
33708
|
address_n: addressN,
|
|
33709
|
-
show_display:
|
|
33709
|
+
show_display: showOnUKey,
|
|
33710
33710
|
});
|
|
33711
33711
|
});
|
|
33712
33712
|
}
|
|
@@ -33921,12 +33921,12 @@ class TronGetAddress extends BaseMethod {
|
|
|
33921
33921
|
const addressN = validatePath(batch.path, 3);
|
|
33922
33922
|
validateParams(batch, [
|
|
33923
33923
|
{ name: 'path', required: true },
|
|
33924
|
-
{ name: '
|
|
33924
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
33925
33925
|
]);
|
|
33926
|
-
const
|
|
33926
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
33927
33927
|
this.params.push({
|
|
33928
33928
|
address_n: addressN,
|
|
33929
|
-
show_display:
|
|
33929
|
+
show_display: showOnUKey,
|
|
33930
33930
|
});
|
|
33931
33931
|
});
|
|
33932
33932
|
}
|
|
@@ -34189,12 +34189,12 @@ class NearGetAddress extends BaseMethod {
|
|
|
34189
34189
|
const addressN = validatePath(batch.path, 3);
|
|
34190
34190
|
validateParams(batch, [
|
|
34191
34191
|
{ name: 'path', required: true },
|
|
34192
|
-
{ name: '
|
|
34192
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34193
34193
|
]);
|
|
34194
|
-
const
|
|
34194
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34195
34195
|
this.params.push({
|
|
34196
34196
|
address_n: addressN,
|
|
34197
|
-
show_display:
|
|
34197
|
+
show_display: showOnUKey,
|
|
34198
34198
|
});
|
|
34199
34199
|
});
|
|
34200
34200
|
}
|
|
@@ -34270,8 +34270,8 @@ class AptosGetAddress extends BaseMethod {
|
|
|
34270
34270
|
this.hasBundle = !!((_a = this.payload) === null || _a === void 0 ? void 0 : _a.bundle);
|
|
34271
34271
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
34272
34272
|
this.shouldConfirm =
|
|
34273
|
-
this.payload.
|
|
34274
|
-
((_b = this.payload.bundle) === null || _b === void 0 ? void 0 : _b.some((i) => !!i.
|
|
34273
|
+
this.payload.showOnUKey ||
|
|
34274
|
+
((_b = this.payload.bundle) === null || _b === void 0 ? void 0 : _b.some((i) => !!i.showOnUKey));
|
|
34275
34275
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
34276
34276
|
this.params = [];
|
|
34277
34277
|
payload.bundle.forEach((batch) => {
|
|
@@ -34279,12 +34279,12 @@ class AptosGetAddress extends BaseMethod {
|
|
|
34279
34279
|
const addressN = validatePath(batch.path, 3);
|
|
34280
34280
|
validateParams(batch, [
|
|
34281
34281
|
{ name: 'path', required: true },
|
|
34282
|
-
{ name: '
|
|
34282
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34283
34283
|
]);
|
|
34284
|
-
const
|
|
34284
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34285
34285
|
this.params.push({
|
|
34286
34286
|
address_n: addressN,
|
|
34287
|
-
show_display:
|
|
34287
|
+
show_display: showOnUKey,
|
|
34288
34288
|
});
|
|
34289
34289
|
});
|
|
34290
34290
|
}
|
|
@@ -34371,12 +34371,12 @@ class AptosGetPublicKey extends BaseMethod {
|
|
|
34371
34371
|
const addressN = validatePath(batch.path, 3);
|
|
34372
34372
|
validateParams(batch, [
|
|
34373
34373
|
{ name: 'path', required: true },
|
|
34374
|
-
{ name: '
|
|
34374
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34375
34375
|
]);
|
|
34376
|
-
const
|
|
34376
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34377
34377
|
this.params.push({
|
|
34378
34378
|
address_n: addressN,
|
|
34379
|
-
show_display:
|
|
34379
|
+
show_display: showOnUKey,
|
|
34380
34380
|
});
|
|
34381
34381
|
});
|
|
34382
34382
|
}
|
|
@@ -34567,12 +34567,12 @@ class AlgoGetAddress extends BaseMethod {
|
|
|
34567
34567
|
const addressN = validatePath(batch.path, 3);
|
|
34568
34568
|
validateParams(batch, [
|
|
34569
34569
|
{ name: 'path', required: true },
|
|
34570
|
-
{ name: '
|
|
34570
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34571
34571
|
]);
|
|
34572
|
-
const
|
|
34572
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34573
34573
|
this.params.push({
|
|
34574
34574
|
address_n: addressN,
|
|
34575
|
-
show_display:
|
|
34575
|
+
show_display: showOnUKey,
|
|
34576
34576
|
});
|
|
34577
34577
|
});
|
|
34578
34578
|
}
|
|
@@ -34662,14 +34662,14 @@ class CosmosGetAddress extends BaseMethod {
|
|
|
34662
34662
|
validateParams(batch, [
|
|
34663
34663
|
{ name: 'path', required: true },
|
|
34664
34664
|
{ name: 'hrp', type: 'string' },
|
|
34665
|
-
{ name: '
|
|
34665
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34666
34666
|
]);
|
|
34667
|
-
const
|
|
34667
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34668
34668
|
const { hrp } = batch;
|
|
34669
34669
|
this.params.push({
|
|
34670
34670
|
address_n: addressN,
|
|
34671
34671
|
hrp,
|
|
34672
|
-
show_display:
|
|
34672
|
+
show_display: showOnUKey,
|
|
34673
34673
|
});
|
|
34674
34674
|
});
|
|
34675
34675
|
}
|
|
@@ -34727,9 +34727,9 @@ class CosmosGetPublicKey extends BaseMethod {
|
|
|
34727
34727
|
validateParams(batch, [
|
|
34728
34728
|
{ name: 'path', required: true },
|
|
34729
34729
|
{ name: 'curve', type: 'string' },
|
|
34730
|
-
{ name: '
|
|
34730
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34731
34731
|
]);
|
|
34732
|
-
const
|
|
34732
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34733
34733
|
const curveName = (_b = batch.curve) !== null && _b !== void 0 ? _b : 'secp256k1';
|
|
34734
34734
|
if (curveName !== 'secp256k1') {
|
|
34735
34735
|
throw new Error('Curve name is not supported');
|
|
@@ -34737,7 +34737,7 @@ class CosmosGetPublicKey extends BaseMethod {
|
|
|
34737
34737
|
this.params.push({
|
|
34738
34738
|
address_n: addressN,
|
|
34739
34739
|
curve: curveName,
|
|
34740
|
-
show_display:
|
|
34740
|
+
show_display: showOnUKey,
|
|
34741
34741
|
});
|
|
34742
34742
|
});
|
|
34743
34743
|
}
|
|
@@ -34821,7 +34821,7 @@ class XrpGetAddress$1 extends BaseMethod {
|
|
|
34821
34821
|
this.hasBundle = !!((_a = this.payload) === null || _a === void 0 ? void 0 : _a.bundle);
|
|
34822
34822
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
34823
34823
|
this.shouldConfirm = this.hasBundle
|
|
34824
|
-
? this.payload.bundle.some((i) => !!i.
|
|
34824
|
+
? this.payload.bundle.some((i) => !!i.showOnUKey)
|
|
34825
34825
|
: false;
|
|
34826
34826
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
34827
34827
|
this.params = [];
|
|
@@ -34830,12 +34830,12 @@ class XrpGetAddress$1 extends BaseMethod {
|
|
|
34830
34830
|
const addressN = validatePath(batch.path, 3);
|
|
34831
34831
|
validateParams(batch, [
|
|
34832
34832
|
{ name: 'path', required: true },
|
|
34833
|
-
{ name: '
|
|
34833
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34834
34834
|
]);
|
|
34835
|
-
const
|
|
34835
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34836
34836
|
this.params.push({
|
|
34837
34837
|
address_n: addressN,
|
|
34838
|
-
show_display:
|
|
34838
|
+
show_display: showOnUKey,
|
|
34839
34839
|
});
|
|
34840
34840
|
});
|
|
34841
34841
|
}
|
|
@@ -34982,8 +34982,8 @@ class SuiGetAddress extends BaseMethod {
|
|
|
34982
34982
|
this.hasBundle = !!((_a = this.payload) === null || _a === void 0 ? void 0 : _a.bundle);
|
|
34983
34983
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
34984
34984
|
this.shouldConfirm =
|
|
34985
|
-
this.payload.
|
|
34986
|
-
((_b = this.payload.bundle) === null || _b === void 0 ? void 0 : _b.some((i) => !!i.
|
|
34985
|
+
this.payload.showOnUKey ||
|
|
34986
|
+
((_b = this.payload.bundle) === null || _b === void 0 ? void 0 : _b.some((i) => !!i.showOnUKey));
|
|
34987
34987
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
34988
34988
|
this.params = [];
|
|
34989
34989
|
payload.bundle.forEach((batch) => {
|
|
@@ -34991,12 +34991,12 @@ class SuiGetAddress extends BaseMethod {
|
|
|
34991
34991
|
const addressN = validatePath(batch.path, 3);
|
|
34992
34992
|
validateParams(batch, [
|
|
34993
34993
|
{ name: 'path', required: true },
|
|
34994
|
-
{ name: '
|
|
34994
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
34995
34995
|
]);
|
|
34996
|
-
const
|
|
34996
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
34997
34997
|
this.params.push({
|
|
34998
34998
|
address_n: addressN,
|
|
34999
|
-
show_display:
|
|
34999
|
+
show_display: showOnUKey,
|
|
35000
35000
|
});
|
|
35001
35001
|
});
|
|
35002
35002
|
}
|
|
@@ -35080,12 +35080,12 @@ class SuiGetPublicKey extends BaseMethod {
|
|
|
35080
35080
|
const addressN = validatePath(batch.path, 3);
|
|
35081
35081
|
validateParams(batch, [
|
|
35082
35082
|
{ name: 'path', required: true },
|
|
35083
|
-
{ name: '
|
|
35083
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
35084
35084
|
]);
|
|
35085
|
-
const
|
|
35085
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
35086
35086
|
this.params.push({
|
|
35087
35087
|
address_n: addressN,
|
|
35088
|
-
show_display:
|
|
35088
|
+
show_display: showOnUKey,
|
|
35089
35089
|
});
|
|
35090
35090
|
});
|
|
35091
35091
|
}
|
|
@@ -35327,7 +35327,7 @@ class CardanoGetAddress extends BaseMethod {
|
|
|
35327
35327
|
{ name: 'protocolMagic', type: 'number', required: true },
|
|
35328
35328
|
{ name: 'derivationType', type: 'number' },
|
|
35329
35329
|
{ name: 'address', type: 'string' },
|
|
35330
|
-
{ name: '
|
|
35330
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
35331
35331
|
]);
|
|
35332
35332
|
validateAddressParameters(batch.addressParameters);
|
|
35333
35333
|
return {
|
|
@@ -35338,7 +35338,7 @@ class CardanoGetAddress extends BaseMethod {
|
|
|
35338
35338
|
derivation_type: typeof batch.derivationType !== 'undefined'
|
|
35339
35339
|
? batch.derivationType
|
|
35340
35340
|
: hardwareTransport.Messages.CardanoDerivationType.ICARUS,
|
|
35341
|
-
show_display: typeof batch.
|
|
35341
|
+
show_display: typeof batch.showOnUKey === 'boolean' ? !!batch.showOnUKey : true,
|
|
35342
35342
|
};
|
|
35343
35343
|
});
|
|
35344
35344
|
}
|
|
@@ -35422,7 +35422,7 @@ class CardanoGetPublicKey extends BaseMethod {
|
|
|
35422
35422
|
validateParams(batch, [
|
|
35423
35423
|
{ name: 'path', required: true },
|
|
35424
35424
|
{ name: 'derivationType', type: 'number' },
|
|
35425
|
-
{ name: '
|
|
35425
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
35426
35426
|
]);
|
|
35427
35427
|
const path = validatePath(batch.path, 3);
|
|
35428
35428
|
return {
|
|
@@ -35430,7 +35430,7 @@ class CardanoGetPublicKey extends BaseMethod {
|
|
|
35430
35430
|
derivation_type: typeof batch.derivationType !== 'undefined'
|
|
35431
35431
|
? batch.derivationType
|
|
35432
35432
|
: hardwareTransport.Messages.CardanoDerivationType.ICARUS,
|
|
35433
|
-
show_display: typeof batch.
|
|
35433
|
+
show_display: typeof batch.showOnUKey === 'boolean' ? batch.showOnUKey : false,
|
|
35434
35434
|
};
|
|
35435
35435
|
});
|
|
35436
35436
|
}
|
|
@@ -36265,13 +36265,13 @@ class FilecoinGetAddress extends BaseMethod {
|
|
|
36265
36265
|
const addressN = validatePath(batch.path, 3);
|
|
36266
36266
|
validateParams(batch, [
|
|
36267
36267
|
{ name: 'path', required: true },
|
|
36268
|
-
{ name: '
|
|
36268
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
36269
36269
|
{ name: 'isTestnet', type: 'boolean' },
|
|
36270
36270
|
]);
|
|
36271
|
-
const
|
|
36271
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
36272
36272
|
this.params.push({
|
|
36273
36273
|
address_n: addressN,
|
|
36274
|
-
show_display:
|
|
36274
|
+
show_display: showOnUKey,
|
|
36275
36275
|
testnet: batch.isTestnet,
|
|
36276
36276
|
});
|
|
36277
36277
|
});
|
|
@@ -36420,15 +36420,15 @@ class PolkadotGetAddress extends BaseMethod {
|
|
|
36420
36420
|
{ name: 'path', required: true },
|
|
36421
36421
|
{ name: 'prefix', required: true },
|
|
36422
36422
|
{ name: 'network', required: true },
|
|
36423
|
-
{ name: '
|
|
36423
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
36424
36424
|
]);
|
|
36425
|
-
const
|
|
36425
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
36426
36426
|
const { prefix, network } = batch;
|
|
36427
36427
|
this.params.push({
|
|
36428
36428
|
address_n: addressN,
|
|
36429
36429
|
prefix,
|
|
36430
36430
|
network,
|
|
36431
|
-
show_display:
|
|
36431
|
+
show_display: showOnUKey,
|
|
36432
36432
|
});
|
|
36433
36433
|
});
|
|
36434
36434
|
}
|
|
@@ -36517,15 +36517,15 @@ class KaspaGetAddress extends BaseMethod {
|
|
|
36517
36517
|
const addressN = validatePath(batch.path, 3);
|
|
36518
36518
|
validateParams(batch, [
|
|
36519
36519
|
{ name: 'path', required: true },
|
|
36520
|
-
{ name: '
|
|
36520
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
36521
36521
|
{ name: 'prefix', type: 'string' },
|
|
36522
36522
|
{ name: 'scheme', type: 'string' },
|
|
36523
36523
|
{ name: 'useTweak', type: 'boolean' },
|
|
36524
36524
|
]);
|
|
36525
|
-
const
|
|
36525
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
36526
36526
|
this.params.push({
|
|
36527
36527
|
address_n: addressN,
|
|
36528
|
-
show_display:
|
|
36528
|
+
show_display: showOnUKey,
|
|
36529
36529
|
prefix: batch.prefix,
|
|
36530
36530
|
scheme: batch.scheme,
|
|
36531
36531
|
use_tweak: batch.useTweak,
|
|
@@ -37011,14 +37011,14 @@ class NexaGetAddress extends BaseMethod {
|
|
|
37011
37011
|
const addressN = validatePath(batch.path, 3);
|
|
37012
37012
|
validateParams(batch, [
|
|
37013
37013
|
{ name: 'path', required: true },
|
|
37014
|
-
{ name: '
|
|
37014
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37015
37015
|
{ name: 'prefix', type: 'string' },
|
|
37016
37016
|
{ name: 'scheme', type: 'string' },
|
|
37017
37017
|
]);
|
|
37018
|
-
const
|
|
37018
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
37019
37019
|
this.params.push({
|
|
37020
37020
|
address_n: addressN,
|
|
37021
|
-
show_display:
|
|
37021
|
+
show_display: showOnUKey,
|
|
37022
37022
|
prefix: batch.prefix,
|
|
37023
37023
|
scheme: batch.scheme,
|
|
37024
37024
|
});
|
|
@@ -37145,12 +37145,12 @@ class NostrGetPublicKey extends BaseMethod {
|
|
|
37145
37145
|
const addressN = validatePath(batch.path, 1);
|
|
37146
37146
|
validateParams(batch, [
|
|
37147
37147
|
{ name: 'path', required: true },
|
|
37148
|
-
{ name: '
|
|
37148
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37149
37149
|
]);
|
|
37150
|
-
const
|
|
37150
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
37151
37151
|
this.params.push({
|
|
37152
37152
|
address_n: addressN,
|
|
37153
|
-
show_display:
|
|
37153
|
+
show_display: showOnUKey,
|
|
37154
37154
|
});
|
|
37155
37155
|
});
|
|
37156
37156
|
}
|
|
@@ -37268,14 +37268,14 @@ class NostrEncryptMessage extends BaseMethod {
|
|
|
37268
37268
|
{ name: 'path', required: true },
|
|
37269
37269
|
{ name: 'pubkey', required: true, type: 'string' },
|
|
37270
37270
|
{ name: 'plaintext', required: true, type: 'string' },
|
|
37271
|
-
{ name: '
|
|
37271
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37272
37272
|
]);
|
|
37273
37273
|
const addressN = validatePath(payload.path, 5);
|
|
37274
37274
|
this.params = {
|
|
37275
37275
|
address_n: addressN,
|
|
37276
37276
|
pubkey: payload.pubkey,
|
|
37277
37277
|
msg: payload.plaintext,
|
|
37278
|
-
show_display: (_a = payload.
|
|
37278
|
+
show_display: (_a = payload.showOnUKey) !== null && _a !== void 0 ? _a : true,
|
|
37279
37279
|
};
|
|
37280
37280
|
}
|
|
37281
37281
|
getVersionRange() {
|
|
@@ -37315,14 +37315,14 @@ class NostrDecryptMessage extends BaseMethod {
|
|
|
37315
37315
|
{ name: 'path', required: true },
|
|
37316
37316
|
{ name: 'pubkey', required: true, type: 'string' },
|
|
37317
37317
|
{ name: 'ciphertext', required: true, type: 'string' },
|
|
37318
|
-
{ name: '
|
|
37318
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37319
37319
|
]);
|
|
37320
37320
|
const addressN = validatePath(payload.path, 5);
|
|
37321
37321
|
this.params = {
|
|
37322
37322
|
address_n: addressN,
|
|
37323
37323
|
pubkey: payload.pubkey,
|
|
37324
37324
|
msg: payload.ciphertext,
|
|
37325
|
-
show_display: (_a = payload.
|
|
37325
|
+
show_display: (_a = payload.showOnUKey) !== null && _a !== void 0 ? _a : true,
|
|
37326
37326
|
};
|
|
37327
37327
|
}
|
|
37328
37328
|
getVersionRange() {
|
|
@@ -37444,13 +37444,13 @@ class NervosGetAddress extends BaseMethod {
|
|
|
37444
37444
|
const addressN = validatePath(batch.path, 3);
|
|
37445
37445
|
validateParams(batch, [
|
|
37446
37446
|
{ name: 'path', required: true },
|
|
37447
|
-
{ name: '
|
|
37447
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37448
37448
|
{ name: 'network', type: 'string' },
|
|
37449
37449
|
]);
|
|
37450
|
-
const
|
|
37450
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
37451
37451
|
this.params.push({
|
|
37452
37452
|
address_n: addressN,
|
|
37453
|
-
show_display:
|
|
37453
|
+
show_display: showOnUKey,
|
|
37454
37454
|
network: batch.network,
|
|
37455
37455
|
});
|
|
37456
37456
|
});
|
|
@@ -37580,12 +37580,12 @@ class DnxGetAddress extends BaseMethod {
|
|
|
37580
37580
|
const addressN = validatePath(batch.path, 3);
|
|
37581
37581
|
validateParams(batch, [
|
|
37582
37582
|
{ name: 'path', required: true },
|
|
37583
|
-
{ name: '
|
|
37583
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37584
37584
|
]);
|
|
37585
|
-
const
|
|
37585
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
37586
37586
|
this.params.push({
|
|
37587
37587
|
address_n: addressN,
|
|
37588
|
-
show_display:
|
|
37588
|
+
show_display: showOnUKey,
|
|
37589
37589
|
});
|
|
37590
37590
|
});
|
|
37591
37591
|
}
|
|
@@ -37723,7 +37723,7 @@ class TonGetAddress extends BaseMethod {
|
|
|
37723
37723
|
this.hasBundle = !!((_a = this.payload) === null || _a === void 0 ? void 0 : _a.bundle);
|
|
37724
37724
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
37725
37725
|
this.shouldConfirm = this.hasBundle
|
|
37726
|
-
? this.payload.bundle.some((i) => !!i.
|
|
37726
|
+
? this.payload.bundle.some((i) => !!i.showOnUKey)
|
|
37727
37727
|
: false;
|
|
37728
37728
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
37729
37729
|
this.params = [];
|
|
@@ -37732,17 +37732,17 @@ class TonGetAddress extends BaseMethod {
|
|
|
37732
37732
|
const addressN = validatePath(batch.path, 3);
|
|
37733
37733
|
validateParams(batch, [
|
|
37734
37734
|
{ name: 'path', required: true },
|
|
37735
|
-
{ name: '
|
|
37735
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37736
37736
|
{ name: 'walletVersion' },
|
|
37737
37737
|
{ name: 'isBounceable', type: 'boolean' },
|
|
37738
37738
|
{ name: 'isTestnetOnly', type: 'boolean' },
|
|
37739
37739
|
{ name: 'workchain' },
|
|
37740
37740
|
{ name: 'walletId', type: 'number' },
|
|
37741
37741
|
]);
|
|
37742
|
-
const
|
|
37742
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
37743
37743
|
this.params.push({
|
|
37744
37744
|
address_n: addressN,
|
|
37745
|
-
show_display:
|
|
37745
|
+
show_display: showOnUKey,
|
|
37746
37746
|
wallet_version: batch.walletVersion,
|
|
37747
37747
|
is_bounceable: batch.isBounceable,
|
|
37748
37748
|
is_testnet_only: batch.isTestnetOnly,
|
|
@@ -38012,12 +38012,12 @@ class ScdoGetAddress extends BaseMethod {
|
|
|
38012
38012
|
const addressN = validatePath(batch.path, 3);
|
|
38013
38013
|
validateParams(batch, [
|
|
38014
38014
|
{ name: 'path', required: true },
|
|
38015
|
-
{ name: '
|
|
38015
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
38016
38016
|
]);
|
|
38017
|
-
const
|
|
38017
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
38018
38018
|
this.params.push({
|
|
38019
38019
|
address_n: addressN,
|
|
38020
|
-
show_display:
|
|
38020
|
+
show_display: showOnUKey,
|
|
38021
38021
|
});
|
|
38022
38022
|
});
|
|
38023
38023
|
}
|
|
@@ -38168,12 +38168,12 @@ class AlephiumGetAddress extends BaseMethod {
|
|
|
38168
38168
|
const addressN = validatePath(batch.path, 3);
|
|
38169
38169
|
validateParams(batch, [
|
|
38170
38170
|
{ name: 'path', required: true },
|
|
38171
|
-
{ name: '
|
|
38171
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
38172
38172
|
{ name: 'includePublicKey', type: 'boolean' },
|
|
38173
38173
|
{ name: 'group', type: 'number' },
|
|
38174
38174
|
]);
|
|
38175
|
-
const
|
|
38176
|
-
this.params.push(Object.assign({ address_n: addressN, show_display:
|
|
38175
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
38176
|
+
this.params.push(Object.assign({ address_n: addressN, show_display: showOnUKey, include_public_key: (_b = batch.includePublicKey) !== null && _b !== void 0 ? _b : false }, (batch.group !== null && { target_group: (_c = batch.group) !== null && _c !== void 0 ? _c : 0 })));
|
|
38177
38177
|
});
|
|
38178
38178
|
}
|
|
38179
38179
|
getVersionRange() {
|
|
@@ -38357,8 +38357,8 @@ class BenfenGetAddress extends BaseMethod {
|
|
|
38357
38357
|
this.hasBundle = !!((_a = this.payload) === null || _a === void 0 ? void 0 : _a.bundle);
|
|
38358
38358
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
38359
38359
|
this.shouldConfirm =
|
|
38360
|
-
this.payload.
|
|
38361
|
-
((_b = this.payload.bundle) === null || _b === void 0 ? void 0 : _b.some((i) => !!i.
|
|
38360
|
+
this.payload.showOnUKey ||
|
|
38361
|
+
((_b = this.payload.bundle) === null || _b === void 0 ? void 0 : _b.some((i) => !!i.showOnUKey));
|
|
38362
38362
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
38363
38363
|
this.params = [];
|
|
38364
38364
|
payload.bundle.forEach((batch) => {
|
|
@@ -38366,12 +38366,12 @@ class BenfenGetAddress extends BaseMethod {
|
|
|
38366
38366
|
const addressN = validatePath(batch.path, 3);
|
|
38367
38367
|
validateParams(batch, [
|
|
38368
38368
|
{ name: 'path', required: true },
|
|
38369
|
-
{ name: '
|
|
38369
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
38370
38370
|
]);
|
|
38371
|
-
const
|
|
38371
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
38372
38372
|
this.params.push({
|
|
38373
38373
|
address_n: addressN,
|
|
38374
|
-
show_display:
|
|
38374
|
+
show_display: showOnUKey,
|
|
38375
38375
|
});
|
|
38376
38376
|
});
|
|
38377
38377
|
}
|
|
@@ -38454,12 +38454,12 @@ class BenfenGetPublicKey extends BaseMethod {
|
|
|
38454
38454
|
const addressN = validatePath(batch.path, 3);
|
|
38455
38455
|
validateParams(batch, [
|
|
38456
38456
|
{ name: 'path', required: true },
|
|
38457
|
-
{ name: '
|
|
38457
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
38458
38458
|
]);
|
|
38459
|
-
const
|
|
38459
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
38460
38460
|
this.params.push({
|
|
38461
38461
|
address_n: addressN,
|
|
38462
|
-
show_display:
|
|
38462
|
+
show_display: showOnUKey,
|
|
38463
38463
|
});
|
|
38464
38464
|
});
|
|
38465
38465
|
}
|
|
@@ -38603,12 +38603,12 @@ class NeoGetAddress extends BaseMethod {
|
|
|
38603
38603
|
const addressN = validatePath(batch.path, 3);
|
|
38604
38604
|
validateParams(batch, [
|
|
38605
38605
|
{ name: 'path', required: true },
|
|
38606
|
-
{ name: '
|
|
38606
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
38607
38607
|
]);
|
|
38608
|
-
const
|
|
38608
|
+
const showOnUKey = (_a = batch.showOnUKey) !== null && _a !== void 0 ? _a : true;
|
|
38609
38609
|
this.params.push({
|
|
38610
38610
|
address_n: addressN,
|
|
38611
|
-
show_display:
|
|
38611
|
+
show_display: showOnUKey,
|
|
38612
38612
|
});
|
|
38613
38613
|
});
|
|
38614
38614
|
}
|