UNPKG

@okcontract/sdk

Version:

One-stop-shop permissionless SDK for building any blockchain frontend

26 lines (25 loc) 911 B
import type { AbiFunction } from "abitype"; import { type Abi } from "viem"; import type { Environment } from "@okcontract/lambdascript"; import { type Chain, type EVMType, type StringAddress } from "@okcontract/multichain"; export type CompiledContract = { abi: string[]; bytecode: string; parsed: Abi; }; export declare const parse_compiled_contract_file: (file: File) => Promise<CompiledContract>; /** * deploy a smart contract. * @param comp * @param env * @todo type for params should match CompiledContract ABI. * @todo non EVMs * @todo rewrite as Cell maps */ export declare const deployParameters: (account: StringAddress<EVMType>, comp: CompiledContract, deploy: AbiFunction, env: Environment, ch: Chain) => Promise<{ abi: string[]; bytecode: `0x${string}`; account: `0x${string}`; chain: import("@okcontract/multichain/src/viem").ViemChain; args: unknown[]; }>;