@dfinity/hardware-wallet-cli 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  A CLI to interact with the Internet Computer App on Ledger Nano S/X devices.
4
4
 
5
- ## Installation
5
+ ## Quick Start
6
6
 
7
- 1. Install `npm >= 6.14`.
8
- 2. Install the CLI: `npm install -g @dfinity/hardware-wallet-cli`
7
+ * Install `npm >= 6.14`.
8
+ * Install the CLI: `npm install -g @dfinity/hardware-wallet-cli`
9
+ * Run the CLI: `ic-hardware-wallet --help`
9
10
 
10
11
  ## USB connection issues with Ledger Live
11
12
 
package/build/index.js CHANGED
@@ -145,7 +145,7 @@ async function disburseNeuron(neuronId, to, amount) {
145
145
  const identity = await identity_1.LedgerIdentity.create();
146
146
  const governance = nns_1.GovernanceCanister.create({
147
147
  agent: await getAgent(identity),
148
- hardwareWallet: false,
148
+ hardwareWallet: true,
149
149
  });
150
150
  await governance.disburse({
151
151
  neuronId: BigInt(neuronId),
@@ -158,8 +158,6 @@ class LedgerIdentity extends agent_1.SignIdentity {
158
158
  return this._publicKey;
159
159
  }
160
160
  async sign(blob) {
161
- console.log("About to sign");
162
- console.log(Buffer.from(blob).toString("hex"));
163
161
  return await this._executeWithApp(async (app) => {
164
162
  const resp = await app.sign(this.derivePath, Buffer.from(blob), this._neuronStakeFlag ? 1 : 0);
165
163
  // Remove the "neuron stake" flag, since we already signed the transaction.
package/index.ts CHANGED
@@ -184,7 +184,7 @@ async function disburseNeuron(neuronId: bigint, to?: string, amount?: bigint) {
184
184
  const identity = await LedgerIdentity.create();
185
185
  const governance = GovernanceCanister.create({
186
186
  agent: await getAgent(identity),
187
- hardwareWallet: false,
187
+ hardwareWallet: true,
188
188
  });
189
189
 
190
190
  await governance.disburse({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfinity/hardware-wallet-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A CLI to interact with the Internet Computer App on Ledger Nano S/X devices.",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -165,8 +165,6 @@ export class LedgerIdentity extends SignIdentity {
165
165
  }
166
166
 
167
167
  public async sign(blob: ArrayBuffer): Promise<Signature> {
168
- console.log("About to sign");
169
- console.log(Buffer.from(blob).toString("hex"));
170
168
  return await this._executeWithApp(async (app: LedgerApp) => {
171
169
  const resp: ResponseSign = await app.sign(
172
170
  this.derivePath,