-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: lazy loading modal solana selector #98
Changes from 1 commit
9395c69
5678d3c
5bab9f5
bb51fc0
bba5a77
f26cbb6
bd6a67e
de1f563
11fce53
e012fc4
ae9b42a
7cff49a
cdd47df
6f25b32
dad6ed4
492aeb3
d7ecc4c
01004bd
532d76c
3024c96
0790def
cf5764e
3bb97c4
44295fb
262958d
d4c6d5b
8953340
299798c
64474f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Deeplink } from './Deeplink' | ||
import type { Images } from './Images' | ||
import type { Network } from './Network' | ||
import type { Platform } from './Platform' | ||
import type { Version } from './Version' | ||
import type { WalletType } from './WalletType' | ||
import type { Deeplink } from "./Deeplink"; | ||
import type { Images } from "./Images"; | ||
import type { Network } from "./Network"; | ||
import type { Platform } from "./Platform"; | ||
import type { Version } from "./Version"; | ||
import type { WalletType } from "./WalletType"; | ||
|
||
export interface WalletMetadata { | ||
slug: string | ||
name: string | ||
description?: string | ||
homepage?: string | ||
chains?: Array<Network> | ||
version?: Version | ||
walletType: WalletType | ||
mobile: Deeplink | null | ||
desktop: Deeplink | null | ||
image: Images | ||
app?: Record<Platform, string> | ||
injectPath?: Record<Network, string> | ||
lastUpdatedTimestamp?: bigint | ||
} | ||
export interface WalletMetadata { slug: string, name: string, description: string, homepage: string, chains: Array<Network>, version: Version, walletType: WalletType, mobile: Deeplink | null, desktop: Deeplink | null, image: Images, app: Record<Platform, string>, injectPath: Record<Network, string>, lastUpdatedTimestamp: bigint, } |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ import { type AppBaseInitialize } from '@nightlylabs/nightly-connect-base' | |
import { type Deeplink } from '@nightlylabs/nightly-connect-base/dist/types/bindings/Deeplink' | ||
import { type Wallet } from '@wallet-standard/core' | ||
import { type WalletType } from '../../../bindings/WalletType' | ||
import { type WalletMetadata } from '../../../bindings/WalletMetadata' | ||
export { type WalletMetadata } from '../../../bindings/WalletMetadata' | ||
import { type WalletMetadata as WalletMetadataOriginal } from '../../../bindings/WalletMetadata' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just export this |
||
import { Images } from '../../../bindings/Images' | ||
|
||
export interface Adapter { | ||
connect: () => Promise<void> | ||
|
@@ -19,6 +19,15 @@ export interface MetadataWallet { | |
walletType: WalletType | ||
} | ||
|
||
export interface WalletMetadata extends Partial<WalletMetadataOriginal> { | ||
slug: string | ||
name: string | ||
walletType: WalletType | ||
mobile: Deeplink | null | ||
desktop: Deeplink | null | ||
image: Images | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WHAT ? remove this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But wouldnt it then force me to pass all of the fields such as homepage, version, app etc. in for example polkadot selector detection file? |
||
export interface IWalletListItem extends WalletMetadata { | ||
recent?: boolean | ||
detected?: boolean | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import { type Injected, type InjectedExtension } from '@polkadot/extension-inject/types' | ||
import { type WalletIcon } from '@wallet-standard/core' | ||
import { appToIcon } from './tempIcons' | ||
import { IWalletListItem } from '@nightlylabs/wallet-selector-base' | ||
import { WalletMetadata } from '@nightlylabs/nightly-connect-polkadot' | ||
export interface PolkadotWalletInjected { | ||
// Default Polkadot standard | ||
|
@@ -32,7 +31,9 @@ export const getPolkadotWallets = (): PolkadotWalletInjected[] => { | |
} | ||
} | ||
|
||
export interface IPolkadotWalletListItem extends Omit<IWalletListItem, 'standardWallet'> { | ||
export interface IPolkadotWalletListItem extends WalletMetadata { | ||
recent?: boolean | ||
detected?: boolean | ||
injectedWallet?: PolkadotWalletInjected | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WalletMetadata should be one from bindings |
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we gonna remove this method each selecto will define it for itself