Skip to content

Commit

Permalink
add folks router, configurable deflex apikey (#53)
Browse files Browse the repository at this point in the history
* add folks router, configurable deflex apikey

* update folks router

* fix folks send swap

* slippage

* fix layout, update swap ux

---------

Co-authored-by: Ludovit Scholtz <ludovit.scholtz@aaaauto.cz>
  • Loading branch information
scholtz and scholtz authored Oct 17, 2023
1 parent 005c530 commit 7390976
Show file tree
Hide file tree
Showing 14 changed files with 383 additions and 142 deletions.
56 changes: 51 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"test:open": "run-p -r server cypress:open"
},
"dependencies": {
"@folks-router/js-sdk": "^0.0.1",
"@ledgerhq/hw-app-algorand": "^6.27.16",
"@ledgerhq/hw-transport-webusb": "^6.27.16",
"@popperjs/core": "^2.11.8",
Expand Down
6 changes: 4 additions & 2 deletions src/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"connect": "WalletConnect"
},
"swap": {
"title": "Swap assets using Deflex protocol",
"title": "Swap assets",
"network": "Network",
"network_not_supported": "Network is not supported",
"has_sk": "Only standard accounts with private keys are supported now",
Expand All @@ -60,7 +60,9 @@
"get_quote": "Get quote",
"apps_optin": "SWAP requires your account to opt in to the applications",
"apps_optin_button": "Opt in to the apps",
"execute_button": "Execute"
"execute_button_deflex": "Execute using Deflex",
"execute_button_folks": "Execute using Folks router",
"slippage": "Slippage percentage"
},
"votemenu": {
"overview": "Overview",
Expand Down
6 changes: 4 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"connect": "WalletConnect"
},
"swap": {
"title": "Swap assets using Deflex protocol",
"title": "Swap assets",
"network": "Network",
"network_not_supported": "Network is not supported",
"has_sk": "Only standard accounts with private keys are supported now",
Expand All @@ -61,7 +61,9 @@
"get_quote": "Get quote",
"apps_optin": "SWAP requires your account to opt in to the applications",
"apps_optin_button": "Opt in to the apps",
"execute_button": "Execute"
"execute_button_deflex": "Execute using Deflex",
"execute_button_folks": "Execute using Folks router",
"slippage": "Slippage percentage"
},
"votemenu": {
"overview": "Overview",
Expand Down
6 changes: 4 additions & 2 deletions src/locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"connect": "WalletConnect"
},
"swap": {
"title": "Swap assets using Deflex protocol",
"title": "Swap assets",
"network": "Network",
"network_not_supported": "Network is not supported",
"has_sk": "Only standard accounts with private keys are supported now",
Expand All @@ -60,7 +60,9 @@
"get_quote": "Get quote",
"apps_optin": "SWAP requires your account to opt in to the applications",
"apps_optin_button": "Opt in to the apps",
"execute_button": "Execute"
"execute_button_deflex": "Execute using Deflex",
"execute_button_folks": "Execute using Folks router",
"slippage": "Slippage percentage"
},
"votemenu": {
"overview": "Áttekintés",
Expand Down
6 changes: 4 additions & 2 deletions src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"connect": "WalletConnect"
},
"swap": {
"title": "Swap assets using Deflex protocol",
"title": "Swap assets",
"network": "Network",
"network_not_supported": "Network is not supported",
"has_sk": "Only standard accounts with private keys are supported now",
Expand All @@ -60,7 +60,9 @@
"get_quote": "Get quote",
"apps_optin": "SWAP requires your account to opt in to the applications",
"apps_optin_button": "Opt in to the apps",
"execute_button": "Execute"
"execute_button_deflex": "Execute using Deflex",
"execute_button_folks": "Execute using Folks router",
"slippage": "Slippage percentage"
},
"votemenu": {
"overview": "Overview",
Expand Down
6 changes: 4 additions & 2 deletions src/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"connect": "WalletConnect"
},
"swap": {
"title": "Swap assets using Deflex protocol",
"title": "Swap assets",
"network": "Network",
"network_not_supported": "Network is not supported",
"has_sk": "Only standard accounts with private keys are supported now",
Expand All @@ -60,7 +60,9 @@
"get_quote": "Get quote",
"apps_optin": "SWAP requires your account to opt in to the applications",
"apps_optin_button": "Opt in to the apps",
"execute_button": "Execute"
"execute_button_deflex": "Execute using Deflex",
"execute_button_folks": "Execute using Folks router",
"slippage": "Slippage percentage"
},
"votemenu": {
"overview": "Overview",
Expand Down
6 changes: 4 additions & 2 deletions src/locales/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"connect": "WalletConnect"
},
"swap": {
"title": "Swapnúť tokeny pomocou Deflex protokolu",
"title": "Swapnúť tokeny",
"network": "Sieť",
"network_not_supported": "Sieť nie je podporovaná",
"has_sk": "Iba štandardné účty s privátnym kľúčom sú aktuálne podporované",
Expand All @@ -60,7 +60,9 @@
"get_quote": "Získať kotáciu",
"apps_optin": "SWAP vyžaduje aby ste za zaregistrovali k aplikáciám",
"apps_optin_button": "Zaregistrujte sa k aplikáciám (optin)",
"execute_button": "Vykonať swap"
"execute_button_deflex": "Vykonať swap cez Deflex",
"execute_button_folks": "Vykonať swap cez Folks router",
"slippage": "Slippage percentage"
},
"votemenu": {
"overview": "Overview",
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Arc14.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<PublicLayout>
<MainLayout>
<div class="container-fluid">
<h1>ARC14 developer page</h1>
<p>
Expand Down Expand Up @@ -38,16 +38,16 @@
</div>
</div>
</div>
</PublicLayout>
</MainLayout>
</template>

<script>
import PublicLayout from "../layouts/Public.vue";
import MainLayout from "../layouts/Main.vue";
import { mapActions } from "vuex";
export default {
components: {
PublicLayout,
MainLayout,
},
data() {
return {
Expand Down
8 changes: 4 additions & 4 deletions src/pages/AssetList.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<PublicLayout>
<MainLayout>
<div class="container-fluid">
<h1>{{ $t("asset.title") }}</h1>
<router-link to="/asset/create" class="btn btn-light">
Expand All @@ -9,14 +9,14 @@
Create NFT
</router-link>
</div>
</PublicLayout>
</MainLayout>
</template>

<script>
import PublicLayout from "../layouts/Public.vue";
import MainLayout from "../layouts/Main.vue";
export default {
components: {
PublicLayout,
MainLayout,
},
};
</script>
Loading

1 comment on commit 7390976

@vercel
Copy link

@vercel vercel bot commented on 7390976 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.