UNPKG

@dappykit/sdk

Version:

Web3 SDK for DApps

49 lines (48 loc) 1.9 kB
import { Account } from './account'; import { Gateway } from './gateway'; import { Connections } from './connections'; import * as Config from './network-config'; import * as Utils from './utils'; import { INetworkConfig } from './network-config'; import { FilesystemChanges } from './filesystem-changes'; import { Verification } from './verification'; import { FarcasterClient } from './farcaster-client'; import { HDAccount, mnemonicToAccount, privateKeyToAccount, generateMnemonic } from 'viem/accounts'; declare const ViemUtils: { mnemonicToAccount: typeof mnemonicToAccount; generateMnemonic: typeof generateMnemonic; privateKeyToAccount: typeof privateKeyToAccount; english: string[]; }; /** * Export all things that should be available for the user of the library */ export { Account, Config, Connections, FilesystemChanges, Gateway, Utils, Verification, FarcasterClient, ViemUtils }; export declare class SDK { readonly networkConfig: INetworkConfig; readonly eoaSigner?: HDAccount; readonly account: Account; readonly gateway: Gateway; readonly connections: Connections; readonly filesystemChanges: FilesystemChanges; readonly verification: Verification; readonly farcasterClient: FarcasterClient; constructor(networkConfig: INetworkConfig, mnemonic?: string); } declare global { interface Window { DappyKit: { SDK: typeof SDK; Account: typeof Account; Gateway: typeof Gateway; GatewayUser: typeof import('./gateway/gateway-user').GatewayUser; Connections: typeof Connections; FilesystemChanges: typeof FilesystemChanges; Config: typeof Config; Utils: typeof Utils; Verification: typeof Verification; FarcasterClient: typeof FarcasterClient; ViemUtils: typeof ViemUtils; }; } }