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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bridge-ui): ERC20 Bridge + approval #353

Merged
merged 13 commits into from
Dec 1, 2022
Merged

feat(bridge-ui): ERC20 Bridge + approval #353

merged 13 commits into from
Dec 1, 2022

Conversation

cyberhorsey
Copy link
Contributor

No description provided.

@cyberhorsey cyberhorsey changed the title Erc20 bridge feat(bridge-ui): ERC20 Bridge + approval Nov 28, 2022
@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Merging #353 (b952fd2) into main (69e9362) will increase coverage by 0.59%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #353      +/-   ##
==========================================
+ Coverage   64.57%   65.17%   +0.59%     
==========================================
  Files          88       90       +2     
  Lines        2442     2484      +42     
  Branches      275      286      +11     
==========================================
+ Hits         1577     1619      +42     
  Misses        793      793              
  Partials       72       72              
Flag Coverage 螖 *Carryforward flag
bridge-ui 100.00% <100.00%> (?)
protocol 60.31% <酶> (酶) Carriedforward from 63dbd28
relayer 68.92% <酶> (酶) Carriedforward from 63dbd28
ui 100.00% <100.00%> (酶) Carriedforward from 63dbd28

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage 螖
packages/bridge-ui/src/constants/abi/ERC20.ts 100.00% <100.00%> (酶)
packages/bridge-ui/src/erc20/bridge.ts 100.00% <100.00%> (酶)
packages/bridge-ui/src/eth/bridge.ts 100.00% <100.00%> (酶)

馃摚 We鈥檙e building smart automated test selection to slash your CI/CD build times. Learn more

dantaik
dantaik previously approved these changes Nov 28, 2022
cyberhorsey and others added 5 commits November 30, 2022 07:44
Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>
Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>
Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>
Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>
davidtaikocha
davidtaikocha previously approved these changes Nov 30, 2022
RogerLamTd
RogerLamTd previously approved these changes Dec 1, 2022
@cyberhorsey cyberhorsey merged commit 0652595 into main Dec 1, 2022
@cyberhorsey cyberhorsey deleted the erc20_bridge branch December 1, 2022 18:49
cyberhorsey added a commit that referenced this pull request Dec 2, 2022
* feat(bridge-ui): ERC20 Bridge + approval (#353)

* erc20 bridge + approve + requires allowance

* bridge form checks allowance, disables button

* if allowance is required, show approve button instead

* set allowance required to false after successful approval

* requiresallowance should take approveopts, not bridgeopts

* show Approve text appropriatley

* Update packages/bridge-ui/src/components/form/BridgeForm.svelte

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* Update packages/bridge-ui/src/eth/bridge.ts

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* Update packages/bridge-ui/src/components/form/BridgeForm.svelte

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* Update packages/bridge-ui/src/components/form/BridgeForm.svelte

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* inverse approve logic

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* .

* lottie player

* update lockfile

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>
cyberhorsey added a commit that referenced this pull request Dec 6, 2022
* fix(bridge): wagmi init

* feat(bridge): implement design

* feat(bridge): add processing fee mock

* fix(bridge): review fixes

* feat(bridge): add default case and test

* fix(bridge): update test

* feat(bridge): single field bridge form

* fix(bridge): processing fee

* feat(bridge-ui): Transactions (#372)

* feat(bridge-ui): ERC20 Bridge + approval (#353)

* erc20 bridge + approve + requires allowance

* bridge form checks allowance, disables button

* if allowance is required, show approve button instead

* set allowance required to false after successful approval

* requiresallowance should take approveopts, not bridgeopts

* show Approve text appropriatley

* Update packages/bridge-ui/src/components/form/BridgeForm.svelte

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* Update packages/bridge-ui/src/eth/bridge.ts

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* Update packages/bridge-ui/src/components/form/BridgeForm.svelte

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* Update packages/bridge-ui/src/components/form/BridgeForm.svelte

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* inverse approve logic

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* .

* lottie player

* update lockfile

Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>

* feat: add chain selector

* make ETH/TKO use ts

* ignore components folder

* inline block avatar

* switch ethereum chain, chain navbar selection, default store values, label changing, modal

* test coverage for switchEthereumChain

* list

* readapt bridge form to work

* text

* feat(bridge): switch chain modal styles

* fix(bridge): chain dropdown styles

* tests

* rpc urls + reactive balanes

* import type

* cli test

Co-authored-by: jeff <113397187+cyberhorsey@users.noreply.github.com>
Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>
Co-authored-by: Jeffery Walsh <cyberhorsey@gmail.com>
@github-actions github-actions bot mentioned this pull request Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants