@ukeyfe/hardware-core 1.1.15 → 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/data/config.d.ts.map +1 -1
- package/dist/index.d.ts +38 -38
- package/dist/index.js +141 -141
- 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/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
|
@@ -25,17 +25,17 @@ export default class KaspaGetAddress extends BaseMethod<HardwareKaspaGetAddress[
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
{ name: 'prefix', type: 'string' },
|
|
30
30
|
{ name: 'scheme', type: 'string' },
|
|
31
31
|
{ name: 'useTweak', type: 'boolean' },
|
|
32
32
|
]);
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
35
35
|
|
|
36
36
|
this.params.push({
|
|
37
37
|
address_n: addressN,
|
|
38
|
-
show_display:
|
|
38
|
+
show_display: showOnUKey,
|
|
39
39
|
prefix: batch.prefix,
|
|
40
40
|
scheme: batch.scheme,
|
|
41
41
|
use_tweak: batch.useTweak,
|
|
@@ -25,14 +25,14 @@ export default class NearGetAddress extends BaseMethod<HardwareNearGetAddress[]>
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -28,15 +28,15 @@ export default class NEMGetAddress extends BaseMethod<HardwareNEMGetAddress[]> {
|
|
|
28
28
|
validateParams(batch, [
|
|
29
29
|
{ name: 'path', required: true },
|
|
30
30
|
{ name: 'network', type: 'number' },
|
|
31
|
-
{ name: '
|
|
31
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
32
32
|
]);
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
35
35
|
|
|
36
36
|
this.params.push({
|
|
37
37
|
address_n: addressN,
|
|
38
38
|
network: batch.network || MAINNET,
|
|
39
|
-
show_display:
|
|
39
|
+
show_display: showOnUKey,
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -24,14 +24,14 @@ export default class NeoGetAddress extends BaseMethod<HardwareNeoGetAddress[]> {
|
|
|
24
24
|
|
|
25
25
|
validateParams(batch, [
|
|
26
26
|
{ name: 'path', required: true },
|
|
27
|
-
{ name: '
|
|
27
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
28
28
|
]);
|
|
29
29
|
|
|
30
|
-
const
|
|
30
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
31
31
|
|
|
32
32
|
this.params.push({
|
|
33
33
|
address_n: addressN,
|
|
34
|
-
show_display:
|
|
34
|
+
show_display: showOnUKey,
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
}
|
|
@@ -26,15 +26,15 @@ export default class NervosGetAddress extends BaseMethod<HardwareNervosGetAddres
|
|
|
26
26
|
|
|
27
27
|
validateParams(batch, [
|
|
28
28
|
{ name: 'path', required: true },
|
|
29
|
-
{ name: '
|
|
29
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
30
30
|
{ name: 'network', type: 'string' },
|
|
31
31
|
]);
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
34
34
|
|
|
35
35
|
this.params.push({
|
|
36
36
|
address_n: addressN,
|
|
37
|
-
show_display:
|
|
37
|
+
show_display: showOnUKey,
|
|
38
38
|
network: batch.network,
|
|
39
39
|
});
|
|
40
40
|
});
|
|
@@ -25,16 +25,16 @@ export default class NexaGetAddress extends BaseMethod<HardwareNexaGetAddress[]>
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
{ name: 'prefix', type: 'string' },
|
|
30
30
|
{ name: 'scheme', type: 'string' },
|
|
31
31
|
]);
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
34
34
|
|
|
35
35
|
this.params.push({
|
|
36
36
|
address_n: addressN,
|
|
37
|
-
show_display:
|
|
37
|
+
show_display: showOnUKey,
|
|
38
38
|
prefix: batch.prefix,
|
|
39
39
|
// @ts-expect-error
|
|
40
40
|
scheme: batch.scheme,
|
|
@@ -16,7 +16,7 @@ export default class NostrDecryptMessage extends BaseMethod<DecryptMessage> {
|
|
|
16
16
|
{ name: 'path', required: true },
|
|
17
17
|
{ name: 'pubkey', required: true, type: 'string' },
|
|
18
18
|
{ name: 'ciphertext', required: true, type: 'string' },
|
|
19
|
-
{ name: '
|
|
19
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
20
20
|
]);
|
|
21
21
|
const addressN = validatePath(payload.path, 5);
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ export default class NostrDecryptMessage extends BaseMethod<DecryptMessage> {
|
|
|
24
24
|
address_n: addressN,
|
|
25
25
|
pubkey: payload.pubkey,
|
|
26
26
|
msg: payload.ciphertext,
|
|
27
|
-
show_display: payload.
|
|
27
|
+
show_display: payload.showOnUKey ?? true,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -16,7 +16,7 @@ export default class NostrEncryptMessage extends BaseMethod<EncryptMessage> {
|
|
|
16
16
|
{ name: 'path', required: true },
|
|
17
17
|
{ name: 'pubkey', required: true, type: 'string' },
|
|
18
18
|
{ name: 'plaintext', required: true, type: 'string' },
|
|
19
|
-
{ name: '
|
|
19
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
20
20
|
]);
|
|
21
21
|
const addressN = validatePath(payload.path, 5);
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ export default class NostrEncryptMessage extends BaseMethod<EncryptMessage> {
|
|
|
24
24
|
address_n: addressN,
|
|
25
25
|
pubkey: payload.pubkey,
|
|
26
26
|
msg: payload.plaintext,
|
|
27
|
-
show_display: payload.
|
|
27
|
+
show_display: payload.showOnUKey ?? true,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -25,14 +25,14 @@ export default class NostrGetPublicKey extends BaseMethod<GetPublicKey[]> {
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -28,17 +28,17 @@ export default class PolkadotGetAddress extends BaseMethod<HardwarePolkadotGetAd
|
|
|
28
28
|
{ name: 'path', required: true },
|
|
29
29
|
{ name: 'prefix', required: true },
|
|
30
30
|
{ name: 'network', required: true },
|
|
31
|
-
{ name: '
|
|
31
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
32
32
|
]);
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
35
35
|
const { prefix, network } = batch;
|
|
36
36
|
|
|
37
37
|
this.params.push({
|
|
38
38
|
address_n: addressN,
|
|
39
39
|
prefix,
|
|
40
40
|
network,
|
|
41
|
-
show_display:
|
|
41
|
+
show_display: showOnUKey,
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -25,14 +25,14 @@ export default class ScdoGetAddress extends BaseMethod<HardwareScdoGetAddress[]>
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -25,14 +25,14 @@ export default class SolGetAddress extends BaseMethod<SolanaGetAddress[]> {
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -25,14 +25,14 @@ export default class StarcoinGetAddress extends BaseMethod<HardwareStarcoinGetAd
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -28,14 +28,14 @@ export default class StarcoinGetPublicKey extends BaseMethod<HardwareStarcoinGet
|
|
|
28
28
|
|
|
29
29
|
validateParams(batch, [
|
|
30
30
|
{ name: 'path', required: true },
|
|
31
|
-
{ name: '
|
|
31
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
32
32
|
]);
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
35
35
|
|
|
36
36
|
this.params.push({
|
|
37
37
|
address_n: addressN,
|
|
38
|
-
show_display:
|
|
38
|
+
show_display: showOnUKey,
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -25,14 +25,14 @@ export default class StellarGetAddress extends BaseMethod<HardwareStellarGetAddr
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -22,8 +22,8 @@ export default class SuiGetAddress extends BaseMethod<HardwareSuiGetAddress[]> {
|
|
|
22
22
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
23
23
|
|
|
24
24
|
this.shouldConfirm =
|
|
25
|
-
this.payload.
|
|
26
|
-
this.payload.bundle?.some((i: SuiGetAddressParams) => !!i.
|
|
25
|
+
this.payload.showOnUKey ||
|
|
26
|
+
this.payload.bundle?.some((i: SuiGetAddressParams) => !!i.showOnUKey);
|
|
27
27
|
|
|
28
28
|
// check payload
|
|
29
29
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
@@ -35,14 +35,14 @@ export default class SuiGetAddress extends BaseMethod<HardwareSuiGetAddress[]> {
|
|
|
35
35
|
|
|
36
36
|
validateParams(batch, [
|
|
37
37
|
{ name: 'path', required: true },
|
|
38
|
-
{ name: '
|
|
38
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
39
39
|
]);
|
|
40
40
|
|
|
41
|
-
const
|
|
41
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
42
42
|
|
|
43
43
|
this.params.push({
|
|
44
44
|
address_n: addressN,
|
|
45
|
-
show_display:
|
|
45
|
+
show_display: showOnUKey,
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
}
|
|
@@ -25,14 +25,14 @@ export default class SuiGetPublicKey extends BaseMethod<any> {
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -20,7 +20,7 @@ export default class TonGetAddress extends BaseMethod<HardwareTonGetAddress[]> {
|
|
|
20
20
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
21
21
|
|
|
22
22
|
this.shouldConfirm = this.hasBundle
|
|
23
|
-
? this.payload.bundle.some((i: any) => !!i.
|
|
23
|
+
? this.payload.bundle.some((i: any) => !!i.showOnUKey)
|
|
24
24
|
: false;
|
|
25
25
|
|
|
26
26
|
// check payload
|
|
@@ -33,7 +33,7 @@ export default class TonGetAddress extends BaseMethod<HardwareTonGetAddress[]> {
|
|
|
33
33
|
|
|
34
34
|
validateParams(batch, [
|
|
35
35
|
{ name: 'path', required: true },
|
|
36
|
-
{ name: '
|
|
36
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
37
37
|
{ name: 'walletVersion' },
|
|
38
38
|
{ name: 'isBounceable', type: 'boolean' },
|
|
39
39
|
{ name: 'isTestnetOnly', type: 'boolean' },
|
|
@@ -41,11 +41,11 @@ export default class TonGetAddress extends BaseMethod<HardwareTonGetAddress[]> {
|
|
|
41
41
|
{ name: 'walletId', type: 'number' },
|
|
42
42
|
]);
|
|
43
43
|
|
|
44
|
-
const
|
|
44
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
45
45
|
|
|
46
46
|
this.params.push({
|
|
47
47
|
address_n: addressN,
|
|
48
|
-
show_display:
|
|
48
|
+
show_display: showOnUKey,
|
|
49
49
|
wallet_version: batch.walletVersion,
|
|
50
50
|
is_bounceable: batch.isBounceable,
|
|
51
51
|
is_testnet_only: batch.isTestnetOnly,
|
|
@@ -25,14 +25,14 @@ export default class TronGetAddress extends BaseMethod<HardwareTronGetAddress[]>
|
|
|
25
25
|
|
|
26
26
|
validateParams(batch, [
|
|
27
27
|
{ name: 'path', required: true },
|
|
28
|
-
{ name: '
|
|
28
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
29
29
|
]);
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
32
32
|
|
|
33
33
|
this.params.push({
|
|
34
34
|
address_n: addressN,
|
|
35
|
-
show_display:
|
|
35
|
+
show_display: showOnUKey,
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -25,7 +25,7 @@ export default class XrpGetAddress extends BaseMethod<
|
|
|
25
25
|
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
26
26
|
|
|
27
27
|
this.shouldConfirm = this.hasBundle
|
|
28
|
-
? this.payload.bundle.some((i: any) => !!i.
|
|
28
|
+
? this.payload.bundle.some((i: any) => !!i.showOnUKey)
|
|
29
29
|
: false;
|
|
30
30
|
|
|
31
31
|
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
@@ -36,14 +36,14 @@ export default class XrpGetAddress extends BaseMethod<
|
|
|
36
36
|
|
|
37
37
|
validateParams(batch, [
|
|
38
38
|
{ name: 'path', required: true },
|
|
39
|
-
{ name: '
|
|
39
|
+
{ name: 'showOnUKey', type: 'boolean' },
|
|
40
40
|
]);
|
|
41
41
|
|
|
42
|
-
const
|
|
42
|
+
const showOnUKey = batch.showOnUKey ?? true;
|
|
43
43
|
|
|
44
44
|
this.params.push({
|
|
45
45
|
address_n: addressN,
|
|
46
|
-
show_display:
|
|
46
|
+
show_display: showOnUKey,
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
}
|
package/src/data/config.ts
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
const pkg = require('../package.json');
|
|
3
3
|
|
|
4
4
|
export const getSDKVersion = () => pkg.version;
|
|
5
|
-
export const DEFAULT_DOMAIN = `https://jssdk.
|
|
5
|
+
export const DEFAULT_DOMAIN = `https://jssdk.sanying.site/${getSDKVersion()}/`;
|
|
6
6
|
|
|
7
7
|
export const whitelist = [
|
|
8
8
|
// Electron local file
|
|
9
9
|
{ origin: 'file://' },
|
|
10
10
|
// UKey App
|
|
11
11
|
{ origin: '1key.so' },
|
|
12
|
-
{ origin: '
|
|
13
|
-
{ origin: '
|
|
14
|
-
{ origin: '
|
|
12
|
+
{ origin: 'sanying.site' },
|
|
13
|
+
{ origin: 'sanying.com' },
|
|
14
|
+
{ origin: 'sanyingtest.com' },
|
|
15
15
|
{ origin: 'localhost' },
|
|
16
16
|
];
|
|
17
17
|
|
|
@@ -285,8 +285,8 @@ export default class DataManager {
|
|
|
285
285
|
}
|
|
286
286
|
try {
|
|
287
287
|
const url = settings.preRelease
|
|
288
|
-
? 'https://data.
|
|
289
|
-
: 'https://data.
|
|
288
|
+
? 'https://data.sanying.site/pre-config.json'
|
|
289
|
+
: 'https://data.sanying.site/config.json';
|
|
290
290
|
|
|
291
291
|
const { data } = await axios.get<RemoteConfigResponse>(
|
|
292
292
|
`${url}?noCache=${getTimeStamp()}`,
|