Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat_: integrate base chain #6228

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

briansztamfater
Copy link
Member

This PR adds support for Base chain.

Closes #6224

@briansztamfater briansztamfater self-assigned this Dec 18, 2024
@briansztamfater briansztamfater force-pushed the feat/integrate-base-chain branch from 13d8a4e to b150dc8 Compare December 18, 2024 20:42
@status-im-auto
Copy link
Member

status-im-auto commented Dec 18, 2024

Jenkins Builds

Click to see older builds (192)
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 13d8a4e #1 2024-12-18 20:44:01 ~3 min tests 📄log
✔️ 13d8a4e #1 2024-12-18 20:44:20 ~4 min macos 📦zip
✔️ 13d8a4e #1 2024-12-18 20:44:25 ~4 min ios 📦zip
✔️ 13d8a4e #1 2024-12-18 20:45:11 ~5 min linux 📦zip
✔️ 13d8a4e #1 2024-12-18 20:45:23 ~5 min macos 📦zip
✔️ 13d8a4e #1 2024-12-18 20:45:25 ~5 min android 📦aar
✔️ 13d8a4e #1 2024-12-18 20:46:05 ~5 min windows 📦zip
✔️ 13d8a4e #1 2024-12-18 20:47:00 ~6 min tests-rpc 📄log
✖️ b150dc8 #2 2024-12-18 20:46:40 ~2 min tests 📄log
✔️ b150dc8 #2 2024-12-18 20:48:06 ~3 min macos 📦zip
✔️ b150dc8 #2 2024-12-18 20:48:34 ~4 min ios 📦zip
✔️ b150dc8 #2 2024-12-18 20:50:20 ~5 min linux 📦zip
✔️ b150dc8 #2 2024-12-18 20:50:26 ~4 min windows 📦zip
✔️ b150dc8 #2 2024-12-18 20:50:45 ~5 min macos 📦zip
✔️ b150dc8 #2 2024-12-18 20:50:47 ~5 min android 📦aar
✔️ b150dc8 #2 2024-12-18 20:53:00 ~5 min tests-rpc 📄log
✖️ de357fc #3 2024-12-18 20:56:56 ~2 min tests 📄log
✔️ de357fc #3 2024-12-18 20:58:13 ~3 min macos 📦zip
✔️ de357fc #3 2024-12-18 20:58:41 ~4 min ios 📦zip
✔️ de357fc #3 2024-12-18 20:58:42 ~4 min windows 📦zip
✔️ de357fc #3 2024-12-18 20:59:42 ~5 min linux 📦zip
✔️ de357fc #3 2024-12-18 20:59:52 ~5 min android 📦aar
✔️ de357fc #3 2024-12-18 20:59:58 ~5 min macos 📦zip
✔️ de357fc #3 2024-12-18 21:01:05 ~6 min tests-rpc 📄log
✖️ eff4135 #4 2024-12-18 21:11:55 ~3 min tests 📄log
✔️ eff4135 #4 2024-12-18 21:12:07 ~4 min macos 📦zip
✔️ eff4135 #4 2024-12-18 21:12:16 ~4 min ios 📦zip
✔️ eff4135 #4 2024-12-18 21:12:16 ~4 min windows 📦zip
✔️ eff4135 #4 2024-12-18 21:13:01 ~4 min linux 📦zip
✔️ eff4135 #4 2024-12-18 21:13:25 ~5 min macos 📦zip
✔️ eff4135 #4 2024-12-18 21:13:26 ~5 min android 📦aar
✔️ eff4135 #4 2024-12-18 21:14:08 ~5 min tests-rpc 📄log
✖️ e4ef61a #5 2024-12-30 16:19:33 ~3 min tests 📄log
✔️ e4ef61a #5 2024-12-30 16:19:46 ~3 min macos 📦zip
✔️ e4ef61a #5 2024-12-30 16:20:05 ~4 min ios 📦zip
✔️ e4ef61a #5 2024-12-30 16:20:53 ~5 min linux 📦zip
✔️ e4ef61a #5 2024-12-30 16:21:05 ~5 min macos 📦zip
✔️ e4ef61a #5 2024-12-30 16:21:05 ~5 min android 📦aar
✔️ e4ef61a #5 2024-12-30 16:21:46 ~5 min windows 📦zip
✔️ e4ef61a #5 2024-12-30 16:21:53 ~6 min tests-rpc 📄log
✖️ 85a35c3 #6 2025-01-03 17:23:35 ~2 min tests 📄log
✔️ 85a35c3 #6 2025-01-03 17:24:54 ~4 min macos 📦zip
✔️ 85a35c3 #6 2025-01-03 17:25:04 ~4 min ios 📦zip
✔️ 85a35c3 #6 2025-01-03 17:25:28 ~4 min windows 📦zip
✔️ 85a35c3 #6 2025-01-03 17:26:12 ~5 min macos 📦zip
✔️ 85a35c3 #6 2025-01-03 17:26:44 ~5 min tests-rpc 📄log
✔️ 85a35c3 #6 2025-01-03 17:27:45 ~6 min linux 📦zip
✔️ 85a35c3 #6 2025-01-03 17:28:08 ~7 min android 📦aar
✖️ 85c40e5 #7 2025-01-08 19:34:13 ~3 min tests 📄log
✔️ 85c40e5 #7 2025-01-08 19:34:41 ~4 min macos 📦zip
✔️ 85c40e5 #7 2025-01-08 19:35:03 ~4 min ios 📦zip
✔️ 85c40e5 #7 2025-01-08 19:35:29 ~5 min android 📦aar
✔️ 85c40e5 #7 2025-01-08 19:35:41 ~5 min macos 📦zip
✔️ 85c40e5 #7 2025-01-08 19:35:49 ~5 min linux 📦zip
✔️ 85c40e5 #7 2025-01-08 19:36:11 ~5 min windows 📦zip
✔️ 85c40e5 #7 2025-01-08 19:36:16 ~5 min tests-rpc 📄log
✖️ 87587d3 #8 2025-01-08 21:01:11 ~2 min tests 📄log
✔️ 87587d3 #8 2025-01-08 21:02:36 ~4 min windows 📦zip
✔️ 87587d3 #8 2025-01-08 21:02:50 ~4 min macos 📦zip
✔️ 87587d3 #8 2025-01-08 21:03:07 ~4 min ios 📦zip
✔️ 87587d3 #8 2025-01-08 21:03:22 ~4 min linux 📦zip
✔️ 87587d3 #8 2025-01-08 21:03:36 ~5 min android 📦aar
✔️ 87587d3 #8 2025-01-08 21:03:55 ~5 min macos 📦zip
✔️ 87587d3 #8 2025-01-08 21:04:11 ~5 min tests-rpc 📄log
✖️ c89add7 #9 2025-01-08 22:17:47 ~2 min tests 📄log
✔️ c89add7 #9 2025-01-08 22:18:39 ~3 min macos 📦zip
✔️ c89add7 #9 2025-01-08 22:19:08 ~4 min ios 📦zip
✔️ c89add7 #9 2025-01-08 22:19:14 ~4 min windows 📦zip
✔️ c89add7 #9 2025-01-08 22:19:50 ~4 min linux 📦zip
✔️ c89add7 #9 2025-01-08 22:20:08 ~5 min macos 📦zip
✔️ c89add7 #9 2025-01-08 22:20:09 ~5 min android 📦aar
✔️ c89add7 #9 2025-01-08 22:20:39 ~5 min tests-rpc 📄log
✖️ e60b776 #10 2025-01-08 23:09:25 ~2 min tests 📄log
✔️ e60b776 #10 2025-01-08 23:10:37 ~4 min macos 📦zip
✔️ e60b776 #10 2025-01-08 23:10:52 ~4 min windows 📦zip
✔️ e60b776 #10 2025-01-08 23:11:04 ~4 min ios 📦zip
✔️ e60b776 #10 2025-01-08 23:11:25 ~4 min linux 📦zip
✔️ e60b776 #10 2025-01-08 23:11:47 ~5 min android 📦aar
✔️ e60b776 #10 2025-01-08 23:12:12 ~5 min macos 📦zip
✔️ e60b776 #10 2025-01-08 23:12:34 ~5 min tests-rpc 📄log
✔️ 107ff8e #11 2025-01-09 16:37:42 ~3 min macos 📦zip
✔️ 107ff8e #11 2025-01-09 16:38:04 ~4 min ios 📦zip
✔️ 107ff8e #11 2025-01-09 16:38:21 ~4 min windows 📦zip
✔️ 107ff8e #11 2025-01-09 16:39:03 ~5 min android 📦aar
✔️ 107ff8e #11 2025-01-09 16:39:12 ~5 min macos 📦zip
✔️ 107ff8e #11 2025-01-09 16:39:13 ~5 min linux 📦zip
✖️ 107ff8e #11 2025-01-09 16:40:38 ~6 min tests-rpc 📄log
✖️ 107ff8e #11 2025-01-09 17:02:56 ~29 min tests 📄log
✔️ 107ff8e #12 2025-01-09 17:10:09 ~6 min tests-rpc 📄log
✖️ bcc16d3 #12 2025-01-10 06:16:51 ~2 min tests 📄log
✔️ bcc16d3 #12 2025-01-10 06:18:07 ~3 min macos 📦zip
✔️ bcc16d3 #12 2025-01-10 06:18:41 ~4 min ios 📦zip
✔️ bcc16d3 #12 2025-01-10 06:18:56 ~4 min windows 📦zip
✔️ bcc16d3 #12 2025-01-10 06:19:21 ~5 min linux 📦zip
✔️ bcc16d3 #12 2025-01-10 06:19:21 ~5 min android 📦aar
✔️ bcc16d3 #12 2025-01-10 06:19:31 ~5 min macos 📦zip
✖️ bcc16d3 #13 2025-01-10 06:20:12 ~6 min tests-rpc 📄log
✖️ 351a63d #13 2025-01-10 06:19:27 ~2 min tests 📄log
✔️ 351a63d #13 2025-01-10 06:22:12 ~3 min macos 📦zip
✔️ 351a63d #13 2025-01-10 06:23:19 ~4 min windows 📦zip
✔️ 351a63d #13 2025-01-10 06:23:42 ~4 min ios 📦zip
✔️ 351a63d #13 2025-01-10 06:24:23 ~4 min linux 📦zip
✔️ 351a63d #13 2025-01-10 06:24:52 ~5 min macos 📦zip
✔️ 351a63d #13 2025-01-10 06:24:56 ~5 min android 📦aar
✔️ 351a63d #14 2025-01-10 06:26:24 ~6 min tests-rpc 📄log
✔️ 477a9c9 #14 2025-01-10 06:26:11 ~3 min macos 📦zip
✔️ 477a9c9 #14 2025-01-10 06:27:20 ~3 min windows 📦zip
✔️ 477a9c9 #14 2025-01-10 06:28:23 ~4 min ios 📦zip
✔️ 477a9c9 #14 2025-01-10 06:29:21 ~4 min linux 📦zip
✔️ 477a9c9 #14 2025-01-10 06:30:29 ~5 min android 📦aar
✔️ 477a9c9 #14 2025-01-10 06:30:31 ~5 min macos 📦zip
✔️ 477a9c9 #15 2025-01-10 06:32:47 ~6 min tests-rpc 📄log
✔️ 477a9c9 #14 2025-01-10 06:50:09 ~29 min tests 📄log
✔️ c587844 #15 2025-01-10 16:02:33 ~3 min macos 📦zip
✔️ c587844 #15 2025-01-10 16:03:10 ~4 min windows 📦zip
✔️ c587844 #15 2025-01-10 16:03:23 ~4 min ios 📦zip
✔️ c587844 #15 2025-01-10 16:03:58 ~5 min linux 📦zip
✔️ c587844 #15 2025-01-10 16:04:15 ~5 min macos 📦zip
✔️ c587844 #15 2025-01-10 16:04:23 ~5 min android 📦aar
✔️ c587844 #16 2025-01-10 16:05:15 ~6 min tests-rpc 📄log
✔️ c587844 #15 2025-01-10 16:30:15 ~31 min tests 📄log
✔️ 514bc34 #16 2025-01-10 18:10:47 ~3 min macos 📦zip
✔️ 514bc34 #16 2025-01-10 18:10:55 ~3 min windows 📦zip
✔️ 514bc34 #16 2025-01-10 18:11:06 ~4 min ios 📦zip
✔️ 514bc34 #16 2025-01-10 18:11:47 ~4 min linux 📦zip
✔️ 514bc34 #16 2025-01-10 18:12:03 ~5 min android 📦aar
✔️ 514bc34 #16 2025-01-10 18:12:10 ~5 min macos 📦zip
✔️ 514bc34 #17 2025-01-10 18:12:50 ~5 min tests-rpc 📄log
✔️ 514bc34 #16 2025-01-10 18:36:44 ~29 min tests 📄log
a66b77a #17 2025-01-11 04:02:45 ~1 min ios 📄log
a66b77a #17 2025-01-11 04:02:50 ~2 min android 📄log
a66b77a #17 2025-01-11 04:03:04 ~2 min macos 📄log
a66b77a #17 2025-01-11 04:03:47 ~2 min windows 📄log
a66b77a #17 2025-01-11 04:04:16 ~3 min linux 📄log
✖️ a66b77a #17 2025-01-11 04:04:20 ~3 min tests 📄log
✖️ a66b77a #18 2025-01-11 04:04:25 ~3 min tests-rpc 📄log
a66b77a #17 2025-01-11 04:05:07 ~4 min macos 📄log
✔️ c294a5e #18 2025-01-11 18:23:00 ~4 min macos 📦zip
✔️ c294a5e #18 2025-01-11 18:23:24 ~4 min windows 📦zip
✔️ c294a5e #18 2025-01-11 18:23:44 ~4 min ios 📦zip
✔️ c294a5e #18 2025-01-11 18:24:26 ~5 min macos 📦zip
✔️ c294a5e #18 2025-01-11 18:27:30 ~8 min linux 📦zip
✔️ c294a5e #18 2025-01-11 18:27:36 ~8 min android 📦aar
✔️ c294a5e #20 2025-01-11 19:23:40 ~6 min tests-rpc 📄log
✔️ c294a5e #19 2025-01-11 19:47:10 ~30 min tests 📄log
✔️ 6b76a58 #19 2025-01-13 16:36:28 ~4 min macos 📦zip
✔️ 6b76a58 #19 2025-01-13 16:36:36 ~4 min ios 📦zip
✔️ 6b76a58 #19 2025-01-13 16:36:52 ~4 min windows 📦zip
✔️ 6b76a58 #19 2025-01-13 16:37:35 ~5 min linux 📦zip
✔️ 6b76a58 #19 2025-01-13 16:37:42 ~5 min macos 📦zip
✔️ 6b76a58 #19 2025-01-13 16:54:35 ~22 min android 📦aar
✔️ 6b76a58 #21 2025-01-13 16:58:11 ~25 min tests-rpc 📄log
✔️ 6b76a58 #20 2025-01-13 17:25:04 ~52 min tests 📄log
✔️ 816142e #20 2025-01-13 18:34:45 ~3 min macos 📦zip
✔️ 816142e #20 2025-01-13 18:35:04 ~3 min ios 📦zip
✔️ 816142e #20 2025-01-13 18:35:19 ~4 min windows 📦zip
✔️ 816142e #20 2025-01-13 18:36:29 ~5 min linux 📦zip
✔️ 816142e #20 2025-01-13 18:36:36 ~5 min macos 📦zip
✔️ 816142e #20 2025-01-13 18:36:46 ~5 min android 📦aar
✔️ 816142e #22 2025-01-13 18:37:16 ~5 min tests-rpc 📄log
✔️ 816142e #21 2025-01-13 19:05:38 ~34 min tests 📄log
✔️ 66a34d3 #21 2025-01-13 19:41:20 ~3 min macos 📦zip
✔️ 66a34d3 #21 2025-01-13 19:41:45 ~3 min ios 📦zip
✔️ 66a34d3 #21 2025-01-13 19:42:10 ~4 min windows 📦zip
✔️ 66a34d3 #21 2025-01-13 19:42:49 ~5 min linux 📦zip
✔️ 66a34d3 #21 2025-01-13 19:43:21 ~5 min macos 📦zip
✔️ 66a34d3 #21 2025-01-13 19:43:39 ~5 min android 📦aar
✔️ 66a34d3 #23 2025-01-13 19:44:03 ~6 min tests-rpc 📄log
✔️ 66a34d3 #22 2025-01-13 20:07:45 ~29 min tests 📄log
✔️ e9a4eff #22 2025-01-14 12:33:36 ~4 min macos 📦zip
✔️ e9a4eff #22 2025-01-14 12:34:04 ~4 min windows 📦zip
✔️ e9a4eff #22 2025-01-14 12:34:06 ~4 min ios 📦zip
✔️ e9a4eff #22 2025-01-14 12:34:42 ~5 min linux 📦zip
✔️ e9a4eff #22 2025-01-14 12:34:58 ~5 min macos 📦zip
✔️ e9a4eff #22 2025-01-14 12:35:09 ~5 min android 📦aar
✔️ e9a4eff #24 2025-01-14 12:35:25 ~5 min tests-rpc 📄log
✔️ e9a4eff #23 2025-01-14 13:03:59 ~34 min tests 📄log
✔️ 58114fe #23 2025-01-14 12:52:04 ~3 min macos 📦zip
✔️ 58114fe #23 2025-01-14 12:52:46 ~4 min windows 📦zip
✔️ 58114fe #23 2025-01-14 12:53:44 ~5 min linux 📦zip
✔️ 58114fe #23 2025-01-14 12:53:44 ~5 min android 📦aar
✔️ 58114fe #23 2025-01-14 12:53:44 ~5 min macos 📦zip
✔️ 58114fe #23 2025-01-14 12:54:14 ~5 min ios 📦zip
✔️ 58114fe #25 2025-01-14 12:54:40 ~6 min tests-rpc 📄log
✔️ db07128 #24 2025-01-14 12:56:04 ~3 min macos 📦zip
✔️ db07128 #24 2025-01-14 12:56:46 ~3 min windows 📦zip
✔️ db07128 #24 2025-01-14 12:58:51 ~5 min linux 📦zip
✔️ db07128 #24 2025-01-14 12:59:10 ~5 min macos 📦zip
✔️ db07128 #24 2025-01-14 12:59:11 ~5 min android 📦aar
✔️ db07128 #24 2025-01-14 12:59:58 ~5 min ios 📦zip
✔️ db07128 #26 2025-01-14 13:00:47 ~5 min tests-rpc 📄log
✔️ db07128 #24 2025-01-14 13:33:42 ~29 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 1e4b20e #25 2025-01-14 13:14:13 ~4 min windows 📦zip
✔️ 1e4b20e #25 2025-01-14 13:14:32 ~4 min ios 📦zip
✔️ 1e4b20e #25 2025-01-14 13:14:36 ~4 min linux 📦zip
✔️ 1e4b20e #25 2025-01-14 13:15:15 ~5 min macos 📦zip
✔️ 1e4b20e #25 2025-01-14 13:16:09 ~6 min android 📦aar
✔️ 1e4b20e #27 2025-01-14 13:16:55 ~6 min tests-rpc 📄log
✔️ 1e4b20e #25 2025-01-14 13:18:28 ~8 min macos 📦zip
✔️ 1e4b20e #25 2025-01-14 14:04:15 ~30 min tests 📄log
✔️ db54ca4 #26 2025-01-15 12:02:17 ~4 min ios 📦zip
✔️ db54ca4 #26 2025-01-15 12:02:32 ~4 min windows 📦zip
✔️ db54ca4 #26 2025-01-15 12:03:37 ~5 min macos 📦zip
✔️ db54ca4 #26 2025-01-15 12:03:42 ~5 min linux 📦zip
✔️ db54ca4 #26 2025-01-15 12:04:11 ~6 min android 📦aar
✔️ db54ca4 #28 2025-01-15 12:04:12 ~6 min tests-rpc 📄log
✔️ db54ca4 #26 2025-01-15 12:05:48 ~7 min macos 📦zip
✔️ db54ca4 #26 2025-01-15 12:28:47 ~30 min tests 📄log

