Skip to content

Commit

Permalink
feat: disable ada sing message (#347)
Browse files Browse the repository at this point in the history
* feat: disable cardanoSignMessage

* chore: release version 1.0.6
  • Loading branch information
ByteZhang1024 authored Jul 24, 2024
1 parent 73b91b8 commit 5999a1e
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 48 deletions.
2 changes: 1 addition & 1 deletion packages/connect-examples/electron-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "hardware-example",
"productName": "HardwareExample",
"executableName": "onekey-hardware-example",
"version": "1.0.5",
"version": "1.0.6",
"author": "OneKey",
"description": "End-to-end encrypted workspaces for teams",
"main": "dist/index.js",
Expand Down
10 changes: 5 additions & 5 deletions packages/connect-examples/expo-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expo-example",
"version": "1.0.5",
"version": "1.0.6",
"scripts": {
"start": "yarn expo start --dev-client",
"android": "yarn expo run:android",
Expand All @@ -15,10 +15,10 @@
"@noble/ed25519": "^2.1.0",
"@noble/hashes": "^1.3.3",
"@noble/secp256k1": "^1.7.1",
"@onekeyfe/hd-ble-sdk": "^1.0.5",
"@onekeyfe/hd-common-connect-sdk": "^1.0.5",
"@onekeyfe/hd-core": "^1.0.5",
"@onekeyfe/hd-web-sdk": "^1.0.5",
"@onekeyfe/hd-ble-sdk": "^1.0.6",
"@onekeyfe/hd-common-connect-sdk": "^1.0.6",
"@onekeyfe/hd-core": "^1.0.6",
"@onekeyfe/hd-web-sdk": "^1.0.6",
"@onekeyfe/react-native-ble-plx": "3.0.0",
"@react-native-async-storage/async-storage": "1.21.0",
"@react-native-picker/picker": "2.6.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const HeaderView = () => {
>
{intl.formatMessage({ id: 'tab__address_test' })}
</Button>
</Group.Item>{' '}
</Group.Item>
<Group.Item>
<Button
variant={route.name === Routes.SecurityCheck ? 'primary' : 'secondary'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function FirmwareUpdate({
<PanelView title={intl.formatMessage({ id: 'title__device_advanced_info' })}>
<XStack padding="$2" alignItems="center" gap="$8">
<Text color="$text" fontSize={18} fontWeight="bold">
{intl.formatMessage({ id: 'label__device_info_update_time' })}:{' '}
{intl.formatMessage({ id: 'label__device_info_update_time' })}:
{formatCurrentTime(Date.now())}
</Text>
<Button variant="primary" size="medium" onPress={onReconnectDevice}>
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-core",
"version": "1.0.5",
"version": "1.0.6",
"description": "> TODO: description",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
Expand All @@ -25,8 +25,8 @@
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
},
"dependencies": {
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport": "^1.0.5",
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport": "^1.0.6",
"axios": "^0.27.2",
"bignumber.js": "^9.0.2",
"bytebuffer": "^5.0.1",
Expand Down
5 changes: 1 addition & 4 deletions packages/core/src/api/cardano/CardanoSignMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessagePar

getVersionRange() {
return {
touch: {
min: '4.9.1',
},
pro: {
model_touch: {
min: '4.9.2',
},
model_mini: {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ export const createCoreApi = (
call({ ...params, connectId, deviceId, method: 'cardanoGetPublicKey' }),
cardanoSignTransaction: (connectId, deviceId, params) =>
call({ ...params, connectId, deviceId, method: 'cardanoSignTransaction' }),
cardanoSignMessage: (connectId, deviceId, params) =>
call({ ...params, connectId, deviceId, method: 'cardanoSignMessage' }),
// cardanoSignMessage: (connectId, deviceId, params) =>
// call({ ...params, connectId, deviceId, method: 'cardanoSignMessage' }),

filecoinGetAddress: (connectId, deviceId, params) =>
call({ ...params, connectId, deviceId, method: 'filecoinGetAddress' }),
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/types/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import { suiSignTransaction } from './suiSignTransaction';
import { cardanoGetAddress } from './cardanoGetAddress';
import { cardanoGetPublicKey } from './cardanoGetPublicKey';
import { cardanoSignTransaction } from './cardanoSignTransaction';
import { cardanoSignMessage } from './cardanoSignMessage';
// import { cardanoSignMessage } from './cardanoSignMessage';

import { filecoinGetAddress } from './filecoinGetAddress';
import { filecoinSignTransaction } from './filecoinSignTransaction';
Expand Down Expand Up @@ -291,7 +291,7 @@ export type CoreApi = {
cardanoGetAddress: typeof cardanoGetAddress;
cardanoGetPublicKey: typeof cardanoGetPublicKey;
cardanoSignTransaction: typeof cardanoSignTransaction;
cardanoSignMessage: typeof cardanoSignMessage;
// cardanoSignMessage: typeof cardanoSignMessage;

/**
* Filecoin function
Expand Down
8 changes: 4 additions & 4 deletions packages/hd-ble-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-ble-sdk",
"version": "1.0.5",
"version": "1.0.6",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
"license": "ISC",
Expand All @@ -20,8 +20,8 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@onekeyfe/hd-core": "^1.0.5",
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport-react-native": "^1.0.5"
"@onekeyfe/hd-core": "^1.0.6",
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport-react-native": "^1.0.6"
}
}
12 changes: 6 additions & 6 deletions packages/hd-common-connect-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-common-connect-sdk",
"version": "1.0.5",
"version": "1.0.6",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
"license": "ISC",
Expand All @@ -20,10 +20,10 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@onekeyfe/hd-core": "^1.0.5",
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport-http": "^1.0.5",
"@onekeyfe/hd-transport-lowlevel": "^1.0.5",
"@onekeyfe/hd-transport-webusb": "^1.0.5"
"@onekeyfe/hd-core": "^1.0.6",
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport-http": "^1.0.6",
"@onekeyfe/hd-transport-lowlevel": "^1.0.6",
"@onekeyfe/hd-transport-webusb": "^1.0.6"
}
}
6 changes: 3 additions & 3 deletions packages/hd-transport-http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-transport-http",
"version": "1.0.5",
"version": "1.0.6",
"description": "hardware http transport",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
Expand All @@ -24,8 +24,8 @@
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
},
"dependencies": {
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport": "^1.0.5",
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport": "^1.0.6",
"axios": "^0.27.2"
}
}
6 changes: 3 additions & 3 deletions packages/hd-transport-lowlevel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-transport-lowlevel",
"version": "1.0.5",
"version": "1.0.6",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -19,7 +19,7 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport": "^1.0.5"
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport": "^1.0.6"
}
}
6 changes: 3 additions & 3 deletions packages/hd-transport-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-transport-react-native",
"version": "1.0.5",
"version": "1.0.6",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -19,8 +19,8 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport": "^1.0.5",
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport": "^1.0.6",
"@onekeyfe/react-native-ble-plx": "3.0.0",
"react-native-ble-manager": "^8.1.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/hd-transport-webusb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-transport-webusb",
"version": "1.0.5",
"version": "1.0.6",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
"license": "MIT",
Expand All @@ -20,8 +20,8 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport": "^1.0.5"
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport": "^1.0.6"
},
"devDependencies": {
"@types/w3c-web-usb": "^1.0.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/hd-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-transport",
"version": "1.0.5",
"version": "1.0.6",
"description": "> TODO: description",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
Expand Down
10 changes: 5 additions & 5 deletions packages/hd-web-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-web-sdk",
"version": "1.0.5",
"version": "1.0.6",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
"license": "ISC",
Expand All @@ -21,10 +21,10 @@
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "^0.0.17",
"@onekeyfe/hd-core": "^1.0.5",
"@onekeyfe/hd-shared": "^1.0.5",
"@onekeyfe/hd-transport-http": "^1.0.5",
"@onekeyfe/hd-transport-webusb": "^1.0.5"
"@onekeyfe/hd-core": "^1.0.6",
"@onekeyfe/hd-shared": "^1.0.6",
"@onekeyfe/hd-transport-http": "^1.0.6",
"@onekeyfe/hd-transport-webusb": "^1.0.6"
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.17.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/hd-shared",
"version": "1.0.5",
"version": "1.0.6",
"description": "Hardware SDK's shared tool library",
"keywords": [
"Hardware-SDK",
Expand Down

0 comments on commit 5999a1e

Please sign in to comment.