Skip to content

Commit

Permalink
Fix/benfen-message (#396)
Browse files Browse the repository at this point in the history
* fix: change benfen message

* feat: update version

* feat: 1.0.16
  • Loading branch information
wabicai authored Dec 18, 2024
1 parent c8d652c commit ae45659
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 54 deletions.
5 changes: 5 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
'*.{js,jsx,ts,tsx}': [
'eslint --fix',
],
};
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,5 @@
"tsconfig-paths": "^4.0.0",
"typescript": "5.1.6"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
]
},
"version": "0.0.0"
}
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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"version": "1.0.16",
"scripts": {
"start": "CONNECT_SRC=https://localhost:8087/ yarn expo start --dev-client",
"android": "yarn expo run:android",
Expand All @@ -19,10 +19,10 @@
"@noble/ed25519": "^2.1.0",
"@noble/hashes": "^1.3.3",
"@noble/secp256k1": "^1.7.1",
"@onekeyfe/hd-ble-sdk": "^1.0.16-alpha.2",
"@onekeyfe/hd-common-connect-sdk": "^1.0.16-alpha.2",
"@onekeyfe/hd-core": "^1.0.16-alpha.2",
"@onekeyfe/hd-web-sdk": "^1.0.16-alpha.2",
"@onekeyfe/hd-ble-sdk": "^1.0.16",
"@onekeyfe/hd-common-connect-sdk": "^1.0.16",
"@onekeyfe/hd-core": "^1.0.16",
"@onekeyfe/hd-web-sdk": "^1.0.16",
"@onekeyfe/react-native-ble-plx": "3.0.0",
"@polkadot/util-crypto": "13.1.1",
"@react-native-async-storage/async-storage": "1.21.0",
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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-transport": "^1.0.16-alpha.2",
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport": "^1.0.16",
"axios": "^0.27.2",
"bignumber.js": "^9.0.2",
"bytebuffer": "^5.0.1",
Expand Down
17 changes: 9 additions & 8 deletions packages/core/src/data/messages/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@
"BenfenAddress": {
"fields": {
"address": {
"rule": "required",
"type": "string",
"id": 1
}
Expand Down Expand Up @@ -11710,14 +11711,14 @@
"MessageType_AlephiumBytecodeAck": 12108,
"MessageType_AlephiumSignMessage": 12109,
"MessageType_AlephiumMessageSignature": 12110,
"MessageType_BenfenGetAddress": 13100,
"MessageType_BenfenAddress": 13101,
"MessageType_BenfenSignTx": 13102,
"MessageType_BenfenSignedTx": 13103,
"MessageType_BenfenSignMessage": 13104,
"MessageType_BenfenMessageSignature": 13105,
"MessageType_BenfenTxRequest": 13106,
"MessageType_BenfenTxAck": 13107,
"MessageType_BenfenGetAddress": 12201,
"MessageType_BenfenAddress": 12202,
"MessageType_BenfenSignTx": 12203,
"MessageType_BenfenSignedTx": 12204,
"MessageType_BenfenSignMessage": 12205,
"MessageType_BenfenMessageSignature": 12206,
"MessageType_BenfenTxRequest": 12207,
"MessageType_BenfenTxAck": 12208,
"MessageType_DeviceBackToBoot": 903,
"MessageType_DeviceInfoSettings": 10001,
"MessageType_GetDeviceInfo": 10002,
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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-shared": "^1.0.16-alpha.2",
"@onekeyfe/hd-transport-react-native": "^1.0.16-alpha.2"
"@onekeyfe/hd-core": "^1.0.16",
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport-react-native": "^1.0.16"
}
}
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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-shared": "^1.0.16-alpha.2",
"@onekeyfe/hd-transport-http": "^1.0.16-alpha.2",
"@onekeyfe/hd-transport-lowlevel": "^1.0.16-alpha.2",
"@onekeyfe/hd-transport-webusb": "^1.0.16-alpha.2"
"@onekeyfe/hd-core": "^1.0.16",
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport-http": "^1.0.16",
"@onekeyfe/hd-transport-lowlevel": "^1.0.16",
"@onekeyfe/hd-transport-webusb": "^1.0.16"
}
}
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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-transport": "^1.0.16-alpha.2",
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport": "^1.0.16",
"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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-transport": "^1.0.16-alpha.2"
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport": "^1.0.16"
}
}
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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-transport": "^1.0.16-alpha.2",
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport": "^1.0.16",
"@onekeyfe/react-native-ble-plx": "3.0.1",
"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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-transport": "^1.0.16-alpha.2"
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport": "^1.0.16"
},
"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.16-alpha.2",
"version": "1.0.16",
"description": "> TODO: description",
"author": "OneKey",
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
Expand Down
6 changes: 3 additions & 3 deletions packages/hd-transport/src/types/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ export type BenfenSignedTx = {
// BenfenTxRequest
export type BenfenTxRequest = {
data_length?: number;
public_key: string;
signature: string;
public_key?: string;
signature?: string;
};

// BenfenTxAck
Expand Down Expand Up @@ -3720,7 +3720,7 @@ export type SuiGetAddress = {

// SuiAddress
export type SuiAddress = {
address: string;
address?: string;
};

// SuiSignTx
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.16-alpha.2",
"version": "1.0.16",
"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.16-alpha.2",
"@onekeyfe/hd-shared": "^1.0.16-alpha.2",
"@onekeyfe/hd-transport-http": "^1.0.16-alpha.2",
"@onekeyfe/hd-transport-webusb": "^1.0.16-alpha.2"
"@onekeyfe/hd-core": "^1.0.16",
"@onekeyfe/hd-shared": "^1.0.16",
"@onekeyfe/hd-transport-http": "^1.0.16",
"@onekeyfe/hd-transport-webusb": "^1.0.16"
},
"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.16-alpha.2",
"version": "1.0.16",
"description": "Hardware SDK's shared tool library",
"keywords": [
"Hardware-SDK",
Expand Down

0 comments on commit ae45659

Please sign in to comment.