@ledgerhq/hw-app-eth 6.11.2 → 6.14.0
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 +15 -3
- package/lib/Eth.d.ts +12 -5
- package/lib/Eth.d.ts.map +1 -1
- package/lib/Eth.js +96 -43
- package/lib/Eth.js.map +1 -1
- package/lib/contracts.d.ts +2 -5
- package/lib/contracts.d.ts.map +1 -1
- package/lib/contracts.js +19 -26
- package/lib/contracts.js.map +1 -1
- package/lib/loadConfig.d.ts +7 -0
- package/lib/loadConfig.d.ts.map +1 -0
- package/lib/loadConfig.js +24 -0
- package/lib/loadConfig.js.map +1 -0
- package/lib/nfts.d.ts +11 -0
- package/lib/nfts.d.ts.map +1 -0
- package/lib/nfts.js +102 -0
- package/lib/nfts.js.map +1 -0
- package/lib-es/Eth.d.ts +12 -5
- package/lib-es/Eth.d.ts.map +1 -1
- package/lib-es/Eth.js +96 -43
- package/lib-es/Eth.js.map +1 -1
- package/lib-es/contracts.d.ts +2 -5
- package/lib-es/contracts.d.ts.map +1 -1
- package/lib-es/contracts.js +19 -26
- package/lib-es/contracts.js.map +1 -1
- package/lib-es/loadConfig.d.ts +7 -0
- package/lib-es/loadConfig.d.ts.map +1 -0
- package/lib-es/loadConfig.js +20 -0
- package/lib-es/loadConfig.js.map +1 -0
- package/lib-es/nfts.d.ts +11 -0
- package/lib-es/nfts.d.ts.map +1 -0
- package/lib-es/nfts.js +94 -0
- package/lib-es/nfts.js.map +1 -0
- package/package.json +3 -3
- package/src/Eth.ts +111 -37
- package/src/contracts.ts +18 -35
- package/src/loadConfig.ts +23 -0
- package/src/nfts.ts +64 -0
- package/tests/Eth.test.ts +5 -5
package/tests/Eth.test.ts
CHANGED
|
@@ -166,8 +166,8 @@ test("paraswap without plugins", async () => {
|
|
|
166
166
|
RecordStore.fromString(paraswapAPDUs.split("\n").slice(4).join("\n"))
|
|
167
167
|
);
|
|
168
168
|
const eth = new Eth(transport);
|
|
169
|
-
eth.
|
|
170
|
-
|
|
169
|
+
eth.setLoadConfig({
|
|
170
|
+
pluginBaseURL: null,
|
|
171
171
|
});
|
|
172
172
|
const result = await eth.signTransaction(
|
|
173
173
|
"44'/60'/0'/0/0",
|
|
@@ -186,8 +186,8 @@ test("paraswap without plugins CDN but with explicit plugin", async () => {
|
|
|
186
186
|
RecordStore.fromString(paraswapAPDUs)
|
|
187
187
|
);
|
|
188
188
|
const eth = new Eth(transport);
|
|
189
|
-
eth.
|
|
190
|
-
|
|
189
|
+
eth.setLoadConfig({
|
|
190
|
+
pluginBaseURL: null,
|
|
191
191
|
extraPlugins: paraswapJSON,
|
|
192
192
|
});
|
|
193
193
|
const result = await eth.signTransaction(
|
|
@@ -216,7 +216,7 @@ test("signTransactionLargeChainID", async () => {
|
|
|
216
216
|
expect(result).toEqual({
|
|
217
217
|
r: "3694583045a85ada8d15d5e01b373b00e86a405c9c52f7835691dcc522b7353b",
|
|
218
218
|
s: "30392e638a591c65ed307809825ca48346980f52d004ab7a5f93657f7e62a400",
|
|
219
|
-
v: "
|
|
219
|
+
v: "01542b",
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
222
|
|