From 1d8d205f9337696d5bc872bf3f531fc048b4cc13 Mon Sep 17 00:00:00 2001 From: Jakub Kobeldys <39089377+ba1ciu@users.noreply.github.com> Date: Fri, 15 Dec 2023 11:15:19 +0100 Subject: [PATCH 1/2] v2 upgrade docs (#1107) --- mainnet/empowerchain-1/v2.0.0-update.md | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mainnet/empowerchain-1/v2.0.0-update.md diff --git a/mainnet/empowerchain-1/v2.0.0-update.md b/mainnet/empowerchain-1/v2.0.0-update.md new file mode 100644 index 000000000..7ed6f35bb --- /dev/null +++ b/mainnet/empowerchain-1/v2.0.0-update.md @@ -0,0 +1,32 @@ +# v2.0.0 Upgrade + +The upgrade is scheduled for block `2697000`, which should be about _13:00 CET on 20th December 2023_. + +These instructions assume you are running Cosmovisor. +NOTE: Cosmovisor will preform a full backup unless `UNSAFE_SKIP_BACKUP=true` is set as an environment variable. + +### Go version + +Go version 1.20.x is required to run the upgrade. + +### Build + +```bash +# get the new version (run inside the repo) +git fetch origin --tags +git checkout v2.0.0 +cd chain && make build && make install + +# check the version - should be v2.0.0 +$HOME/go/bin/empowerd version +> 2.0.0 +# make a dir if you haven't +mkdir -p $DAEMON_HOME/cosmovisor/upgrades/v2/bin + +# if you are using cosmovisor you then need to copy this new binary +cp /home//go/bin/empowerd $DAEMON_HOME/cosmovisor/upgrades/v2/bin + +# find out what version you are about to run - should be v2.0.0 +$DAEMON_HOME/cosmovisor/upgrades/v2/bin/empowerd version + +``` \ No newline at end of file From 0c5147628b5c7f354e5317c552064fe614298344 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Sun, 17 Dec 2023 12:59:33 +0100 Subject: [PATCH 2/2] =?UTF-8?q?fix(marketplace):=20Show=20materials=20deta?= =?UTF-8?q?ils=20the=20same=20way=20on=20auction=20as=20i=E2=80=A6=20(#110?= =?UTF-8?q?5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(marketplace): Show materials details the same way on auction as in auction list * fix(marketplace): Mute console errors part 1 * fix(marketplace): Remove commented code --- .../src/components/AuctionResultsCard.vue | 6 +- .../src/components/CreditTabContent.vue | 12 ++-- .../src/components/CustomGoogleMap.vue | 2 +- .../src/components/ProjectDetailMaterial.vue | 32 +++++++++ .../marketplace/src/pages/AuctionDetails.vue | 72 ++++++++++++------- frontend/marketplace/src/pages/HomePage.vue | 3 +- .../marketplace/src/types/GraphqlSchema.ts | 6 ++ frontend/marketplace/src/utils/utils.ts | 21 +++--- 8 files changed, 101 insertions(+), 53 deletions(-) create mode 100644 frontend/marketplace/src/components/ProjectDetailMaterial.vue diff --git a/frontend/marketplace/src/components/AuctionResultsCard.vue b/frontend/marketplace/src/components/AuctionResultsCard.vue index ade2b7445..94e11ab0d 100644 --- a/frontend/marketplace/src/components/AuctionResultsCard.vue +++ b/frontend/marketplace/src/components/AuctionResultsCard.vue @@ -2,6 +2,7 @@ import type { MarketplaceListing } from "@/types/GraphqlSchema"; import router from "@/router"; import auctionCard from "@/assets/auctionCard.png"; +import type { MaterialProperty } from "@/types/GraphqlSchema"; import { getDetailsList, prettifyCardProperty, @@ -21,10 +22,7 @@ export interface AuctionResultsCardProps { interface CardDetailsList { applicant: string[]; location: string[]; - material: { - key: string; - value: string; - }[][]; + material: MaterialProperty[][]; volume: number; thumbnailUrl: string; image: string[]; diff --git a/frontend/marketplace/src/components/CreditTabContent.vue b/frontend/marketplace/src/components/CreditTabContent.vue index f56df77d8..417fdcf81 100644 --- a/frontend/marketplace/src/components/CreditTabContent.vue +++ b/frontend/marketplace/src/components/CreditTabContent.vue @@ -35,8 +35,8 @@ const getCreditsData = async () => { query { creditBalances( first:${itemsPerPage.value},offset:${ - (pageNumber.value - 1) * itemsPerPage.value - } + (pageNumber.value - 1) * itemsPerPage.value + } filter:{ wallet:{ address:{equalTo:"${walletAddress}"} @@ -93,11 +93,9 @@ const getCreditsData = async () => { const loadQueryData = (query: string) => { showSpinner.value = true; - const { result, loading, error, refetch } = useQuery( - gql` - ${query} - ` - ); + const { result, loading, error, refetch } = useQuery(gql` + ${query} + `); data.value = { result, loading, error }; showSpinner.value = false; setInterval(() => { diff --git a/frontend/marketplace/src/components/CustomGoogleMap.vue b/frontend/marketplace/src/components/CustomGoogleMap.vue index db4880305..09e7f3552 100644 --- a/frontend/marketplace/src/components/CustomGoogleMap.vue +++ b/frontend/marketplace/src/components/CustomGoogleMap.vue @@ -1,6 +1,6 @@ + + diff --git a/frontend/marketplace/src/pages/AuctionDetails.vue b/frontend/marketplace/src/pages/AuctionDetails.vue index c53bb695b..82c2f120b 100644 --- a/frontend/marketplace/src/pages/AuctionDetails.vue +++ b/frontend/marketplace/src/pages/AuctionDetails.vue @@ -1,17 +1,40 @@