Skip to content

Commit

Permalink
fix: activity not showing in bnb
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Dec 19, 2024
1 parent 9c80f90 commit 9edd119
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import assetsInfoHandler from '@/providers/ethereum/libs/assets-handlers/assetinfo-mew';
import shNFTHandler from '@/libs/nft-handlers/simplehash';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';

const arbNovaOptions: EvmNetworkOptions = {
name: NetworkNames.ArbitrumNova,
Expand All @@ -20,7 +21,7 @@ const arbNovaOptions: EvmNetworkOptions = {
coingeckoPlatform: CoingeckoPlatform.ArbitrumNova,
assetsInfoHandler,
NFTHandler: shNFTHandler,
activityHandler: () => Promise.resolve([]),
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const arb = new EvmNetwork(arbNovaOptions);
Expand Down
4 changes: 3 additions & 1 deletion packages/extension/src/providers/ethereum/networks/bsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import icon from './icons/bsc.svg';
import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import assetsInfoHandler from '@/providers/ethereum/libs/assets-handlers/assetinfo-mew';
import { EtherscanActivity } from '../libs/activity-handlers';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';
import shNFTHandler from '@/libs/nft-handlers/simplehash';

const bscOptions: EvmNetworkOptions = {
Expand All @@ -21,7 +23,7 @@ const bscOptions: EvmNetworkOptions = {
basePath: "m/44'/714'",
NFTHandler: shNFTHandler,
assetsInfoHandler,
activityHandler: () => Promise.resolve([]),
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const bsc = new EvmNetwork(bscOptions);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import icon from './icons/eth.svg';
import { NetworkNames } from '@enkryptcom/types';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';

const holeskyOptions: EvmNetworkOptions = {
name: NetworkNames.Holesky,
Expand All @@ -14,7 +15,7 @@ const holeskyOptions: EvmNetworkOptions = {
currencyNameLong: 'Holesky',
node: 'wss://nodes.mewapi.io/ws/holesky',
icon,
activityHandler: () => Promise.resolve([]),
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const holesky = new EvmNetwork(holeskyOptions);
Expand Down
3 changes: 2 additions & 1 deletion packages/extension/src/providers/ethereum/networks/op-bnb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import assetsInfoHandler from '@/providers/ethereum/libs/assets-handlers/assetinfo-mew';
import shNFTHandler from '@/libs/nft-handlers/simplehash';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';

const opBnbOptions: EvmNetworkOptions = {
name: NetworkNames.OpBNB,
Expand All @@ -20,7 +21,7 @@ const opBnbOptions: EvmNetworkOptions = {
coingeckoPlatform: CoingeckoPlatform.OpBNB,
assetsInfoHandler,
NFTHandler: shNFTHandler,
activityHandler: () => Promise.resolve([]),
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const op = new EvmNetwork(opBnbOptions);
Expand Down
3 changes: 2 additions & 1 deletion packages/extension/src/providers/ethereum/networks/palm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import icon from './icons/palm.svg';
import { NetworkNames } from '@enkryptcom/types';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import shNFTHandler from '@/libs/nft-handlers/simplehash';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';

// Palm network has an API but it seems broken (DNS won't resolve)
// @see https://palm.chainlens.com/api/swagger-ui/index.html
Expand All @@ -20,7 +21,7 @@ const palmNetworkOptions: EvmNetworkOptions = {
icon,
coingeckoID: 'palm-ai',
NFTHandler: shNFTHandler,
activityHandler: () => Promise.resolve([]),
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const palmNetwork = new EvmNetwork(palmNetworkOptions);
Expand Down

0 comments on commit 9edd119

Please sign in to comment.