Skip to content

Commit

Permalink
feat(APP-3779): Set fixed OSx version to 1.3, disable OSX updates fea…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
cgero-eth committed Jan 30, 2025
1 parent 1aa86e2 commit 8ce0349
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VITE_FEATURE_FLAG_MONITORING=true

VITE_FEATURE_FLAG_DELEGATION=true

VITE_FEATURE_FLAG_OSX_UPDATES=true
VITE_FEATURE_FLAG_OSX_UPDATES=false

# Enable gasless plugin on DAO creation
VITE_FEATURE_FLAG_GASLESS_PLUGIN=true
Expand Down
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VITE_FEATURE_FLAG_MONITORING=true

VITE_FEATURE_FLAG_DELEGATION=true

VITE_FEATURE_FLAG_OSX_UPDATES=true
VITE_FEATURE_FLAG_OSX_UPDATES=false

# Enable gasless plugin on DAO creation
VITE_FEATURE_FLAG_GASLESS_PLUGIN=false
Expand Down
2 changes: 1 addition & 1 deletion .env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VITE_FEATURE_FLAG_MONITORING=true

VITE_FEATURE_FLAG_DELEGATION=true

VITE_FEATURE_FLAG_OSX_UPDATES=true
VITE_FEATURE_FLAG_OSX_UPDATES=false

# Enable gasless plugin on DAO creation
VITE_FEATURE_FLAG_GASLESS_PLUGIN=true
Expand Down
10 changes: 8 additions & 2 deletions src/hooks/useClient.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {Client, Context as SdkContext, ContextParams} from '@aragon/sdk-client';
import {
getLatestNetworkDeployment,
getNetworkDeploymentForVersion,
SupportedNetworks as SdkSupportedNetworks,
SupportedVersions,
} from '@aragon/osx-commons-configs';

import {useNetwork} from 'context/network';
Expand Down Expand Up @@ -59,8 +60,13 @@ export const UseClientProvider: React.FC<{children: ReactNode}> = ({
return;
}

// Set fixed 1.3 version for DaoFactory address as versions
// 1.4 and above are not supported by this application
const daoFactoryAddress =
getLatestNetworkDeployment(translatedNetwork)?.DAOFactory.address ?? '';
getNetworkDeploymentForVersion(
translatedNetwork,
SupportedVersions.V1_3_0
)?.DAOFactory.address ?? '';

const contextParams: ContextParams = {
DAOFactory: daoFactoryAddress,
Expand Down
8 changes: 4 additions & 4 deletions src/services/transactions/transactionsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ class TransactionsService {
for (const plugin of plugins) {
const repo = PluginRepo__factory.connect(plugin.id, signer);

const currentRelease = await repo.latestRelease();
const latestVersion =
await repo['getLatestVersion(uint8)'](currentRelease);
// Set fixed 1.2 version for multisig & token-voting plugins as versions
// 1.3 and above are not supported by this application
const versionTag = {release: 1, build: 2};

pluginInstallationData.push({
pluginSetupRef: {
pluginSetupRepo: repo.address,
versionTag: latestVersion.tag,
versionTag: versionTag,
},
data: plugin.data,
});
Expand Down

0 comments on commit 8ce0349

Please sign in to comment.