diff --git a/packages/agent/deploy.md b/packages/agent/deploy.md index 6966adc461..e7dc483758 100644 --- a/packages/agent/deploy.md +++ b/packages/agent/deploy.md @@ -126,7 +126,20 @@ A contract that is part of a deploment. - generates structured label
-const deploymentUnit = new DeploymentUnit(properties: Partial<ContractCode> & Partial<DeploymentUnit>)
+const deploymentUnit = new DeploymentUnit(properties: {
+  chainId,
+  codeHash,
+  codeId,
+  compiled,
+  compiler,
+  deployer,
+  deployment,
+  log,
+  name,
+  source,
+  uploaded,
+  uploader,
+})
 
@@ -212,7 +225,20 @@ A contract that is part of a deploment. - generates structured label
-const contractTemplate = new ContractTemplate(properties: Partial<ContractCode> & Partial<DeploymentUnit>)
+const contractTemplate = new ContractTemplate(properties: {
+  chainId,
+  codeHash,
+  codeId,
+  compiled,
+  compiler,
+  deployer,
+  deployment,
+  log,
+  name,
+  source,
+  uploaded,
+  uploader,
+})
 
@@ -316,7 +342,30 @@ A contract that is part of a deploment. - generates structured label
-const contractInstance = new ContractInstance(properties: Partial<ContractCode> & Partial<DeploymentUnit> & Partial<ContractInstance>)
+const contractInstance = new ContractInstance(properties: {
+  address,
+  chainId,
+  codeHash,
+  codeId,
+  compiled,
+  compiler,
+  deployer,
+  deployment,
+  initBy,
+  initFee,
+  initGas,
+  initMemo,
+  initMsg,
+  initSend,
+  initTx,
+  isTemplate,
+  label,
+  log,
+  name,
+  source,
+  uploaded,
+  uploader,
+})
 
@@ -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>, )