@@ -408,19 +457,34 @@ Returns a client to this contract instance.
## method [*contractInstance.deploy*](https://github.com/hackbg/fadroma/tree/v2/packages/agent/deploy.ts)
contractInstance.deploy({
+ address,
+ chainId,
+ codeHash,
+ codeId,
+ compiled,
compiler,
+ deployer,
+ deployment,
+ initBy,
+ initFee,
+ initGas,
+ initMemo,
+ initMsg,
+ initSend,
+ initTx,
+ isTemplate,
+ label,
+ log,
+ name,
rebuild,
-} & {
+ redeploy,
reupload,
+ source,
uploadFee,
uploadMemo,
uploadStore,
-} & {
- reupload,
+ uploaded,
uploader,
-} & Partial<ContractInstance> & {
- deployer,
- redeploy,
})
@@ -490,19 +554,47 @@ Returns an iterable of entries in the map.
## method [*deployment.addContract*](https://github.com/hackbg/fadroma/tree/v2/packages/agent/deploy.ts)
const result: Deployment = deployment.addContract(args: [string, ((({
+ cargoCrate,
+ cargoFeatures,
+ cargoToml,
+ cargoWorkspace,
language,
-} & Partial<RustSourceCode>) | ({
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+}) | ({
language,
-} & Partial<SourceCode>)) & Partial<CompiledCode> & Partial<UploadedCode> & Partial<ContractInstance>)])
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+})) & Partial<CompiledCode> & Partial<UploadedCode> & Partial<ContractInstance>)])
## method [*deployment.addContracts*](https://github.com/hackbg/fadroma/tree/v2/packages/agent/deploy.ts)
const result: Deployment = deployment.addContracts(args: [string, ((({
+ cargoCrate,
+ cargoFeatures,
+ cargoToml,
+ cargoWorkspace,
language,
-} & Partial<RustSourceCode>) | ({
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+}) | ({
language,
-} & Partial<SourceCode>)) & Partial<CompiledCode> & Partial<UploadedCode>)])
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+})) & Partial<CompiledCode> & Partial<UploadedCode>)])
## method [*deployment.build*](https://github.com/hackbg/fadroma/tree/v2/packages/agent/deploy.ts)
@@ -526,10 +618,24 @@ and instantiated as part of this deployment.
const result: ContractInstance = deployment.contract(
name: string,
properties: (({
+ cargoCrate,
+ cargoFeatures,
+ cargoToml,
+ cargoWorkspace,
language,
- } & Partial<RustSourceCode>) | ({
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+ }) | ({
language,
- } & Partial<SourceCode>)) & Partial<CompiledCode> & Partial<UploadedCode> & Partial<ContractInstance>,
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+ })) & Partial<CompiledCode> & Partial<UploadedCode> & Partial<ContractInstance>,
)
@@ -542,22 +648,36 @@ and instantiated as part of this deployment.
## method [*deployment.deploy*](https://github.com/hackbg/fadroma/tree/v2/packages/agent/deploy.ts)
const result: Record<string, > = await deployment.deploy({
+ address,
+ chainId,
+ codeHash,
+ codeId,
+ compiled,
compiler,
+ deployStore,
+ deployer,
+ deployment,
+ initBy,
+ initFee,
+ initGas,
+ initMemo,
+ initMsg,
+ initSend,
+ initTx,
+ isTemplate,
+ label,
+ log,
+ name,
rebuild,
-} & {
+ redeploy,
reupload,
+ source,
+ units,
uploadFee,
uploadMemo,
uploadStore,
-} & {
- reupload,
+ uploaded,
uploader,
-} & Partial<ContractInstance> & {
- deployer,
- redeploy,
-} & {
- deployStore,
- units,
})
@@ -616,10 +736,24 @@ the same code.
const result: ContractTemplate = deployment.template(
name: string,
properties: (({
+ cargoCrate,
+ cargoFeatures,
+ cargoToml,
+ cargoWorkspace,
language,
- } & Partial<RustSourceCode>) | ({
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+ }) | ({
language,
- } & Partial<SourceCode>)) & Partial<CompiledCode> & Partial<UploadedCode>,
+ log,
+ sourceDirty,
+ sourceOrigin,
+ sourcePath,
+ sourceRef,
+ })) & Partial<CompiledCode> & Partial<UploadedCode>,
)