@simbachain/truffle
Version:
Truffle Plugin for SIMBAChain
41 lines • 1.65 kB
TypeScript
import yargs from 'yargs';
export declare const command = "export";
export declare const describe = "export the contract to SIMBA Chain";
export declare const builder: {
primary: {
string: boolean;
type: string;
describe: string;
};
interactive: {
string: boolean;
type: string;
describe: string;
default: boolean;
};
savemode: {
type: string;
describe: string;
choices: string[];
default: string;
};
};
/**
* for exporting contract to simbachain.com (can also think of this as "importing" it to simbachain.com)
* @param args
* args:
* args.interactive - export from prompts if true
* args.primary - optional param specifying which contract to export. if not present, contract is selected from prompts
* args.savemode - if 'new' we do a post request for new contract design; if 'update' we do a put request and update contract design
* @returns
*/
export declare const handler: (args: yargs.Arguments) => Promise<any>;
/**
* export contract to simbachain.com (can also be thought of as "importing" contract to simbachain.com)
* @param interactive - export from prompts if true
* @param primary - optional param specifying which contract to export. if not present, contract is selected from prompts
* @param savemode - if 'new' we do a post request for new contract design; if 'update' we do a put request and update contract design
* @returns
*/
export declare function exportContracts(primary?: string | unknown, interactive?: boolean | unknown, savemode?: string | unknown): Promise<any>;
//# sourceMappingURL=export.d.ts.map