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(bridge-ui-v2): Processing Fee #14170

Merged
merged 75 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
25b2902
wip
jscriptcoder Jul 10, 2023
d55c7ba
wip: faucet
jscriptcoder Jul 10, 2023
b64b0a2
wip: Modal
jscriptcoder Jul 11, 2023
2d1f1d2
wip
jscriptcoder Jul 11, 2023
bd2e4a7
wip
jscriptcoder Jul 11, 2023
2fd98ee
wip
jscriptcoder Jul 11, 2023
1ed70be
wip
jscriptcoder Jul 11, 2023
397a40b
Faucet
jscriptcoder Jul 11, 2023
2c00949
Merge branch 'main' into mint_test_tokens
jscriptcoder Jul 11, 2023
93166b7
minor change
jscriptcoder Jul 12, 2023
5b9cdb9
Merge branch 'mint_test_tokens' of https://github.com/taikoxyz/taiko-…
jscriptcoder Jul 12, 2023
8275a4b
Merge branch 'main' into mint_test_tokens
jscriptcoder Jul 12, 2023
1773ec5
wip: mobile
jscriptcoder Jul 12, 2023
8b4a0d0
Merge branch 'mint_test_tokens' of https://github.com/taikoxyz/taiko-…
jscriptcoder Jul 12, 2023
b374fd9
DesltopOrLarger helper component
jscriptcoder Jul 12, 2023
c95e2b7
minor change
jscriptcoder Jul 12, 2023
f9ad657
minor change
jscriptcoder Jul 12, 2023
2606310
Update packages/bridge-ui-v2/src/i18n/en.json
jscriptcoder Jul 12, 2023
c2e7283
fix eslint
jscriptcoder Jul 12, 2023
7834cce
Merge branch 'mint_test_tokens' of https://github.com/taikoxyz/taiko-…
jscriptcoder Jul 12, 2023
1a5c23f
minor change
jscriptcoder Jul 12, 2023
faa1986
rename free to fee
jscriptcoder Jul 12, 2023
888cf3f
typo
jscriptcoder Jul 12, 2023
30570c2
better use of conditions
jscriptcoder Jul 12, 2023
e972b2d
add minor comment
jscriptcoder Jul 12, 2023
c7d11d3
wip
jscriptcoder Jul 12, 2023
61cd279
add checkMintable test
jscriptcoder Jul 12, 2023
0029e85
minor change
jscriptcoder Jul 12, 2023
ae9999a
token minting coverage
jscriptcoder Jul 12, 2023
cb284a8
excluding coverage
jscriptcoder Jul 12, 2023
b18931a
merge main
jscriptcoder Jul 12, 2023
842372e
wip
jscriptcoder Jul 13, 2023
16caf7d
wip
jscriptcoder Jul 13, 2023
5276925
render user balabnce
jscriptcoder Jul 13, 2023
430b0de
error handling
jscriptcoder Jul 13, 2023
1033b55
Merge branch 'main' into account_balance
jscriptcoder Jul 13, 2023
231f686
remove unnecessary comment
jscriptcoder Jul 13, 2023
a6b825a
small comment
jscriptcoder Jul 13, 2023
1f1d2f3
small comment
jscriptcoder Jul 13, 2023
25c0e83
getAddress unit test
jscriptcoder Jul 13, 2023
c415d57
some improvements on test
jscriptcoder Jul 13, 2023
956ae90
some improvements on test
jscriptcoder Jul 13, 2023
978c2ff
wip
jscriptcoder Jul 13, 2023
32f6898
main merge
jscriptcoder Jul 14, 2023
7ade65a
test token functions
jscriptcoder Jul 14, 2023
9f025b1
fix lint
jscriptcoder Jul 14, 2023
44bc91b
mocke libs
jscriptcoder Jul 14, 2023
77240c3
improve tests
jscriptcoder Jul 14, 2023
3f38cee
minor change
jscriptcoder Jul 14, 2023
93d588f
minor change
jscriptcoder Jul 14, 2023
cc05c0f
convert with +
jscriptcoder Jul 14, 2023
4ca3e53
small refactoring
jscriptcoder Jul 14, 2023
519e3e3
better job with account connection
jscriptcoder Jul 14, 2023
8016a40
minor change in the LoadingText
jscriptcoder Jul 14, 2023
9d34a07
recommended fee
jscriptcoder Jul 14, 2023
05bbde5
passing object args
jscriptcoder Jul 14, 2023
8f6e1ce
wip
jscriptcoder Jul 14, 2023
9fe557a
swapping networks
jscriptcoder Jul 14, 2023
66adfd1
wip
jscriptcoder Jul 14, 2023
1e54354
merge main
jscriptcoder Jul 14, 2023
79005fb
minor changes
jscriptcoder Jul 15, 2023
07a8d2a
Merge branch 'main' into recommended_fee
jscriptcoder Jul 17, 2023
af4b8ce
destination network is only used in bridge page
jscriptcoder Jul 17, 2023
1060636
fix lint
jscriptcoder Jul 17, 2023
7b28160
wip
jscriptcoder Jul 17, 2023
a18252f
wip
jscriptcoder Jul 17, 2023
eb8a33b
wip
jscriptcoder Jul 17, 2023
c0c8269
fix lint
jscriptcoder Jul 17, 2023
fe08212
disable None when no ETH on destination
jscriptcoder Jul 17, 2023
629e093
delay option click
jscriptcoder Jul 17, 2023
a7789c8
better ux
jscriptcoder Jul 17, 2023
c34d82a
fix lint
jscriptcoder Jul 17, 2023
a91d737
ProcessingFee component finished
jscriptcoder Jul 17, 2023
6a32a55
minor change
jscriptcoder Jul 17, 2023
da73b13
minor change
jscriptcoder Jul 17, 2023
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
Prev Previous commit
Next Next commit
wip
  • Loading branch information
