/**
Fadroma
Copyright (C) 2023 Hack.bg
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
**/
export * from "./fadroma.browser.dist";
import type { CodeHash } from '@fadroma/agent';
import { Chain, Program, Deploy, Store } from '@fadroma/agent';
import Commands from '@hackbg/cmds';
import type { Path } from '@hackbg/file';
import { SyncFS } from '@hackbg/file';
export default function main(...args: any): Commands;
type Project = {
root: any;
getDeployment(): Promise;
logStatus(): unknown;
};
export declare function getConnection(): Chain.Connection;
export declare function getCompiler(pkg?: string): Promise;
export declare function getUploadStore(path?: string | Path): Store.UploadStore;
export declare function getDeployStore(path?: string): Store.DeployStore;
export declare function runScript(context?: {
project?: Project;
script?: string;
args: string[];
}): Promise;
export declare function runRepl(context?: {
project?: Project;
script?: string;
args: string[];
}): Promise;
export declare function selectDeployment(cwd: string | Path, name?: string, store?: string | Store.DeployStore): Promise;
export declare function exportDeployment(cwd: string | Path, deployment?: Deploy.Deployment, path?: string | Path): void;
/** Directory containing upload receipts, e.g. `state/$CHAIN/upload`. */
export declare class JSONFileUploadStore extends Store.UploadStore {
dir: SyncFS.Directory;
constructor(dir: string | Path);
get [Symbol.toStringTag](): string;
get(codeHash: CodeHash | {
codeHash: CodeHash;
}): Deploy.UploadedCode | undefined;
set(codeHash: CodeHash | {
codeHash: CodeHash;
}, value: Partial): this;
}
/** Directory containing deploy receipts, e.g. `state/$CHAIN/deploy`. */
export declare class JSONFileDeployStore extends Store.DeployStore {
/** Root directory of deploy store. */
dir: SyncFS.Directory;
/** Name of symlink pointing to active deployment, without extension. */
KEY: string;
constructor(dir: string | Path);
get [Symbol.toStringTag](): string;
get(name: Deploy.Name): Deploy.DeploymentState | undefined;
set(name: Deploy.Name, state: Partial | Deploy.DeploymentState): this;
}
//# sourceMappingURL=fadroma.d.ts.map