Skip to content

Commit

Permalink
Merge pull request #19 from blooo-io/feat/LDG-499-integrate-new-networks
Browse files Browse the repository at this point in the history
Feat/ldg 499 integrate new networks
  • Loading branch information
GuilaneDen authored Nov 28, 2024
2 parents be40b0e + 36b20ca commit 4180b18
Show file tree
Hide file tree
Showing 395 changed files with 10,910 additions and 33 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
name: "nanox"
- sdk: "$NANOSP_SDK"
name: "nanosp"
- sdk: "$STAX_SDK"
name: "stax"
- sdk: "$FLEX_SDK"
name: "flex"

runs-on: ubuntu-latest
container:
Expand All @@ -47,6 +51,10 @@ jobs:
name: "nanox"
- sdk: "$NANOSP_SDK"
name: "nanosp"
- sdk: "$STAX_SDK"
name: "stax"
- sdk: "$FLEX_SDK"
name: "flex"

runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -83,6 +91,10 @@ jobs:
name: "nanox"
- sdk: "$NANOSP_SDK"
name: "nanosp"
- sdk: "$STAX_SDK"
name: "stax"
- sdk: "$FLEX_SDK"
name: "flex"

runs-on: ubuntu-latest
container:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bin/
debug/
dep/
obj/
tests/elfs/plugin_nano*.elf
tests/elfs/
build/

# Editors
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ APPNAME = "Paraswap"

# Application version
APPVERSION_M = 2
APPVERSION_N = 1
APPVERSION_P = 1
APPVERSION_N = 2
APPVERSION_P = 0

include ethereum-plugin-sdk/standard_plugin.mk
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ Need more information about the interface, the architecture, or general stuff ab
Smart contracts covered by this plugin are:

| Network | Version | Smart Contract |
| --- | --- | --- |
| Ethereum | V4 | `0x1bd435f3c054b6e901b7b108a0ab7617c808677b` |
| Ethereum | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| BSC | V4 | `0x55a0e3b6579972055faa983482aceb4b251dcf15`|
| BSC | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| Polygon | V4 | `0x90249ed4d69d70e709ffcd8bee2c5a566f65dade`|
| Polygon | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| --- | --- | --- |
| Arbitrum | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| Base | V5 | `0x59c7c832e96d2568bea6db468c1aadcbbda08a52`|
| BSC | V4 | `0x55a0e3b6579972055faa983482aceb4b251dcf15`|
| BSC | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| Ethereum | V4 | `0x1bd435f3c054b6e901b7b108a0ab7617c808677b`|
| Ethereum | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| Fantom | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| Optimism | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| Polygon | V4 | `0x90249ed4d69d70e709ffcd8bee2c5a566f65dade`|
| Polygon | V5 | `0xdef171fe48cf0115b1d80b88dc8eab59176fee57`|
| Polygon ZK EVM | V5 | `0xb83b554730d29ce4cb55bb42206c3e2c03e4a40a`|



Expand Down
Binary file added glyphs/stax_paraswap_64px.gif
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 icons/flex_app_paraswap.gif
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 icons/stax_app_paraswap.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 66 additions & 20 deletions tests/build_local_test_elfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,81 @@ mkdir -p elfs
# move to repo's root to build apps
cd ..

echo "*Building elfs for Nano S..."
export BOLOS_SDK="$NANOS_SDK"
# echo "*Building elfs for Nano S..."
# export BOLOS_SDK="$NANOS_SDK"

echo "**Building app-paraswap for Nano S..."
# echo "**Building app-paraswap for Nano S..."
# make clean
# make -j DEBUG=1
# cp bin/app.elf "tests/elfs/plugin_nanos.elf"

# echo "**Building app-ethereum for Nano S..."
# cd $APP_ETHEREUM || exit
# make clean
# make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
# cd - || exit
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanos.elf"


# echo "*Building elfs for Nano X..."
# export BOLOS_SDK="$NANOX_SDK"

# echo "**Building app-paraswap for Nano X..."
# make clean
# make -j DEBUG=1
# cp bin/app.elf "tests/elfs/plugin_nanox.elf"

# echo "**Building app-ethereum for Nano X..."
# cd $APP_ETHEREUM || exit
# make clean
# make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
# cd - || exit
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanox.elf"

# echo "*Building elfs for Nano S+..."
# export BOLOS_SDK="$NANOSP_SDK"

# echo "**Building app-1inch for Nano S+..."
# make clean
# make -j DEBUG=1
# cp bin/app.elf "tests/elfs/plugin_nanosp.elf"

# echo "**Building app-ethereum for Nano S+..."
# cd $APP_ETHEREUM
# make clean BOLOS_SDK=$NANOSP_SDK
# make -j DEBUG=1 BOLOS_SDK=$NANOSP_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
# cd -
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanosp.elf"

echo "*Building elfs for Flex..."
export BOLOS_SDK="$FLEX_SDK"

echo "**Building app-1inch for Flex..."
make clean
make -j DEBUG=1
cp bin/app.elf "tests/elfs/plugin_nanos.elf"
cp bin/app.elf "tests/elfs/plugin_flex.elf"

echo "**Building app-ethereum for Nano S..."
cd $APP_ETHEREUM || exit
make clean
make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
cd - || exit
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanos.elf"
echo "**Building app-ethereum for Flex..."
cd $APP_ETHEREUM
make clean BOLOS_SDK=$FLEX_SDK
make -j DEBUG=1 BOLOS_SDK=$FLEX_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
cd -
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_flex.elf"


echo "*Building elfs for Nano X..."
export BOLOS_SDK="$NANOX_SDK"
echo "*Building elfs for Stax..."
export BOLOS_SDK="$STAX_SDK"

echo "**Building app-paraswap for Nano X..."
echo "**Building app-1inch for Stax..."
make clean
make -j DEBUG=1
cp bin/app.elf "tests/elfs/plugin_nanox.elf"
cp bin/app.elf "tests/elfs/plugin_stax.elf"

echo "**Building app-ethereum for Nano X..."
cd $APP_ETHEREUM || exit
make clean
make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
cd - || exit
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanox.elf"
echo "**Building app-ethereum for Stax..."
cd $APP_ETHEREUM
make clean BOLOS_SDK=$STAX_SDK
make -j DEBUG=1 BOLOS_SDK=$STAX_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
cd -
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_stax.elf"

echo "done"
Loading

0 comments on commit 4180b18

Please sign in to comment.