Skip to content

Commit

Permalink
Merge pull request #26 from LedgerHQ/develop
Browse files Browse the repository at this point in the history
Merge develop branch into main (B2CA-1677)
  • Loading branch information
tdejoigny-ledger authored Jun 26, 2024
2 parents 8c70e63 + a10f08a commit 21847dc
Show file tree
Hide file tree
Showing 308 changed files with 3,358 additions and 1,631 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
- [ ] Target branch is `develop` <!-- unless you have a very good reason -->
- [ ] Application version has been bumped <!-- required if your changes are to be deployed -->

<!-- Make sure you followed the process described in https://developers.ledger.com/docs/embedded-app/maintenance/ before opening your Pull Request.
<!-- Make sure you followed the process described in https://developers.ledger.com/docs/device-app/deliver/maintenance before opening your Pull Request.
Don't hesitate to contact us directly on Discord if you have any questions ! https://developers.ledger.com/discord -->
1 change: 1 addition & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
with:
repository: LedgerHQ/app-ethereum
ref: ${{ ((github.base_ref || github.ref_name) == 'main' && 'master') || (github.base_ref || github.ref_name) }}
submodules: recursive

- name: Build
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "ethereum-plugin-sdk"]
path = ethereum-plugin-sdk
url = [email protected]:LedgerHQ/ethereum-plugin-sdk.git
[submodule "app-ethereum"]
path = app-ethereum
url = [email protected]:LedgerHQ/app-ethereum.git
34 changes: 16 additions & 18 deletions Makefile
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
# *
# * [email protected]
# ********************************************************************************

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
41 changes: 41 additions & 0 deletions PLUGIN_SPECIFICATION.md
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> |
Loading

0 comments on commit 21847dc

Please sign in to comment.