Skip to content

Commit

Permalink
Merge branch 'release/1.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Jul 26, 2021
2 parents 4636c9b + fa420db commit d8342b7
Show file tree
Hide file tree
Showing 88 changed files with 1,763 additions and 1,405 deletions.
74 changes: 28 additions & 46 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer-labs/frontend-v2",
"version": "1.10.4",
"version": "1.11.0",
"engines": {
"node": "14.x",
"npm": ">=7"
Expand Down Expand Up @@ -55,7 +55,7 @@
"apexcharts": "^3.23.1",
"autoprefixer": "^9.8.6",
"axios": "0.21.1",
"bnc-notify": "^1.6.2",
"bnc-sdk": "^3.4.1",
"bs58": "^4.0.1",
"core-js": "^3.6.5",
"d3": "^6.5.0",
Expand Down
11 changes: 2 additions & 9 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ import useWeb3Watchers from '@/composables/useWeb3Watchers';
import AppNav from '@/components/navs/AppNav/AppNav.vue';
import AppHero from '@/components/heros/AppHero.vue';
import WalletSelectModal from '@/components/web3/WalletSelectModal.vue';
import useVueWeb3 from '@/services/web3/useVueWeb3';
import { rpcProviderService } from '@/services/rpc-provider/rpc-provider.service';
import useWeb3 from '@/services/web3/useWeb3';
import { DEFAULT_TOKEN_DECIMALS } from './constants/tokens';
import Notifications from '@/components/notifications/Notifications.vue';
Expand All @@ -46,22 +45,16 @@ export default defineComponent({
setup() {
// COMPOSABLES
useWeb3Watchers();
const { isWalletSelectVisible, toggleWalletSelectModal } = useVueWeb3();
const { isWalletSelectVisible, toggleWalletSelectModal } = useWeb3();
const store = useStore();
const route = useRoute();
// COMPUTED
const isHomePage = computed(() => route.path === '/');
// METHODS
const setBlockNumber = (blockNumber: number) =>
store.commit('web3/setBlockNumber', blockNumber);
// CALLBACKS
onBeforeMount(() => {
store.dispatch('app/init');
rpcProviderService.initBlockListener(setBlockNumber);
});
return {
Expand Down
3 changes: 1 addition & 2 deletions src/components/_global/BalModal/BalModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ export default defineComponent({

<style scoped>
.bal-modal {
@apply top-0 left-0 fixed h-screen w-full;
z-index: 9999999999;
@apply top-0 left-0 fixed h-screen w-full z-40;
}
.content-container {
Expand Down
2 changes: 1 addition & 1 deletion src/components/_global/BalPopover/BalPopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default defineComponent({

<style>
.bal-popover-wrapper {
@apply top-full invisible opacity-0 absolute z-10 pt-3;
@apply top-full invisible opacity-0 absolute z-30 pt-3;
transition: all 0.2s ease-in-out;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/_global/BalTable/BalTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:style="{ width: `${column?.width}px` }"
/>
</colgroup>
<thead class="bg-white dark:bg-gray-900 z-20">
<thead class="bg-white dark:bg-gray-900 z-10">
<th
v-for="(column, columnIndex) in filteredColumns"
:key="`header-${column.id}`"
Expand Down
4 changes: 2 additions & 2 deletions src/components/cards/TradeCard/GasReimbursement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import eligibleAssetList from '@balancer-labs/assets/lists/eligible.json';
import { useI18n } from 'vue-i18n';
import { EXTERNAL_LINKS } from '@/constants/links';
import { getOriginalAddress } from '@/services/coingecko';
import useVueWeb3 from '@/services/web3/useVueWeb3';
import useWeb3 from '@/services/web3/useWeb3';
import { TOKENS } from '@/constants/tokens';
export default defineComponent({
Expand All @@ -47,7 +47,7 @@ export default defineComponent({
setup(props) {
const store = useStore();
const { appNetworkConfig } = useVueWeb3();
const { appNetworkConfig } = useWeb3();
const isBalForGasBudget = ref<boolean>(false);
const { t } = useI18n();
Expand Down
26 changes: 19 additions & 7 deletions src/components/cards/TradeCard/TradeCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ import TradeSettingsPopover, {
} from '@/components/popovers/TradeSettingsPopover.vue';
import GasReimbursement from './GasReimbursement.vue';
import { useI18n } from 'vue-i18n';
import useVueWeb3 from '@/services/web3/useVueWeb3';
import useWeb3 from '@/services/web3/useWeb3';
import useBreakpoints from '@/composables/useBreakpoints';
import useTokens from '@/composables/useTokens';
import useDarkMode from '@/composables/useDarkMode';
import { configService } from '@/services/config/config.service';
const { nativeAsset } = configService.network;
export default defineComponent({
components: {
Expand All @@ -129,12 +132,12 @@ export default defineComponent({
const highPiAccepted = ref(false);
const store = useStore();
const router = useRouter();
const { explorerLinks } = useVueWeb3();
const { explorerLinks } = useWeb3();
const { t } = useI18n();
const { bp } = useBreakpoints();
const { tokens } = useTokens();
const { userNetworkConfig } = useVueWeb3();
const { userNetworkConfig } = useWeb3();
const { darkMode } = useDarkMode();
const exactIn = ref(true);
Expand All @@ -146,6 +149,10 @@ export default defineComponent({
const txHash = ref('');
const modalTradePreviewIsOpen = ref(false);
const tokenIn = computed(() => tokens.value[tokenInAddress.value]);
const tokenOut = computed(() => tokens.value[tokenOutAddress.value]);
const liquiditySelection = computed(() => store.state.app.tradeLiquidity);
const tradeCardShadow = computed(() => {
Expand Down Expand Up @@ -210,7 +217,9 @@ export default defineComponent({
tokenOutAmountInput: tokenOutAmount,
tokens,
isWrap,
isUnwrap
isUnwrap,
tokenIn,
tokenOut
});
const { errorMessage } = useValidation(
tokenInAddress,
Expand All @@ -235,10 +244,13 @@ export default defineComponent({
};
}
switch (errorMessage.value) {
case TradeValidation.NO_ETHER:
case TradeValidation.NO_NATIVE_ASSET:
return {
header: t('noEth'),
body: t('noEthDetailed')
header: t('noNativeAsset', [nativeAsset.symbol]),
body: t('noNativeAssetDetailed', [
nativeAsset.symbol,
configService.network.chainName
])
};
case TradeValidation.NO_BALANCE:
return {
Expand Down
4 changes: 2 additions & 2 deletions src/components/cards/TradeCard/TradeRoute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ import { SwapV2, SubgraphPoolBase } from '@balancer-labs/sor2';
import useNumbers from '@/composables/useNumbers';
import { SorReturn } from '@/lib/utils/balancer/helpers/sor/sorManager';
import { useI18n } from 'vue-i18n';
import useVueWeb3 from '@/services/web3/useVueWeb3';
import useWeb3 from '@/services/web3/useWeb3';
import useTokens from '@/composables/useTokens';
interface Route {
Expand Down Expand Up @@ -186,7 +186,7 @@ export default defineComponent({
const { fNum } = useNumbers();
const { t } = useI18n();
const { userNetworkConfig } = useVueWeb3();
const { userNetworkConfig } = useWeb3();
const { tokens } = useTokens();
const visible = ref(false);
Expand Down
13 changes: 10 additions & 3 deletions src/components/cards/TradeCardGP/TradeCardGP.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ import TradeSettingsPopover, {
TradeSettingsContext
} from '@/components/popovers/TradeSettingsPopover.vue';
import { configService } from '@/services/config/config.service';
import TradePairGP from './TradePairGP.vue';
const { nativeAsset } = configService.network;
export default defineComponent({
components: {
TradePairGP,
Expand Down Expand Up @@ -178,10 +182,13 @@ export default defineComponent({
};
}
switch (errorMessage.value) {
case TradeValidation.NO_ETHER:
case TradeValidation.NO_NATIVE_ASSET:
return {
header: t('noEth'),
body: t('noEthDetailed')
header: t('noNativeAsset', [nativeAsset.symbol]),
body: t('noNativeAssetDetailed', [
nativeAsset.symbol,
configService.network.chainName
])
};
case TradeValidation.NO_BALANCE:
return {
Expand Down
Loading

3 comments on commit d8342b7

@vercel
Copy link

@vercel vercel bot commented on d8342b7 Jul 26, 2021

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on d8342b7 Jul 26, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

app – ./

app-git-master-balancer.vercel.app
app-balancer.vercel.app
app.balancer.fi
pm2.vercel.app

@vercel
Copy link

@vercel vercel bot commented on d8342b7 Jul 26, 2021

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.