UNPKG

vendee-example

Version:

Vendee contract example

37 lines 1.24 kB
import { type CompiledContractConfig, Contract, type ContractOptions, type ResultOfCall } from 'vendee'; import { type KeyPair, type ResultOfProcessMessage } from '@eversdk/core'; type constructorIn = { number: string | number | bigint; }; type getCountOut = { count: string; }; export declare class Example extends Contract { private readonly _call; private readonly _run; private readonly _payload; constructor(config?: CompiledContractConfig, options?: ContractOptions); deploy(value: string | number | bigint, input: constructorIn, useGiver?: boolean, timeout?: number): Promise<ResultOfProcessMessage>; get call(): ExampleCalls; get run(): ExampleRuns; get payload(): ExamplePayload; } declare class ExampleCalls { private readonly contract; constructor(contract: Contract); getCount(keys?: KeyPair): Promise<ResultOfCall & { out: getCountOut; }>; } declare class ExampleRuns { private readonly contract; constructor(contract: Contract); getCount(): Promise<getCountOut>; } declare class ExamplePayload { private readonly contract; constructor(contract: Contract); getCount(): Promise<string>; } export {}; //# sourceMappingURL=Example.d.ts.map