@spindl-xyz/attribution-lite
Version:
Web3 Attribution SDK
19 lines (18 loc) • 612 B
TypeScript
import { Beacon } from "./beacon";
export interface EIP1193Provider {
on(eventName: string | symbol, listener: (...args: unknown[]) => void): this;
removeListener(eventName: string | symbol, listener: (...args: unknown[]) => void): this;
selectedAddress?: string;
}
declare global {
interface Window {
ethereum?: EIP1193Provider;
web3?: {
currentProvider?: EIP1193Provider;
};
}
}
export declare function createWalletConnectsPlugin(beacon: Beacon): {
attribute: (address: string) => Promise<boolean>;
enableAutoWalletConnects: () => () => void;
};