From 827c8ed8198d3605713636370a708d0c96bf4d5c Mon Sep 17 00:00:00 2001 From: homura Date: Wed, 27 Nov 2024 14:34:22 +0900 Subject: [PATCH 1/5] refactor: unsupported syntax --- src/annotated.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/annotated.js b/src/annotated.js index 4e16ffc..ce01b42 100644 --- a/src/annotated.js +++ b/src/annotated.js @@ -87,13 +87,13 @@ function fromStringEnum(val) { // If the last bit is 0, it indicates using code hash to locate the contract code. // The first 7 bits prepresent the VM version to run the contract code. case "type": - return 0b0000000_1; + return 0b00000001; case "data": - return 0b0000000_0; + return 0b00000000; case "data1": - return 0b0000001_0; + return 0b00000010; case "data2": - return 0b0000010_0; + return 0b00000100; default: throw new Error("Not a valid byte representation: "+val); } From 057d973afd068017aab4896719a549e3df29d277 Mon Sep 17 00:00:00 2001 From: homura Date: Wed, 27 Nov 2024 14:34:54 +0900 Subject: [PATCH 2/5] chore: change org --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f11ae2e..c4ec875 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "hw-app-ckb", + "name": "@magickbase/hw-app-ckb", "version": "0.1.2", "description": "Ledger Hardware Wallet Nervos CKB API", "keywords": [ From 054d393cf5ab343654ab5936b051bdd0f4fbacd8 Mon Sep 17 00:00:00 2001 From: homura Date: Wed, 27 Nov 2024 14:50:23 +0900 Subject: [PATCH 3/5] chore: update org --- README.md | 6 +++--- examples/sampleapp.js | 2 +- package.json | 6 +++--- src/Ckb.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ebbad61..4cc1416 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [Github](https://github.com/LedgerHQ/ledgerjs/), [Ledger Devs Slack](https://ledger-dev.slack.com/) -## @obsidiansystems/hw-app-ckb +## @magickbase/hw-app-ckb Ledger Hardware Wallet CKB JavaScript bindings. @@ -15,7 +15,7 @@ for this package. Here is a sample app for Node: let Transport = require("@ledgerhq/hw-transport-node-hid").default; - let Ckb = require("@obsidiansystems/hw-app-ckb").default; + let Ckb = require("@magickbase/hw-app-ckb").default; const getWalletId = async () => { const transport = await Transport.create(); @@ -101,7 +101,7 @@ Nervos API #### Examples ```javascript -import Ckb from "@obsidiansystems/hw-app-ckb"; +import Ckb from "@magickbase/hw-app-ckb"; const ckb = new Ckb(transport); ``` diff --git a/examples/sampleapp.js b/examples/sampleapp.js index a697c53..633ba12 100644 --- a/examples/sampleapp.js +++ b/examples/sampleapp.js @@ -1,5 +1,5 @@ let Transport = require("@ledgerhq/hw-transport-node-speculos").default; -let Ckb = require("@obsidiansystems/hw-app-ckb").default; +let Ckb = require("@magickbase/hw-app-ckb").default; apduPort = 9999; tp=Transport.open( { apduPort } ); diff --git a/package.json b/package.json index c4ec875..6dd7409 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,12 @@ ], "repository": { "type": "git", - "url": "https://github.com/obsidiansystems/hw-app-ckb" + "url": "https://github.com/magickbase/hw-app-ckb" }, "bugs": { - "url": "https://github.com/obsidiansystems/hw-app-ckb/issues" + "url": "https://github.com/magickbase/hw-app-ckb/issues" }, - "homepage": "https://github.com/LedgerHQ/ledgerjs", + "homepage": "https://github.com/magickbase/hw-app-ckb", "publishConfig": { "access": "public" }, diff --git a/src/Ckb.js b/src/Ckb.js index d672634..4d13aec 100644 --- a/src/Ckb.js +++ b/src/Ckb.js @@ -14,7 +14,7 @@ const BECH32_LIMIT = 1023; * Nervos API * * @example - * import Ckb from "@obsidiansystems/hw-app-ckb"; + * import Ckb from "@magickbase/hw-app-ckb"; * const ckb = new Ckb(transport); */ export default class Ckb { From 8f99c2ea99971442e6f2bb18cd766eb916d07cd1 Mon Sep 17 00:00:00 2001 From: homura Date: Wed, 27 Nov 2024 15:04:03 +0900 Subject: [PATCH 4/5] chore: fork message --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4cc1416..49c6413 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ ## @magickbase/hw-app-ckb +> This repository is a fork of [obsidiansystems/hw-app-ckb](https://github.com/obsidiansystems/hw-app-ckb) + Ledger Hardware Wallet CKB JavaScript bindings. ## Maintainers and packagers From fae44ea3ec2e90067ac5c534d50568d445095588 Mon Sep 17 00:00:00 2001 From: homura Date: Wed, 27 Nov 2024 15:05:43 +0900 Subject: [PATCH 5/5] 0.2.0-alpha.0 --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6dd7409..b62128c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@magickbase/hw-app-ckb", - "version": "0.1.2", + "version": "0.2.0-alpha.0", "description": "Ledger Hardware Wallet Nervos CKB API", "keywords": [ "Ledger", @@ -21,7 +21,9 @@ "publishConfig": { "access": "public" }, - "files": ["lib"], + "files": [ + "lib" + ], "main": "lib/Ckb.js", "module": "lib-es/Ckb.js", "license": "Apache-2.0",