Skip to content

Commit

Permalink
Merge pull request #46 from adrienlacombe-ledger/develop
Browse files Browse the repository at this point in the history
maintenance release
  • Loading branch information
tdejoigny-ledger committed Jul 11, 2023
2 parents 9d975b1 + ed1f82f commit 2ece1a0
Show file tree
Hide file tree
Showing 24 changed files with 1,512 additions and 1,719 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/tests/" # Location of package manifests
schedule:
interval: "weekly"
open-pull-requests-limit: 10
2 changes: 1 addition & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ jobs:
- name: Run Zemu tests
run: |
cd tests && docker pull zondax/builder-zemu@sha256:8d7b06cedf2d018b9464f4af4b7a8357c3fbb180f3ab153f8cb8f138defb22a4 && yarn test
cd tests && yarn test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include $(BOLOS_SDK)/Makefile.defines
# Mandatory configuration #
########################################
# Application name
APPNAME = "Plugin Boilerplate"
APPNAME = "PluginBoilerplate"

# Application version
APPVERSION_M = 1
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/boilerplate_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// Name of the plugin.
// EDIT THIS: Replace with your plugin name.
#define PLUGIN_NAME "Boilerplate"
#define PLUGIN_NAME "PluginBoilerplate"

// Enumeration of the different selectors possible.
// Should follow the exact same order as the array declared in main.c
Expand Down
4 changes: 2 additions & 2 deletions tests/networks/ethereum/boilerplate/b2c.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"path.1"
],
"method": "swapExactETHForTokens",
"plugin": "Boilerplate"
"plugin": "PluginBoilerplate"
}
}
}
],
"name": "Boilerplate"
"name": "PluginBoilerplate"
}
26 changes: 13 additions & 13 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
"license": "ISC",
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@ledgerhq/hw-app-eth": "^6.27.1",
"@ledgerhq/hw-transport-http": "^6.27.1",
"@ledgerhq/hw-app-eth": "^6.33.7",
"@ledgerhq/hw-transport-http": "^6.28.0",
"@ledgerhq/logs": "^6.2.0",
"@zondax/zemu": "^0.35.1",
"core-js": "^3.16.3",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"@zondax/zemu": "^0.43.1",
"core-js": "^3.31.1",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.24.2",
"ethers": "^5.6.3",
"jest-serial-runner": "^1.2.1",
"patch-package": "^6.4.7",
"patch-package": "^7.0.0",
"postinstall-postinstall": "^2.1.0",
"regenerator-runtime": "^0.13.9"
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-flow": "^7.14.5",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/preset-env": "^7.22.7",
"@babel/preset-flow": "^7.22.5",
"@babel/preset-stage-0": "^7.0.0",
"@babel/register": "^7.15.3",
"jest": "29.4.3"
"@babel/register": "^7.22.5",
"jest": "29.6.1"
}
}
Binary file modified tests/snapshots/nanos_swap_exact_eth_for_tokens/00001.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.
Binary file modified tests/snapshots/nanosp_swap_exact_eth_for_tokens/00001.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.
Binary file modified tests/snapshots/nanox_swap_exact_eth_for_tokens/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 modified tests/snapshots/nanox_swap_exact_eth_for_tokens/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 modified tests/snapshots/nanox_swap_exact_eth_for_tokens/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 modified tests/snapshots/nanox_swap_exact_eth_for_tokens/00006.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.
4 changes: 2 additions & 2 deletions tests/src/test.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function zemu(device, func) {
let elf_path;
let lib_elf;
elf_path = device.eth_path;
// Edit this: replace `Boilerplate` by your plugin name
lib_elf = { 'Boilerplate': device.path };
// Edit this: replace `PluginBoilerplate` by your plugin name
lib_elf = { 'PluginBoilerplate': device.path };

const sim = new Zemu(elf_path, lib_elf);
try {
Expand Down
Loading

0 comments on commit 2ece1a0

Please sign in to comment.