@briansztamfater briansztamfater force-pushed the feat/integrate-base-chain branch 2 times, most recently from de357fc to eff4135 Compare December 18, 2024 21:07
@briansztamfater briansztamfater changed the title [WIP] feat_: integrate base chain feat_: integrate base chain Dec 18, 2024
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 95.36341% with 37 lines in your changes missing coverage. Please review.

Project coverage is 61.74%. Comparing base (4a5a338) to head (db54ca4).

Files with missing lines Patch % Lines
...allet/router/pathprocessor/processor_bridge_hop.go 0.00% 20 Missing ⚠️
services/wallet/thirdparty/rarible/types.go 28.57% 5 Missing ⚠️
services/wallet/thirdparty/mercuryo/types.go 0.00% 4 Missing ⚠️
...et/router/pathprocessor/processor_swap_paraswap.go 0.00% 2 Missing ⚠️
services/wallet/transfer/commands.go 0.00% 2 Missing ⚠️
protocol/communities/manager.go 0.00% 1 Missing ⚠️
services/wallet/onramp/provider_mercuryo.go 0.00% 1 Missing ⚠️
services/wallet/router/fees/fees.go 0.00% 1 Missing ⚠️
transactions/transactor.go 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6228      +/-   ##
===========================================
+ Coverage    61.55%   61.74%   +0.18%     
===========================================
  Files          842      842              
  Lines       110604   111256     +652     
