Skip to content

Commit

Permalink
updates zemu and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed Jan 16, 2024
1 parent ec93199 commit 8277398
Show file tree
Hide file tree
Showing 302 changed files with 363 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,29 @@
},
"dependencies": {
"@zondax/ledger-flare": "../js",
"@zondax/zemu": "^0.46.0"
"@zondax/zemu": "^0.46.1"
},
"devDependencies": {
"@ethereumjs/common": "^2.4.0",
"@ethereumjs/tx": "^3.2.0",
"@types/elliptic": "^6.4.14",
"@types/jest": "^29.5.11",
"@types/ledgerhq__hw-transport": "^4.21.4",
"@types/secp256k1": "^4.0.6",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"blakejs": "^1.1.1",
"crypto-js": "4.2.0",
"ed25519-supercop": "^2.0.1",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-prettier": "^5.1.3",
"jest": "29.7.0",
"jssha": "^3.2.0",
"js-sha256": "0.9.0",
"prettier": "^3.1.1",
"jssha": "^3.2.0",
"prettier": "^3.2.2",
"secp256k1": "^5.0.0",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.2",
Expand Down
Binary file added tests_zemu/snapshots/s-eth-asset_deposit/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_deposit/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_deposit/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_deposit/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_deposit/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_transfer/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_transfer/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_transfer/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_transfer/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-asset_transfer/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-basic_transfer/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-basic_transfer/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-basic_transfer/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-basic_transfer/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-basic_transfer/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00000.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00001.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00002.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00003.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00004.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00005.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00006.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00007.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00008.png
Binary file added tests_zemu/snapshots/s-eth-erc20_transfer/00009.png
Binary file added tests_zemu/snapshots/s-eth-legacy_transfer/00000.png
Binary file added tests_zemu/snapshots/s-eth-legacy_transfer/00001.png
Binary file added tests_zemu/snapshots/s-eth-legacy_transfer/00002.png
Binary file added tests_zemu/snapshots/s-eth-legacy_transfer/00003.png
Binary file added tests_zemu/snapshots/s-eth-legacy_transfer/00004.png
Binary file added tests_zemu/snapshots/s-eth-transfer/00000.png
Binary file added tests_zemu/snapshots/s-eth-transfer/00001.png
Binary file added tests_zemu/snapshots/s-eth-transfer/00002.png
Binary file added tests_zemu/snapshots/s-eth-transfer/00003.png
Binary file added tests_zemu/snapshots/s-eth-transfer/00004.png
Binary file added tests_zemu/snapshots/s-show_eth_address/00000.png
Binary file added tests_zemu/snapshots/s-show_eth_address/00001.png
Binary file added tests_zemu/snapshots/s-show_eth_address/00002.png
Binary file added tests_zemu/snapshots/s-show_eth_address/00003.png
Binary file added tests_zemu/snapshots/sp-eth-asset_deposit/00000.png
Binary file added tests_zemu/snapshots/sp-eth-asset_deposit/00001.png
Binary file added tests_zemu/snapshots/sp-eth-asset_deposit/00002.png
Binary file added tests_zemu/snapshots/sp-eth-asset_deposit/00003.png
Binary file added tests_zemu/snapshots/sp-eth-asset_deposit/00004.png
Binary file added tests_zemu/snapshots/sp-eth-asset_deposit/00005.png
Binary file added tests_zemu/snapshots/sp-eth-asset_transfer/00000.png
Binary file added tests_zemu/snapshots/sp-eth-asset_transfer/00001.png
Binary file added tests_zemu/snapshots/sp-eth-asset_transfer/00002.png
Binary file added tests_zemu/snapshots/sp-eth-asset_transfer/00003.png
Binary file added tests_zemu/snapshots/sp-eth-asset_transfer/00004.png
Binary file added tests_zemu/snapshots/sp-eth-asset_transfer/00005.png
Binary file added tests_zemu/snapshots/sp-eth-basic_transfer/00000.png
Binary file added tests_zemu/snapshots/sp-eth-basic_transfer/00001.png
Binary file added tests_zemu/snapshots/sp-eth-basic_transfer/00002.png
Binary file added tests_zemu/snapshots/sp-eth-basic_transfer/00003.png
Binary file added tests_zemu/snapshots/sp-eth-basic_transfer/00004.png
Binary file added tests_zemu/snapshots/sp-eth-basic_transfer/00005.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00000.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00001.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00002.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00003.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00004.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00005.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00006.png
Binary file added tests_zemu/snapshots/sp-eth-erc20_transfer/00007.png
Binary file added tests_zemu/snapshots/sp-eth-transfer/00000.png
Binary file added tests_zemu/snapshots/sp-eth-transfer/00001.png
Binary file added tests_zemu/snapshots/sp-eth-transfer/00002.png
Binary file added tests_zemu/snapshots/sp-eth-transfer/00003.png
Binary file added tests_zemu/snapshots/sp-eth-transfer/00004.png
Binary file added tests_zemu/snapshots/sp-eth-transfer/00005.png
Binary file added tests_zemu/snapshots/sp-show_eth_address/00000.png
Binary file added tests_zemu/snapshots/sp-show_eth_address/00001.png
Binary file added tests_zemu/snapshots/sp-show_eth_address/00002.png
Binary file added tests_zemu/snapshots/sp-show_eth_address/00003.png
Binary file added tests_zemu/snapshots/st-eth-transfer/00000.png
Binary file added tests_zemu/snapshots/st-eth-transfer/00001.png
Binary file added tests_zemu/snapshots/st-eth-transfer/00002.png
Binary file added tests_zemu/snapshots/st-eth-transfer/00003.png
Binary file added tests_zemu/snapshots/x-eth-asset_deposit/00000.png
Binary file added tests_zemu/snapshots/x-eth-asset_deposit/00001.png
Binary file added tests_zemu/snapshots/x-eth-asset_deposit/00002.png
Binary file added tests_zemu/snapshots/x-eth-asset_deposit/00003.png
Binary file added tests_zemu/snapshots/x-eth-asset_deposit/00004.png
Binary file added tests_zemu/snapshots/x-eth-asset_deposit/00005.png
Binary file added tests_zemu/snapshots/x-eth-asset_transfer/00000.png
Binary file added tests_zemu/snapshots/x-eth-asset_transfer/00001.png
Binary file added tests_zemu/snapshots/x-eth-asset_transfer/00002.png
Binary file added tests_zemu/snapshots/x-eth-asset_transfer/00003.png
Binary file added tests_zemu/snapshots/x-eth-asset_transfer/00004.png
Binary file added tests_zemu/snapshots/x-eth-asset_transfer/00005.png
Binary file added tests_zemu/snapshots/x-eth-basic_transfer/00000.png
Binary file added tests_zemu/snapshots/x-eth-basic_transfer/00001.png
Binary file added tests_zemu/snapshots/x-eth-basic_transfer/00002.png
Binary file added tests_zemu/snapshots/x-eth-basic_transfer/00003.png
Binary file added tests_zemu/snapshots/x-eth-basic_transfer/00004.png
Binary file added tests_zemu/snapshots/x-eth-basic_transfer/00005.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00000.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00001.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00002.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00003.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00004.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00005.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00006.png
Binary file added tests_zemu/snapshots/x-eth-erc20_transfer/00007.png
Binary file added tests_zemu/snapshots/x-eth-legacy_transfer/00000.png
Binary file added tests_zemu/snapshots/x-eth-legacy_transfer/00001.png
Binary file added tests_zemu/snapshots/x-eth-legacy_transfer/00002.png
Binary file added tests_zemu/snapshots/x-eth-legacy_transfer/00003.png
Binary file added tests_zemu/snapshots/x-eth-legacy_transfer/00004.png
Binary file added tests_zemu/snapshots/x-eth-legacy_transfer/00005.png
Binary file added tests_zemu/snapshots/x-eth-transfer/00000.png
Binary file added tests_zemu/snapshots/x-eth-transfer/00001.png
Binary file added tests_zemu/snapshots/x-eth-transfer/00002.png
Binary file added tests_zemu/snapshots/x-eth-transfer/00003.png
Binary file added tests_zemu/snapshots/x-eth-transfer/00004.png
Binary file added tests_zemu/snapshots/x-eth-transfer/00005.png
Binary file added tests_zemu/snapshots/x-show_eth_address/00000.png
Binary file added tests_zemu/snapshots/x-show_eth_address/00001.png
Binary file added tests_zemu/snapshots/x-show_eth_address/00002.png
Binary file added tests_zemu/snapshots/x-show_eth_address/00003.png
7 changes: 7 additions & 0 deletions tests_zemu/tests/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ const APP_PATH_SP = resolve('../app/output/app_s2.elf')
const APP_PATH_ST = resolve('../app/output/app_stax.elf')

export const hdpath = `m/44'/9000'/0/0/0`
export const PATH_TESTNET = "m/44'/1'/0'/0/1"
export const ETH_PATH = "m/44'/60'/0'/0'/5"
export const EXPECTED_PUBLIC_KEY = '024f1dd50f180bfd546339e75410b127331469837fa618d950f7cfb8be351b0020'

export const EXPECTED_ETH_PK =
'044f1dd50f180bfd546339e75410b127331469837fa618d950f7cfb8be351b002035e2b0343bcf8bba5874b9c6c9311de5911d471e896b1f17f10137842a2265b0'
export const EXPECTED_ETH_ADDRESS = '0xcadff9350e9548bc68cb1e44d744bd9a801d5a5b'

export const models: IDeviceModel[] = [
{ name: 'nanos', prefix: 'S', path: APP_PATH_S },
Expand Down
Loading

0 comments on commit 8277398

Please sign in to comment.