Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #1857

Open
wants to merge 11 commits into
base: production
Choose a base branch
from
Open
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -101,6 +101,7 @@ module.exports = {
allowBinding: false,
},
],
'vue/no-reserved-component-names': 'off',
},
overrides: [
{
8,111 changes: 2,545 additions & 5,566 deletions package-lock.json

Large diffs are not rendered by default.

139 changes: 68 additions & 71 deletions package.json
Original file line number Diff line number Diff line change
@@ -21,34 +21,30 @@
"@clockwork-projects/cosmos-gaia-js": "^6.0.0",
"@clockwork-projects/crescent-network-crescent-js": "^1.0.0",
"@clockwork-projects/osmosis-labs-osmosis-js": "^6.1.0",
"@cosmjs/amino": "0.28.0",
"@cosmjs/cosmwasm-stargate": "0.28.0",
"@cosmjs/crypto": "0.28.0",
"@cosmjs/encoding": "0.28.0",
"@cosmjs/faucet-client": "0.28.0",
"@cosmjs/math": "0.28.0",
"@cosmjs/proto-signing": "0.28.0",
"@cosmjs/stargate": "0.28.0",
"@cosmjs/stream": "0.28.0",
"@cosmjs/tendermint-rpc": "0.28.0",
"@cosmjs/utils": "0.28.0",
"@emeris/mapper": "^0.3.0",
"@sentry/tracing": "^6.19.2",
"@sentry/vue": "^6.19.2",
"@cosmjs/amino": "0.28.7",
"@cosmjs/cosmwasm-stargate": "0.28.7",
"@cosmjs/crypto": "0.28.7",
"@cosmjs/encoding": "0.28.7",
"@cosmjs/faucet-client": "0.28.7",
"@cosmjs/math": "0.28.7",
"@cosmjs/proto-signing": "0.28.7",
"@cosmjs/stargate": "0.28.7",
"@cosmjs/stream": "0.28.7",
"@cosmjs/tendermint-rpc": "0.28.7",
"@cosmjs/utils": "0.28.7",
"@emeris/mapper": "^0.3.1",
"@sentry/tracing": "^7.1.1",
"@sentry/vue": "^7.1.1",
"@starport/vuex": "^0.1.58",
"@types/long": "^4.0.1",
"@vueuse/core": "^8.1.2",
"@xstate/vue": "^1.0.0",
"apexcharts": "3.31.0",
"@vueuse/core": "^8.6.0",
"@xstate/vue": "^2.0.0",
"apexcharts": "^3.35.3",
"async-retry": "^1.3.3",
"autoprefixer": "^10",
"axios": "^0.26.1",
"axios": "^0.27.2",
"bech32": "^2.0.0",
"bignumber.js": "^9.0.2",
"core-js": "^3.21.1",
"crypto-js": "^4.1.1",
"dart-sass": "^1.25.0",
"dayjs": "^1.11.0",
"dayjs": "^1.11.3",
"events": "^3.3.0",
"gradient-avatar": "^1.0.2",
"isomorphic-fetch": "^3.0.0",
@@ -61,72 +57,73 @@
"lodash.orderby": "^4.6.0",
"long": "^5.2.0",
"mitt": "^3.0.0",
"pinia": "^2.0.12",
"pinia": "^2.0.14",
"qrcode": "^1.5.0",
"reconnecting-websocket": "^4.4.0",
"sass": "^1.49.9",
"tailwindcss": "^3.0.23",
"vite-plugin-dotenv": "^0.1.15",
"vue": "^3.2.31",
"tailwindcss": "^3.1.3",
"vue": "^3.2.37",
"vue-cookie-next": "^1.3.0",
"vue-gtag": "^2.0.1",
"vue-i18n": "^9.1.9",
"vue-i18n": "^9.1.10",
"vue-meta": "^3.0.0-alpha.9",
"vue-router": "^4.0.14",
"vue-tippy": "^6.0.0-alpha.57",
"vue-router": "^4.0.16",
"vue-tippy": "^6.0.0-alpha.58",
"vue3-apexcharts": "^1.4.1",
"vuex": "^4.0.2",
"xstate": "^4.31.0"
"xstate": "^4.32.1"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@babel/core": "^7.18.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
"@babel/plugin-proposal-optional-chaining": "^7.17.12",
"@babel/preset-typescript": "^7.17.12",
"@emeris/types": "^0.3.0",
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@keplr-wallet/types": "0.8.8",
"@pinia/testing": "^0.0.10",
"@playwright/test": "^1.20.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rushstack/eslint-patch": "^1.1.1",
"@testing-library/vue": "^6.5.1",
"@types/lodash": "^4.14.180",
"@types/lodash.groupby": "^4.6.6",
"@types/lodash.isequal": "^4.5.5",
"@types/lodash.orderby": "^4.6.6",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@vitejs/plugin-vue": "^2.2.4",
"@vue/compiler-sfc": "^3.2.31",
"@keplr-wallet/types": "^0.10.5",
"@pinia/testing": "^0.0.12",
"@playwright/test": "^1.22.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rushstack/eslint-patch": "^1.1.3",
"@testing-library/vue": "^6.6.0",
"@types/lodash": "^4.14.182",
"@types/lodash.groupby": "^4.6.7",
"@types/lodash.isequal": "^4.5.6",
"@types/lodash.orderby": "^4.6.7",
"@types/long": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"@vitejs/plugin-vue": "^2.3.3",
"@vue/compiler-sfc": "^3.2.37",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^10.0.0",
"@vue/test-utils": "^2.0.0-rc.18",
"autoprefixer": "^10.4.4",
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/test-utils": "^2.0.1",
"autoprefixer": "^10.4.7",
"buffer": "^6.0.3",
"c8": "^7.11.0",
"cosmjs-types": "^0.4.1",
"dotenv": "^16.0.0",
"eslint": "^8.11.0",
"c8": "^7.11.3",
"core-js": "^3.23.1",
"cosmjs-types": "^0.5.0",
"dotenv": "^16.0.1",
"eslint": "^8.17.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"eslint-plugin-vue": "^8.5.0",
"eslint-plugin-vue": "^9.1.1",
"jsdom": "^19.0.0",
"lint-staged": "^12.3.7",
"path": "^0.12.7",
"playwright": "^1.20.1",
"postcss": "^8.4.12",
"prettier": "^2.6.0",
"lint-staged": "^13.0.1",
"playwright": "^1.22.2",
"postcss": "^8.4.14",
"prettier": "^2.7.1",
"regenerator-runtime": "^0.13.9",
"simple-git-hooks": "^2.7.0",
"tslib": "^2.3.1",
"typescript": "^4.6.2",
"vite": "^2.8.6",
"vite-plugin-dynamic-import": "^0.1.1",
"sass": "^1.52.3",
"simple-git-hooks": "^2.8.0",
"tslib": "^2.4.0",
"typescript": "^4.7.3",
"vite": "^2.9.12",
"vite-plugin-dotenv": "^0.1.15",
"vite-plugin-dynamic-import": "^0.9.9",
"vite-plugin-env-compatible": "^1.1.1",
"vite-plugin-eslint": "^1.3.0",
"vitest": "^0.7.10",
"vue-tsc": "^0.33.7"
"vite-plugin-eslint": "^1.6.1",
"vitest": "^0.15.1",
"vue-tsc": "^0.37.9"
},
"engines": {
"node": "16.x"
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -45,8 +45,8 @@ const showMaintenanceScreen = !!featureRunning('MAINTENANCE_SCREEN');
const store = useStore();
let liquidityEndpoint = import.meta.env.VITE_EMERIS_PROD_LIQUIDITY_ENDPOINT ?? 'https://api.emeris.com/v1/liquidity';
let emerisEndpoint = import.meta.env.VITE_EMERIS_PROD_ENDPOINT ?? 'https://api.emeris.com/v1';
let githubEndpoint = import.meta.env.VITE_EMERIS_GITHUB_ENDPOINT ?? 'https://api.github.com';
let rawGithubEndpoint = import.meta.env.VITE_EMERIS_RAW_GITHUB_ENDPOINT ?? 'https://raw.githubusercontent.com';
const githubEndpoint = import.meta.env.VITE_EMERIS_GITHUB_ENDPOINT ?? 'https://api.github.com';
const rawGithubEndpoint = import.meta.env.VITE_EMERIS_RAW_GITHUB_ENDPOINT ?? 'https://raw.githubusercontent.com';
let wsEndpoint = import.meta.env.VITE_EMERIS_PROD_WEBSOCKET_ENDPOINT ?? 'wss://api.emeris.com/v1';
if (featureRunning('USE_STAGING')) {
liquidityEndpoint = import.meta.env.VITE_EMERIS_STAGING_LIQUIDITY_ENDPOINT;
2 changes: 1 addition & 1 deletion src/components/airdrops/AirdropClaim/AirdropClaim.vue
Original file line number Diff line number Diff line change
@@ -209,7 +209,7 @@ const typedstore = useStore() as RootStoreTyped;

const isClaimModalOpen = ref(false);
const isWalletModalOpen = ref(false);
let imageLoadFail = ref(false);
const imageLoadFail = ref(false);

const toggleClaimModal = () => {
isClaimModalOpen.value = !isClaimModalOpen.value;
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ export default defineComponent({
},

setup() {
let imageLoadFail = ref(false);
const imageLoadFail = ref(false);

return { imageLoadFail };
},
6 changes: 3 additions & 3 deletions src/components/airdrops/AirdropsTable/AirdropsTable.vue
Original file line number Diff line number Diff line change
@@ -163,9 +163,9 @@ const emit = defineEmits<{
(e: 'row-click', airdrop: any): void;
}>();

let watchedAirdrops = ref([]);
let mappedAirdrops = ref([]);
let imageFailIndexes = ref([]);
const watchedAirdrops = ref([]);
const mappedAirdrops = ref([]);
const imageFailIndexes = ref([]);

const handleClick = (airdrop: EmerisAirdrops.Airdrop) => {
emit('row-click', airdrop);
2 changes: 1 addition & 1 deletion src/components/asset/StakeTable.vue
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ const propsRef = toRefs(props);
const { stakingBalancesByChain } = useAccount();
const { getChainNameByBaseDenom } = useChains();

let chainName = ref<string>(null);
const chainName = ref<string>(null);

onMounted(async () => {
chainName.value = await getChainNameByBaseDenom(propsRef.denom.value);
2 changes: 1 addition & 1 deletion src/components/asset/StakeTableContents.vue
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@ const assetStakingAPY = ref<number | string>('-');
const validatorList = ref<Array<any>>([]);
const props = defineProps<{ denom: string; selectedTab: number; totalRewardsAmount: number }>();
const propsRef = toRefs(props);
let chainName = ref<string>(null);
const chainName = ref<string>(null);

const { getChainNameByBaseDenom } = useChains();

2 changes: 1 addition & 1 deletion src/components/asset/StakeTableTitle.vue
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ const { stakingBalancesByChain, unbondingDelegationsByChain } = useAccount();
const store = useStore() as RootStoreTyped;
const { getChainNameByBaseDenom } = useChains();

let chainName = ref<string>(null);
const chainName = ref<string>(null);

onMounted(async () => {
chainName.value = await getChainNameByBaseDenom(propsRef.denom.value);
12 changes: 6 additions & 6 deletions src/components/assets/AssetsTable/AssetsTable.vue
Original file line number Diff line number Diff line change
@@ -313,7 +313,7 @@ const balancesFiltered = computed(() => {
});

const balancesWithValue = computed(() => {
let balances = balancesByAsset.value;
const balances = balancesByAsset.value;

if (balances.length > 0) {
balances.map((b) => {
@@ -334,18 +334,18 @@ const balancesWithName: ComputedRef<
};
}[]
> = computed(() => {
let balances = balancesWithValue.value;
const balances = balancesWithValue.value;
balances.map(async (b) => {
let name = await getDisplayName(b.denom, store.getters[GlobalGetterTypes.API.getDexChain]);
const name = await getDisplayName(b.denom, store.getters[GlobalGetterTypes.API.getDexChain]);
(b as any).name = name;
});
return balances;
});

const balancesWithMarketCap = computed(() => {
let balances = balancesWithName.value;
const balances = balancesWithName.value;
balances.map((b) => {
let marketCap = getMarketCap(b.denom);
const marketCap = getMarketCap(b.denom);
if (marketCap) {
(b as any).marketCap = marketCap;
}
@@ -411,7 +411,7 @@ const orderedAllBalances = computed(() => {
const getMarketCap = (denom: string) => {
const price = store.getters[GlobalGetterTypes.API.getPrice]({ denom });
const supply = store.getters[GlobalGetterTypes.API.getSupply]({ denom });
let marketCap = price * supply;
const marketCap = price * supply;
return marketCap;
};

2 changes: 1 addition & 1 deletion src/components/banners/StakingBanner.vue
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ const props = withDefaults(defineProps<Props>(), { displayDenom: 'ATOM', baseDen
const { getChainNameByBaseDenom } = useChains();
const { getChainDisplayInflationByBaseDenom } = useStaking();

let shouldShowBanner = ref<boolean>(false);
const shouldShowBanner = ref<boolean>(false);

const onBannerClick = () => {
event('staking_entry_point', { event_label: 'Portfolio Page Staking Banner Click', event_category: 'banner' });
2 changes: 1 addition & 1 deletion src/components/common/CircleSymbol.vue
Original file line number Diff line number Diff line change
@@ -257,7 +257,7 @@ watch(
() => toRefs(props),
async () => {
if (isPoolCoin.value) {
let existingPool = pools.value?.find((pool) => pool.pool_coin_denom === (props.denom as string));
const existingPool = pools.value?.find((pool) => pool.pool_coin_denom === (props.denom as string));

if (existingPool) {
denoms.value = await getReserveBaseDenoms(existingPool);
6 changes: 3 additions & 3 deletions src/components/common/CoinList.vue
Original file line number Diff line number Diff line change
@@ -127,8 +127,8 @@ function getUniqueCoinList(data) {
}

const newData = JSON.parse(JSON.stringify(data));
let denomNameObject = {};
let modifiedData = [];
const denomNameObject = {};
const modifiedData = [];

newData.forEach((denom) => {
if (denomNameObject[denom.base_denom]) {
@@ -159,7 +159,7 @@ function getUniqueCoinList(data) {
}
});

for (let denom in denomNameObject) {
for (const denom in denomNameObject) {
modifiedData.push(denomNameObject[denom]);
}
return modifiedData;
2 changes: 1 addition & 1 deletion src/components/common/Denom.vue
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ const props = defineProps<Props>();

const typedstore = useStore() as RootStoreTyped;
const propName = toRefs(props).name;
let display = ref('-');
const display = ref('-');
const updateDenom = async (denomName) => {
display.value = await getDisplayName(denomName, typedstore.getters[GlobalGetterTypes.API.getDexChain]);
};
2 changes: 1 addition & 1 deletion src/components/common/FeeLevelSelector.vue
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ watch(
);
const txCount = computed(() => {
let count = 0;
for (let step of props.steps as Step[]) {
for (const step of props.steps as Step[]) {
count = count + step.transactions.length;
}
return count;
2 changes: 1 addition & 1 deletion src/components/common/MoonpayModal.vue
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
</template>

<script setup lang="ts">
import { computed, ref } from '@vue/runtime-core';
import { computed, ref } from 'vue';

import Modal from '@/components/ui/Modal.vue';
import useEmitter from '@/composables/useEmitter';
10 changes: 5 additions & 5 deletions src/components/common/QuotesList.vue
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@
</template>

<script lang="ts" setup>
import { computed, ref } from '@vue/reactivity';
import { computed, ref } from 'vue';
import { useStore } from 'vuex';

import FeeToken from '@/components/common/FeeToken.vue';
@@ -83,10 +83,10 @@ const visualizeRoute = ({ index }) => {
};

const routesTransformedToQuotes = computed(() => {
let quotesArr = [] as any;
for (let route of props.routes) {
let routeObj = {} as any;
let numberOfSteps = (route as any).steps.length;
const quotesArr = [] as any;
for (const route of props.routes) {
const routeObj = {} as any;
const numberOfSteps = (route as any).steps.length;
routeObj.dex = (route as any).steps[0].protocol; //can steps have diff protocols? incorprate if yes
routeObj.amount = (
(route as any).steps[numberOfSteps - 1].data.to.amount /
Loading