static makeDeploy(DeployParams $deployParams, DeployExecutable $session, DeployExecutable $payment): DeployReturns new deploy object created by $deployParams with $session and $payment
| Name | Type | Description | Required |
|---|---|---|---|
$deployParams |
DeployParams |
Deploy parameters | Yes |
$session |
DeployExecutable |
Session object | Yes |
$payment |
DeployExecutable |
Payment object | Yes |
static signDeploy(Deploy $deploy, AsymmetricKey $key): DeploySigns and returns the $deploy object
| Name | Type | Description | Required |
|---|---|---|---|
$deploy |
Deploy |
Deploy object which need to sign by $key |
Yes |
$key |
AsymmetricKey |
Asymmetric key object. Can be instance of Casper\Util\Crypto\Ed25519Key or Casper\Util\Crypto\Secp256K1Key |
Yes |
static validateDeploy(Deploy $deploy): boolReturns true if both the deploy body hash and the deploy hash are valid
| Name | Type | Description | Required |
|---|---|---|---|
$deploy |
Deploy |
Deploy object | Yes |
static getDeploySize(Deploy $deploy): intReturns a deploy size in bytes
| Name | Type | Description | Required |
|---|---|---|---|
$deploy |
Deploy |
Deploy object | Yes |