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

merge main into feat/add-disclaimer #890

Merged
merged 21 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4ea4234
Sidebar improvements (#858)
bobo-k2 Jul 14, 2023
88a12b7
feat: updates PolkaSafe package (#862)
impelcrypto Jul 14, 2023
758c9a2
Add GitGub to a dApp community links (#864)
bobo-k2 Jul 17, 2023
9735265
feat: enables multisig proxy account (#863)
impelcrypto Jul 18, 2023
53985bb
E2E XCM 001, 003, 004 & 006 (#836)
gluneau Jul 18, 2023
548cd2f
feat: uses 'limitedReserveWithdrawAssets' and 'limitedReserveTransfer…
impelcrypto Jul 18, 2023
8c49ed5
Deployment scripts PR creation parameters fix (#866)
bobo-k2 Jul 19, 2023
eaf986a
Added 4everland hook support (#867)
mc2eqe Jul 19, 2023
898f229
Add Gridlock wallet as evm option (#860)
rares-munteanu-gl Jul 20, 2023
f8a0637
Action trigger changed (#876)
bobo-k2 Jul 26, 2023
a8b5ba0
feat: uses 'xtokens' for XCM transfer on Shiden (#873)
impelcrypto Jul 26, 2023
6dbefe5
merge 'release-hotfix' to 'main' (#877)
impelcrypto Jul 26, 2023
18e0d77
chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 (#883)
dependabot[bot] Jul 26, 2023
ed29cec
Upgrade quasar to the latest version (#884)
bobo-k2 Jul 27, 2023
15d2421
chore(deps): bump loader-utils from 1.4.0 to 1.4.2 (#875)
dependabot[bot] Jul 27, 2023
807f0f5
chore(deps): bump cookiejar from 2.1.3 to 2.1.4 (#882)
dependabot[bot] Jul 27, 2023
2ddffe0
chore(deps): bump word-wrap from 1.2.3 to 1.2.5 (#880)
dependabot[bot] Jul 27, 2023
a14f9bc
chore(deps): bump semver from 5.7.1 to 5.7.2 (#879)
dependabot[bot] Jul 31, 2023
15daf18
chore(deps): bump luxon from 2.1.1 to 2.5.2 (#878)
dependabot[bot] Jul 31, 2023
f4e9333
Fix for breaking changes in FrameSystemAccountInfo structure (#885)
bobo-k2 Aug 1, 2023
ac6409f
Feat/tests add dot and usdt (#868)
gluneau Aug 1, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/s3-hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:
with:
title: 'Merge release-hotfix to main'
body: 'This is an auto-generated PR to merge release-hotfix to main'
branch: main
base: release-hotfix
branch: release-hotfix
base: main
delete-branch: false
7 changes: 5 additions & 2 deletions .github/workflows/s3-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}
- name: Deploy app build to S3 bucket
run: aws s3 sync ./dist/spa s3://astar-apps --delete
- name: Run 4everland deploy
run: |
curl "${{ secrets.HOOK_4EVERLAND }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: 'Merge main to release-hotfix'
body: 'This is an auto-generated PR to merge main to release-hotfix'
branch: release-hotfix
base: main
branch: main
base: release-hotfix
delete-branch: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For E2E testing, we utilize [chopsticks](https://github.com/AcalaNetwork/chopsti
### Setup chopsticks

```bash
npx @acala-network/chopsticks@latest xcm -p=tests/chopsticks/astar.yml -p=tests/chopsticks/shiden.yml
npx @acala-network/chopsticks@latest xcm -p=tests/chopsticks/astar.yml -p=tests/chopsticks/acala.yml -r=tests/chopsticks/polkadot.yml
```

### Running tests locally in debug mode
Expand Down
10 changes: 5 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ module.exports = {
__DEV__: true,
// TODO: Remove if resolved natively
// See https://github.com/vuejs/vue-jest/issues/175
'vue-jest': {
pug: { doctype: 'html' },
},
// 'vue-jest': {
// pug: { doctype: 'html' },
// },
},
// noStackTrace: true,
// bail: true,
Expand Down Expand Up @@ -66,10 +66,10 @@ module.exports = {
// (async) .babelrc, .babelrc.js, package.json, babel.config.js
// (sync) .babelrc, .babelrc.js, babel.config.js, package.json
// https://github.com/tleunen/find-babel-config/issues/33
'.*\\.vue$': 'vue-jest',
// '.*\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
'jest-transform-stub',
},
transformIgnorePatterns: [`node_modules/(?!(${esModules}))`],
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
// snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
};
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"heroku-postbuild": "yarn install && yarn build",
"heroku-deploy": "git push heroku main",
"playwright:codegen": "npx playwright codegen http://localhost:8080",
"playwright": "BASE_URL='http://localhost:8080' ENDPOINT='ws://127.0.0.1:8000' npx playwright test --project=chromium --debug",
"playwright": "BASE_URL='http://localhost:8080' ENDPOINT='ws://127.0.0.1:9944' npx playwright test --project=chromium --debug",
"playwright:ci": "node ./tests/chopsticks/start-chopsticks.js"
},
"dependencies": {
"@astar-network/astar-sdk-core": "^0.2.4",
"@astar-network/astar-ui": "^0.0.91",
"@astar-network/astar-sdk-core": "^0.2.5",
"@astar-network/astar-ui": "^0.0.93",
"@ethersproject/bignumber": "^5.5.0",
"@polkadot/api": "^10.9.1",
"@polkadot/api-contract": "^10.9.1",
Expand All @@ -44,8 +44,8 @@
"@polkadot/vue-identicon": "^3.5.1",
"@polkadot/wasm-crypto": "^7.2.1",
"@polkadot/x-randomvalues": "^12.3.2",
"@quasar/app": "^3.2.3",
"@quasar/extras": "^1.12.0",
"@quasar/app-webpack": "^3.9.2",
"@quasar/extras": "^1.16.5",
"@vue/apollo-composable": "^4.0.0-beta.4",
"animate.css": "^4.1.1",
"apr-tools": "^0.1.3",
Expand All @@ -61,13 +61,14 @@
"highcharts": "^10.0.0",
"highcharts-vue": "^1.4.0",
"inversify": "^6.0.1",
"jest": "^29.6.1",
"keccak": "^3.0.2",
"lodash-es": "^4.17.21",
"luxon": "^2.1.1",
"luxon": "^2.5.2",
"marked": "^4.0.15",
"path": "^0.12.7",
"polkasafe": "^1.1.9",
"quasar": "^2.3.3",
"polkasafe": "^1.1.10",
"quasar": "^2.12.3",
"query-string": "^7.1.0",
"reflect-metadata": "^0.1.13",
"secp256k1": "^4.0.2",
Expand All @@ -77,8 +78,9 @@
"stream": "^0.0.2",
"v-odometer": "^2.0.1",
"validator": "^13.7.0",
"vue-i18n": "^9.0.0-beta.0",
"vue-i18n": "^9.2.2",
"vue-js-progress": "^1.0.2",
"vue-router": "^4.0.0",
"vue3-autocounter": "^1.0.6",
"vue3-click-away": "^1.2.4",
"vue3-dropzone": "^0.0.7",
Expand All @@ -93,9 +95,9 @@
"@playwright/test": "^1.31.0",
"@polkadot/ts": "^0.4.22",
"@quasar/quasar-app-extension-apollo": "^2.0.0-beta.5",
"@quasar/quasar-app-extension-qmarkdown": "^2.0.0-alpha.8",
"@quasar/quasar-app-extension-testing": "^2.0.1",
"@quasar/quasar-app-extension-testing-unit-jest": "^3.0.0-alpha.6",
"@quasar/quasar-app-extension-qmarkdown": "^2.0.0-beta.10",
"@quasar/quasar-app-extension-testing": "^2.1.0",
"@quasar/quasar-app-extension-testing-unit-jest": "^3.0.0-beta.5",
"@tailwindcss/custom-forms": "^0.2.1",
"@tailwindcss/postcss7-compat": "^2.0.3",
"@types/bn.js": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/apollo/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ApolloClientOptions } from '@apollo/client/core';
import { createHttpLink, InMemoryCache } from '@apollo/client/core';
import type { BootFileParams } from '@quasar/app';
import { BootFileParams } from '@quasar/app-webpack';

export /* async */ function getClientOptions(
/* {app, router, ...} */ options?: Partial<BootFileParams<any>>
Expand Down
Binary file added src/assets/img/token/aseed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/img/token/ausd.png
Binary file not shown.
1 change: 1 addition & 0 deletions src/boot/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const languageCode = localStorage.getItem(LOCAL_STORAGE.SELECTED_LANGUAGE);
const i18n = createI18n({
locale: languageCode || 'en-US',
fallbackLocale: 'en-US',
legacy: false,
messages,
});

Expand Down
13 changes: 6 additions & 7 deletions src/boot/portalV2.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { computed } from 'vue';
import { $api } from 'boot/api';
import { boot } from 'quasar/wrappers';
import buildDependencyContainer from 'src/v2/app.container';
import { endpointKey } from 'src/config/chainEndpoints';
import { getProviderIndex } from 'src/config/chainEndpoints';
import { ASTAR_CHAIN } from 'src/config/chain';

export default boot(({ store }) => {
const networkIdx = computed(() => store.getters['general/networkIdx']);
const network = <endpointKey>networkIdx.value;

buildDependencyContainer(network);
export default boot(async () => {
const systemChain = (await $api!.rpc.system.chain()).toString() as ASTAR_CHAIN;
buildDependencyContainer(getProviderIndex(systemChain));
});
2 changes: 1 addition & 1 deletion src/components/assets/NativeAssetList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default defineComponent({
const isModalFaucet = ref<boolean>(false);
const isModalEvmWithdraw = ref<boolean>(false);
const isModalVesting = ref<boolean>(false);
const bal = ref<number | null>(null);
const bal = ref<number>(0);
const balUsd = ref<number | null>(null);
const vestingTtl = ref<number>(0);
const lockInDappStaking = ref<number>(0);
Expand Down
1 change: 1 addition & 0 deletions src/components/assets/transfer/XcmBridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
</div>
<div class="box__column--input-amount">
<input
id="amount"
:value="amount"
inputmode="decimal"
type="number"
Expand Down
76 changes: 43 additions & 33 deletions src/components/common/LocaleChanger.vue
Original file line number Diff line number Diff line change
@@ -1,47 +1,49 @@
<template>
<div class="tw-relative tw-inline-block tw-rounded-lg tw-bg-black">
<select v-model="$i18n.locale" class="select-language" placeholder="Regular input">
<option v-for="(lang, i) in langs" :key="`Lang${i}`" :value="lang.code">
{{ lang.text }}
</option>
</select>

<div
class="
icon--select
tw-absolute tw-inset-y-0 tw-right-0 tw-flex tw-items-center tw-px-2 tw-pointer-events-none
"
>
<svg class="tw-w-4 tw-h-4 tw-fill-current" viewBox="0 0 20 20">
<path
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
clip-rule="evenodd"
fill-rule="evenodd"
></path>
</svg>
</div>
</div>
<q-select
v-model="selectedLang"
filled
:options="langs"
option-value="code"
option-label="text"
:hide-dropdown-icon="false"
>
<template #append>
<q-icon name="language" />
</template>
</q-select>
</template>

<script lang="ts">
import { LOCAL_STORAGE } from 'src/config/localStorage';
import { languagesSelector } from 'src/i18n';
import { defineComponent, watch } from 'vue';
import { defineComponent, watch, ref } from 'vue';
import { useI18n } from 'vue-i18n';

export default defineComponent({
data() {
const { locale } = useI18n();
const selectedLang = ref(languagesSelector[0]);

watch(
[locale],
() => {
selectedLang.value =
languagesSelector.find((lang) => lang.code === locale.value) || languagesSelector[0];
console.log(selectedLang.value);
},
{ immediate: true }
);

watch(
[selectedLang],
() => {
locale.value = selectedLang.value.code;
localStorage.setItem(LOCAL_STORAGE.SELECTED_LANGUAGE, locale.value);
},
{ immediate: false }
);

return { langs: languagesSelector };
return { langs: languagesSelector, selectedLang };
},
});
</script>
Expand All @@ -55,7 +57,7 @@ export default defineComponent({
.select-language {
background: #d3d6dc;
color: $navy-1;
width: 95px;
width: 100%;
height: 36px;
padding-left: 15px;
appearance: none;
Expand All @@ -72,14 +74,22 @@ export default defineComponent({
background: #fff;
}
}
</style>

.body--dark {
.select-language {
background: #9d9ccc;
color: black;
}
.icon--select {
color: black;
}
<style lang="scss">
.q-select {
font-size: 16px;
}

.q-menu {
font-size: 16px;
}

.q-field__native {
color: $gray-1;
}

.q-icon {
color: $gray-4;
}
</style>
1 change: 0 additions & 1 deletion src/components/common/Validators.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from '@jest/globals';
import { isEmailValid, isUrlValid } from './Validators';

describe('isEmailValid', () => {
Expand Down
12 changes: 12 additions & 0 deletions src/components/dapp-staking/dapp/ProjectDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
</div>
<div class="row--social-icons">
<div v-for="(it, index) in communities" :key="index">
<button v-if="it.type === CommunityType.GitHub" class="box--share btn--primary">
<div class="icon--social">
<a :href="it.handle" target="_blank" rel="noopener noreferrer">
<astar-icon-base viewBox="0 0 512 512" :icon-name="CommunityType.GitHub">
<astar-icon-github />
</astar-icon-base>
</a>
</div>
<q-tooltip>
<span class="text--tooltip">{{ $t('common.github') }}</span>
</q-tooltip>
</button>
<button v-if="it.type === CommunityType.Discord" class="box--share btn--primary">
<div class="icon--social">
<a :href="it.handle" target="_blank" rel="noopener noreferrer">
Expand Down
15 changes: 12 additions & 3 deletions src/components/dapp-staking/my-staking/OnChainData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:key="index"
v-close-popup
clickable
@click="filterBy = item"
@click="changeFilter(item)"
>
<q-item-section>
<q-item-label>{{ $t(item) }}</q-item-label>
Expand Down Expand Up @@ -232,7 +232,6 @@ export default defineComponent({

return '';
}
return '0';
} catch (error) {
return '0';
}
Expand Down Expand Up @@ -317,8 +316,17 @@ export default defineComponent({
}, 700);
};

const changeFilter = (filter: Filter): void => {
filterBy.value = filter;
page.value = 1;
changePage(false);
};

watchEffect(setDataArray);
watchEffect(handlePageUpdate);

// The below cause problem with not showing the data (after uplift to a new Quasar version) when accessing the page directly
// watchEffect(handlePageUpdate);

watch(
[currentNetworkName],
async () => {
Expand Down Expand Up @@ -347,6 +355,7 @@ export default defineComponent({
getBorderStyle,
Filter,
goDappPageLink,
changeFilter,
};
},
});
Expand Down
7 changes: 7 additions & 0 deletions src/components/dapp-staking/register/components/Community.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ export default defineComponent({
const data = reactive<NewDappItem>(props.dapp);
const isModalAddCommunity = ref<boolean>(false);
const availableCommunities = ref<CommunityDefinition[]>([
{
type: CommunityType.GitHub,
handle: '',
iconName: SocialIcon.Github,
label: t('dappStaking.modals.community.githubAccount'),
validateHandle: (x) => validateUrl(x),
},
{
type: CommunityType.Discord,
handle: '',
Expand Down
1 change: 0 additions & 1 deletion src/components/header/modals/ModalConnectWallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ export default defineComponent({
};

const setSubstrateWalletModal = async (source: string): Promise<void> => {
handleExtensions();
await closeModal();
props.setWalletModal(source);
};
Expand Down
Loading