-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: added evm-bridge page * chore: added link to evm-swap page * chore: added native swap page * chore: added evmToNativeTransfer section * fix: getting the /evm/swap pages working * refactor: renamed transfer functions * chore: styled the evm swap page * fix: got the native to evm swap working * fix: got the evm section working * style: linted * Removed package-lock.json and rebuilt yarn.lock * refactor: moved evm logic to separate file * fix: getting site building * enhancement: polishing swap page * enhancement: polishing of the swap page form * chore: moved select to element component * enhancement: polishing of the swap confirm page * enhancement: added EOS native balance * enhancement: added EVM EOS balance * enhancement: added basic validation * enhancement: better error handling * enhancement: polished the swap success page * enhancement: general polishing of evm bridge * style: linted * enhancement: polished the error page * enhancement: connecting to evm wallet on page load * chore: trying to connect to eth wallet automatically every 3 seconds * enhancement: general polishing of new transfer page * enhancement: making transfer confirm screen bigger * enhancement: clearing the form when changing active session * refactor: using from and to instead of transferOption * enhancement: using the token selector to let users select account * fix: getting the token selector working with evm swap form * enhancement: general polishing of evm swap form * enhancement: added selectedToken to TokenSelector * fix: only allowing form submission once both from and to tokens are selected * enhancement: making the evm swap section look decent on mobile * style: linted * enhancement: added ability to pass string instead of balance * fix: removed border on transfer confirm page * chore: using /send and /transfer as urls * fix: preventing submit if not connected to evm wallet * enhancement: displaying fee amount on confirmation page * fix: handling useEntireBalance case gracefully * style: linted * enhancement: making sure that evm provider is always accessible * enhancement: updating the balances after transfer * style: linted * enhancement: adding fee to transfer amount as opposed to removing it * chore: displaying fee and net amount in form * enhancement: styled the confirm page * enhancement: calculating fee every time an input changes * enhancement: useEntireBalance now takes into account transferFee * enhancement: displaying error when funds are insufficient to cover the transfer fee * chore: added EvmTxFollower component * enhancement: adding customization props to TxFollower components * fix: resetting the form properly when appropriate * chore: displaying usd prices on confirm page * enhancement: displaying EOS token on confirmation page * style: linted --------- Co-authored-by: Aaron Cox <aaron@greymass.com>
- Loading branch information
Showing
49 changed files
with
1,895 additions
and
233 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
declare global { | ||
interface Window { | ||
ethereum: any | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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 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 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 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 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,47 @@ | ||
<script lang="ts"> | ||
import {createEventDispatcher} from 'svelte' | ||
const dispatch = createEventDispatcher() | ||
interface Option { | ||
value: string | ||
label: string | ||
} | ||
export let value = '' | ||
export let options: Option[] = [] | ||
export let fluid: boolean = false | ||
function handleChange(event: Event) { | ||
value = (event.target as HTMLSelectElement).value | ||
dispatch('change', value) | ||
} | ||
</script> | ||
|
||
<style type="scss"> | ||
select { | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
width: 170px; | ||
padding: 10px 12px; | ||
margin-bottom: 15px; | ||
border: 1px solid var(--dark-grey); | ||
border-radius: 12px; | ||
background-color: var(--main-grey); | ||
font-size: 12px; | ||
color: var(--main-black); | ||
&.fullWidth { | ||
width: 100%; | ||
} | ||
} | ||
</style> | ||
|
||
<select class={fluid ? 'fullWidth' : ''} bind:value on:change={handleChange}> | ||
{#each options as option (option.value)} | ||
<option value={option.value}> | ||
{option.label} | ||
</option> | ||
{/each} | ||
</select> |
Oops, something went wrong.