Skip to content

Commit b3d9eae

Browse files
authored
Merge pull request #84 from Zondax/use-new-package
Use new package @zondax/ledger-icp
2 parents ca64e22 + c5f4464 commit b3d9eae

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

tests_zemu/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"types": "./dist/index.d.ts",
88
"repository": {
99
"type": "git",
10-
"url": "git+https://github.com/Zondax/ledger-dfinity"
10+
"url": "git+https://github.com/Zondax/ledger-icp"
1111
},
1212
"keywords": [
1313
"Zondax",
@@ -17,7 +17,7 @@
1717
"test": "jest --detectOpenHandles -t 'Standard'"
1818
},
1919
"dependencies": {
20-
"@zondax/ledger-dfinity": "link:../js",
20+
"@zondax/ledger-icp": "link:../js",
2121
"@zondax/zemu": "^0.14.5"
2222
},
2323
"devDependencies": {

tests_zemu/tests/standard.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
******************************************************************************* */
1616

1717
import Zemu, { DEFAULT_START_OPTIONS, DeviceModel } from '@zondax/zemu'
18-
import DfinityApp from '@zondax/ledger-dfinity'
18+
import InternetComputerApp from '@zondax/ledger-icp'
1919
import * as secp256k1 from 'secp256k1'
2020

2121
const sha256 = require('js-sha256')
@@ -64,7 +64,7 @@ describe('Standard', function () {
6464
const sim = new Zemu(m.path)
6565
try {
6666
await sim.start({ ...defaultOptions, model: m.name })
67-
const app = new DfinityApp(sim.getTransport())
67+
const app = new InternetComputerApp(sim.getTransport())
6868
const resp = await app.getVersion()
6969

7070
console.log(resp)
@@ -84,7 +84,7 @@ describe('Standard', function () {
8484
const sim = new Zemu(m.path)
8585
try {
8686
await sim.start({ ...defaultOptions, model: m.name })
87-
const app = new DfinityApp(sim.getTransport())
87+
const app = new InternetComputerApp(sim.getTransport())
8888

8989
const resp = await app.getAddressAndPubKey("m/44'/223'/0'/0/0")
9090

@@ -112,7 +112,7 @@ describe('Standard', function () {
112112
const sim = new Zemu(m.path)
113113
try {
114114
await sim.start({ ...defaultOptions, model: m.name })
115-
const app = new DfinityApp(sim.getTransport())
115+
const app = new InternetComputerApp(sim.getTransport())
116116

117117
const respRequest = app.showAddressAndPubKey("m/44'/223'/0'/0/0")
118118

@@ -146,7 +146,7 @@ describe('Standard', function () {
146146
const sim = new Zemu(m.path)
147147
try {
148148
await sim.start({ ...defaultOptions, model: m.name })
149-
const app = new DfinityApp(sim.getTransport())
149+
const app = new InternetComputerApp(sim.getTransport())
150150

151151
const respAddr = await app.getAddressAndPubKey("m/44'/223'/0'/0/0")
152152
console.log(respAddr)
@@ -201,7 +201,7 @@ describe('Standard', function () {
201201
const sim = new Zemu(m.path)
202202
try {
203203
await sim.start({ ...defaultOptions, model: m.name })
204-
const app = new DfinityApp(sim.getTransport())
204+
const app = new InternetComputerApp(sim.getTransport())
205205

206206
const respAddr = await app.getAddressAndPubKey("m/44'/223'/0'/0/0")
207207
console.log(respAddr)
@@ -255,7 +255,7 @@ describe('Standard', function () {
255255
const sim = new Zemu(m.path)
256256
try {
257257
await sim.start({ ...defaultOptions, model: m.name })
258-
const app = new DfinityApp(sim.getTransport())
258+
const app = new InternetComputerApp(sim.getTransport())
259259

260260
// Enable expert mode
261261
console.log('Set expert mode')
@@ -314,7 +314,7 @@ describe('Standard', function () {
314314
const sim = new Zemu(m.path)
315315
try {
316316
await sim.start({ ...defaultOptions, model: m.name })
317-
const app = new DfinityApp(sim.getTransport())
317+
const app = new InternetComputerApp(sim.getTransport())
318318

319319
// Enable expert mode
320320
console.log('Set expert mode')

tests_zemu/yarn.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,10 +1001,9 @@
10011001
"@typescript-eslint/types" "4.25.0"
10021002
eslint-visitor-keys "^2.0.0"
10031003

1004-
"@zondax/ledger-dfinity@link:../js":
1005-
version "0.1.0"
1006-
dependencies:
1007-
"@ledgerhq/hw-transport" "^5.39.1"
1004+
"@zondax/ledger-icp@link:../js":
1005+
version "0.0.0"
1006+
uid ""
10081007

10091008
"@zondax/zemu@^0.14.5":
10101009
version "0.14.5"

0 commit comments

Comments
 (0)