forked from kilnfi/app-plugin-kiln
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from LedgerHQ/develop
Merge develop branch into main (B2CA-1677)
- Loading branch information
Showing
308 changed files
with
3,358 additions
and
1,631 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "ethereum-plugin-sdk"] | ||
path = ethereum-plugin-sdk | ||
url = git@github.com:LedgerHQ/ethereum-plugin-sdk.git | ||
[submodule "app-ethereum"] | ||
path = app-ethereum | ||
url = git@github.com:LedgerHQ/app-ethereum.git |
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 |
---|---|---|
@@ -1,25 +1,23 @@ | ||
# **************************************************************************** | ||
# Ledger Ethereum Plugin Boilerplate | ||
# (c) 2023 Ledger SAS. | ||
# | ||
# 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. | ||
# **************************************************************************** | ||
# ******************************************************************************* | ||
# * | ||
# * ██╗ ██╗██╗██╗ ███╗ ██╗ | ||
# * ██║ ██╔╝██║██║ ████╗ ██║ | ||
# * █████╔╝ ██║██║ ██╔██╗ ██║ | ||
# * ██╔═██╗ ██║██║ ██║╚██╗██║ | ||
# * ██║ ██╗██║███████╗██║ ╚████║ | ||
# * ╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═══╝ | ||
# * | ||
# * Kiln Ethereum Ledger App | ||
# * (c) 2022-2024 Kiln | ||
# * | ||
# * contact@kiln.fi | ||
# ******************************************************************************** | ||
|
||
APPNAME = "Kiln" | ||
|
||
# Application version | ||
APPVERSION_M = 1 | ||
APPVERSION_N = 4 | ||
APPVERSION_M = 2 | ||
APPVERSION_N = 0 | ||
APPVERSION_P = 0 | ||
|
||
include ethereum-plugin-sdk/standard_plugin.mk |
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,41 @@ | ||
# Technical Specification | ||
|
||
## About | ||
|
||
This documentation describes the smart contracts and functions supported by the kiln plugin. | ||
|
||
## Smart Contracts | ||
|
||
Smart contracts covered by the plugin: | ||
|
||
| Network | Version | Smart Contract | Address | | ||
| ------- | ------- | ------------------------------------- | -------------------------------------------- | | ||
| Mainnet | v1.2 | OCV1 - Kiln On-Chain v1 | `0x1e68238ce926dec62b3fbc99ab06eb1d85ce0270` | | ||
| Mainnet | v2.2 | OCV2-N20 - Kiln On-Chain v2 Native 20 | `0x5db5235b5c7e247488784986e58019fffd98fda4` | | ||
| Mainnet | v2.2 | OCV2-EQ - Kiln On-Chain v2 Exit Queue | `0x8d6fd650500f82c7d978a440348e5a9b886943bf` | | ||
| Mainnet | M2 | EL-SM - EigenLayer Strategy Manager | `0x858646372cc42e1a627fce94aa7a7033e7cf075a` | | ||
| Mainnet | M2 | EL-DM - EigenLayer Delegation Manager | `0x39053d51b77dc0d36036fc1fcc8cb819df8ef37a` | | ||
|
||
## Functions | ||
|
||
For the smart contracts implemented, the functions covered by the plugin are: | ||
|
||
| Contract | Function | Selector | Displayed Parameters | | ||
| -------- | ------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| OCV1 | deposit | `0xd0e30db0` | <table><tbody> <tr><td><code>uint tx.value</code></td></tr> </tbody></table> | | ||
| OCV1 | withdraw | `0x0968f264` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV1 | withdrawELFee | `0xbf509bd4` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV1 | withdrawCLFee | `0x2ba03a79` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV1 | batchWithdraw | `0xe8a0c121` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV1 | batchWithdrawELFee | `0xef5e4682` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV1 | batchWithdrawCLFee | `0x0ffab6c2` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV1 | requestValidatorsExit | `0xb6b06dec` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV2-N20 | stake | `0x3a4b66f1` | <table><tbody> <tr><td><code>uint tx.value</code></td></tr> </tbody></table> | | ||
| OCV2-N20 | requestExit | `0x721c6513` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV2-N20 | multiClaim | `0xb7ba18c7` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| OCV2-EQ | claim | `0xadcf1163` | <table><tbody> <tr><td>n/r</td></tr> </tbody></table> | | ||
| EL-SM | depositIntoStrategy | `0xe7a050aa` | <table><tbody> <tr><td><code>address strategy</code></td></tr> <tr><td><code>address ERC20</code></td></tr><tr><td><code>deposited amount</code></td></tr></tbody></table> | | ||
| EL-SM | queueWithdrawals | `0x0dd8dd02` | <table><tbody> <tr><td><code>queuedWithdrawalParams.strategies[]</code> as string using an internal mapping</td></tr><tr><td><code>queuedWithdrawalParams.withdrawer</code></td></tr> </tbody></table> | | ||
| EL-SM | completeQueuedWithdrawals | `0x33404396` | <table><tbody> <tr><td>strategies as string using an internal mapping</td></tr> <tr><td>redelegated or withdrawal action</tr></td> </tbody></table> | | ||
| EL-DM | delegateTo | `0xeea9064b` | <table><tbody> <tr><td><code>address operator</code> or <code>"KILN"</code></td></tr> </tbody></table> | | ||
| EL-DM | undelegate | `0xda8be864` | <table><tbody> </tbody></table> | |
Oops, something went wrong.