Skip to content
Open
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
38 changes: 35 additions & 3 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
interface Window {
ethereum?: any;
}
export {};

/**
* Minimal EIP-1193 / EVM provider interface
* matching ethers v6 Eip1193Provider signatures.
*/
interface EvmProvider {
isMetaMask?: boolean;
isCoinbaseWallet?: boolean;
isPhantom?: boolean; // some Phantom EVM betas might set this
providers?: EvmProvider[];

// Change from 'request?:' to 'request:' so it's non-optional
request: (args: {
method: string;
// Ethers v6 uses any[] | Record<string, any> for 'params'
params?: any[] | Record<string, any>;
}) => Promise<any>;
}

declare global {
interface Window {
ethereum?: EvmProvider;
solana?: {
isPhantom?: boolean;
connect: () => Promise<{ publicKey: { toString(): string } }>;
};
phantom?: {
isPhantom?: boolean;
sui?: {
// add connect if needed
};
};
}
}
Binary file added public/images/KRBYLAND.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading