From 4a796b4216d6cdb29e51ffa90d814a7f0d1230c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Tkaczy=C5=84ski?= Date: Mon, 25 Nov 2024 08:22:30 +0100 Subject: [PATCH] feat: allow any network to be used in Treasuries (#957) * feat: allow any network to be used in Treasuries * fix: remove starknet networks from snapshotJS networks Regression from https://github.com/snapshot-labs/sx-monorepo/pull/944 --- apps/ui/src/components/EditorExecution.vue | 16 +++--- .../ui/src/components/FormSpaceTreasuries.vue | 9 +--- apps/ui/src/components/Modal/SendToken.vue | 6 +-- apps/ui/src/components/Modal/StakeToken.vue | 11 ++-- .../src/components/Modal/TreasuryConfig.vue | 18 ++----- apps/ui/src/components/PickerToken.vue | 7 ++- .../components/ProposalExecutionActions.vue | 6 +-- .../src/components/ProposalExecutionsList.vue | 44 +++++++-------- apps/ui/src/components/SpaceTreasury.vue | 53 ++++++++----------- .../src/components/TransactionsListItem.vue | 24 +++++---- .../ui/src/composables/useExecutionActions.ts | 16 ++++-- .../composables/useOffchainNetworksList.ts | 5 +- apps/ui/src/composables/useTreasuries.ts | 24 ++++----- apps/ui/src/composables/useTreasury.ts | 25 ++------- apps/ui/src/helpers/explorer.ts | 11 +++- apps/ui/src/helpers/utils.test.ts | 4 +- apps/ui/src/helpers/utils.ts | 2 +- .../src/networks/common/graphqlApi/index.ts | 51 ++++++++++-------- apps/ui/src/networks/offchain/api/index.ts | 8 --- apps/ui/src/types.ts | 6 +-- 20 files changed, 155 insertions(+), 191 deletions(-) diff --git a/apps/ui/src/components/EditorExecution.vue b/apps/ui/src/components/EditorExecution.vue index 8b4f7cf67..e5d29b80b 100644 --- a/apps/ui/src/components/EditorExecution.vue +++ b/apps/ui/src/components/EditorExecution.vue @@ -116,7 +116,7 @@ watch( class="w-full flex justify-between items-center px-4 py-3" > 0 && treasury && treasury.networkId"> +