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: add (w)steth unwrap/wrap on Sepolia Optimism #484

Merged
merged 121 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
fbda9a8
feat: temp commit
solidovic Sep 26, 2024
34b463c
feat: make 'stETH to wstETH' operation on L2
solidovic Sep 26, 2024
b6b7702
refactor: init new sdk
solidovic Sep 26, 2024
fc3f353
refactor: rename to l1 and l2 operations
solidovic Sep 30, 2024
869298e
refactor: rename to l1 and l2 operations
solidovic Sep 30, 2024
d143a7a
feat: wrapWstethToSteth on l2 (without approve)
solidovic Sep 30, 2024
3bdfdcf
feat: wrapWstethToSteth on l2 (with approve)
solidovic Oct 1, 2024
bd0d7d9
refactor: wrap TX on L2 use runWithTransactionLogger
solidovic Oct 1, 2024
9b0b4ee
refactor: unwrap TX on L2 use runWithTransactionLogger
solidovic Oct 1, 2024
7e30d40
feat: not show allowance if not need
solidovic Oct 1, 2024
8877911
fix: typing
solidovic Oct 1, 2024
61c61ed
fix: check allowance
solidovic Oct 2, 2024
2b3e348
refactor: not use isSDKSupportedL2Chain
solidovic Oct 2, 2024
8e3d8be
refactor: optimization of the use of '@lidofinance/lido-ethereum-sdk'
solidovic Oct 2, 2024
8d00483
feat: add op sepolia tx etherscan
solidovic Oct 2, 2024
88535b2
fix: balance on success tx modal
solidovic Oct 2, 2024
49f8caa
feat: add DappChainProvider
solidovic Oct 3, 2024
a9e26a7
feat(draft): add ChainSwitcher to header
solidovic Oct 3, 2024
5000335
refactor: dapp statuses
solidovic Oct 3, 2024
7487954
fix: typing
solidovic Oct 3, 2024
4649bfc
feat: add SelectIconTooltip
solidovic Oct 3, 2024
90d872c
feat: disabled chain switcher
solidovic Oct 3, 2024
c77ab09
feat: wallet block is red for optimism
solidovic Oct 3, 2024
24c3019
feat: new cases of wrong network
solidovic Oct 3, 2024
d34877c
fix: chain-toggler icons
solidovic Oct 3, 2024
4b4e64d
fix: change SelectIconTooltip position
solidovic Oct 3, 2024
0728547
fix: wrong network msg
solidovic Oct 3, 2024
87c4092
fix(wallet): fallback condition
solidovic Oct 3, 2024
69fce39
fix: isApprovalNeededBeforeUnwrap status
solidovic Oct 3, 2024
f827d03
feat: change UnsupportedChainButton to DisabledButton
solidovic Oct 3, 2024
8c14a72
feat: hover of SelectIconStyled
solidovic Oct 3, 2024
4be0051
fix: load wallet balance
solidovic Oct 3, 2024
a468823
feat: add OP_Sep to header
solidovic Oct 3, 2024
f575ca2
fix: showing 'Wrong network...' fallback
solidovic Oct 3, 2024
eb90bcf
feat: remove icon
solidovic Oct 3, 2024
54a3547
fix: fix LidoMultichainFallback
solidovic Oct 3, 2024
d69d6af
fix: use balance hook
solidovic Oct 3, 2024
988dcf6
feat: add Optimism
solidovic Oct 3, 2024
7ce33bd
chore: remove todos
solidovic Oct 3, 2024
c7ecd3f
chore: remove todos
solidovic Oct 3, 2024
8db99a0
refactor: refactor ChainSwitcher, DappChain provider
solidovic Oct 3, 2024
617c764
chore: todo
solidovic Oct 3, 2024
f343357
revert: useDappStatus
solidovic Oct 3, 2024
7050872
feat: auto change in ChainSwitcher
solidovic Oct 3, 2024
41b1a26
fix: wrap/unwrap options for l2
solidovic Oct 3, 2024
3b57a60
revert(IPFS.json): remove a config 10, 11155420
solidovic Oct 4, 2024
cc181a7
refactor: useDappStatus
solidovic Oct 4, 2024
0424736
fix: chain switcher height
solidovic Oct 4, 2024
eb5cb20
chore: remove comment
solidovic Oct 4, 2024
de4bb96
refactor: remove fallbackRpcUrl form init LidoSDKCore
solidovic Oct 4, 2024
1c9dfe1
refactor: lido SDK provider
solidovic Oct 4, 2024
1c8f1e2
refactor(header): chain full name
solidovic Oct 4, 2024
f3809ce
fix(chain switcher): width
solidovic Oct 4, 2024
b7fc852
fix: fix the msg 'Wrong network...'
solidovic Oct 4, 2024
8eec793
fix: withdrawals pages
solidovic Oct 4, 2024
3c79261
refactor: wallet fallback and fallback on wrap/unwrap
solidovic Oct 4, 2024
2507b44
feat: show multi chain banner for stake and withdrawls (if wallet on …
solidovic Oct 4, 2024
d303a98
feat: show 'Unsupported chain.' banner on rewards
solidovic Oct 4, 2024
0860e88
fix: useStakingLimitWarning
solidovic Oct 4, 2024
52a9d5e
feat: make blue(disabled) and gray button for different condition
solidovic Oct 4, 2024
77c90b5
fix: fix 'View on Etherscan' on wallet modal
solidovic Oct 4, 2024
c0f1cbd
refactor: remove the select token from the wrap form on Optimism Sepo…
solidovic Oct 4, 2024
f40d6dc
refactor(unwrap page): use l2 contract for stats
solidovic Oct 4, 2024
0c858ae
refactor(wrap page): use l2 contract for stats
solidovic Oct 4, 2024
6ba9d7d
refactor(wrap/unwrap stats): make cleaner code
solidovic Oct 7, 2024
5d3c511
chore: add todo comment
solidovic Oct 7, 2024
fbb7da7
fix: rpc allow list
Jeday Oct 7, 2024
28f4d30
fix: build
Jeday Oct 7, 2024
fe905ba
fix: rpc allow list
Jeday Oct 7, 2024
62743d8
fix: allowance and gas estimation
Jeday Oct 7, 2024
b65c9f4
Merge branch 'feature/si-1606-steth-on-optimism-wrapunwrap' of github…
Jeday Oct 7, 2024
312a39e
fix: rpc method for wagmi
Jeday Oct 7, 2024
e3e3b6d
fix: add token to wallet for l2
Jeday Oct 7, 2024
8eab0db
fix: loading state for allowance
Jeday Oct 7, 2024
f9f5013
feat: allowance, gas estimation, token to wallet on L2
Jeday Oct 7, 2024
e73adea
fix: disable useApproveOnL1 on l2
Jeday Oct 7, 2024
baf3189
feat(wrap/unwrap wallet): cobvert a wstethBySteth and stethByWsteth o…
solidovic Oct 7, 2024
9d3f936
refactor: run wstethByStethOnL2 and stethByWstethOnL2 on l2
solidovic Oct 7, 2024
af7d0e8
fix: use correct isContract
Jeday Oct 7, 2024
133622f
refactor: not run useStethByWsteth and useWstethBySteth on l2
solidovic Oct 7, 2024
c43f6d2
Merge branch 'feature/si-1606-steth-on-optimism-wrapunwrap' of github…
Jeday Oct 7, 2024
e6b4fe7
Merge pull request #488 from lidofinance/fix/sepolia-rpc
Jeday Oct 7, 2024
3d4f2b8
refactor(useDebouncedWstethByStet): not run useStethByWsteth and useW…
solidovic Oct 7, 2024
202350a
refactor(useDebouncedStethByWsteth): not run useStethByWsteth and use…
solidovic Oct 7, 2024
19bd9a7
fix(useUnwrapFormProcessorArgs): willReceive for l2 get from l2
solidovic Oct 7, 2024
1fe1d93
fix(useWrapFormProcessorArgs): willReceive for l2 get from l2
solidovic Oct 7, 2024
4ca1077
fix: isContract and gas limit error
Jeday Oct 7, 2024
038f214
Merge pull request #489 from lidofinance/fix/sepolia-rpc
Jeday Oct 7, 2024
43d9aeb
fix: tx stages
Jeday Oct 7, 2024
8effd7f
Merge branch 'feature/si-1606-steth-on-optimism-wrapunwrap' of github…
Jeday Oct 7, 2024
c1c2c41
Merge pull request #490 from lidofinance/fix/sepolia-rpc
Jeday Oct 7, 2024
2ff9d3d
fix(wrap): show Allowance and Max unlock cost for not connected wallet
solidovic Oct 7, 2024
da2d2bf
fix: token to wallet on l2
Jeday Oct 7, 2024
90fcb58
fix(uwwrap l2): reject approve and reject unwrap
solidovic Oct 7, 2024
3873ed3
fix(wrap): fix showing a allowance
solidovic Oct 7, 2024
b8221f7
fix: exchange rate cache conflict
Jeday Oct 7, 2024
e9ff143
fix(wrap/unwrap): fix showing a 'wrong network' banner
solidovic Oct 7, 2024
c4662d0
fix(header): showing very long network names
solidovic Oct 7, 2024
3042c0e
fix: fix the text in "unsupported banner"
solidovic Oct 8, 2024
f1f874d
fix: fix mm error eth_maxFeePerGas
Jeday Oct 8, 2024
16e9fce
fix: fix wrap gas limit
Jeday Oct 8, 2024
2065af6
fix: fix n/a balances and strictier l2 conditon
Jeday Oct 8, 2024
10c0f34
feat(wrap/unwrap): add Optimism FAQ
solidovic Oct 8, 2024
600d055
Merge pull request #496 from lidofinance/feature/optimism-faq
Jeday Oct 8, 2024
88265ec
fix(l2 optimism): remove defaultExpanded
solidovic Oct 8, 2024
1776c8b
fix(l2 optimism): fix text
solidovic Oct 8, 2024
0e7ec8d
fix: useStethBalance query key
Jeday Oct 8, 2024
efef81c
fix(l2 optimism): fix faq text
solidovic Oct 8, 2024
f220322
fix(l2 optimism): fix faq text
solidovic Oct 8, 2024
84802ac
fix(wrap/unwrap page): multichain banner
solidovic Oct 8, 2024
186bdaa
fix: disconnected use default chain for old sdk
Jeday Oct 8, 2024
1422d70
fix(header): showing balance if isDappActiveAndNetworksMatched=true
solidovic Oct 8, 2024
2d68cfa
fix(wrap/unwrap faq): showing by chainName (toggle)
solidovic Oct 8, 2024
dc0948c
fix(wrap/unwrap faq): fix text
solidovic Oct 8, 2024
7ae480c
fix: wrong default chain
Jeday Oct 8, 2024
9113bb4
Merge branch 'feature/si-1606-steth-on-optimism-wrapunwrap' of github…
Jeday Oct 8, 2024
05fa458
fix(matomo): fix event
solidovic Oct 8, 2024
bd1c585
Merge remote-tracking branch 'origin/feature/si-1606-steth-on-optimis…
solidovic Oct 8, 2024
8fde431
fix(faq optimism): fix text
solidovic Oct 8, 2024
20080ab
fix(wrap/unwrap stats): not show for "unsupported" and "wrong" banners
solidovic Oct 8, 2024
3712938
fix(wrap/unwrap stats): return DATA_UNAVAILABLE
solidovic Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ RESEARCH_ORIGIN=https://research.lido.fi
EL_RPC_URLS_1=
EL_RPC_URLS_17000=
EL_RPC_URLS_11155111=
EL_RPC_URLS_10=
EL_RPC_URLS_11155420=

# IPFS prefill RPC URLs - list of URLs delimited by commas
PREFILL_UNSAFE_EL_RPC_URLS_1=
PREFILL_UNSAFE_EL_RPC_URLS_17000=
PREFILL_UNSAFE_EL_RPC_URLS_11155111=
PREFILL_UNSAFE_EL_RPC_URLS_10=
PREFILL_UNSAFE_EL_RPC_URLS_11155420=

# supported networks for connecting wallet
Expand Down
9 changes: 0 additions & 9 deletions IPFS.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,5 @@
"enabledWithdrawalDexes": ["one-inch", "paraswap", "bebop"],
"multiChainBanner": []
}
},
"11155420": {
"__warning__": "For testing purposes only",
"cid": "",
"leastSafeVersion": "0.36.1",
"config": {
"enabledWithdrawalDexes": ["one-inch", "paraswap", "bebop"],
"multiChainBanner": []
}
}
}
Loading
Loading