import { ChainCallDTO, ChainObject, GalaChainResponse, SubmitCallDTO } from "@gala-chain/api"; import { GalaContract } from "../contracts"; import { GalaChainContext } from "../types"; export declare class SuperheroDto extends SubmitCallDTO { name: string; age: number; static create(name: string, age: number): SuperheroDto; } export declare class SuperheroQueryDto extends ChainCallDTO { saveBeforeReturn: SuperheroDto[]; } export declare class Superhero extends ChainObject { name: string; age: number; static readonly INDEX_KEY: string; } export declare class KVDto extends ChainCallDTO { key: string; value?: string; } export declare class NestedKVDto extends ChainCallDTO { key: string; text?: string; map?: Record; counter?: number; array?: Array; } export default class TestGalaContract extends GalaContract { constructor(); Put(ctx: GalaChainContext, key: string, value: string): Promise>; Get(ctx: GalaChainContext, key: string): Promise>; ErrorAfterPut(ctx: GalaChainContext, key: string, value: string): Promise>; PutKv(ctx: GalaChainContext, dto: KVDto): Promise; GetKv(ctx: GalaChainContext, dto: KVDto): Promise; ErrorAfterPutKv(ctx: GalaChainContext, dto: KVDto): Promise; IncrementTwiceWrong(ctx: GalaChainContext, key: string): Promise>; CreateSuperhero(ctx: GalaChainContext, dto: SuperheroDto): Promise>; QuerySuperheroes(ctx: GalaChainContext, dto: SuperheroQueryDto): Promise; PutNestedKv(ctx: GalaChainContext, dto: NestedKVDto): Promise; GetNestedKv(ctx: GalaChainContext, dto: NestedKVDto): Promise; ErrorAfterPutNestedKv(ctx: GalaChainContext, dto: NestedKVDto): Promise; GetSetPutNestedKv(ctx: GalaChainContext, dto: NestedKVDto): Promise; UnterminatedAsyncErrorOp(ctx: GalaChainContext, dto: NestedKVDto): Promise; DelayedOp(ctx: GalaChainContext, dto: NestedKVDto): Promise; GetCtxData(ctx: GalaChainContext, dto: ChainCallDTO): Promise; } //# sourceMappingURL=TestGalaContract.d.ts.map