UNPKG

@wttp/site

Version:

Web3 Transfer Protocol (WTTP) - Site Contracts and deployment tools

14 lines 518 B
import { Provider, Signer } from "ethers"; import { type LOCATEResponseStruct } from "@wttp/core"; export interface UploadFileOptions { provider: Provider; signer: Signer; fileLimitBytes?: number; gasLimitGwei?: number; customPublisher?: string; } export declare function uploadFile(wttpSiteAddress: string, sourcePath: string, destinationPath: string, options: UploadFileOptions): Promise<{ response: LOCATEResponseStruct; content?: Uint8Array; }>; //# sourceMappingURL=uploadFile.d.ts.map