Skip to content

Commit

Permalink
chore: wallet types cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy committed Jul 24, 2024
1 parent 7de40ad commit 7df4c90
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions apps/ticketing/src/utils/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { setupFastAuthWallet } from 'near-fastauth-wallet';
import { usePurchasedTickets } from '@/hooks/usePurchasedTickets';

import { NETWORK_ID } from './config';
import { FunderEventMetadata, TicketMetadataExtra } from './helpers';
import type { FunderEventMetadata, TicketMetadataExtra } from './helpers';

const modules = [
setupMyNearWallet(),
Expand All @@ -23,19 +23,11 @@ const modules = [
}),
];

const TESTNET_WALLET_SELECTOR_PARAMS: WalletSelectorParams = {
network: 'testnet',
export const WALLET_SELECTOR_PARAMS: WalletSelectorParams = {
network: NETWORK_ID,
modules,
};

const MAINNET_WALLET_SELECTOR_PARAMS: WalletSelectorParams = {
network: 'mainnet',
modules,
};

export const WALLET_SELECTOR_PARAMS =
NETWORK_ID === 'mainnet' ? MAINNET_WALLET_SELECTOR_PARAMS : TESTNET_WALLET_SELECTOR_PARAMS;

export type EventDataForWallet = {
event: FunderEventMetadata;
tickets: {
Expand Down

0 comments on commit 7df4c90

Please sign in to comment.