jscriptcoder committed Jul 11, 2023
commit 2fd98ee5ff39043d9e1b8b5776fe1b46afaed6bc
Original file line number Diff line number Diff line change
Expand Up @@ -98,40 +98,41 @@

<dialog id={dialogId} class="modal modal-bottom md:modal-middle" class:modal-open={modalOpen}>
<div class="modal-box relative px-6 py-[21px] bg-primary-base-background text-primary-base-content">
{#if switchingNetwork}
<LoadingMask
class="bg-grey-0/60"
spinnerClass="border-primary-base-content"
text={$t('messages.network.switching')} />
{/if}

<button class="absolute right-6 top-[21px]" on:click={closeModal}>
<Icon type="x-close" fillClass="fill-secondary-icon" size={24} />
</button>
<h3 class="title-body-bold mb-[20px]">{$t('chain_selector.placeholder')}</h3>
<div class="relative">
{#if switchingNetwork}
<LoadingMask class="bg-grey-0/60" text={$t('')} />
{/if}

<ul role="menu" class="space-y-4">
{#each chains as chain (chain.id)}
{@const disabled = chain.id === value?.id}
{@const liConditionalClass = disabled ? 'opacity-50' : 'hover:bg-grey-10 hover:cursor-pointer'}
<li
role="menuitem"
tabindex="0"
class={`p-4 rounded-[10px] ${liConditionalClass}`}
aria-disabled={disabled}
on:click={() => selectChain(chain)}
on:keydown={getChainKeydownHandler(chain)}>
<!-- TODO: agree on hover:bg color -->
<div class="f-row justify-between">
<div class="f-items-center space-x-4">
<i role="img" aria-label={chain.name}>
<svelte:component this={chainToIconMap[chain.id]} size={32} />
</i>
<span class="body-bold">{chain.name}</span>
</div>
<span class="body-regular">{chain.network}</span>
<ul role="menu" class="space-y-4">
{#each chains as chain (chain.id)}
{@const disabled = chain.id === value?.id}
{@const liConditionalClass = disabled ? 'opacity-50' : 'hover:bg-grey-10 hover:cursor-pointer'}
<li
role="menuitem"
tabindex="0"
class={`p-4 rounded-[10px] ${liConditionalClass}`}
aria-disabled={disabled}
on:click={() => selectChain(chain)}
on:keydown={getChainKeydownHandler(chain)}>
<!-- TODO: agree on hover:bg color -->
<div class="f-row justify-between">
<div class="f-items-center space-x-4">
<i role="img" aria-label={chain.name}>
<svelte:component this={chainToIconMap[chain.id]} size={32} />
</i>
<span class="body-bold">{chain.name}</span>
</div>
</li>
{/each}
</ul>
</div>
<span class="body-regular">{chain.network}</span>
</div>
</li>
{/each}
</ul>
</div>

<div class="overlay-backdrop" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

export let text: string = 'Loading';
export let textClass: string = '';
export let spinnerClass: string = '';

let classes = classNames(
'gap-2 z-10',
Expand All @@ -18,6 +19,6 @@
</script>

<div class={classes}>
<Spinner />
<Spinner class={spinnerClass} />
<span class={textClasses}>{text}</span>
</div>