===========================================
+ Hits         68086    68692     +606     
- Misses       34562    34612      +50     
+ Partials      7956     7952       -4     
Flag Coverage Δ
functional 21.44% <9.64%> (-0.07%) ⬇️
unit 60.26% <95.11%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
api/default_networks.go 100.00% <100.00%> (ø)
api/defaults.go 81.55% <100.00%> (+0.30%) ⬆️
mobile/callog/status_request_log.go 92.40% <ø> (ø)
multiaccounts/accounts/database.go 71.97% <ø> (ø)
protocol/requests/create_account.go 33.33% <ø> (ø)
rpc/network/network.go 76.76% <100.00%> (ø)
services/wallet/activity/activity.go 86.84% <100.00%> (ø)
services/wallet/common/const.go 89.65% <100.00%> (+0.76%) ⬆️
services/wallet/onramp/provider_moonpay.go 76.00% <100.00%> (ø)
services/wallet/onramp/provider_ramp.go 76.00% <100.00%> (ø)
... and 18 more

... and 30 files with indirect coverage changes

@briansztamfater briansztamfater force-pushed the feat/integrate-base-chain branch 2 times, most recently from e4ef61a to 85a35c3 Compare January 3, 2025 17:20
@briansztamfater briansztamfater force-pushed the feat/integrate-base-chain branch 9 times, most recently from c587844 to 514bc34 Compare January 10, 2025 18:06
@briansztamfater briansztamfater marked this pull request as ready for review January 10, 2025 18:08
@briansztamfater briansztamfater added this to the 2.33.0 milestone Jan 10, 2025
@briansztamfater briansztamfater force-pushed the feat/integrate-base-chain branch from 514bc34 to a66b77a Compare January 11, 2025 04:00
Copy link
Collaborator

