@injectivelabs/wallet-ledger 1.16.11-alpha.0 → 1.16.11

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.
@@ -78,12 +78,9 @@ class LedgerEip1193Provider {
78
78
  async signTransaction(txData) {
79
79
  const ledgerInstance = await this.ledger.getInstance();
80
80
  const serializedTransaction = (0, viem_1.serializeTransaction)(txData);
81
- console.log('serializedTransaction', serializedTransaction);
82
81
  const ledgerService = await (0, lib_js_1.loadLedgerServiceType)();
83
82
  const resolution = await ledgerService.resolveTransaction(serializedTransaction.substring(2), {}, {});
84
- console.log('resolution', resolution);
85
83
  const signature = await ledgerInstance.signTransaction(this.derivationPath, serializedTransaction.substring(2), resolution);
86
- console.log(signature);
87
84
  const signedTransaction = (0, viem_1.serializeTransaction)(txData, {
88
85
  r: signature.r,
89
86
  s: signature.s,
@@ -104,7 +101,6 @@ class LedgerEip1193Provider {
104
101
  });
105
102
  }
106
103
  async request(args) {
107
- console.log(args);
108
104
  if (args.method === 'eth_requestAccounts') {
109
105
  const address = await this.getAddress();
110
106
  return [address];
@@ -142,7 +138,6 @@ class LedgerEip1193Provider {
142
138
  account: (await this.getAddress()),
143
139
  };
144
140
  const estimate = await client.estimateGas(data);
145
- console.log({ estimate });
146
141
  return `0x${estimate.toString(16)}`;
147
142
  }
148
143
  if (args.method === 'eth_getTransactionCount') {
@@ -169,13 +164,10 @@ class LedgerEip1193Provider {
169
164
  const preparedTransaction = await walletClient.prepareTransactionRequest({
170
165
  ...args.params[0],
171
166
  });
172
- console.log('preparedTransaction', preparedTransaction);
173
167
  const signedTransaction = await this.signTransaction(preparedTransaction);
174
- console.log('signedTransaction', signedTransaction);
175
168
  const tx = await walletClient.sendRawTransaction({
176
169
  serializedTransaction: signedTransaction,
177
170
  });
178
- console.log('tx', tx);
179
171
  return tx;
180
172
  }
181
173
  const client = await this.getClient();
@@ -42,12 +42,9 @@ export class LedgerEip1193Provider {
42
42
  async signTransaction(txData) {
43
43
  const ledgerInstance = await this.ledger.getInstance();
44
44
  const serializedTransaction = serializeTransaction(txData);
45
- console.log('serializedTransaction', serializedTransaction);
46
45
  const ledgerService = await loadLedgerServiceType();
47
46
  const resolution = await ledgerService.resolveTransaction(serializedTransaction.substring(2), {}, {});
48
- console.log('resolution', resolution);
49
47
  const signature = await ledgerInstance.signTransaction(this.derivationPath, serializedTransaction.substring(2), resolution);
50
- console.log(signature);
51
48
  const signedTransaction = serializeTransaction(txData, {
52
49
  r: signature.r,
53
50
  s: signature.s,
@@ -68,7 +65,6 @@ export class LedgerEip1193Provider {
68
65
  });
69
66
  }
70
67
  async request(args) {
71
- console.log(args);
72
68
  if (args.method === 'eth_requestAccounts') {
73
69
  const address = await this.getAddress();
74
70
  return [address];
@@ -106,7 +102,6 @@ export class LedgerEip1193Provider {
106
102
  account: (await this.getAddress()),
107
103
  };
108
104
  const estimate = await client.estimateGas(data);
109
- console.log({ estimate });
110
105
  return `0x${estimate.toString(16)}`;
111
106
  }
112
107
  if (args.method === 'eth_getTransactionCount') {
@@ -133,13 +128,10 @@ export class LedgerEip1193Provider {
133
128
  const preparedTransaction = await walletClient.prepareTransactionRequest({
134
129
  ...args.params[0],
135
130
  });
136
- console.log('preparedTransaction', preparedTransaction);
137
131
  const signedTransaction = await this.signTransaction(preparedTransaction);
138
- console.log('signedTransaction', signedTransaction);
139
132
  const tx = await walletClient.sendRawTransaction({
140
133
  serializedTransaction: signedTransaction,
141
134
  });
142
- console.log('tx', tx);
143
135
  return tx;
144
136
  }
145
137
  const client = await this.getClient();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-ledger",
3
3
  "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.",
4
- "version": "1.16.11-alpha.0",
4
+ "version": "1.16.11",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -63,10 +63,10 @@
63
63
  "@bangjelkoski/ledgerhq-hw-transport-webusb": "6.29.4-beta.0",
64
64
  "@ethereumjs/common": "^3.1.1",
65
65
  "@ethereumjs/tx": "^4.1.1",
66
- "@injectivelabs/exceptions": "1.16.11-alpha.0",
67
- "@injectivelabs/sdk-ts": "1.16.11-alpha.0",
68
- "@injectivelabs/ts-types": "1.16.11-alpha.0",
69
- "@injectivelabs/wallet-base": "1.16.11-alpha.0",
66
+ "@injectivelabs/exceptions": "1.16.11",
67
+ "@injectivelabs/sdk-ts": "1.16.11",
68
+ "@injectivelabs/ts-types": "1.16.11",
69
+ "@injectivelabs/wallet-base": "1.16.11",
70
70
  "alchemy-sdk": "^3.4.7",
71
71
  "eth-sig-util": "^3.0.1",
72
72
  "ethereumjs-util": "^7.1.0",
@@ -80,5 +80,5 @@
80
80
  "@types/ledgerhq__hw-transport-webusb": "^4.70.1",
81
81
  "shx": "^0.3.4"
82
82
  },
83
- "gitHead": "640edf06e57aa38d3176e38fa03dddfc72e901cf"
83
+ "gitHead": "2fc52f1db9da90837e15543c9854367f33c5f5d1"
84
84
  }