@stdlib/deploy
Provides unified mechanisms for deployments.
To use this library, import @stdlib/deploy
:
Messages
Deploy
DeployOk
FactoryDeploy
Traits
Deployable
Simplest trait Deployable
that provides a handy unified mechanism for deployments by implementing a simple receiver for the Deploy message.
All contracts are deployed by sending them a message. While any message can be used for this purpose, best practice is to use the special Deploy message.
This message has a single field, queryId
, provided by the deployer (usually set to zero). If the deployment succeeds, the contract will reply with a DeployOk message and echo the same queryId
in the response.
Source code:
Usage example:
FactoryDeployable
Trait FactoryDeployable
provides a handy unified mechanism for chained deployments.
Source code:
Usage example: