-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to use the latest plugin SDK
- Loading branch information
1 parent
90ccabb
commit bc2453b
Showing
9 changed files
with
73 additions
and
208 deletions.
There are no files selected for viewing
Submodule ethereum-plugin-sdk
updated
7 files
+36 −0 | CHANGELOG.md | |
+2 −3 | README.md | |
+49 −20 | include/eth_internals.c | |
+6 −5 | include/eth_internals.h | |
+125 −0 | include/main.c | |
+28 −0 | include/utils.c | |
+27 −0 | include/utils.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/******************************************************************************* | ||
* Plugin Boilerplate | ||
* (c) 2023 Ledger | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
********************************************************************************/ | ||
|
||
#include <stdint.h> | ||
#include "boilerplate_plugin.h" | ||
|
||
// List of selectors supported by this plugin. | ||
// EDIT THIS: Adapt the variable names and change the `0x` values to match your selectors. | ||
static const uint32_t SWAP_EXACT_ETH_FOR_TOKENS_SELECTOR = 0x7ff36ab5; | ||
static const uint32_t BOILERPLATE_DUMMY_SELECTOR_2 = 0x13374242; | ||
|
||
// Array of all the different boilerplate selectors. Make sure this follows the same order as the | ||
// enum defined in `boilerplate_plugin.h` | ||
// EDIT THIS: Use the names of the array declared above. | ||
const uint32_t BOILERPLATE_SELECTORS[NUM_SELECTORS] = { | ||
SWAP_EXACT_ETH_FOR_TOKENS_SELECTOR, | ||
BOILERPLATE_DUMMY_SELECTOR_2, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.