@alaibe alaibe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like everything is covered! ❤️

@briansztamfater briansztamfater force-pushed the feat/integrate-base-chain branch from a66b77a to c294a5e Compare January 11, 2025 18:18
Copy link
Contributor

@saledjenic saledjenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@briansztamfater nice PR. All looks good, could you just update the details I stated in the comments below?

L2HopBridgeToken: common.HexToAddress("0xC1985d7a3429cDC85E59E2E4Fcc805b857e6Ee2E"),
L2AmmWrapper: common.HexToAddress("0x10541b07d8Ad2647Dc6cD67abd4c03575dade261"),
L2SaddleSwap: common.HexToAddress("0x0ce6c85cF43553DE10FC56cecA0aef6Ff0DD444d"),
L2SaddleLpToken: common.HexToAddress("0x0ce6c85cF43553DE10FC56cecA0aef6Ff0DD444d"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
L2SaddleLpToken: common.HexToAddress("0x0ce6c85cF43553DE10FC56cecA0aef6Ff0DD444d"),
L2SaddleLpToken: common.HexToAddress("0xe9605BEc1c5C3E81F974F80b8dA9fBEFF4845d4D"),

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 🕵️

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@@ -49,6 +49,8 @@ func getPartnerAddressAndFeePcnt(chainID uint64) (common.Address, float64) {
return common.HexToAddress("0xE9B59dC0b30cd4646430c25de0111D651c395775"), partnerFeePcnt
case walletCommon.ArbitrumMainnet:
return common.HexToAddress("0x9a8278e856C0B191B9daa2d7DD1f7B28268E4DA2"), partnerFeePcnt
case walletCommon.BaseMainnet:
return common.Address{}, 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return common.Address{}, 0
return common.HexToAddress("0x831be9e08185eba7d88aab1efc059336babef430"), partnerFeePcnt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did this come from @saledjenic ? AFAIK we still don't have an address for Paraswap partner fees on Base

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where/how did you find other addresses for other chains?

I was searching for the base chain for exactly the same contract as is used on other chains, and that's the address where it is deployed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those are multisig wallets generated by Finance using https://app.safe.global/welcome

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I initially left it like this and forgot to find which would be the correct address. Should we ask Finance for the correct address? @dlipicar

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@briansztamfater I've asked Jason from Treasury to generate it and share the address with us, will ping you when I get it! If it takes too long we can just leave it blank and set it in a separate PR.

@@ -1850,6 +1850,14 @@ func newDefaultStore() *DefaultStore {
ChainID: 11155420,
TokenListID: "status",
},
&Token{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this here since we have it in the uniswap.go?

Copy link
Contributor

@dlipicar dlipicar Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also vote for not adding it if it's already in the Uniswap list.
We're gonna need to add SNT/STT here whenever they get deployed to Base, though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added here 58114fe

@@ -110,4 +116,5 @@ var AverageBlockDurationForChain = map[ChainID]time.Duration{
ChainID(EthereumMainnet): time.Duration(12000) * time.Millisecond,
ChainID(OptimismMainnet): time.Duration(400) * time.Millisecond,
ChainID(ArbitrumMainnet): time.Duration(300) * time.Millisecond,
ChainID(BaseMainnet): time.Duration(400) * time.Millisecond,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values here are incorrect.
Should be:

  • OptimismMainnet -> 2 seconds
  • Arbitrum -> 0.25 seconds
  • Base -> 2 seconds

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@@ -1527,8 +1527,10 @@ func TestWalletConfigOnLoginAccount(t *testing.T) {
alchemyArbitrumSepoliaToken := "alchemy-arbitrum-sepolia-token"
alchemyOptimismMainnetToken := "alchemy-optimism-mainnet-token"
alchemyOptimismSepoliaToken := "alchemy-optimism-sepolia-token"
raribleMainnetAPIKey := "rarible-mainnet-api-key" // nolint: gosec
raribleTestnetAPIKey := "rarible-testnet-api-key" // nolint: gosec
alchemyBaseMainnetToken := "alchemy-base-mainnet-token" // nolint: gosec
Copy link
Contributor

@dlipicar dlipicar Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alchemy is no longer doing this "one key per chain" nonsense (see https://www.alchemy.com/blog/summer-of-chains#simplifying-multichain-development), we should be able to use just a single key for all chains, no need to add more. I guess you can just take any from the map until we rework this? We should now probably have a single alchemy-token variable and remove the per-chain ones.

@@ -112,7 +112,9 @@ func (t *Transactor) NextNonce(ctx context.Context, rpcClient rpc.ClientInterfac
// We need to take into consideration all pending transactions in case of Optimism, cause the network returns always
// the nonce of last executed tx + 1 for the next nonce value.
if chainID == wallet_common.OptimismMainnet ||
chainID == wallet_common.OptimismSepolia {
chainID == wallet_common.OptimismSepolia ||
chainID == wallet_common.BaseMainnet ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm @saledjenic any idea about this? If this is correct, please update the comment since it only mentions Optimism.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was wandering the same, I hope Brian tested it, cause no other way to figure out this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But on the other side, I don't know if we need this at all. I mean, I added that condition a long time ago, but recently (a few months ago) I've faced unreliable nonce resolving on nodefleet for Optimism due to not synced nodes. Since the effect is the same, now I am leaning more toward that we don't need this check. Maybe we should try removing this block entirely and thoroughly inspect sending on Optimism.
@alaibe wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base works the same as Optimism as it is based on the Optimism stack, so if it is a network behavior we should replicate on Base as well. I can update the comment for now, in case this logic is not needed anymore we can remove it in a follow-up PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Contributor

@dlipicar dlipicar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rarible supports Base as well: https://docs.rarible.org/docs/supported-chains
We might as well add support there too.

Copy link
Contributor

@dlipicar dlipicar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Massive work!
So much stuff to validate though... I'll start work on the desktop integration right away.

@dlipicar
Copy link
Contributor

@alaibe do we want to support community tokens on Base? I think there's a bunch of changes + deployed contracts missing for that.

@briansztamfater
Copy link
Member Author

@alaibe do we want to support community tokens on Base? I think there's a bunch of changes + deployed contracts missing for that.

Yeah, I think @0x-r4bbit maintains these contracts and I am not sure anyone can deploy them, but I think we can add support for communities on Base in a separate PR, if needed.

@alaibe
Copy link
Collaborator

alaibe commented Jan 13, 2025

@dlipicar @briansztamfater we just discussed this point, we agreed that this is not a blocker for this PR.
Feel free to merge without the communities contract deployed for base, @dlipicar will prevent the desktop client to offer base chain

DefaultFallbackURL: fmt.Sprintf("https://%s.api.status.im/infura/base/mainnet/", stageName),
DefaultFallbackURL2: fmt.Sprintf("https://%s.api.status.im/grove/base/mainnet/", stageName),
RPCURL: "https://base-mainnet.infura.io/v3/",
FallbackURL: "https://base-archival.rpc.grove.city/v1/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there seems to be no base-archival endpoint in Grove, just base
https://docs.grove.city/base-api/intro

DefaultFallbackURL: fmt.Sprintf("https://%s.api.status.im/infura/base/sepolia/", stageName),
DefaultFallbackURL2: fmt.Sprintf("https://%s.api.status.im/grove/base/sepolia/", stageName),
RPCURL: "https://base-sepolia.infura.io/v3/",
FallbackURL: "https://base-sepolia-archival.rpc.grove.city/v1/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No base-sepolia-archival endpoint, just base-testnet
https://docs.grove.city/base-api/intro

@dlipicar dlipicar force-pushed the feat/integrate-base-chain branch from 58114fe to db07128 Compare January 14, 2025 12:52
@@ -12,9 +12,11 @@ var contractDataByChainID = map[uint64]common.Address{
1: common.HexToAddress("0x040EA8bFE441597849A9456182fa46D38B75BC05"), // mainnet
10: common.HexToAddress("0x55bD303eA3D50FC982A8a5b43972d7f38D129bbF"), // optimism
42161: common.HexToAddress("0x54764eF12d29b249fDC7FC3caDc039955A396A8e"), // arbitrum
8453: common.HexToAddress("0x84A1C94fcc5EcFA292771f6aE7Fbf24ec062D34e"), // base
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should stop manually entering chainIDs and just use the wallet constants

@@ -42,3 +42,4 @@ exclude_patterns:
- "static/"
- "t/"
- "images/qr-assets.go"
- "contracts/hop/l2Contracts/l2BaseBridge/l2BaseBridge.go"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm @igor-sirotin it seems there's some auto-generated code that's not getting auto-excluded, is there some other place where this needs to be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[Wallet] Add support for Base chain
5 participants