Skip to content

Commit

Permalink
fix: update cache adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Jul 24, 2024
1 parent 4530357 commit 1610cfb
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 97 deletions.
6 changes: 5 additions & 1 deletion src/commands/governance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ import {getCachedIpfs} from '../ipfs/getCachedProposalMetaData';
import {DEFAULT_GOVERNANCE, DEFAULT_GOVERNANCE_CLIENT, FORMAT} from '../utils/constants';
import {logError, logInfo, logSuccess} from '../utils/logger';
import {getBlock} from 'viem/actions';
import {localCacheAdapter} from '@bgd-labs/aave-v3-governance-cache/localCache';
import {customStorageProvider} from '@bgd-labs/aave-v3-governance-cache/customStorageProvider';
import {fileSystemStorageAdapter} from '@bgd-labs/aave-v3-governance-cache/fileSystemStorageAdapter';

const localCacheAdapter = customStorageProvider(fileSystemStorageAdapter);

import {refreshCache} from '@bgd-labs/aave-v3-governance-cache/refreshCache';

enum DialogOptions {
Expand Down
Loading

0 comments on commit 1610cfb

Please sign in to comment.