-
Notifications
You must be signed in to change notification settings - Fork 317
feat(optimism): integrate optimism into Mask ecosystem #5284
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
Merged
guanbinrui
merged 81 commits into
DimensionDev:develop
from
developerfred:codingsh/Integrate-Optimism
Aug 3, 2022
Merged
Changes from 67 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
2c62f91
feat(optimism): integrate optimism into Mask ecosystem #4868
developerfred 4f9a737
chore(optimistic): fixed import warnings
developerfred 4d71edc
Merge remote-tracking branch 'upstream/master' into codingsh/Integrat…
developerfred 647e3db
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 3778cd3
Merge remote-tracking branch 'upstream/develop' into HEAD
developerfred 787e6d0
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred ba97f5a
feat(optimistc): add events optimistic
developerfred afccc31
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 27d4c76
Merge remote-tracking branch 'origin/develop' into codingsh/Integrate…
developerfred 2130a87
feat(optimistic): add contracts
developerfred a4f20b4
feat(dHEDGE): add optimistic network
developerfred 232d7c8
feat(optimistic): enable unlock protocol
developerfred 86d9313
Merge remote-tracking branch 'origin/develop' into codingsh/Integrate…
developerfred 807e6f8
feat(optimistic): add contracts addres
developerfred 2fccf7f
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 035c54f
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 9e304a3
chore(optimistic): add ignore word on cspell
developerfred 60a385a
feat(optimistic): add mainnet contracts
developerfred 56dd7cd
feat(optimistic): add maskbox contract mainnet
developerfred f8942dc
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 406a143
feat(optimistic): add mask token address on optimistic
developerfred d25c186
chore(optimistic): fixed trader plugin
developerfred 250456c
chore(optimistic): rename optmistic to op
developerfred 52e7d8d
chore(optimistic): change redPacket address to implementer Mask deployer
developerfred 9b24670
chore(optimistic): change OETH to ETH
developerfred 0953e82
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 359f3a0
chore(optimistic): change mainnet name Optimistic to Optimism
developerfred f717ead
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 272fc63
feat(docs): improve docs for evm integrations and add contracts repo
developerfred a3a54d9
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 5636efd
Merge branch 'develop' into HEAD
developerfred c31470f
feat(optimistic): add jugglerred dex
developerfred 36eea91
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred cbe8035
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred b285c5b
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 3873786
chore(optimistic): enable on Trader plugin
developerfred d7d71a1
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 635917a
chore(optimism): fixed multicall address
developerfred 5f64a23
chore(optimistic): update uniswapV3 address
developerfred 8e001b0
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred e66049c
Merge branch 'develop' into codingsh/Integrate-Optimism
developerfred 119b42b
Merge remote-tracking branch 'upstream/develop' into HEAD
developerfred cff60db
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred aa3dda4
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 751fd86
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred c9ec998
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 614a059
feat(otimism): add ELK finance
developerfred 26d5672
chore(otimism): fixed token list
developerfred d9bebfb
chore(optimism): change rpc
developerfred 78be94a
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred e355bf5
feat(optimism): add zipswap dex
developerfred f0c8b67
chore(optmism): change name "Optimistic" to Optmism and add support O…
developerfred e4c03d9
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred f04431c
chore(optmism): add zipswap on cspell
developerfred d558476
chore(optimism): add hardCode gasLimit and gasPrice on optimism
developerfred bcf0399
chore(optimism): enable sushiswap
developerfred 6e185f5
fix: add missing deps (#6356)
nuanyang233 836f5f5
fix(ui): claim button && mind fb tool box hint (#6337)
hanszhoou 0bf326e
refactor: update promote text for plugins. (#6217)
UncleBill e884294
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 1cf6309
chore(optimism): fixed swap tokens
developerfred 0e0e138
chore(optimism): remove unecessary assets
developerfred 774ba3a
chore(op): need check trade on 0x000 address
developerfred 5a49a47
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred cb7b21a
chore(optimism): revert comment changes
developerfred 390e132
chore(optmism): i18n-codegen fix
developerfred 108734a
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 38cfde0
chore(optimism): fixed review
developerfred 63ae742
chore(op): fixed chain type optimism and logo token url
developerfred b11195c
Merge remote-tracking branch 'upstream/develop' into codingsh/Integra…
developerfred 130a744
Merge branch 'develop' into codingsh/Integrate-Optimism
nuanyang233 befe600
fix: incorrect network type
nuanyang233 51ef4b5
fix: bugfix
nuanyang233 4985ffc
fix: remove useless dex
nuanyang233 3fbecd8
fix: uniswap v3 on op network
guanbinrui c844bcd
revert: add op to base against tokens
nuanyang233 da5a4a1
Merge branch 'develop' into codingsh/Integrate-Optimism
nuanyang233 7628600
fix: remove jugglerred network
nuanyang233 ea95a8d
fix: add op support at ito
nuanyang233 a3f7c21
Merge branch 'develop' into codingsh/Integrate-Optimism
guanbinrui b93c643
chore: linter error
nuanyang233 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,37 @@ | ||
| import { | ||
| ChainId, | ||
| DAI, | ||
| RUNE, | ||
| USDC, | ||
| USDT, | ||
| fUSDT, | ||
| WBTC, | ||
| WNATIVE, | ||
| WNATIVE_ONLY, | ||
| NFTX, | ||
| STETH, | ||
| BUSD, | ||
| BTCB, | ||
| ELK, | ||
| } from '@masknet/web3-shared-evm' | ||
|
|
||
| import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' | ||
|
|
||
| /** | ||
| * Some tokens can only be swapped via certain pairs, | ||
| * so we override the list of bases that are considered for these tokens. | ||
| */ | ||
| export const ELKFINANCE_CUSTOM_BASES: ERC20TokenCustomizedBase = {} | ||
|
|
||
| export const ELKFINANCE_BASE_AGAINST_TOKENS: ERC20AgainstToken = { | ||
| ...WNATIVE_ONLY, | ||
| [ChainId.Mainnet]: [WNATIVE, DAI, USDC, USDT, WBTC, RUNE, NFTX, STETH, ELK].map((x) => x[ChainId.Mainnet]), | ||
| [ChainId.Matic]: [WNATIVE, USDC, WBTC, DAI, USDT, ELK].map((x) => x[ChainId.Matic]), | ||
| [ChainId.BSC]: [WNATIVE, DAI, BUSD, USDC, USDT, BTCB, ELK].map((x) => x[ChainId.BSC]), | ||
| [ChainId.xDai]: [WNATIVE, USDC, USDT, WBTC, ELK].map((x) => x[ChainId.xDai]), | ||
| [ChainId.Fantom]: [WNATIVE, DAI, USDC, fUSDT, WBTC, ELK].map((x) => x[ChainId.Fantom]), | ||
| [ChainId.Avalanche]: [WNATIVE, DAI, USDC, WBTC, USDT, ELK].map((x) => x[ChainId.Avalanche]), | ||
| [ChainId.Harmony]: [WNATIVE, DAI, USDC, WBTC, USDT, ELK].map((x) => x[ChainId.Harmony]), | ||
| [ChainId.Optimism]: [WNATIVE, DAI, USDC, WBTC, USDT, ELK].map((x) => x[ChainId.Optimism]), | ||
| [ChainId.Arbitrum]: [WNATIVE, DAI, USDC, WBTC, USDT, ELK].map((x) => x[ChainId.Arbitrum]), | ||
| } |
This file contains hidden or 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 hidden or 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,14 @@ | ||
| import { ChainId, DAI, USDC, USDT, WBTC, WNATIVE, WNATIVE_ONLY } from '@masknet/web3-shared-evm' | ||
| import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' | ||
|
|
||
| /** | ||
| * Some tokens can only be swapped via certain pairs, | ||
| * so we override the list of bases that are considered for these tokens. | ||
| */ | ||
| export const JUGGLERRED_CUSTOM_BASES: ERC20TokenCustomizedBase = {} | ||
|
|
||
| export const JUGGLERRED_BASE_AGAINST_TOKENS: ERC20AgainstToken = { | ||
| ...WNATIVE_ONLY, | ||
| [ChainId.Optimism]: [WNATIVE, DAI, USDC, USDT, WBTC].map((x) => x[ChainId.Optimism]), | ||
| [ChainId.Optimism_Kovan]: [WNATIVE, DAI, USDC, USDT, WBTC].map((x) => x[ChainId.Optimism_Kovan]), | ||
| } |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.