forked from JackHamer09/zksync-plus
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
458b296
commit 9a0f256
Showing
17 changed files
with
149 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* import { $fetch } from "ofetch"; */ | ||
import { useMemoize } from "@vueuse/core"; | ||
|
||
/* Returns void if address screening was successful */ | ||
/* Fails if address screening was unsuccessful */ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const validateAddress = useMemoize(async (address: string) => { | ||
/* const response = await $fetch(`${env.API_URL}/check-address/${address}`); */ | ||
// TODO: remove mock | ||
await new Promise((resolve) => setTimeout(resolve, 1000)); | ||
// throw new Error("We were unable to process this transaction..."); | ||
}); | ||
|
||
export default () => { | ||
return { | ||
validateAddress, | ||
}; | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<template> | ||
<ModalTransactionDepositUnavailable /> | ||
|
||
<EraDepositForm /> | ||
<DepositView /> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import EraDepositForm from "@/views/transactions/Deposit.vue"; | ||
import DepositView from "@/views/transactions/Deposit.vue"; | ||
</script> | ||
|
||
<style lang="scss" scoped></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<template> | ||
<EraTransferForm type="transfer"> | ||
<TransferView type="transfer"> | ||
<template #title> | ||
<PageTitle :fallback-route="{ name: 'send-methods' }">Send to another address</PageTitle> | ||
</template> | ||
</EraTransferForm> | ||
</TransferView> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import EraTransferForm from "@/views/transactions/Transfer.vue"; | ||
import TransferView from "@/views/transactions/Transfer.vue"; | ||
</script> | ||
|
||
<style lang="scss" scoped></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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<template> | ||
<ModalTransactionWithdrawalUnavailable /> | ||
|
||
<EraTransferForm type="withdrawal"> | ||
<TransferView type="withdrawal"> | ||
<template #title> | ||
<PageTitle>Bridge</PageTitle> | ||
</template> | ||
</EraTransferForm> | ||
</TransferView> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import EraTransferForm from "@/views/transactions/Transfer.vue"; | ||
import TransferView from "@/views/transactions/Transfer.vue"; | ||
</script> | ||
|
||
<style lang="scss" scoped></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
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
Oops, something went wrong.