dev3-sdk
Version:
SDK for interacting with the 0xDev3 platform.
17 lines (16 loc) • 708 B
TypeScript
import { ContractDeploymentRequest, ScreenConfig } from '../types';
import { ContractCallAction } from '../actions/ContractCallAction';
export declare class Contract {
private readonly defaultCaller;
private readonly defaultEthAmount;
deploymentRequest: ContractDeploymentRequest;
constructor(deploymentRequest: ContractDeploymentRequest);
buildAction(functionName: string, functionParams: any[], config?: {
ethAmount?: string;
arbitraryData?: Map<string, object>;
screenConfig?: ScreenConfig;
callerAddress?: string;
redirectUrl?: string;
}): Promise<ContractCallAction>;
read(functionName: string, functionParams: any[]): Promise<any>;
}