-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: transfer ERC20 tokens via XVM from Native accounts (#627)
* feat: added asset options on the XCM assets panel * refactor: asset option * feat: added XCV token import modal * feat: configured v2 settings * feat: configured v2 settings (2) * feat: added XVM transfer page * feat: added transfer logic * fix: display ERC20 tokens on Shibuya EVM * feat: display imported tokens on the EVM assets page * config: updated polkadot.js vesion * fix: updated H160 tokens transfer for XVM tokens * feat: sending xvm tokens from H160 (local network) * feat: added 'remove token' feature * feat: applied WeightV2 * fix: connect API fallback logic * Gas estimate (#632) * Gas limit estimate * fix: updated WASM_GAS_LIMIT and PROOF_SIZE Co-authored-by: impelcrypto <impelcrypto@gmail.com> * feat: defined xvm transfer function in v2 folder * fix: isRequiredCheckXvm * fix: words * feat: added Recent History for XVM transfer * feat: added import ERC20 tokens button * feat: added search option on EVM XCM assets liest * feat: added feature panel * fix: removed XVM PSP22 and EVM ERC20 contract address inputs on the modal * feat: added XVM-PSP22-option contract * feat: added contract wasm files * fix: modified seatch icon styling * fix: optimized the way computing 'isXcmAssets' variable * fix: use existing Erc20Token interface for imported tokens * refactor: clean up * fix: removed PSP22 contract * feat: added test file * refactor: clean up * refactor: clean up(2) * styling: updated styling * fix: monitor native token balance on transfer page * feat: convert address format in contract * fix: updated contract address * fix: removes event listner when the components are unmounted * feat: fetch users xvm-assets-transfer-history data from token-api * fix: fetch native token's USD price on H160 mode Co-authored-by: Nikhil Ranjan <niklabh811@gmail.com>
- Loading branch information
1 parent
bcb96f5
commit 979516a
Showing
96 changed files
with
3,841 additions
and
639 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
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,79 @@ | ||
<template> | ||
<div class="row--search-option"> | ||
<div :class="isSearch && 'search--active'"> | ||
<div class="box--search"> | ||
<table class="table--search"> | ||
<tr class="tr--search"> | ||
<td> | ||
<input | ||
type="text" | ||
placeholder="Search" | ||
class="input--search" | ||
@input="setSearch" | ||
@focus="setIsSearch(true)" | ||
@blur="setIsSearch(false)" | ||
/> | ||
</td> | ||
<td> | ||
<div class="icon--search"> | ||
<astar-icon-search /> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
<asset-options | ||
:is-import-modal="isImportModal" | ||
:toggle-is-hide-small-balances="toggleIsHideSmallBalances" | ||
:is-hide-small-balances="isHideSmallBalances" | ||
:tokens="tokens" | ||
:is-only-import-tokens="false" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent, PropType } from 'vue'; | ||
import AssetOptions from 'src/components/assets/AssetOptions.vue'; | ||
export default defineComponent({ | ||
components: { | ||
AssetOptions, | ||
}, | ||
props: { | ||
isImportModal: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
isHideSmallBalances: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
isSearch: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
setSearch: { | ||
type: Function as PropType<(payload: Event) => void>, | ||
required: true, | ||
}, | ||
setIsSearch: { | ||
type: Function, | ||
required: true, | ||
}, | ||
toggleIsHideSmallBalances: { | ||
type: Function, | ||
required: true, | ||
}, | ||
tokens: { | ||
type: Array as PropType<any[]>, | ||
required: false, | ||
default: null, | ||
}, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@use 'src/components/assets/styles/asset-search-option.scss'; | ||
</style> |
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
Oops, something went wrong.