Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/mask/popups/components/WalletItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export const WalletItem = memo<WalletItemProps>(function WalletItem({
)
const fireflyAccount = useSubscription(PersistentStorages.Settings.storage.firefly_account.subscription)

if (wallet.owner) return null

return (
<ListItem
className={cx(classes.item, className)}
Expand Down
2 changes: 2 additions & 0 deletions packages/shared-base/src/types/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export interface Wallet {
storedKeyInfo?: api.IStoredKeyInfo
/** record created at */
createdAt: Date
/** an abstract wallet has a owner */
owner?: string
/** record updated at */
updatedAt: Date
/** persona identifier */
Expand Down
64 changes: 0 additions & 64 deletions packages/web3-constants/evm/smart-pay.json

This file was deleted.

1 change: 1 addition & 0 deletions packages/web3-hooks/base/src/useWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ export function useWallets() {
return 0
}
})
.filter((x) => !x.owner)
}, [wallets])
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { RedPacketDescriptor } from './TransactionFormatter/descriptors/RedPacke
import { ERC20Descriptor } from './TransactionFormatter/descriptors/ERC20.js'
import { ERC721Descriptor } from './TransactionFormatter/descriptors/ERC721.js'
import { SavingsDescriptor } from './TransactionFormatter/descriptors/Savings.js'
import { SmartPayDescriptor } from './TransactionFormatter/descriptors/SmartPay.js'
import { LensDescriptor } from './TransactionFormatter/descriptors/Lens.js'
import { AirdropDescriptor } from './TransactionFormatter/descriptors/Airdrop.js'
import { TransactionFormatterState } from '../../Base/state/TransactionFormatter.js'
Expand All @@ -40,7 +39,6 @@ export class EVMTransactionFormatter extends TransactionFormatterState<ChainId,
new SavingsDescriptor(),
new GitcoinDescriptor(),
new RedPacketDescriptor(),
new SmartPayDescriptor(),
new ERC20Descriptor(),
new ERC721Descriptor(),
new BaseDescriptor(),
Expand Down

This file was deleted.

7 changes: 1 addition & 6 deletions packages/web3-shared/evm/src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import OpenOcean from '@masknet/web3-constants/evm/openocean.json' with { type:
import Pet from '@masknet/web3-constants/evm/pet.json' with { type: 'json' }
import RedPacket from '@masknet/web3-constants/evm/red-packet.json' with { type: 'json' }
import BUILTIN_RPC from '@masknet/web3-constants/evm/rpc.json' with { type: 'json' }
import SmartPay from '@masknet/web3-constants/evm/smart-pay.json' with { type: 'json' }

import SpaceId from '@masknet/web3-constants/evm/space-id.json' with { type: 'json' }
import TokenAssetBaseURL from '@masknet/web3-constants/evm/token-asset-base-url.json' with { type: 'json' }
import TokenList from '@masknet/web3-constants/evm/token-list.json' with { type: 'json' }
Expand Down Expand Up @@ -121,11 +121,6 @@ export const getPetConstants = transformAll(ChainId, Pet)
export const usePetConstant = transformHook(getPetConstants)
export const usePetConstants = transformAllHook(getPetConstants)

export const getSmartPayConstant = transform(ChainId, SmartPay)
export const getSmartPayConstants = transformAll(ChainId, SmartPay)
export const useSmartPayConstant = transformHook(getSmartPayConstants)
export const useSmartPayConstants = transformAllHook(getSmartPayConstants)

export const getENSConstants = transformAll(ChainId, ENS)
export const getArbConstants = transformAll(ChainId, Arb)
export const getSpaceIdConstants = transformAll(ChainId, SpaceId)
Expand Down
Loading