diff --git a/global.d.ts b/global.d.ts index 4780deb..4d20bfa 100644 --- a/global.d.ts +++ b/global.d.ts @@ -1,3 +1,35 @@ -interface Window { - ethereum?: any; - } \ No newline at end of file +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 for 'params' + params?: any[] | Record; + }) => Promise; +} + +declare global { + interface Window { + ethereum?: EvmProvider; + solana?: { + isPhantom?: boolean; + connect: () => Promise<{ publicKey: { toString(): string } }>; + }; + phantom?: { + isPhantom?: boolean; + sui?: { + // add connect if needed + }; + }; + } +} diff --git a/public/images/KRBYLAND.png b/public/images/KRBYLAND.png new file mode 100644 index 0000000..72ba48a Binary files /dev/null and b/public/images/KRBYLAND.png differ diff --git a/src/app/components/WalletConnect.tsx b/src/app/components/WalletConnect.tsx index 393063a..40deac3 100644 --- a/src/app/components/WalletConnect.tsx +++ b/src/app/components/WalletConnect.tsx @@ -1,20 +1,18 @@ "use client"; import React, { useState } from "react"; -import { ethers } from "ethers"; -import "./globals.css"; // The code that excludes